From 450676f0f8e4ba708043346f886d60db8e08bc9c Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 7 Dec 2024 17:02:20 -0800 Subject: [PATCH] Regenerate redis client (#5941) Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-php-client-services/actions/workflows/codegen.yaml --- src/CloudRedis/Backup.php | 18 ++ src/CloudRedis/BackupCollection.php | 18 ++ src/CloudRedis/ConnectionDetail.php | 16 ++ src/CloudRedis/PscAutoConnection.php | 170 ++++++++++++++++++ .../Resource/ProjectsLocationsClusters.php | 7 +- 5 files changed, 228 insertions(+), 1 deletion(-) create mode 100644 src/CloudRedis/PscAutoConnection.php diff --git a/src/CloudRedis/Backup.php b/src/CloudRedis/Backup.php index 93375c67cc..bb94db8789 100644 --- a/src/CloudRedis/Backup.php +++ b/src/CloudRedis/Backup.php @@ -70,6 +70,10 @@ class Backup extends \Google\Collection * @var string */ public $totalSizeBytes; + /** + * @var string + */ + public $uid; /** * @param BackupFile[] @@ -253,6 +257,20 @@ public function getTotalSizeBytes() { return $this->totalSizeBytes; } + /** + * @param string + */ + public function setUid($uid) + { + $this->uid = $uid; + } + /** + * @return string + */ + public function getUid() + { + return $this->uid; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/CloudRedis/BackupCollection.php b/src/CloudRedis/BackupCollection.php index 5e51a7fb53..ead3361e9f 100644 --- a/src/CloudRedis/BackupCollection.php +++ b/src/CloudRedis/BackupCollection.php @@ -31,6 +31,10 @@ class BackupCollection extends \Google\Model * @var string */ public $name; + /** + * @var string + */ + public $uid; /** * @param string @@ -74,6 +78,20 @@ public function getName() { return $this->name; } + /** + * @param string + */ + public function setUid($uid) + { + $this->uid = $uid; + } + /** + * @return string + */ + public function getUid() + { + return $this->uid; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/CloudRedis/ConnectionDetail.php b/src/CloudRedis/ConnectionDetail.php index 4d240db741..fa9b235671 100644 --- a/src/CloudRedis/ConnectionDetail.php +++ b/src/CloudRedis/ConnectionDetail.php @@ -19,9 +19,25 @@ class ConnectionDetail extends \Google\Model { + protected $pscAutoConnectionType = PscAutoConnection::class; + protected $pscAutoConnectionDataType = ''; protected $pscConnectionType = PscConnection::class; protected $pscConnectionDataType = ''; + /** + * @param PscAutoConnection + */ + public function setPscAutoConnection(PscAutoConnection $pscAutoConnection) + { + $this->pscAutoConnection = $pscAutoConnection; + } + /** + * @return PscAutoConnection + */ + public function getPscAutoConnection() + { + return $this->pscAutoConnection; + } /** * @param PscConnection */ diff --git a/src/CloudRedis/PscAutoConnection.php b/src/CloudRedis/PscAutoConnection.php new file mode 100644 index 0000000000..dc5150f513 --- /dev/null +++ b/src/CloudRedis/PscAutoConnection.php @@ -0,0 +1,170 @@ +address = $address; + } + /** + * @return string + */ + public function getAddress() + { + return $this->address; + } + /** + * @param string + */ + public function setConnectionType($connectionType) + { + $this->connectionType = $connectionType; + } + /** + * @return string + */ + public function getConnectionType() + { + return $this->connectionType; + } + /** + * @param string + */ + public function setForwardingRule($forwardingRule) + { + $this->forwardingRule = $forwardingRule; + } + /** + * @return string + */ + public function getForwardingRule() + { + return $this->forwardingRule; + } + /** + * @param string + */ + public function setNetwork($network) + { + $this->network = $network; + } + /** + * @return string + */ + public function getNetwork() + { + return $this->network; + } + /** + * @param string + */ + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + /** + * @return string + */ + public function getProjectId() + { + return $this->projectId; + } + /** + * @param string + */ + public function setPscConnectionId($pscConnectionId) + { + $this->pscConnectionId = $pscConnectionId; + } + /** + * @return string + */ + public function getPscConnectionId() + { + return $this->pscConnectionId; + } + /** + * @param string + */ + public function setPscConnectionStatus($pscConnectionStatus) + { + $this->pscConnectionStatus = $pscConnectionStatus; + } + /** + * @return string + */ + public function getPscConnectionStatus() + { + return $this->pscConnectionStatus; + } + /** + * @param string + */ + public function setServiceAttachment($serviceAttachment) + { + $this->serviceAttachment = $serviceAttachment; + } + /** + * @return string + */ + public function getServiceAttachment() + { + return $this->serviceAttachment; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PscAutoConnection::class, 'Google_Service_CloudRedis_PscAutoConnection'); diff --git a/src/CloudRedis/Resource/ProjectsLocationsClusters.php b/src/CloudRedis/Resource/ProjectsLocationsClusters.php index 9c93d5d1c8..3c899a692d 100644 --- a/src/CloudRedis/Resource/ProjectsLocationsClusters.php +++ b/src/CloudRedis/Resource/ProjectsLocationsClusters.php @@ -40,7 +40,12 @@ class ProjectsLocationsClusters extends \Google\Service\Resource * this collection. Both collection and backup will have a resource name. Backup * will be executed for each shard. A replica (primary if nonHA) will be * selected to perform the execution. Backup call will be rejected if there is - * an ongoing backup or update operation. (clusters.backup) + * an ongoing backup or update operation. Be aware that during preview, if the + * cluster's internal software version is too old, critical update will be + * performed before actual backup. Once the internal software version is updated + * to the minimum version required by the backup feature, subsequent backups + * will not require critical update. After preview, there will be no critical + * update needed for backup. (clusters.backup) * * @param string $name Required. Redis cluster resource name using the form: * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where