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 18namespace Google\Service\SQLAdmin; 19 20class DatabaseInstance extends \Google\Collection 21{ 22 protected $collection_key = 'suspensionReason'; 23 /** 24 * @var string[] 25 */ 26 public $availableMaintenanceVersions; 27 /** 28 * @var string 29 */ 30 public $backendType; 31 /** 32 * @var string 33 */ 34 public $connectionName; 35 /** 36 * @var string 37 */ 38 public $createTime; 39 /** 40 * @var string 41 */ 42 public $currentDiskSize; 43 /** 44 * @var string 45 */ 46 public $databaseInstalledVersion; 47 /** 48 * @var string 49 */ 50 public $databaseVersion; 51 protected $diskEncryptionConfigurationType = DiskEncryptionConfiguration::class; 52 protected $diskEncryptionConfigurationDataType = ''; 53 protected $diskEncryptionStatusType = DiskEncryptionStatus::class; 54 protected $diskEncryptionStatusDataType = ''; 55 /** 56 * @var string 57 */ 58 public $etag; 59 protected $failoverReplicaType = DatabaseInstanceFailoverReplica::class; 60 protected $failoverReplicaDataType = ''; 61 /** 62 * @var string 63 */ 64 public $gceZone; 65 /** 66 * @var string 67 */ 68 public $instanceType; 69 protected $ipAddressesType = IpMapping::class; 70 protected $ipAddressesDataType = 'array'; 71 /** 72 * @var string 73 */ 74 public $ipv6Address; 75 /** 76 * @var string 77 */ 78 public $kind; 79 /** 80 * @var string 81 */ 82 public $maintenanceVersion; 83 /** 84 * @var string 85 */ 86 public $masterInstanceName; 87 /** 88 * @var string 89 */ 90 public $maxDiskSize; 91 /** 92 * @var string 93 */ 94 public $name; 95 protected $onPremisesConfigurationType = OnPremisesConfiguration::class; 96 protected $onPremisesConfigurationDataType = ''; 97 protected $outOfDiskReportType = SqlOutOfDiskReport::class; 98 protected $outOfDiskReportDataType = ''; 99 /** 100 * @var string 101 */ 102 public $project; 103 /** 104 * @var string 105 */ 106 public $region; 107 protected $replicaConfigurationType = ReplicaConfiguration::class; 108 protected $replicaConfigurationDataType = ''; 109 /** 110 * @var string[] 111 */ 112 public $replicaNames; 113 /** 114 * @var string 115 */ 116 public $rootPassword; 117 /** 118 * @var bool 119 */ 120 public $satisfiesPzs; 121 protected $scheduledMaintenanceType = SqlScheduledMaintenance::class; 122 protected $scheduledMaintenanceDataType = ''; 123 /** 124 * @var string 125 */ 126 public $secondaryGceZone; 127 /** 128 * @var string 129 */ 130 public $selfLink; 131 protected $serverCaCertType = SslCert::class; 132 protected $serverCaCertDataType = ''; 133 /** 134 * @var string 135 */ 136 public $serviceAccountEmailAddress; 137 protected $settingsType = Settings::class; 138 protected $settingsDataType = ''; 139 /** 140 * @var string 141 */ 142 public $state; 143 /** 144 * @var string[] 145 */ 146 public $suspensionReason; 147 148 /** 149 * @param string[] 150 */ 151 public function setAvailableMaintenanceVersions($availableMaintenanceVersions) 152 { 153 $this->availableMaintenanceVersions = $availableMaintenanceVersions; 154 } 155 /** 156 * @return string[] 157 */ 158 public function getAvailableMaintenanceVersions() 159 { 160 return $this->availableMaintenanceVersions; 161 } 162 /** 163 * @param string 164 */ 165 public function setBackendType($backendType) 166 { 167 $this->backendType = $backendType; 168 } 169 /** 170 * @return string 171 */ 172 public function getBackendType() 173 { 174 return $this->backendType; 175 } 176 /** 177 * @param string 178 */ 179 public function setConnectionName($connectionName) 180 { 181 $this->connectionName = $connectionName; 182 } 183 /** 184 * @return string 185 */ 186 public function getConnectionName() 187 { 188 return $this->connectionName; 189 } 190 /** 191 * @param string 192 */ 193 public function setCreateTime($createTime) 194 { 195 $this->createTime = $createTime; 196 } 197 /** 198 * @return string 199 */ 200 public function getCreateTime() 201 { 202 return $this->createTime; 203 } 204 /** 205 * @param string 206 */ 207 public function setCurrentDiskSize($currentDiskSize) 208 { 209 $this->currentDiskSize = $currentDiskSize; 210 } 211 /** 212 * @return string 213 */ 214 public function getCurrentDiskSize() 215 { 216 return $this->currentDiskSize; 217 } 218 /** 219 * @param string 220 */ 221 public function setDatabaseInstalledVersion($databaseInstalledVersion) 222 { 223 $this->databaseInstalledVersion = $databaseInstalledVersion; 224 } 225 /** 226 * @return string 227 */ 228 public function getDatabaseInstalledVersion() 229 { 230 return $this->databaseInstalledVersion; 231 } 232 /** 233 * @param string 234 */ 235 public function setDatabaseVersion($databaseVersion) 236 { 237 $this->databaseVersion = $databaseVersion; 238 } 239 /** 240 * @return string 241 */ 242 public function getDatabaseVersion() 243 { 244 return $this->databaseVersion; 245 } 246 /** 247 * @param DiskEncryptionConfiguration 248 */ 249 public function setDiskEncryptionConfiguration(DiskEncryptionConfiguration $diskEncryptionConfiguration) 250 { 251 $this->diskEncryptionConfiguration = $diskEncryptionConfiguration; 252 } 253 /** 254 * @return DiskEncryptionConfiguration 255 */ 256 public function getDiskEncryptionConfiguration() 257 { 258 return $this->diskEncryptionConfiguration; 259 } 260 /** 261 * @param DiskEncryptionStatus 262 */ 263 public function setDiskEncryptionStatus(DiskEncryptionStatus $diskEncryptionStatus) 264 { 265 $this->diskEncryptionStatus = $diskEncryptionStatus; 266 } 267 /** 268 * @return DiskEncryptionStatus 269 */ 270 public function getDiskEncryptionStatus() 271 { 272 return $this->diskEncryptionStatus; 273 } 274 /** 275 * @param string 276 */ 277 public function setEtag($etag) 278 { 279 $this->etag = $etag; 280 } 281 /** 282 * @return string 283 */ 284 public function getEtag() 285 { 286 return $this->etag; 287 } 288 /** 289 * @param DatabaseInstanceFailoverReplica 290 */ 291 public function setFailoverReplica(DatabaseInstanceFailoverReplica $failoverReplica) 292 { 293 $this->failoverReplica = $failoverReplica; 294 } 295 /** 296 * @return DatabaseInstanceFailoverReplica 297 */ 298 public function getFailoverReplica() 299 { 300 return $this->failoverReplica; 301 } 302 /** 303 * @param string 304 */ 305 public function setGceZone($gceZone) 306 { 307 $this->gceZone = $gceZone; 308 } 309 /** 310 * @return string 311 */ 312 public function getGceZone() 313 { 314 return $this->gceZone; 315 } 316 /** 317 * @param string 318 */ 319 public function setInstanceType($instanceType) 320 { 321 $this->instanceType = $instanceType; 322 } 323 /** 324 * @return string 325 */ 326 public function getInstanceType() 327 { 328 return $this->instanceType; 329 } 330 /** 331 * @param IpMapping[] 332 */ 333 public function setIpAddresses($ipAddresses) 334 { 335 $this->ipAddresses = $ipAddresses; 336 } 337 /** 338 * @return IpMapping[] 339 */ 340 public function getIpAddresses() 341 { 342 return $this->ipAddresses; 343 } 344 /** 345 * @param string 346 */ 347 public function setIpv6Address($ipv6Address) 348 { 349 $this->ipv6Address = $ipv6Address; 350 } 351 /** 352 * @return string 353 */ 354 public function getIpv6Address() 355 { 356 return $this->ipv6Address; 357 } 358 /** 359 * @param string 360 */ 361 public function setKind($kind) 362 { 363 $this->kind = $kind; 364 } 365 /** 366 * @return string 367 */ 368 public function getKind() 369 { 370 return $this->kind; 371 } 372 /** 373 * @param string 374 */ 375 public function setMaintenanceVersion($maintenanceVersion) 376 { 377 $this->maintenanceVersion = $maintenanceVersion; 378 } 379 /** 380 * @return string 381 */ 382 public function getMaintenanceVersion() 383 { 384 return $this->maintenanceVersion; 385 } 386 /** 387 * @param string 388 */ 389 public function setMasterInstanceName($masterInstanceName) 390 { 391 $this->masterInstanceName = $masterInstanceName; 392 } 393 /** 394 * @return string 395 */ 396 public function getMasterInstanceName() 397 { 398 return $this->masterInstanceName; 399 } 400 /** 401 * @param string 402 */ 403 public function setMaxDiskSize($maxDiskSize) 404 { 405 $this->maxDiskSize = $maxDiskSize; 406 } 407 /** 408 * @return string 409 */ 410 public function getMaxDiskSize() 411 { 412 return $this->maxDiskSize; 413 } 414 /** 415 * @param string 416 */ 417 public function setName($name) 418 { 419 $this->name = $name; 420 } 421 /** 422 * @return string 423 */ 424 public function getName() 425 { 426 return $this->name; 427 } 428 /** 429 * @param OnPremisesConfiguration 430 */ 431 public function setOnPremisesConfiguration(OnPremisesConfiguration $onPremisesConfiguration) 432 { 433 $this->onPremisesConfiguration = $onPremisesConfiguration; 434 } 435 /** 436 * @return OnPremisesConfiguration 437 */ 438 public function getOnPremisesConfiguration() 439 { 440 return $this->onPremisesConfiguration; 441 } 442 /** 443 * @param SqlOutOfDiskReport 444 */ 445 public function setOutOfDiskReport(SqlOutOfDiskReport $outOfDiskReport) 446 { 447 $this->outOfDiskReport = $outOfDiskReport; 448 } 449 /** 450 * @return SqlOutOfDiskReport 451 */ 452 public function getOutOfDiskReport() 453 { 454 return $this->outOfDiskReport; 455 } 456 /** 457 * @param string 458 */ 459 public function setProject($project) 460 { 461 $this->project = $project; 462 } 463 /** 464 * @return string 465 */ 466 public function getProject() 467 { 468 return $this->project; 469 } 470 /** 471 * @param string 472 */ 473 public function setRegion($region) 474 { 475 $this->region = $region; 476 } 477 /** 478 * @return string 479 */ 480 public function getRegion() 481 { 482 return $this->region; 483 } 484 /** 485 * @param ReplicaConfiguration 486 */ 487 public function setReplicaConfiguration(ReplicaConfiguration $replicaConfiguration) 488 { 489 $this->replicaConfiguration = $replicaConfiguration; 490 } 491 /** 492 * @return ReplicaConfiguration 493 */ 494 public function getReplicaConfiguration() 495 { 496 return $this->replicaConfiguration; 497 } 498 /** 499 * @param string[] 500 */ 501 public function setReplicaNames($replicaNames) 502 { 503 $this->replicaNames = $replicaNames; 504 } 505 /** 506 * @return string[] 507 */ 508 public function getReplicaNames() 509 { 510 return $this->replicaNames; 511 } 512 /** 513 * @param string 514 */ 515 public function setRootPassword($rootPassword) 516 { 517 $this->rootPassword = $rootPassword; 518 } 519 /** 520 * @return string 521 */ 522 public function getRootPassword() 523 { 524 return $this->rootPassword; 525 } 526 /** 527 * @param bool 528 */ 529 public function setSatisfiesPzs($satisfiesPzs) 530 { 531 $this->satisfiesPzs = $satisfiesPzs; 532 } 533 /** 534 * @return bool 535 */ 536 public function getSatisfiesPzs() 537 { 538 return $this->satisfiesPzs; 539 } 540 /** 541 * @param SqlScheduledMaintenance 542 */ 543 public function setScheduledMaintenance(SqlScheduledMaintenance $scheduledMaintenance) 544 { 545 $this->scheduledMaintenance = $scheduledMaintenance; 546 } 547 /** 548 * @return SqlScheduledMaintenance 549 */ 550 public function getScheduledMaintenance() 551 { 552 return $this->scheduledMaintenance; 553 } 554 /** 555 * @param string 556 */ 557 public function setSecondaryGceZone($secondaryGceZone) 558 { 559 $this->secondaryGceZone = $secondaryGceZone; 560 } 561 /** 562 * @return string 563 */ 564 public function getSecondaryGceZone() 565 { 566 return $this->secondaryGceZone; 567 } 568 /** 569 * @param string 570 */ 571 public function setSelfLink($selfLink) 572 { 573 $this->selfLink = $selfLink; 574 } 575 /** 576 * @return string 577 */ 578 public function getSelfLink() 579 { 580 return $this->selfLink; 581 } 582 /** 583 * @param SslCert 584 */ 585 public function setServerCaCert(SslCert $serverCaCert) 586 { 587 $this->serverCaCert = $serverCaCert; 588 } 589 /** 590 * @return SslCert 591 */ 592 public function getServerCaCert() 593 { 594 return $this->serverCaCert; 595 } 596 /** 597 * @param string 598 */ 599 public function setServiceAccountEmailAddress($serviceAccountEmailAddress) 600 { 601 $this->serviceAccountEmailAddress = $serviceAccountEmailAddress; 602 } 603 /** 604 * @return string 605 */ 606 public function getServiceAccountEmailAddress() 607 { 608 return $this->serviceAccountEmailAddress; 609 } 610 /** 611 * @param Settings 612 */ 613 public function setSettings(Settings $settings) 614 { 615 $this->settings = $settings; 616 } 617 /** 618 * @return Settings 619 */ 620 public function getSettings() 621 { 622 return $this->settings; 623 } 624 /** 625 * @param string 626 */ 627 public function setState($state) 628 { 629 $this->state = $state; 630 } 631 /** 632 * @return string 633 */ 634 public function getState() 635 { 636 return $this->state; 637 } 638 /** 639 * @param string[] 640 */ 641 public function setSuspensionReason($suspensionReason) 642 { 643 $this->suspensionReason = $suspensionReason; 644 } 645 /** 646 * @return string[] 647 */ 648 public function getSuspensionReason() 649 { 650 return $this->suspensionReason; 651 } 652} 653 654// Adding a class alias for backwards compatibility with the previous class name. 655class_alias(DatabaseInstance::class, 'Google_Service_SQLAdmin_DatabaseInstance'); 656