[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\CloudRedis;
|
---|
| 19 |
|
---|
| 20 | class Cluster extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'pscServiceAttachments';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $authorizationMode;
|
---|
| 27 | protected $automatedBackupConfigType = AutomatedBackupConfig::class;
|
---|
| 28 | protected $automatedBackupConfigDataType = '';
|
---|
| 29 | /**
|
---|
| 30 | * @var string
|
---|
| 31 | */
|
---|
| 32 | public $backupCollection;
|
---|
| 33 | protected $clusterEndpointsType = ClusterEndpoint::class;
|
---|
| 34 | protected $clusterEndpointsDataType = 'array';
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $createTime;
|
---|
| 39 | protected $crossClusterReplicationConfigType = CrossClusterReplicationConfig::class;
|
---|
| 40 | protected $crossClusterReplicationConfigDataType = '';
|
---|
| 41 | /**
|
---|
| 42 | * @var bool
|
---|
| 43 | */
|
---|
| 44 | public $deletionProtectionEnabled;
|
---|
| 45 | protected $discoveryEndpointsType = DiscoveryEndpoint::class;
|
---|
| 46 | protected $discoveryEndpointsDataType = 'array';
|
---|
| 47 | protected $gcsSourceType = GcsBackupSource::class;
|
---|
| 48 | protected $gcsSourceDataType = '';
|
---|
| 49 | protected $maintenancePolicyType = ClusterMaintenancePolicy::class;
|
---|
| 50 | protected $maintenancePolicyDataType = '';
|
---|
| 51 | protected $maintenanceScheduleType = ClusterMaintenanceSchedule::class;
|
---|
| 52 | protected $maintenanceScheduleDataType = '';
|
---|
| 53 | protected $managedBackupSourceType = ManagedBackupSource::class;
|
---|
| 54 | protected $managedBackupSourceDataType = '';
|
---|
| 55 | /**
|
---|
| 56 | * @var string
|
---|
| 57 | */
|
---|
| 58 | public $name;
|
---|
| 59 | /**
|
---|
| 60 | * @var string
|
---|
| 61 | */
|
---|
| 62 | public $nodeType;
|
---|
| 63 | protected $persistenceConfigType = ClusterPersistenceConfig::class;
|
---|
| 64 | protected $persistenceConfigDataType = '';
|
---|
| 65 | public $preciseSizeGb;
|
---|
| 66 | protected $pscConfigsType = PscConfig::class;
|
---|
| 67 | protected $pscConfigsDataType = 'array';
|
---|
| 68 | protected $pscConnectionsType = PscConnection::class;
|
---|
| 69 | protected $pscConnectionsDataType = 'array';
|
---|
| 70 | protected $pscServiceAttachmentsType = PscServiceAttachment::class;
|
---|
| 71 | protected $pscServiceAttachmentsDataType = 'array';
|
---|
| 72 | /**
|
---|
| 73 | * @var string[]
|
---|
| 74 | */
|
---|
| 75 | public $redisConfigs;
|
---|
| 76 | /**
|
---|
| 77 | * @var int
|
---|
| 78 | */
|
---|
| 79 | public $replicaCount;
|
---|
| 80 | /**
|
---|
| 81 | * @var int
|
---|
| 82 | */
|
---|
| 83 | public $shardCount;
|
---|
| 84 | /**
|
---|
| 85 | * @var int
|
---|
| 86 | */
|
---|
| 87 | public $sizeGb;
|
---|
| 88 | /**
|
---|
| 89 | * @var string
|
---|
| 90 | */
|
---|
| 91 | public $state;
|
---|
| 92 | protected $stateInfoType = StateInfo::class;
|
---|
| 93 | protected $stateInfoDataType = '';
|
---|
| 94 | /**
|
---|
| 95 | * @var string
|
---|
| 96 | */
|
---|
| 97 | public $transitEncryptionMode;
|
---|
| 98 | /**
|
---|
| 99 | * @var string
|
---|
| 100 | */
|
---|
| 101 | public $uid;
|
---|
| 102 | protected $zoneDistributionConfigType = ZoneDistributionConfig::class;
|
---|
| 103 | protected $zoneDistributionConfigDataType = '';
|
---|
| 104 |
|
---|
| 105 | /**
|
---|
| 106 | * @param string
|
---|
| 107 | */
|
---|
| 108 | public function setAuthorizationMode($authorizationMode)
|
---|
| 109 | {
|
---|
| 110 | $this->authorizationMode = $authorizationMode;
|
---|
| 111 | }
|
---|
| 112 | /**
|
---|
| 113 | * @return string
|
---|
| 114 | */
|
---|
| 115 | public function getAuthorizationMode()
|
---|
| 116 | {
|
---|
| 117 | return $this->authorizationMode;
|
---|
| 118 | }
|
---|
| 119 | /**
|
---|
| 120 | * @param AutomatedBackupConfig
|
---|
| 121 | */
|
---|
| 122 | public function setAutomatedBackupConfig(AutomatedBackupConfig $automatedBackupConfig)
|
---|
| 123 | {
|
---|
| 124 | $this->automatedBackupConfig = $automatedBackupConfig;
|
---|
| 125 | }
|
---|
| 126 | /**
|
---|
| 127 | * @return AutomatedBackupConfig
|
---|
| 128 | */
|
---|
| 129 | public function getAutomatedBackupConfig()
|
---|
| 130 | {
|
---|
| 131 | return $this->automatedBackupConfig;
|
---|
| 132 | }
|
---|
| 133 | /**
|
---|
| 134 | * @param string
|
---|
| 135 | */
|
---|
| 136 | public function setBackupCollection($backupCollection)
|
---|
| 137 | {
|
---|
| 138 | $this->backupCollection = $backupCollection;
|
---|
| 139 | }
|
---|
| 140 | /**
|
---|
| 141 | * @return string
|
---|
| 142 | */
|
---|
| 143 | public function getBackupCollection()
|
---|
| 144 | {
|
---|
| 145 | return $this->backupCollection;
|
---|
| 146 | }
|
---|
| 147 | /**
|
---|
| 148 | * @param ClusterEndpoint[]
|
---|
| 149 | */
|
---|
| 150 | public function setClusterEndpoints($clusterEndpoints)
|
---|
| 151 | {
|
---|
| 152 | $this->clusterEndpoints = $clusterEndpoints;
|
---|
| 153 | }
|
---|
| 154 | /**
|
---|
| 155 | * @return ClusterEndpoint[]
|
---|
| 156 | */
|
---|
| 157 | public function getClusterEndpoints()
|
---|
| 158 | {
|
---|
| 159 | return $this->clusterEndpoints;
|
---|
| 160 | }
|
---|
| 161 | /**
|
---|
| 162 | * @param string
|
---|
| 163 | */
|
---|
| 164 | public function setCreateTime($createTime)
|
---|
| 165 | {
|
---|
| 166 | $this->createTime = $createTime;
|
---|
| 167 | }
|
---|
| 168 | /**
|
---|
| 169 | * @return string
|
---|
| 170 | */
|
---|
| 171 | public function getCreateTime()
|
---|
| 172 | {
|
---|
| 173 | return $this->createTime;
|
---|
| 174 | }
|
---|
| 175 | /**
|
---|
| 176 | * @param CrossClusterReplicationConfig
|
---|
| 177 | */
|
---|
| 178 | public function setCrossClusterReplicationConfig(CrossClusterReplicationConfig $crossClusterReplicationConfig)
|
---|
| 179 | {
|
---|
| 180 | $this->crossClusterReplicationConfig = $crossClusterReplicationConfig;
|
---|
| 181 | }
|
---|
| 182 | /**
|
---|
| 183 | * @return CrossClusterReplicationConfig
|
---|
| 184 | */
|
---|
| 185 | public function getCrossClusterReplicationConfig()
|
---|
| 186 | {
|
---|
| 187 | return $this->crossClusterReplicationConfig;
|
---|
| 188 | }
|
---|
| 189 | /**
|
---|
| 190 | * @param bool
|
---|
| 191 | */
|
---|
| 192 | public function setDeletionProtectionEnabled($deletionProtectionEnabled)
|
---|
| 193 | {
|
---|
| 194 | $this->deletionProtectionEnabled = $deletionProtectionEnabled;
|
---|
| 195 | }
|
---|
| 196 | /**
|
---|
| 197 | * @return bool
|
---|
| 198 | */
|
---|
| 199 | public function getDeletionProtectionEnabled()
|
---|
| 200 | {
|
---|
| 201 | return $this->deletionProtectionEnabled;
|
---|
| 202 | }
|
---|
| 203 | /**
|
---|
| 204 | * @param DiscoveryEndpoint[]
|
---|
| 205 | */
|
---|
| 206 | public function setDiscoveryEndpoints($discoveryEndpoints)
|
---|
| 207 | {
|
---|
| 208 | $this->discoveryEndpoints = $discoveryEndpoints;
|
---|
| 209 | }
|
---|
| 210 | /**
|
---|
| 211 | * @return DiscoveryEndpoint[]
|
---|
| 212 | */
|
---|
| 213 | public function getDiscoveryEndpoints()
|
---|
| 214 | {
|
---|
| 215 | return $this->discoveryEndpoints;
|
---|
| 216 | }
|
---|
| 217 | /**
|
---|
| 218 | * @param GcsBackupSource
|
---|
| 219 | */
|
---|
| 220 | public function setGcsSource(GcsBackupSource $gcsSource)
|
---|
| 221 | {
|
---|
| 222 | $this->gcsSource = $gcsSource;
|
---|
| 223 | }
|
---|
| 224 | /**
|
---|
| 225 | * @return GcsBackupSource
|
---|
| 226 | */
|
---|
| 227 | public function getGcsSource()
|
---|
| 228 | {
|
---|
| 229 | return $this->gcsSource;
|
---|
| 230 | }
|
---|
| 231 | /**
|
---|
| 232 | * @param ClusterMaintenancePolicy
|
---|
| 233 | */
|
---|
| 234 | public function setMaintenancePolicy(ClusterMaintenancePolicy $maintenancePolicy)
|
---|
| 235 | {
|
---|
| 236 | $this->maintenancePolicy = $maintenancePolicy;
|
---|
| 237 | }
|
---|
| 238 | /**
|
---|
| 239 | * @return ClusterMaintenancePolicy
|
---|
| 240 | */
|
---|
| 241 | public function getMaintenancePolicy()
|
---|
| 242 | {
|
---|
| 243 | return $this->maintenancePolicy;
|
---|
| 244 | }
|
---|
| 245 | /**
|
---|
| 246 | * @param ClusterMaintenanceSchedule
|
---|
| 247 | */
|
---|
| 248 | public function setMaintenanceSchedule(ClusterMaintenanceSchedule $maintenanceSchedule)
|
---|
| 249 | {
|
---|
| 250 | $this->maintenanceSchedule = $maintenanceSchedule;
|
---|
| 251 | }
|
---|
| 252 | /**
|
---|
| 253 | * @return ClusterMaintenanceSchedule
|
---|
| 254 | */
|
---|
| 255 | public function getMaintenanceSchedule()
|
---|
| 256 | {
|
---|
| 257 | return $this->maintenanceSchedule;
|
---|
| 258 | }
|
---|
| 259 | /**
|
---|
| 260 | * @param ManagedBackupSource
|
---|
| 261 | */
|
---|
| 262 | public function setManagedBackupSource(ManagedBackupSource $managedBackupSource)
|
---|
| 263 | {
|
---|
| 264 | $this->managedBackupSource = $managedBackupSource;
|
---|
| 265 | }
|
---|
| 266 | /**
|
---|
| 267 | * @return ManagedBackupSource
|
---|
| 268 | */
|
---|
| 269 | public function getManagedBackupSource()
|
---|
| 270 | {
|
---|
| 271 | return $this->managedBackupSource;
|
---|
| 272 | }
|
---|
| 273 | /**
|
---|
| 274 | * @param string
|
---|
| 275 | */
|
---|
| 276 | public function setName($name)
|
---|
| 277 | {
|
---|
| 278 | $this->name = $name;
|
---|
| 279 | }
|
---|
| 280 | /**
|
---|
| 281 | * @return string
|
---|
| 282 | */
|
---|
| 283 | public function getName()
|
---|
| 284 | {
|
---|
| 285 | return $this->name;
|
---|
| 286 | }
|
---|
| 287 | /**
|
---|
| 288 | * @param string
|
---|
| 289 | */
|
---|
| 290 | public function setNodeType($nodeType)
|
---|
| 291 | {
|
---|
| 292 | $this->nodeType = $nodeType;
|
---|
| 293 | }
|
---|
| 294 | /**
|
---|
| 295 | * @return string
|
---|
| 296 | */
|
---|
| 297 | public function getNodeType()
|
---|
| 298 | {
|
---|
| 299 | return $this->nodeType;
|
---|
| 300 | }
|
---|
| 301 | /**
|
---|
| 302 | * @param ClusterPersistenceConfig
|
---|
| 303 | */
|
---|
| 304 | public function setPersistenceConfig(ClusterPersistenceConfig $persistenceConfig)
|
---|
| 305 | {
|
---|
| 306 | $this->persistenceConfig = $persistenceConfig;
|
---|
| 307 | }
|
---|
| 308 | /**
|
---|
| 309 | * @return ClusterPersistenceConfig
|
---|
| 310 | */
|
---|
| 311 | public function getPersistenceConfig()
|
---|
| 312 | {
|
---|
| 313 | return $this->persistenceConfig;
|
---|
| 314 | }
|
---|
| 315 | public function setPreciseSizeGb($preciseSizeGb)
|
---|
| 316 | {
|
---|
| 317 | $this->preciseSizeGb = $preciseSizeGb;
|
---|
| 318 | }
|
---|
| 319 | public function getPreciseSizeGb()
|
---|
| 320 | {
|
---|
| 321 | return $this->preciseSizeGb;
|
---|
| 322 | }
|
---|
| 323 | /**
|
---|
| 324 | * @param PscConfig[]
|
---|
| 325 | */
|
---|
| 326 | public function setPscConfigs($pscConfigs)
|
---|
| 327 | {
|
---|
| 328 | $this->pscConfigs = $pscConfigs;
|
---|
| 329 | }
|
---|
| 330 | /**
|
---|
| 331 | * @return PscConfig[]
|
---|
| 332 | */
|
---|
| 333 | public function getPscConfigs()
|
---|
| 334 | {
|
---|
| 335 | return $this->pscConfigs;
|
---|
| 336 | }
|
---|
| 337 | /**
|
---|
| 338 | * @param PscConnection[]
|
---|
| 339 | */
|
---|
| 340 | public function setPscConnections($pscConnections)
|
---|
| 341 | {
|
---|
| 342 | $this->pscConnections = $pscConnections;
|
---|
| 343 | }
|
---|
| 344 | /**
|
---|
| 345 | * @return PscConnection[]
|
---|
| 346 | */
|
---|
| 347 | public function getPscConnections()
|
---|
| 348 | {
|
---|
| 349 | return $this->pscConnections;
|
---|
| 350 | }
|
---|
| 351 | /**
|
---|
| 352 | * @param PscServiceAttachment[]
|
---|
| 353 | */
|
---|
| 354 | public function setPscServiceAttachments($pscServiceAttachments)
|
---|
| 355 | {
|
---|
| 356 | $this->pscServiceAttachments = $pscServiceAttachments;
|
---|
| 357 | }
|
---|
| 358 | /**
|
---|
| 359 | * @return PscServiceAttachment[]
|
---|
| 360 | */
|
---|
| 361 | public function getPscServiceAttachments()
|
---|
| 362 | {
|
---|
| 363 | return $this->pscServiceAttachments;
|
---|
| 364 | }
|
---|
| 365 | /**
|
---|
| 366 | * @param string[]
|
---|
| 367 | */
|
---|
| 368 | public function setRedisConfigs($redisConfigs)
|
---|
| 369 | {
|
---|
| 370 | $this->redisConfigs = $redisConfigs;
|
---|
| 371 | }
|
---|
| 372 | /**
|
---|
| 373 | * @return string[]
|
---|
| 374 | */
|
---|
| 375 | public function getRedisConfigs()
|
---|
| 376 | {
|
---|
| 377 | return $this->redisConfigs;
|
---|
| 378 | }
|
---|
| 379 | /**
|
---|
| 380 | * @param int
|
---|
| 381 | */
|
---|
| 382 | public function setReplicaCount($replicaCount)
|
---|
| 383 | {
|
---|
| 384 | $this->replicaCount = $replicaCount;
|
---|
| 385 | }
|
---|
| 386 | /**
|
---|
| 387 | * @return int
|
---|
| 388 | */
|
---|
| 389 | public function getReplicaCount()
|
---|
| 390 | {
|
---|
| 391 | return $this->replicaCount;
|
---|
| 392 | }
|
---|
| 393 | /**
|
---|
| 394 | * @param int
|
---|
| 395 | */
|
---|
| 396 | public function setShardCount($shardCount)
|
---|
| 397 | {
|
---|
| 398 | $this->shardCount = $shardCount;
|
---|
| 399 | }
|
---|
| 400 | /**
|
---|
| 401 | * @return int
|
---|
| 402 | */
|
---|
| 403 | public function getShardCount()
|
---|
| 404 | {
|
---|
| 405 | return $this->shardCount;
|
---|
| 406 | }
|
---|
| 407 | /**
|
---|
| 408 | * @param int
|
---|
| 409 | */
|
---|
| 410 | public function setSizeGb($sizeGb)
|
---|
| 411 | {
|
---|
| 412 | $this->sizeGb = $sizeGb;
|
---|
| 413 | }
|
---|
| 414 | /**
|
---|
| 415 | * @return int
|
---|
| 416 | */
|
---|
| 417 | public function getSizeGb()
|
---|
| 418 | {
|
---|
| 419 | return $this->sizeGb;
|
---|
| 420 | }
|
---|
| 421 | /**
|
---|
| 422 | * @param string
|
---|
| 423 | */
|
---|
| 424 | public function setState($state)
|
---|
| 425 | {
|
---|
| 426 | $this->state = $state;
|
---|
| 427 | }
|
---|
| 428 | /**
|
---|
| 429 | * @return string
|
---|
| 430 | */
|
---|
| 431 | public function getState()
|
---|
| 432 | {
|
---|
| 433 | return $this->state;
|
---|
| 434 | }
|
---|
| 435 | /**
|
---|
| 436 | * @param StateInfo
|
---|
| 437 | */
|
---|
| 438 | public function setStateInfo(StateInfo $stateInfo)
|
---|
| 439 | {
|
---|
| 440 | $this->stateInfo = $stateInfo;
|
---|
| 441 | }
|
---|
| 442 | /**
|
---|
| 443 | * @return StateInfo
|
---|
| 444 | */
|
---|
| 445 | public function getStateInfo()
|
---|
| 446 | {
|
---|
| 447 | return $this->stateInfo;
|
---|
| 448 | }
|
---|
| 449 | /**
|
---|
| 450 | * @param string
|
---|
| 451 | */
|
---|
| 452 | public function setTransitEncryptionMode($transitEncryptionMode)
|
---|
| 453 | {
|
---|
| 454 | $this->transitEncryptionMode = $transitEncryptionMode;
|
---|
| 455 | }
|
---|
| 456 | /**
|
---|
| 457 | * @return string
|
---|
| 458 | */
|
---|
| 459 | public function getTransitEncryptionMode()
|
---|
| 460 | {
|
---|
| 461 | return $this->transitEncryptionMode;
|
---|
| 462 | }
|
---|
| 463 | /**
|
---|
| 464 | * @param string
|
---|
| 465 | */
|
---|
| 466 | public function setUid($uid)
|
---|
| 467 | {
|
---|
| 468 | $this->uid = $uid;
|
---|
| 469 | }
|
---|
| 470 | /**
|
---|
| 471 | * @return string
|
---|
| 472 | */
|
---|
| 473 | public function getUid()
|
---|
| 474 | {
|
---|
| 475 | return $this->uid;
|
---|
| 476 | }
|
---|
| 477 | /**
|
---|
| 478 | * @param ZoneDistributionConfig
|
---|
| 479 | */
|
---|
| 480 | public function setZoneDistributionConfig(ZoneDistributionConfig $zoneDistributionConfig)
|
---|
| 481 | {
|
---|
| 482 | $this->zoneDistributionConfig = $zoneDistributionConfig;
|
---|
| 483 | }
|
---|
| 484 | /**
|
---|
| 485 | * @return ZoneDistributionConfig
|
---|
| 486 | */
|
---|
| 487 | public function getZoneDistributionConfig()
|
---|
| 488 | {
|
---|
| 489 | return $this->zoneDistributionConfig;
|
---|
| 490 | }
|
---|
| 491 | }
|
---|
| 492 |
|
---|
| 493 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 494 | class_alias(Cluster::class, 'Google_Service_CloudRedis_Cluster');
|
---|