Cluster.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\CloudRedis;
  18. class Cluster extends \Google\Collection
  19. {
  20. protected $collection_key = 'slots';
  21. /**
  22. * @var string
  23. */
  24. public $clusterUid;
  25. /**
  26. * @var string
  27. */
  28. public $createTime;
  29. /**
  30. * @var string
  31. */
  32. public $customerManagedKey;
  33. /**
  34. * @var int
  35. */
  36. public $defaultReplicaCount;
  37. /**
  38. * @var string
  39. */
  40. public $displayName;
  41. protected $endpointsType = Endpoint::class;
  42. protected $endpointsDataType = 'array';
  43. /**
  44. * @var string
  45. */
  46. public $name;
  47. protected $privateServiceConnectType = PrivateServiceConnect::class;
  48. protected $privateServiceConnectDataType = '';
  49. /**
  50. * @var string[]
  51. */
  52. public $redisConfigs;
  53. protected $slotsType = ClusterSlots::class;
  54. protected $slotsDataType = 'array';
  55. /**
  56. * @var string
  57. */
  58. public $state;
  59. /**
  60. * @var int
  61. */
  62. public $totalMemorySizeGb;
  63. /**
  64. * @param string
  65. */
  66. public function setClusterUid($clusterUid)
  67. {
  68. $this->clusterUid = $clusterUid;
  69. }
  70. /**
  71. * @return string
  72. */
  73. public function getClusterUid()
  74. {
  75. return $this->clusterUid;
  76. }
  77. /**
  78. * @param string
  79. */
  80. public function setCreateTime($createTime)
  81. {
  82. $this->createTime = $createTime;
  83. }
  84. /**
  85. * @return string
  86. */
  87. public function getCreateTime()
  88. {
  89. return $this->createTime;
  90. }
  91. /**
  92. * @param string
  93. */
  94. public function setCustomerManagedKey($customerManagedKey)
  95. {
  96. $this->customerManagedKey = $customerManagedKey;
  97. }
  98. /**
  99. * @return string
  100. */
  101. public function getCustomerManagedKey()
  102. {
  103. return $this->customerManagedKey;
  104. }
  105. /**
  106. * @param int
  107. */
  108. public function setDefaultReplicaCount($defaultReplicaCount)
  109. {
  110. $this->defaultReplicaCount = $defaultReplicaCount;
  111. }
  112. /**
  113. * @return int
  114. */
  115. public function getDefaultReplicaCount()
  116. {
  117. return $this->defaultReplicaCount;
  118. }
  119. /**
  120. * @param string
  121. */
  122. public function setDisplayName($displayName)
  123. {
  124. $this->displayName = $displayName;
  125. }
  126. /**
  127. * @return string
  128. */
  129. public function getDisplayName()
  130. {
  131. return $this->displayName;
  132. }
  133. /**
  134. * @param Endpoint[]
  135. */
  136. public function setEndpoints($endpoints)
  137. {
  138. $this->endpoints = $endpoints;
  139. }
  140. /**
  141. * @return Endpoint[]
  142. */
  143. public function getEndpoints()
  144. {
  145. return $this->endpoints;
  146. }
  147. /**
  148. * @param string
  149. */
  150. public function setName($name)
  151. {
  152. $this->name = $name;
  153. }
  154. /**
  155. * @return string
  156. */
  157. public function getName()
  158. {
  159. return $this->name;
  160. }
  161. /**
  162. * @param PrivateServiceConnect
  163. */
  164. public function setPrivateServiceConnect(PrivateServiceConnect $privateServiceConnect)
  165. {
  166. $this->privateServiceConnect = $privateServiceConnect;
  167. }
  168. /**
  169. * @return PrivateServiceConnect
  170. */
  171. public function getPrivateServiceConnect()
  172. {
  173. return $this->privateServiceConnect;
  174. }
  175. /**
  176. * @param string[]
  177. */
  178. public function setRedisConfigs($redisConfigs)
  179. {
  180. $this->redisConfigs = $redisConfigs;
  181. }
  182. /**
  183. * @return string[]
  184. */
  185. public function getRedisConfigs()
  186. {
  187. return $this->redisConfigs;
  188. }
  189. /**
  190. * @param ClusterSlots[]
  191. */
  192. public function setSlots($slots)
  193. {
  194. $this->slots = $slots;
  195. }
  196. /**
  197. * @return ClusterSlots[]
  198. */
  199. public function getSlots()
  200. {
  201. return $this->slots;
  202. }
  203. /**
  204. * @param string
  205. */
  206. public function setState($state)
  207. {
  208. $this->state = $state;
  209. }
  210. /**
  211. * @return string
  212. */
  213. public function getState()
  214. {
  215. return $this->state;
  216. }
  217. /**
  218. * @param int
  219. */
  220. public function setTotalMemorySizeGb($totalMemorySizeGb)
  221. {
  222. $this->totalMemorySizeGb = $totalMemorySizeGb;
  223. }
  224. /**
  225. * @return int
  226. */
  227. public function getTotalMemorySizeGb()
  228. {
  229. return $this->totalMemorySizeGb;
  230. }
  231. }
  232. // Adding a class alias for backwards compatibility with the previous class name.
  233. class_alias(Cluster::class, 'Google_Service_CloudRedis_Cluster');