PreservedState.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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\Compute;
  18. class PreservedState extends \Google\Model
  19. {
  20. protected $disksType = PreservedStatePreservedDisk::class;
  21. protected $disksDataType = 'map';
  22. protected $externalIPsType = PreservedStatePreservedNetworkIp::class;
  23. protected $externalIPsDataType = 'map';
  24. protected $internalIPsType = PreservedStatePreservedNetworkIp::class;
  25. protected $internalIPsDataType = 'map';
  26. /**
  27. * Preserved metadata defined for this instance.
  28. *
  29. * @var string[]
  30. */
  31. public $metadata;
  32. /**
  33. * Preserved disks defined for this instance. This map is keyed with the
  34. * device names of the disks.
  35. *
  36. * @param PreservedStatePreservedDisk[] $disks
  37. */
  38. public function setDisks($disks)
  39. {
  40. $this->disks = $disks;
  41. }
  42. /**
  43. * @return PreservedStatePreservedDisk[]
  44. */
  45. public function getDisks()
  46. {
  47. return $this->disks;
  48. }
  49. /**
  50. * Preserved external IPs defined for this instance. This map is keyed with
  51. * the name of the network interface.
  52. *
  53. * @param PreservedStatePreservedNetworkIp[] $externalIPs
  54. */
  55. public function setExternalIPs($externalIPs)
  56. {
  57. $this->externalIPs = $externalIPs;
  58. }
  59. /**
  60. * @return PreservedStatePreservedNetworkIp[]
  61. */
  62. public function getExternalIPs()
  63. {
  64. return $this->externalIPs;
  65. }
  66. /**
  67. * Preserved internal IPs defined for this instance. This map is keyed with
  68. * the name of the network interface.
  69. *
  70. * @param PreservedStatePreservedNetworkIp[] $internalIPs
  71. */
  72. public function setInternalIPs($internalIPs)
  73. {
  74. $this->internalIPs = $internalIPs;
  75. }
  76. /**
  77. * @return PreservedStatePreservedNetworkIp[]
  78. */
  79. public function getInternalIPs()
  80. {
  81. return $this->internalIPs;
  82. }
  83. /**
  84. * Preserved metadata defined for this instance.
  85. *
  86. * @param string[] $metadata
  87. */
  88. public function setMetadata($metadata)
  89. {
  90. $this->metadata = $metadata;
  91. }
  92. /**
  93. * @return string[]
  94. */
  95. public function getMetadata()
  96. {
  97. return $this->metadata;
  98. }
  99. }
  100. // Adding a class alias for backwards compatibility with the previous class name.
  101. class_alias(PreservedState::class, 'Google_Service_Compute_PreservedState');