Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Jun 5, 2024
1 parent affdc80 commit 04dcb7f
Show file tree
Hide file tree
Showing 52 changed files with 436 additions and 5,597 deletions.
Binary file modified RedisCluster/metadata/V1/CloudRedisCluster.php
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions RedisCluster/src/V1/Client/CloudRedisClusterClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@
use Google\Cloud\Location\GetLocationRequest;
use Google\Cloud\Location\ListLocationsRequest;
use Google\Cloud\Location\Location;
use Google\Cloud\Redis\Cluster\V1\CertificateAuthority;
use Google\Cloud\Redis\Cluster\V1\Cluster;
use Google\Cloud\Redis\Cluster\V1\CreateClusterRequest;
use Google\Cloud\Redis\Cluster\V1\DeleteClusterRequest;
use Google\Cloud\Redis\Cluster\V1\GetClusterCertificateAuthorityRequest;
use Google\Cloud\Redis\Cluster\V1\GetClusterRequest;
use Google\Cloud\Redis\Cluster\V1\ListClustersRequest;
use Google\Cloud\Redis\Cluster\V1\UpdateClusterRequest;
Expand Down Expand Up @@ -82,6 +84,7 @@
* @method PromiseInterface createClusterAsync(CreateClusterRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteClusterAsync(DeleteClusterRequest $request, array $optionalArgs = [])
* @method PromiseInterface getClusterAsync(GetClusterRequest $request, array $optionalArgs = [])
* @method PromiseInterface getClusterCertificateAuthorityAsync(GetClusterCertificateAuthorityRequest $request, array $optionalArgs = [])
* @method PromiseInterface listClustersAsync(ListClustersRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateClusterAsync(UpdateClusterRequest $request, array $optionalArgs = [])
* @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = [])
Expand Down Expand Up @@ -185,6 +188,25 @@ private function createOperationsClient(array $options)
return new OperationsClient($options);
}

/**
* Formats a string containing the fully-qualified path to represent a
* certificate_authority resource.
*
* @param string $project
* @param string $location
* @param string $cluster
*
* @return string The formatted certificate_authority resource.
*/
public static function certificateAuthorityName(string $project, string $location, string $cluster): string
{
return self::getPathTemplate('certificateAuthority')->render([
'project' => $project,
'location' => $location,
'cluster' => $cluster,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a cluster
* resource.
Expand Down Expand Up @@ -225,6 +247,7 @@ public static function locationName(string $project, string $location): string
* Parses a formatted name string and returns an associative array of the components in the name.
* The following name formats are supported:
* Template: Pattern
* - certificateAuthority: projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority
* - cluster: projects/{project}/locations/{location}/clusters/{cluster}
* - location: projects/{project}/locations/{location}
*
Expand Down Expand Up @@ -404,6 +427,35 @@ public function getCluster(GetClusterRequest $request, array $callOptions = []):
return $this->startApiCall('GetCluster', $request, $callOptions)->wait();
}

/**
* Gets the details of certificate authority information for Redis cluster.
*
* The async variant is
* {@see CloudRedisClusterClient::getClusterCertificateAuthorityAsync()} .
*
* @example samples/V1/CloudRedisClusterClient/get_cluster_certificate_authority.php
*
* @param GetClusterCertificateAuthorityRequest $request A request to house fields associated with the call.
* @param array $callOptions {
* Optional.
*
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
* {@see RetrySettings} for example usage.
* }
*
* @return CertificateAuthority
*
* @throws ApiException Thrown if the API call fails.
*/
public function getClusterCertificateAuthority(
GetClusterCertificateAuthorityRequest $request,
array $callOptions = []
): CertificateAuthority {
return $this->startApiCall('GetClusterCertificateAuthority', $request, $callOptions)->wait();
}

/**
* Lists all Redis clusters owned by a project in either the specified
* location (region) or all locations.
Expand Down
Loading

0 comments on commit 04dcb7f

Please sign in to comment.