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\AIPlatformNotebooks; 19 20class Instance extends \Google\Collection 21{ 22 protected $collection_key = 'upgradeHistory'; 23 protected $acceleratorConfigType = AcceleratorConfig::class; 24 protected $acceleratorConfigDataType = ''; 25 /** 26 * @var string 27 */ 28 public $bootDiskSizeGb; 29 /** 30 * @var string 31 */ 32 public $bootDiskType; 33 /** 34 * @var bool 35 */ 36 public $canIpForward; 37 protected $containerImageType = ContainerImage::class; 38 protected $containerImageDataType = ''; 39 /** 40 * @var string 41 */ 42 public $createTime; 43 /** 44 * @var string 45 */ 46 public $creator; 47 /** 48 * @var string 49 */ 50 public $customGpuDriverPath; 51 /** 52 * @var string 53 */ 54 public $dataDiskSizeGb; 55 /** 56 * @var string 57 */ 58 public $dataDiskType; 59 /** 60 * @var string 61 */ 62 public $diskEncryption; 63 protected $disksType = Disk::class; 64 protected $disksDataType = 'array'; 65 /** 66 * @var bool 67 */ 68 public $installGpuDriver; 69 /** 70 * @var string[] 71 */ 72 public $instanceOwners; 73 /** 74 * @var string 75 */ 76 public $kmsKey; 77 /** 78 * @var string[] 79 */ 80 public $labels; 81 /** 82 * @var string 83 */ 84 public $machineType; 85 /** 86 * @var string[] 87 */ 88 public $metadata; 89 /** 90 * @var string 91 */ 92 public $name; 93 /** 94 * @var string 95 */ 96 public $network; 97 /** 98 * @var string 99 */ 100 public $nicType; 101 /** 102 * @var bool 103 */ 104 public $noProxyAccess; 105 /** 106 * @var bool 107 */ 108 public $noPublicIp; 109 /** 110 * @var bool 111 */ 112 public $noRemoveDataDisk; 113 /** 114 * @var string 115 */ 116 public $postStartupScript; 117 /** 118 * @var string 119 */ 120 public $proxyUri; 121 protected $reservationAffinityType = ReservationAffinity::class; 122 protected $reservationAffinityDataType = ''; 123 /** 124 * @var string 125 */ 126 public $serviceAccount; 127 /** 128 * @var string[] 129 */ 130 public $serviceAccountScopes; 131 protected $shieldedInstanceConfigType = ShieldedInstanceConfig::class; 132 protected $shieldedInstanceConfigDataType = ''; 133 /** 134 * @var string 135 */ 136 public $state; 137 /** 138 * @var string 139 */ 140 public $subnet; 141 /** 142 * @var string[] 143 */ 144 public $tags; 145 /** 146 * @var string 147 */ 148 public $updateTime; 149 protected $upgradeHistoryType = UpgradeHistoryEntry::class; 150 protected $upgradeHistoryDataType = 'array'; 151 protected $vmImageType = VmImage::class; 152 protected $vmImageDataType = ''; 153 154 /** 155 * @param AcceleratorConfig 156 */ 157 public function setAcceleratorConfig(AcceleratorConfig $acceleratorConfig) 158 { 159 $this->acceleratorConfig = $acceleratorConfig; 160 } 161 /** 162 * @return AcceleratorConfig 163 */ 164 public function getAcceleratorConfig() 165 { 166 return $this->acceleratorConfig; 167 } 168 /** 169 * @param string 170 */ 171 public function setBootDiskSizeGb($bootDiskSizeGb) 172 { 173 $this->bootDiskSizeGb = $bootDiskSizeGb; 174 } 175 /** 176 * @return string 177 */ 178 public function getBootDiskSizeGb() 179 { 180 return $this->bootDiskSizeGb; 181 } 182 /** 183 * @param string 184 */ 185 public function setBootDiskType($bootDiskType) 186 { 187 $this->bootDiskType = $bootDiskType; 188 } 189 /** 190 * @return string 191 */ 192 public function getBootDiskType() 193 { 194 return $this->bootDiskType; 195 } 196 /** 197 * @param bool 198 */ 199 public function setCanIpForward($canIpForward) 200 { 201 $this->canIpForward = $canIpForward; 202 } 203 /** 204 * @return bool 205 */ 206 public function getCanIpForward() 207 { 208 return $this->canIpForward; 209 } 210 /** 211 * @param ContainerImage 212 */ 213 public function setContainerImage(ContainerImage $containerImage) 214 { 215 $this->containerImage = $containerImage; 216 } 217 /** 218 * @return ContainerImage 219 */ 220 public function getContainerImage() 221 { 222 return $this->containerImage; 223 } 224 /** 225 * @param string 226 */ 227 public function setCreateTime($createTime) 228 { 229 $this->createTime = $createTime; 230 } 231 /** 232 * @return string 233 */ 234 public function getCreateTime() 235 { 236 return $this->createTime; 237 } 238 /** 239 * @param string 240 */ 241 public function setCreator($creator) 242 { 243 $this->creator = $creator; 244 } 245 /** 246 * @return string 247 */ 248 public function getCreator() 249 { 250 return $this->creator; 251 } 252 /** 253 * @param string 254 */ 255 public function setCustomGpuDriverPath($customGpuDriverPath) 256 { 257 $this->customGpuDriverPath = $customGpuDriverPath; 258 } 259 /** 260 * @return string 261 */ 262 public function getCustomGpuDriverPath() 263 { 264 return $this->customGpuDriverPath; 265 } 266 /** 267 * @param string 268 */ 269 public function setDataDiskSizeGb($dataDiskSizeGb) 270 { 271 $this->dataDiskSizeGb = $dataDiskSizeGb; 272 } 273 /** 274 * @return string 275 */ 276 public function getDataDiskSizeGb() 277 { 278 return $this->dataDiskSizeGb; 279 } 280 /** 281 * @param string 282 */ 283 public function setDataDiskType($dataDiskType) 284 { 285 $this->dataDiskType = $dataDiskType; 286 } 287 /** 288 * @return string 289 */ 290 public function getDataDiskType() 291 { 292 return $this->dataDiskType; 293 } 294 /** 295 * @param string 296 */ 297 public function setDiskEncryption($diskEncryption) 298 { 299 $this->diskEncryption = $diskEncryption; 300 } 301 /** 302 * @return string 303 */ 304 public function getDiskEncryption() 305 { 306 return $this->diskEncryption; 307 } 308 /** 309 * @param Disk[] 310 */ 311 public function setDisks($disks) 312 { 313 $this->disks = $disks; 314 } 315 /** 316 * @return Disk[] 317 */ 318 public function getDisks() 319 { 320 return $this->disks; 321 } 322 /** 323 * @param bool 324 */ 325 public function setInstallGpuDriver($installGpuDriver) 326 { 327 $this->installGpuDriver = $installGpuDriver; 328 } 329 /** 330 * @return bool 331 */ 332 public function getInstallGpuDriver() 333 { 334 return $this->installGpuDriver; 335 } 336 /** 337 * @param string[] 338 */ 339 public function setInstanceOwners($instanceOwners) 340 { 341 $this->instanceOwners = $instanceOwners; 342 } 343 /** 344 * @return string[] 345 */ 346 public function getInstanceOwners() 347 { 348 return $this->instanceOwners; 349 } 350 /** 351 * @param string 352 */ 353 public function setKmsKey($kmsKey) 354 { 355 $this->kmsKey = $kmsKey; 356 } 357 /** 358 * @return string 359 */ 360 public function getKmsKey() 361 { 362 return $this->kmsKey; 363 } 364 /** 365 * @param string[] 366 */ 367 public function setLabels($labels) 368 { 369 $this->labels = $labels; 370 } 371 /** 372 * @return string[] 373 */ 374 public function getLabels() 375 { 376 return $this->labels; 377 } 378 /** 379 * @param string 380 */ 381 public function setMachineType($machineType) 382 { 383 $this->machineType = $machineType; 384 } 385 /** 386 * @return string 387 */ 388 public function getMachineType() 389 { 390 return $this->machineType; 391 } 392 /** 393 * @param string[] 394 */ 395 public function setMetadata($metadata) 396 { 397 $this->metadata = $metadata; 398 } 399 /** 400 * @return string[] 401 */ 402 public function getMetadata() 403 { 404 return $this->metadata; 405 } 406 /** 407 * @param string 408 */ 409 public function setName($name) 410 { 411 $this->name = $name; 412 } 413 /** 414 * @return string 415 */ 416 public function getName() 417 { 418 return $this->name; 419 } 420 /** 421 * @param string 422 */ 423 public function setNetwork($network) 424 { 425 $this->network = $network; 426 } 427 /** 428 * @return string 429 */ 430 public function getNetwork() 431 { 432 return $this->network; 433 } 434 /** 435 * @param string 436 */ 437 public function setNicType($nicType) 438 { 439 $this->nicType = $nicType; 440 } 441 /** 442 * @return string 443 */ 444 public function getNicType() 445 { 446 return $this->nicType; 447 } 448 /** 449 * @param bool 450 */ 451 public function setNoProxyAccess($noProxyAccess) 452 { 453 $this->noProxyAccess = $noProxyAccess; 454 } 455 /** 456 * @return bool 457 */ 458 public function getNoProxyAccess() 459 { 460 return $this->noProxyAccess; 461 } 462 /** 463 * @param bool 464 */ 465 public function setNoPublicIp($noPublicIp) 466 { 467 $this->noPublicIp = $noPublicIp; 468 } 469 /** 470 * @return bool 471 */ 472 public function getNoPublicIp() 473 { 474 return $this->noPublicIp; 475 } 476 /** 477 * @param bool 478 */ 479 public function setNoRemoveDataDisk($noRemoveDataDisk) 480 { 481 $this->noRemoveDataDisk = $noRemoveDataDisk; 482 } 483 /** 484 * @return bool 485 */ 486 public function getNoRemoveDataDisk() 487 { 488 return $this->noRemoveDataDisk; 489 } 490 /** 491 * @param string 492 */ 493 public function setPostStartupScript($postStartupScript) 494 { 495 $this->postStartupScript = $postStartupScript; 496 } 497 /** 498 * @return string 499 */ 500 public function getPostStartupScript() 501 { 502 return $this->postStartupScript; 503 } 504 /** 505 * @param string 506 */ 507 public function setProxyUri($proxyUri) 508 { 509 $this->proxyUri = $proxyUri; 510 } 511 /** 512 * @return string 513 */ 514 public function getProxyUri() 515 { 516 return $this->proxyUri; 517 } 518 /** 519 * @param ReservationAffinity 520 */ 521 public function setReservationAffinity(ReservationAffinity $reservationAffinity) 522 { 523 $this->reservationAffinity = $reservationAffinity; 524 } 525 /** 526 * @return ReservationAffinity 527 */ 528 public function getReservationAffinity() 529 { 530 return $this->reservationAffinity; 531 } 532 /** 533 * @param string 534 */ 535 public function setServiceAccount($serviceAccount) 536 { 537 $this->serviceAccount = $serviceAccount; 538 } 539 /** 540 * @return string 541 */ 542 public function getServiceAccount() 543 { 544 return $this->serviceAccount; 545 } 546 /** 547 * @param string[] 548 */ 549 public function setServiceAccountScopes($serviceAccountScopes) 550 { 551 $this->serviceAccountScopes = $serviceAccountScopes; 552 } 553 /** 554 * @return string[] 555 */ 556 public function getServiceAccountScopes() 557 { 558 return $this->serviceAccountScopes; 559 } 560 /** 561 * @param ShieldedInstanceConfig 562 */ 563 public function setShieldedInstanceConfig(ShieldedInstanceConfig $shieldedInstanceConfig) 564 { 565 $this->shieldedInstanceConfig = $shieldedInstanceConfig; 566 } 567 /** 568 * @return ShieldedInstanceConfig 569 */ 570 public function getShieldedInstanceConfig() 571 { 572 return $this->shieldedInstanceConfig; 573 } 574 /** 575 * @param string 576 */ 577 public function setState($state) 578 { 579 $this->state = $state; 580 } 581 /** 582 * @return string 583 */ 584 public function getState() 585 { 586 return $this->state; 587 } 588 /** 589 * @param string 590 */ 591 public function setSubnet($subnet) 592 { 593 $this->subnet = $subnet; 594 } 595 /** 596 * @return string 597 */ 598 public function getSubnet() 599 { 600 return $this->subnet; 601 } 602 /** 603 * @param string[] 604 */ 605 public function setTags($tags) 606 { 607 $this->tags = $tags; 608 } 609 /** 610 * @return string[] 611 */ 612 public function getTags() 613 { 614 return $this->tags; 615 } 616 /** 617 * @param string 618 */ 619 public function setUpdateTime($updateTime) 620 { 621 $this->updateTime = $updateTime; 622 } 623 /** 624 * @return string 625 */ 626 public function getUpdateTime() 627 { 628 return $this->updateTime; 629 } 630 /** 631 * @param UpgradeHistoryEntry[] 632 */ 633 public function setUpgradeHistory($upgradeHistory) 634 { 635 $this->upgradeHistory = $upgradeHistory; 636 } 637 /** 638 * @return UpgradeHistoryEntry[] 639 */ 640 public function getUpgradeHistory() 641 { 642 return $this->upgradeHistory; 643 } 644 /** 645 * @param VmImage 646 */ 647 public function setVmImage(VmImage $vmImage) 648 { 649 $this->vmImage = $vmImage; 650 } 651 /** 652 * @return VmImage 653 */ 654 public function getVmImage() 655 { 656 return $this->vmImage; 657 } 658} 659 660// Adding a class alias for backwards compatibility with the previous class name. 661class_alias(Instance::class, 'Google_Service_AIPlatformNotebooks_Instance'); 662