5151use Google \Cloud \Redis \Cluster \V1 \GetBackupRequest ;
5252use Google \Cloud \Redis \Cluster \V1 \GetClusterCertificateAuthorityRequest ;
5353use Google \Cloud \Redis \Cluster \V1 \GetClusterRequest ;
54+ use Google \Cloud \Redis \Cluster \V1 \GetSharedRegionalCertificateAuthorityRequest ;
5455use Google \Cloud \Redis \Cluster \V1 \ListBackupCollectionsRequest ;
5556use Google \Cloud \Redis \Cluster \V1 \ListBackupsRequest ;
5657use Google \Cloud \Redis \Cluster \V1 \ListClustersRequest ;
5758use Google \Cloud \Redis \Cluster \V1 \RescheduleClusterMaintenanceRequest ;
59+ use Google \Cloud \Redis \Cluster \V1 \SharedRegionalCertificateAuthority ;
5860use Google \Cloud \Redis \Cluster \V1 \UpdateClusterRequest ;
5961use Google \LongRunning \Client \OperationsClient ;
6062use Google \LongRunning \Operation ;
9698 * @method PromiseInterface<BackupCollection> getBackupCollectionAsync(GetBackupCollectionRequest $request, array $optionalArgs = [])
9799 * @method PromiseInterface<Cluster> getClusterAsync(GetClusterRequest $request, array $optionalArgs = [])
98100 * @method PromiseInterface<CertificateAuthority> getClusterCertificateAuthorityAsync(GetClusterCertificateAuthorityRequest $request, array $optionalArgs = [])
101+ * @method PromiseInterface<SharedRegionalCertificateAuthority> getSharedRegionalCertificateAuthorityAsync(GetSharedRegionalCertificateAuthorityRequest $request, array $optionalArgs = [])
99102 * @method PromiseInterface<PagedListResponse> listBackupCollectionsAsync(ListBackupCollectionsRequest $request, array $optionalArgs = [])
100103 * @method PromiseInterface<PagedListResponse> listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = [])
101104 * @method PromiseInterface<PagedListResponse> listClustersAsync(ListClustersRequest $request, array $optionalArgs = [])
@@ -244,6 +247,25 @@ public static function backupCollectionName(string $project, string $location, s
244247 ]);
245248 }
246249
250+ /**
251+ * Formats a string containing the fully-qualified path to represent a ca_pool
252+ * resource.
253+ *
254+ * @param string $project
255+ * @param string $location
256+ * @param string $caPool
257+ *
258+ * @return string The formatted ca_pool resource.
259+ */
260+ public static function caPoolName (string $ project , string $ location , string $ caPool ): string
261+ {
262+ return self ::getPathTemplate ('caPool ' )->render ([
263+ 'project ' => $ project ,
264+ 'location ' => $ location ,
265+ 'ca_pool ' => $ caPool ,
266+ ]);
267+ }
268+
247269 /**
248270 * Formats a string containing the fully-qualified path to represent a
249271 * certificate_authority resource.
@@ -403,12 +425,30 @@ public static function serviceAttachmentName(string $project, string $region, st
403425 ]);
404426 }
405427
428+ /**
429+ * Formats a string containing the fully-qualified path to represent a
430+ * shared_regional_certificate_authority resource.
431+ *
432+ * @param string $project
433+ * @param string $location
434+ *
435+ * @return string The formatted shared_regional_certificate_authority resource.
436+ */
437+ public static function sharedRegionalCertificateAuthorityName (string $ project , string $ location ): string
438+ {
439+ return self ::getPathTemplate ('sharedRegionalCertificateAuthority ' )->render ([
440+ 'project ' => $ project ,
441+ 'location ' => $ location ,
442+ ]);
443+ }
444+
406445 /**
407446 * Parses a formatted name string and returns an associative array of the components in the name.
408447 * The following name formats are supported:
409448 * Template: Pattern
410449 * - backup: projects/{project}/locations/{location}/backupCollections/{backup_collection}/backups/{backup}
411450 * - backupCollection: projects/{project}/locations/{location}/backupCollections/{backup_collection}
451+ * - caPool: projects/{project}/locations/{location}/caPools/{ca_pool}
412452 * - certificateAuthority: projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority
413453 * - cluster: projects/{project}/locations/{location}/clusters/{cluster}
414454 * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
@@ -417,6 +457,7 @@ public static function serviceAttachmentName(string $project, string $region, st
417457 * - location: projects/{project}/locations/{location}
418458 * - network: projects/{project}/global/networks/{network}
419459 * - serviceAttachment: projects/{project}/regions/{region}/serviceAttachments/{service_attachment}
460+ * - sharedRegionalCertificateAuthority: projects/{project}/locations/{location}/sharedRegionalCertificateAuthority
420461 *
421462 * The optional $template argument can be supplied to specify a particular pattern,
422463 * and must match one of the templates listed above. If no $template argument is
@@ -779,6 +820,36 @@ public function getClusterCertificateAuthority(
779820 return $ this ->startApiCall ('GetClusterCertificateAuthority ' , $ request , $ callOptions )->wait ();
780821 }
781822
823+ /**
824+ * Gets the details of regional certificate authority information for Redis
825+ * cluster.
826+ *
827+ * The async variant is
828+ * {@see CloudRedisClusterClient::getSharedRegionalCertificateAuthorityAsync()} .
829+ *
830+ * @example samples/V1/CloudRedisClusterClient/get_shared_regional_certificate_authority.php
831+ *
832+ * @param GetSharedRegionalCertificateAuthorityRequest $request A request to house fields associated with the call.
833+ * @param array $callOptions {
834+ * Optional.
835+ *
836+ * @type RetrySettings|array $retrySettings
837+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
838+ * associative array of retry settings parameters. See the documentation on
839+ * {@see RetrySettings} for example usage.
840+ * }
841+ *
842+ * @return SharedRegionalCertificateAuthority
843+ *
844+ * @throws ApiException Thrown if the API call fails.
845+ */
846+ public function getSharedRegionalCertificateAuthority (
847+ GetSharedRegionalCertificateAuthorityRequest $ request ,
848+ array $ callOptions = []
849+ ): SharedRegionalCertificateAuthority {
850+ return $ this ->startApiCall ('GetSharedRegionalCertificateAuthority ' , $ request , $ callOptions )->wait ();
851+ }
852+
782853 /**
783854 * Lists all backup collections owned by a consumer project in either the
784855 * specified location (region) or all locations.
0 commit comments