| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- <?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 Cluster extends \Google\Collection
- {
- protected $collection_key = 'slots';
- /**
- * @var string
- */
- public $clusterUid;
- /**
- * @var string
- */
- public $createTime;
- /**
- * @var string
- */
- public $customerManagedKey;
- /**
- * @var int
- */
- public $defaultReplicaCount;
- /**
- * @var string
- */
- public $displayName;
- protected $endpointsType = Endpoint::class;
- protected $endpointsDataType = 'array';
- /**
- * @var string
- */
- public $name;
- protected $privateServiceConnectType = PrivateServiceConnect::class;
- protected $privateServiceConnectDataType = '';
- /**
- * @var string[]
- */
- public $redisConfigs;
- protected $slotsType = ClusterSlots::class;
- protected $slotsDataType = 'array';
- /**
- * @var string
- */
- public $state;
- /**
- * @var int
- */
- public $totalMemorySizeGb;
- /**
- * @param string
- */
- public function setClusterUid($clusterUid)
- {
- $this->clusterUid = $clusterUid;
- }
- /**
- * @return string
- */
- public function getClusterUid()
- {
- return $this->clusterUid;
- }
- /**
- * @param string
- */
- public function setCreateTime($createTime)
- {
- $this->createTime = $createTime;
- }
- /**
- * @return string
- */
- public function getCreateTime()
- {
- return $this->createTime;
- }
- /**
- * @param string
- */
- public function setCustomerManagedKey($customerManagedKey)
- {
- $this->customerManagedKey = $customerManagedKey;
- }
- /**
- * @return string
- */
- public function getCustomerManagedKey()
- {
- return $this->customerManagedKey;
- }
- /**
- * @param int
- */
- public function setDefaultReplicaCount($defaultReplicaCount)
- {
- $this->defaultReplicaCount = $defaultReplicaCount;
- }
- /**
- * @return int
- */
- public function getDefaultReplicaCount()
- {
- return $this->defaultReplicaCount;
- }
- /**
- * @param string
- */
- public function setDisplayName($displayName)
- {
- $this->displayName = $displayName;
- }
- /**
- * @return string
- */
- public function getDisplayName()
- {
- return $this->displayName;
- }
- /**
- * @param Endpoint[]
- */
- public function setEndpoints($endpoints)
- {
- $this->endpoints = $endpoints;
- }
- /**
- * @return Endpoint[]
- */
- public function getEndpoints()
- {
- return $this->endpoints;
- }
- /**
- * @param string
- */
- public function setName($name)
- {
- $this->name = $name;
- }
- /**
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * @param PrivateServiceConnect
- */
- public function setPrivateServiceConnect(PrivateServiceConnect $privateServiceConnect)
- {
- $this->privateServiceConnect = $privateServiceConnect;
- }
- /**
- * @return PrivateServiceConnect
- */
- public function getPrivateServiceConnect()
- {
- return $this->privateServiceConnect;
- }
- /**
- * @param string[]
- */
- public function setRedisConfigs($redisConfigs)
- {
- $this->redisConfigs = $redisConfigs;
- }
- /**
- * @return string[]
- */
- public function getRedisConfigs()
- {
- return $this->redisConfigs;
- }
- /**
- * @param ClusterSlots[]
- */
- public function setSlots($slots)
- {
- $this->slots = $slots;
- }
- /**
- * @return ClusterSlots[]
- */
- public function getSlots()
- {
- return $this->slots;
- }
- /**
- * @param string
- */
- public function setState($state)
- {
- $this->state = $state;
- }
- /**
- * @return string
- */
- public function getState()
- {
- return $this->state;
- }
- /**
- * @param int
- */
- public function setTotalMemorySizeGb($totalMemorySizeGb)
- {
- $this->totalMemorySizeGb = $totalMemorySizeGb;
- }
- /**
- * @return int
- */
- public function getTotalMemorySizeGb()
- {
- return $this->totalMemorySizeGb;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(Cluster::class, 'Google_Service_CloudRedis_Cluster');
|