Skip to content

Commit

Permalink
Regenerate redis client (#5941)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Dec 8, 2024
1 parent 8daf66c commit 450676f
Show file tree
Hide file tree
Showing 5 changed files with 228 additions and 1 deletion.
18 changes: 18 additions & 0 deletions src/CloudRedis/Backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ class Backup extends \Google\Collection
* @var string
*/
public $totalSizeBytes;
/**
* @var string
*/
public $uid;

/**
* @param BackupFile[]
Expand Down Expand Up @@ -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.
Expand Down
18 changes: 18 additions & 0 deletions src/CloudRedis/BackupCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ class BackupCollection extends \Google\Model
* @var string
*/
public $name;
/**
* @var string
*/
public $uid;

/**
* @param string
Expand Down Expand Up @@ -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.
Expand Down
16 changes: 16 additions & 0 deletions src/CloudRedis/ConnectionDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
170 changes: 170 additions & 0 deletions src/CloudRedis/PscAutoConnection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\CloudRedis;

class PscAutoConnection extends \Google\Model
{
/**
* @var string
*/
public $address;
/**
* @var string
*/
public $connectionType;
/**
* @var string
*/
public $forwardingRule;
/**
* @var string
*/
public $network;
/**
* @var string
*/
public $projectId;
/**
* @var string
*/
public $pscConnectionId;
/**
* @var string
*/
public $pscConnectionStatus;
/**
* @var string
*/
public $serviceAttachment;

/**
* @param string
*/
public function setAddress($address)
{
$this->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');
7 changes: 6 additions & 1 deletion src/CloudRedis/Resource/ProjectsLocationsClusters.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 450676f

Please sign in to comment.