|
45 | 45 | use Google\Cloud\Memorystore\V1beta\DeleteInstanceRequest; |
46 | 46 | use Google\Cloud\Memorystore\V1beta\GetCertificateAuthorityRequest; |
47 | 47 | use Google\Cloud\Memorystore\V1beta\GetInstanceRequest; |
| 48 | +use Google\Cloud\Memorystore\V1beta\GetSharedRegionalCertificateAuthorityRequest; |
48 | 49 | use Google\Cloud\Memorystore\V1beta\Instance; |
49 | 50 | use Google\Cloud\Memorystore\V1beta\ListInstancesRequest; |
| 51 | +use Google\Cloud\Memorystore\V1beta\SharedRegionalCertificateAuthority; |
50 | 52 | use Google\Cloud\Memorystore\V1beta\UpdateInstanceRequest; |
51 | 53 | use Google\LongRunning\Client\OperationsClient; |
52 | 54 | use Google\LongRunning\Operation; |
|
70 | 72 | * @method PromiseInterface<OperationResponse> deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) |
71 | 73 | * @method PromiseInterface<CertificateAuthority> getCertificateAuthorityAsync(GetCertificateAuthorityRequest $request, array $optionalArgs = []) |
72 | 74 | * @method PromiseInterface<Instance> getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) |
| 75 | + * @method PromiseInterface<SharedRegionalCertificateAuthority> getSharedRegionalCertificateAuthorityAsync(GetSharedRegionalCertificateAuthorityRequest $request, array $optionalArgs = []) |
73 | 76 | * @method PromiseInterface<PagedListResponse> listInstancesAsync(ListInstancesRequest $request, array $optionalArgs = []) |
74 | 77 | * @method PromiseInterface<OperationResponse> updateInstanceAsync(UpdateInstanceRequest $request, array $optionalArgs = []) |
75 | 78 | * @method PromiseInterface<Location> getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) |
@@ -187,6 +190,27 @@ private function createOperationsClient(array $options) |
187 | 190 | return new OperationsClient($options); |
188 | 191 | } |
189 | 192 |
|
| 193 | + /** |
| 194 | + * Formats a string containing the fully-qualified path to represent a ca_pool |
| 195 | + * resource. |
| 196 | + * |
| 197 | + * @param string $project |
| 198 | + * @param string $location |
| 199 | + * @param string $caPool |
| 200 | + * |
| 201 | + * @return string The formatted ca_pool resource. |
| 202 | + * |
| 203 | + * @experimental |
| 204 | + */ |
| 205 | + public static function caPoolName(string $project, string $location, string $caPool): string |
| 206 | + { |
| 207 | + return self::getPathTemplate('caPool')->render([ |
| 208 | + 'project' => $project, |
| 209 | + 'location' => $location, |
| 210 | + 'ca_pool' => $caPool, |
| 211 | + ]); |
| 212 | + } |
| 213 | + |
190 | 214 | /** |
191 | 215 | * Formats a string containing the fully-qualified path to represent a |
192 | 216 | * forwarding_rule resource. |
@@ -288,15 +312,36 @@ public static function serviceAttachmentName(string $project, string $region, st |
288 | 312 | ]); |
289 | 313 | } |
290 | 314 |
|
| 315 | + /** |
| 316 | + * Formats a string containing the fully-qualified path to represent a |
| 317 | + * shared_regional_certificate_authority resource. |
| 318 | + * |
| 319 | + * @param string $project |
| 320 | + * @param string $location |
| 321 | + * |
| 322 | + * @return string The formatted shared_regional_certificate_authority resource. |
| 323 | + * |
| 324 | + * @experimental |
| 325 | + */ |
| 326 | + public static function sharedRegionalCertificateAuthorityName(string $project, string $location): string |
| 327 | + { |
| 328 | + return self::getPathTemplate('sharedRegionalCertificateAuthority')->render([ |
| 329 | + 'project' => $project, |
| 330 | + 'location' => $location, |
| 331 | + ]); |
| 332 | + } |
| 333 | + |
291 | 334 | /** |
292 | 335 | * Parses a formatted name string and returns an associative array of the components in the name. |
293 | 336 | * The following name formats are supported: |
294 | 337 | * Template: Pattern |
| 338 | + * - caPool: projects/{project}/locations/{location}/caPools/{ca_pool} |
295 | 339 | * - forwardingRule: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule} |
296 | 340 | * - instance: projects/{project}/locations/{location}/instances/{instance} |
297 | 341 | * - location: projects/{project}/locations/{location} |
298 | 342 | * - network: projects/{project}/global/networks/{network} |
299 | 343 | * - serviceAttachment: projects/{project}/regions/{region}/serviceAttachments/{service_attachment} |
| 344 | + * - sharedRegionalCertificateAuthority: projects/{project}/locations/{location}/sharedRegionalCertificateAuthority |
300 | 345 | * |
301 | 346 | * The optional $template argument can be supplied to specify a particular pattern, |
302 | 347 | * and must match one of the templates listed above. If no $template argument is |
@@ -517,6 +562,38 @@ public function getInstance(GetInstanceRequest $request, array $callOptions = [] |
517 | 562 | return $this->startApiCall('GetInstance', $request, $callOptions)->wait(); |
518 | 563 | } |
519 | 564 |
|
| 565 | + /** |
| 566 | + * Gets the details of shared regional certificate authority information for |
| 567 | + * Memorystore instance. |
| 568 | + * |
| 569 | + * The async variant is |
| 570 | + * {@see MemorystoreClient::getSharedRegionalCertificateAuthorityAsync()} . |
| 571 | + * |
| 572 | + * @example samples/V1beta/MemorystoreClient/get_shared_regional_certificate_authority.php |
| 573 | + * |
| 574 | + * @param GetSharedRegionalCertificateAuthorityRequest $request A request to house fields associated with the call. |
| 575 | + * @param array $callOptions { |
| 576 | + * Optional. |
| 577 | + * |
| 578 | + * @type RetrySettings|array $retrySettings |
| 579 | + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an |
| 580 | + * associative array of retry settings parameters. See the documentation on |
| 581 | + * {@see RetrySettings} for example usage. |
| 582 | + * } |
| 583 | + * |
| 584 | + * @return SharedRegionalCertificateAuthority |
| 585 | + * |
| 586 | + * @throws ApiException Thrown if the API call fails. |
| 587 | + * |
| 588 | + * @experimental |
| 589 | + */ |
| 590 | + public function getSharedRegionalCertificateAuthority( |
| 591 | + GetSharedRegionalCertificateAuthorityRequest $request, |
| 592 | + array $callOptions = [] |
| 593 | + ): SharedRegionalCertificateAuthority { |
| 594 | + return $this->startApiCall('GetSharedRegionalCertificateAuthority', $request, $callOptions)->wait(); |
| 595 | + } |
| 596 | + |
520 | 597 | /** |
521 | 598 | * Lists Instances in a given project and location. |
522 | 599 | * |
|
0 commit comments