[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\CloudAlloyDBAdmin;
|
---|
| 19 |
|
---|
| 20 | class Instance extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'outboundPublicIpAddresses';
|
---|
| 23 | /**
|
---|
| 24 | * @var string[]
|
---|
| 25 | */
|
---|
| 26 | public $annotations;
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $availabilityType;
|
---|
| 31 | protected $clientConnectionConfigType = ClientConnectionConfig::class;
|
---|
| 32 | protected $clientConnectionConfigDataType = '';
|
---|
| 33 | /**
|
---|
| 34 | * @var string
|
---|
| 35 | */
|
---|
| 36 | public $createTime;
|
---|
| 37 | /**
|
---|
| 38 | * @var string[]
|
---|
| 39 | */
|
---|
| 40 | public $databaseFlags;
|
---|
| 41 | /**
|
---|
| 42 | * @var string
|
---|
| 43 | */
|
---|
| 44 | public $deleteTime;
|
---|
| 45 | /**
|
---|
| 46 | * @var string
|
---|
| 47 | */
|
---|
| 48 | public $displayName;
|
---|
| 49 | /**
|
---|
| 50 | * @var string
|
---|
| 51 | */
|
---|
| 52 | public $etag;
|
---|
| 53 | /**
|
---|
| 54 | * @var string
|
---|
| 55 | */
|
---|
| 56 | public $gceZone;
|
---|
| 57 | /**
|
---|
| 58 | * @var string
|
---|
| 59 | */
|
---|
| 60 | public $instanceType;
|
---|
| 61 | /**
|
---|
| 62 | * @var string
|
---|
| 63 | */
|
---|
| 64 | public $ipAddress;
|
---|
| 65 | /**
|
---|
| 66 | * @var string[]
|
---|
| 67 | */
|
---|
| 68 | public $labels;
|
---|
| 69 | protected $machineConfigType = MachineConfig::class;
|
---|
| 70 | protected $machineConfigDataType = '';
|
---|
| 71 | /**
|
---|
| 72 | * @var string
|
---|
| 73 | */
|
---|
| 74 | public $name;
|
---|
| 75 | protected $networkConfigType = InstanceNetworkConfig::class;
|
---|
| 76 | protected $networkConfigDataType = '';
|
---|
| 77 | protected $nodesType = Node::class;
|
---|
| 78 | protected $nodesDataType = 'array';
|
---|
| 79 | /**
|
---|
| 80 | * @var string[]
|
---|
| 81 | */
|
---|
| 82 | public $outboundPublicIpAddresses;
|
---|
| 83 | protected $pscInstanceConfigType = PscInstanceConfig::class;
|
---|
| 84 | protected $pscInstanceConfigDataType = '';
|
---|
| 85 | /**
|
---|
| 86 | * @var string
|
---|
| 87 | */
|
---|
| 88 | public $publicIpAddress;
|
---|
| 89 | protected $queryInsightsConfigType = QueryInsightsInstanceConfig::class;
|
---|
| 90 | protected $queryInsightsConfigDataType = '';
|
---|
| 91 | protected $readPoolConfigType = ReadPoolConfig::class;
|
---|
| 92 | protected $readPoolConfigDataType = '';
|
---|
| 93 | /**
|
---|
| 94 | * @var bool
|
---|
| 95 | */
|
---|
| 96 | public $reconciling;
|
---|
| 97 | /**
|
---|
| 98 | * @var bool
|
---|
| 99 | */
|
---|
| 100 | public $satisfiesPzs;
|
---|
| 101 | /**
|
---|
| 102 | * @var string
|
---|
| 103 | */
|
---|
| 104 | public $state;
|
---|
| 105 | /**
|
---|
| 106 | * @var string
|
---|
| 107 | */
|
---|
| 108 | public $uid;
|
---|
| 109 | /**
|
---|
| 110 | * @var string
|
---|
| 111 | */
|
---|
| 112 | public $updateTime;
|
---|
| 113 | protected $writableNodeType = Node::class;
|
---|
| 114 | protected $writableNodeDataType = '';
|
---|
| 115 |
|
---|
| 116 | /**
|
---|
| 117 | * @param string[]
|
---|
| 118 | */
|
---|
| 119 | public function setAnnotations($annotations)
|
---|
| 120 | {
|
---|
| 121 | $this->annotations = $annotations;
|
---|
| 122 | }
|
---|
| 123 | /**
|
---|
| 124 | * @return string[]
|
---|
| 125 | */
|
---|
| 126 | public function getAnnotations()
|
---|
| 127 | {
|
---|
| 128 | return $this->annotations;
|
---|
| 129 | }
|
---|
| 130 | /**
|
---|
| 131 | * @param string
|
---|
| 132 | */
|
---|
| 133 | public function setAvailabilityType($availabilityType)
|
---|
| 134 | {
|
---|
| 135 | $this->availabilityType = $availabilityType;
|
---|
| 136 | }
|
---|
| 137 | /**
|
---|
| 138 | * @return string
|
---|
| 139 | */
|
---|
| 140 | public function getAvailabilityType()
|
---|
| 141 | {
|
---|
| 142 | return $this->availabilityType;
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * @param ClientConnectionConfig
|
---|
| 146 | */
|
---|
| 147 | public function setClientConnectionConfig(ClientConnectionConfig $clientConnectionConfig)
|
---|
| 148 | {
|
---|
| 149 | $this->clientConnectionConfig = $clientConnectionConfig;
|
---|
| 150 | }
|
---|
| 151 | /**
|
---|
| 152 | * @return ClientConnectionConfig
|
---|
| 153 | */
|
---|
| 154 | public function getClientConnectionConfig()
|
---|
| 155 | {
|
---|
| 156 | return $this->clientConnectionConfig;
|
---|
| 157 | }
|
---|
| 158 | /**
|
---|
| 159 | * @param string
|
---|
| 160 | */
|
---|
| 161 | public function setCreateTime($createTime)
|
---|
| 162 | {
|
---|
| 163 | $this->createTime = $createTime;
|
---|
| 164 | }
|
---|
| 165 | /**
|
---|
| 166 | * @return string
|
---|
| 167 | */
|
---|
| 168 | public function getCreateTime()
|
---|
| 169 | {
|
---|
| 170 | return $this->createTime;
|
---|
| 171 | }
|
---|
| 172 | /**
|
---|
| 173 | * @param string[]
|
---|
| 174 | */
|
---|
| 175 | public function setDatabaseFlags($databaseFlags)
|
---|
| 176 | {
|
---|
| 177 | $this->databaseFlags = $databaseFlags;
|
---|
| 178 | }
|
---|
| 179 | /**
|
---|
| 180 | * @return string[]
|
---|
| 181 | */
|
---|
| 182 | public function getDatabaseFlags()
|
---|
| 183 | {
|
---|
| 184 | return $this->databaseFlags;
|
---|
| 185 | }
|
---|
| 186 | /**
|
---|
| 187 | * @param string
|
---|
| 188 | */
|
---|
| 189 | public function setDeleteTime($deleteTime)
|
---|
| 190 | {
|
---|
| 191 | $this->deleteTime = $deleteTime;
|
---|
| 192 | }
|
---|
| 193 | /**
|
---|
| 194 | * @return string
|
---|
| 195 | */
|
---|
| 196 | public function getDeleteTime()
|
---|
| 197 | {
|
---|
| 198 | return $this->deleteTime;
|
---|
| 199 | }
|
---|
| 200 | /**
|
---|
| 201 | * @param string
|
---|
| 202 | */
|
---|
| 203 | public function setDisplayName($displayName)
|
---|
| 204 | {
|
---|
| 205 | $this->displayName = $displayName;
|
---|
| 206 | }
|
---|
| 207 | /**
|
---|
| 208 | * @return string
|
---|
| 209 | */
|
---|
| 210 | public function getDisplayName()
|
---|
| 211 | {
|
---|
| 212 | return $this->displayName;
|
---|
| 213 | }
|
---|
| 214 | /**
|
---|
| 215 | * @param string
|
---|
| 216 | */
|
---|
| 217 | public function setEtag($etag)
|
---|
| 218 | {
|
---|
| 219 | $this->etag = $etag;
|
---|
| 220 | }
|
---|
| 221 | /**
|
---|
| 222 | * @return string
|
---|
| 223 | */
|
---|
| 224 | public function getEtag()
|
---|
| 225 | {
|
---|
| 226 | return $this->etag;
|
---|
| 227 | }
|
---|
| 228 | /**
|
---|
| 229 | * @param string
|
---|
| 230 | */
|
---|
| 231 | public function setGceZone($gceZone)
|
---|
| 232 | {
|
---|
| 233 | $this->gceZone = $gceZone;
|
---|
| 234 | }
|
---|
| 235 | /**
|
---|
| 236 | * @return string
|
---|
| 237 | */
|
---|
| 238 | public function getGceZone()
|
---|
| 239 | {
|
---|
| 240 | return $this->gceZone;
|
---|
| 241 | }
|
---|
| 242 | /**
|
---|
| 243 | * @param string
|
---|
| 244 | */
|
---|
| 245 | public function setInstanceType($instanceType)
|
---|
| 246 | {
|
---|
| 247 | $this->instanceType = $instanceType;
|
---|
| 248 | }
|
---|
| 249 | /**
|
---|
| 250 | * @return string
|
---|
| 251 | */
|
---|
| 252 | public function getInstanceType()
|
---|
| 253 | {
|
---|
| 254 | return $this->instanceType;
|
---|
| 255 | }
|
---|
| 256 | /**
|
---|
| 257 | * @param string
|
---|
| 258 | */
|
---|
| 259 | public function setIpAddress($ipAddress)
|
---|
| 260 | {
|
---|
| 261 | $this->ipAddress = $ipAddress;
|
---|
| 262 | }
|
---|
| 263 | /**
|
---|
| 264 | * @return string
|
---|
| 265 | */
|
---|
| 266 | public function getIpAddress()
|
---|
| 267 | {
|
---|
| 268 | return $this->ipAddress;
|
---|
| 269 | }
|
---|
| 270 | /**
|
---|
| 271 | * @param string[]
|
---|
| 272 | */
|
---|
| 273 | public function setLabels($labels)
|
---|
| 274 | {
|
---|
| 275 | $this->labels = $labels;
|
---|
| 276 | }
|
---|
| 277 | /**
|
---|
| 278 | * @return string[]
|
---|
| 279 | */
|
---|
| 280 | public function getLabels()
|
---|
| 281 | {
|
---|
| 282 | return $this->labels;
|
---|
| 283 | }
|
---|
| 284 | /**
|
---|
| 285 | * @param MachineConfig
|
---|
| 286 | */
|
---|
| 287 | public function setMachineConfig(MachineConfig $machineConfig)
|
---|
| 288 | {
|
---|
| 289 | $this->machineConfig = $machineConfig;
|
---|
| 290 | }
|
---|
| 291 | /**
|
---|
| 292 | * @return MachineConfig
|
---|
| 293 | */
|
---|
| 294 | public function getMachineConfig()
|
---|
| 295 | {
|
---|
| 296 | return $this->machineConfig;
|
---|
| 297 | }
|
---|
| 298 | /**
|
---|
| 299 | * @param string
|
---|
| 300 | */
|
---|
| 301 | public function setName($name)
|
---|
| 302 | {
|
---|
| 303 | $this->name = $name;
|
---|
| 304 | }
|
---|
| 305 | /**
|
---|
| 306 | * @return string
|
---|
| 307 | */
|
---|
| 308 | public function getName()
|
---|
| 309 | {
|
---|
| 310 | return $this->name;
|
---|
| 311 | }
|
---|
| 312 | /**
|
---|
| 313 | * @param InstanceNetworkConfig
|
---|
| 314 | */
|
---|
| 315 | public function setNetworkConfig(InstanceNetworkConfig $networkConfig)
|
---|
| 316 | {
|
---|
| 317 | $this->networkConfig = $networkConfig;
|
---|
| 318 | }
|
---|
| 319 | /**
|
---|
| 320 | * @return InstanceNetworkConfig
|
---|
| 321 | */
|
---|
| 322 | public function getNetworkConfig()
|
---|
| 323 | {
|
---|
| 324 | return $this->networkConfig;
|
---|
| 325 | }
|
---|
| 326 | /**
|
---|
| 327 | * @param Node[]
|
---|
| 328 | */
|
---|
| 329 | public function setNodes($nodes)
|
---|
| 330 | {
|
---|
| 331 | $this->nodes = $nodes;
|
---|
| 332 | }
|
---|
| 333 | /**
|
---|
| 334 | * @return Node[]
|
---|
| 335 | */
|
---|
| 336 | public function getNodes()
|
---|
| 337 | {
|
---|
| 338 | return $this->nodes;
|
---|
| 339 | }
|
---|
| 340 | /**
|
---|
| 341 | * @param string[]
|
---|
| 342 | */
|
---|
| 343 | public function setOutboundPublicIpAddresses($outboundPublicIpAddresses)
|
---|
| 344 | {
|
---|
| 345 | $this->outboundPublicIpAddresses = $outboundPublicIpAddresses;
|
---|
| 346 | }
|
---|
| 347 | /**
|
---|
| 348 | * @return string[]
|
---|
| 349 | */
|
---|
| 350 | public function getOutboundPublicIpAddresses()
|
---|
| 351 | {
|
---|
| 352 | return $this->outboundPublicIpAddresses;
|
---|
| 353 | }
|
---|
| 354 | /**
|
---|
| 355 | * @param PscInstanceConfig
|
---|
| 356 | */
|
---|
| 357 | public function setPscInstanceConfig(PscInstanceConfig $pscInstanceConfig)
|
---|
| 358 | {
|
---|
| 359 | $this->pscInstanceConfig = $pscInstanceConfig;
|
---|
| 360 | }
|
---|
| 361 | /**
|
---|
| 362 | * @return PscInstanceConfig
|
---|
| 363 | */
|
---|
| 364 | public function getPscInstanceConfig()
|
---|
| 365 | {
|
---|
| 366 | return $this->pscInstanceConfig;
|
---|
| 367 | }
|
---|
| 368 | /**
|
---|
| 369 | * @param string
|
---|
| 370 | */
|
---|
| 371 | public function setPublicIpAddress($publicIpAddress)
|
---|
| 372 | {
|
---|
| 373 | $this->publicIpAddress = $publicIpAddress;
|
---|
| 374 | }
|
---|
| 375 | /**
|
---|
| 376 | * @return string
|
---|
| 377 | */
|
---|
| 378 | public function getPublicIpAddress()
|
---|
| 379 | {
|
---|
| 380 | return $this->publicIpAddress;
|
---|
| 381 | }
|
---|
| 382 | /**
|
---|
| 383 | * @param QueryInsightsInstanceConfig
|
---|
| 384 | */
|
---|
| 385 | public function setQueryInsightsConfig(QueryInsightsInstanceConfig $queryInsightsConfig)
|
---|
| 386 | {
|
---|
| 387 | $this->queryInsightsConfig = $queryInsightsConfig;
|
---|
| 388 | }
|
---|
| 389 | /**
|
---|
| 390 | * @return QueryInsightsInstanceConfig
|
---|
| 391 | */
|
---|
| 392 | public function getQueryInsightsConfig()
|
---|
| 393 | {
|
---|
| 394 | return $this->queryInsightsConfig;
|
---|
| 395 | }
|
---|
| 396 | /**
|
---|
| 397 | * @param ReadPoolConfig
|
---|
| 398 | */
|
---|
| 399 | public function setReadPoolConfig(ReadPoolConfig $readPoolConfig)
|
---|
| 400 | {
|
---|
| 401 | $this->readPoolConfig = $readPoolConfig;
|
---|
| 402 | }
|
---|
| 403 | /**
|
---|
| 404 | * @return ReadPoolConfig
|
---|
| 405 | */
|
---|
| 406 | public function getReadPoolConfig()
|
---|
| 407 | {
|
---|
| 408 | return $this->readPoolConfig;
|
---|
| 409 | }
|
---|
| 410 | /**
|
---|
| 411 | * @param bool
|
---|
| 412 | */
|
---|
| 413 | public function setReconciling($reconciling)
|
---|
| 414 | {
|
---|
| 415 | $this->reconciling = $reconciling;
|
---|
| 416 | }
|
---|
| 417 | /**
|
---|
| 418 | * @return bool
|
---|
| 419 | */
|
---|
| 420 | public function getReconciling()
|
---|
| 421 | {
|
---|
| 422 | return $this->reconciling;
|
---|
| 423 | }
|
---|
| 424 | /**
|
---|
| 425 | * @param bool
|
---|
| 426 | */
|
---|
| 427 | public function setSatisfiesPzs($satisfiesPzs)
|
---|
| 428 | {
|
---|
| 429 | $this->satisfiesPzs = $satisfiesPzs;
|
---|
| 430 | }
|
---|
| 431 | /**
|
---|
| 432 | * @return bool
|
---|
| 433 | */
|
---|
| 434 | public function getSatisfiesPzs()
|
---|
| 435 | {
|
---|
| 436 | return $this->satisfiesPzs;
|
---|
| 437 | }
|
---|
| 438 | /**
|
---|
| 439 | * @param string
|
---|
| 440 | */
|
---|
| 441 | public function setState($state)
|
---|
| 442 | {
|
---|
| 443 | $this->state = $state;
|
---|
| 444 | }
|
---|
| 445 | /**
|
---|
| 446 | * @return string
|
---|
| 447 | */
|
---|
| 448 | public function getState()
|
---|
| 449 | {
|
---|
| 450 | return $this->state;
|
---|
| 451 | }
|
---|
| 452 | /**
|
---|
| 453 | * @param string
|
---|
| 454 | */
|
---|
| 455 | public function setUid($uid)
|
---|
| 456 | {
|
---|
| 457 | $this->uid = $uid;
|
---|
| 458 | }
|
---|
| 459 | /**
|
---|
| 460 | * @return string
|
---|
| 461 | */
|
---|
| 462 | public function getUid()
|
---|
| 463 | {
|
---|
| 464 | return $this->uid;
|
---|
| 465 | }
|
---|
| 466 | /**
|
---|
| 467 | * @param string
|
---|
| 468 | */
|
---|
| 469 | public function setUpdateTime($updateTime)
|
---|
| 470 | {
|
---|
| 471 | $this->updateTime = $updateTime;
|
---|
| 472 | }
|
---|
| 473 | /**
|
---|
| 474 | * @return string
|
---|
| 475 | */
|
---|
| 476 | public function getUpdateTime()
|
---|
| 477 | {
|
---|
| 478 | return $this->updateTime;
|
---|
| 479 | }
|
---|
| 480 | /**
|
---|
| 481 | * @param Node
|
---|
| 482 | */
|
---|
| 483 | public function setWritableNode(Node $writableNode)
|
---|
| 484 | {
|
---|
| 485 | $this->writableNode = $writableNode;
|
---|
| 486 | }
|
---|
| 487 | /**
|
---|
| 488 | * @return Node
|
---|
| 489 | */
|
---|
| 490 | public function getWritableNode()
|
---|
| 491 | {
|
---|
| 492 | return $this->writableNode;
|
---|
| 493 | }
|
---|
| 494 | }
|
---|
| 495 |
|
---|
| 496 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 497 | class_alias(Instance::class, 'Google_Service_CloudAlloyDBAdmin_Instance');
|
---|