|
50 | 50 | use Google\Cloud\Memorystore\V1\GetBackupRequest; |
51 | 51 | use Google\Cloud\Memorystore\V1\GetCertificateAuthorityRequest; |
52 | 52 | use Google\Cloud\Memorystore\V1\GetInstanceRequest; |
| 53 | +use Google\Cloud\Memorystore\V1\GetSharedRegionalCertificateAuthorityRequest; |
53 | 54 | use Google\Cloud\Memorystore\V1\Instance; |
54 | 55 | use Google\Cloud\Memorystore\V1\ListBackupCollectionsRequest; |
55 | 56 | use Google\Cloud\Memorystore\V1\ListBackupsRequest; |
56 | 57 | use Google\Cloud\Memorystore\V1\ListInstancesRequest; |
57 | 58 | use Google\Cloud\Memorystore\V1\RescheduleMaintenanceRequest; |
| 59 | +use Google\Cloud\Memorystore\V1\SharedRegionalCertificateAuthority; |
58 | 60 | use Google\Cloud\Memorystore\V1\UpdateInstanceRequest; |
59 | 61 | use Google\LongRunning\Client\OperationsClient; |
60 | 62 | use Google\LongRunning\Operation; |
|
81 | 83 | * @method PromiseInterface<BackupCollection> getBackupCollectionAsync(GetBackupCollectionRequest $request, array $optionalArgs = []) |
82 | 84 | * @method PromiseInterface<CertificateAuthority> getCertificateAuthorityAsync(GetCertificateAuthorityRequest $request, array $optionalArgs = []) |
83 | 85 | * @method PromiseInterface<Instance> getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) |
| 86 | + * @method PromiseInterface<SharedRegionalCertificateAuthority> getSharedRegionalCertificateAuthorityAsync(GetSharedRegionalCertificateAuthorityRequest $request, array $optionalArgs = []) |
84 | 87 | * @method PromiseInterface<PagedListResponse> listBackupCollectionsAsync(ListBackupCollectionsRequest $request, array $optionalArgs = []) |
85 | 88 | * @method PromiseInterface<PagedListResponse> listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) |
86 | 89 | * @method PromiseInterface<PagedListResponse> listInstancesAsync(ListInstancesRequest $request, array $optionalArgs = []) |
@@ -241,6 +244,25 @@ public static function backupCollectionName(string $project, string $location, s |
241 | 244 | ]); |
242 | 245 | } |
243 | 246 |
|
| 247 | + /** |
| 248 | + * Formats a string containing the fully-qualified path to represent a ca_pool |
| 249 | + * resource. |
| 250 | + * |
| 251 | + * @param string $project |
| 252 | + * @param string $location |
| 253 | + * @param string $caPool |
| 254 | + * |
| 255 | + * @return string The formatted ca_pool resource. |
| 256 | + */ |
| 257 | + public static function caPoolName(string $project, string $location, string $caPool): string |
| 258 | + { |
| 259 | + return self::getPathTemplate('caPool')->render([ |
| 260 | + 'project' => $project, |
| 261 | + 'location' => $location, |
| 262 | + 'ca_pool' => $caPool, |
| 263 | + ]); |
| 264 | + } |
| 265 | + |
244 | 266 | /** |
245 | 267 | * Formats a string containing the fully-qualified path to represent a crypto_key |
246 | 268 | * resource. |
@@ -381,19 +403,38 @@ public static function serviceAttachmentName(string $project, string $region, st |
381 | 403 | ]); |
382 | 404 | } |
383 | 405 |
|
| 406 | + /** |
| 407 | + * Formats a string containing the fully-qualified path to represent a |
| 408 | + * shared_regional_certificate_authority resource. |
| 409 | + * |
| 410 | + * @param string $project |
| 411 | + * @param string $location |
| 412 | + * |
| 413 | + * @return string The formatted shared_regional_certificate_authority resource. |
| 414 | + */ |
| 415 | + public static function sharedRegionalCertificateAuthorityName(string $project, string $location): string |
| 416 | + { |
| 417 | + return self::getPathTemplate('sharedRegionalCertificateAuthority')->render([ |
| 418 | + 'project' => $project, |
| 419 | + 'location' => $location, |
| 420 | + ]); |
| 421 | + } |
| 422 | + |
384 | 423 | /** |
385 | 424 | * Parses a formatted name string and returns an associative array of the components in the name. |
386 | 425 | * The following name formats are supported: |
387 | 426 | * Template: Pattern |
388 | 427 | * - backup: projects/{project}/locations/{location}/backupCollections/{backup_collection}/backups/{backup} |
389 | 428 | * - backupCollection: projects/{project}/locations/{location}/backupCollections/{backup_collection} |
| 429 | + * - caPool: projects/{project}/locations/{location}/caPools/{ca_pool} |
390 | 430 | * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} |
391 | 431 | * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} |
392 | 432 | * - forwardingRule: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule} |
393 | 433 | * - instance: projects/{project}/locations/{location}/instances/{instance} |
394 | 434 | * - location: projects/{project}/locations/{location} |
395 | 435 | * - network: projects/{project}/global/networks/{network} |
396 | 436 | * - serviceAttachment: projects/{project}/regions/{region}/serviceAttachments/{service_attachment} |
| 437 | + * - sharedRegionalCertificateAuthority: projects/{project}/locations/{location}/sharedRegionalCertificateAuthority |
397 | 438 | * |
398 | 439 | * The optional $template argument can be supplied to specify a particular pattern, |
399 | 440 | * and must match one of the templates listed above. If no $template argument is |
@@ -743,6 +784,36 @@ public function getInstance(GetInstanceRequest $request, array $callOptions = [] |
743 | 784 | return $this->startApiCall('GetInstance', $request, $callOptions)->wait(); |
744 | 785 | } |
745 | 786 |
|
| 787 | + /** |
| 788 | + * Gets the details of shared regional certificate authority information for |
| 789 | + * Memorystore instance. |
| 790 | + * |
| 791 | + * The async variant is |
| 792 | + * {@see MemorystoreClient::getSharedRegionalCertificateAuthorityAsync()} . |
| 793 | + * |
| 794 | + * @example samples/V1/MemorystoreClient/get_shared_regional_certificate_authority.php |
| 795 | + * |
| 796 | + * @param GetSharedRegionalCertificateAuthorityRequest $request A request to house fields associated with the call. |
| 797 | + * @param array $callOptions { |
| 798 | + * Optional. |
| 799 | + * |
| 800 | + * @type RetrySettings|array $retrySettings |
| 801 | + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an |
| 802 | + * associative array of retry settings parameters. See the documentation on |
| 803 | + * {@see RetrySettings} for example usage. |
| 804 | + * } |
| 805 | + * |
| 806 | + * @return SharedRegionalCertificateAuthority |
| 807 | + * |
| 808 | + * @throws ApiException Thrown if the API call fails. |
| 809 | + */ |
| 810 | + public function getSharedRegionalCertificateAuthority( |
| 811 | + GetSharedRegionalCertificateAuthorityRequest $request, |
| 812 | + array $callOptions = [] |
| 813 | + ): SharedRegionalCertificateAuthority { |
| 814 | + return $this->startApiCall('GetSharedRegionalCertificateAuthority', $request, $callOptions)->wait(); |
| 815 | + } |
| 816 | + |
746 | 817 | /** |
747 | 818 | * Lists all backup collections owned by a consumer project in either the |
748 | 819 | * specified location (region) or all locations. |
|
0 commit comments