[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\CloudLifeSciences;
|
---|
| 19 |
|
---|
| 20 | class VirtualMachine extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'volumes';
|
---|
| 23 | protected $acceleratorsType = Accelerator::class;
|
---|
| 24 | protected $acceleratorsDataType = 'array';
|
---|
| 25 | /**
|
---|
| 26 | * @var int
|
---|
| 27 | */
|
---|
| 28 | public $bootDiskSizeGb;
|
---|
| 29 | /**
|
---|
| 30 | * @var string
|
---|
| 31 | */
|
---|
| 32 | public $bootImage;
|
---|
| 33 | /**
|
---|
| 34 | * @var string
|
---|
| 35 | */
|
---|
| 36 | public $cpuPlatform;
|
---|
| 37 | protected $disksType = Disk::class;
|
---|
| 38 | protected $disksDataType = 'array';
|
---|
| 39 | /**
|
---|
| 40 | * @var string[]
|
---|
| 41 | */
|
---|
| 42 | public $dockerCacheImages;
|
---|
| 43 | /**
|
---|
| 44 | * @var bool
|
---|
| 45 | */
|
---|
| 46 | public $enableStackdriverMonitoring;
|
---|
| 47 | /**
|
---|
| 48 | * @var string[]
|
---|
| 49 | */
|
---|
| 50 | public $labels;
|
---|
| 51 | /**
|
---|
| 52 | * @var string
|
---|
| 53 | */
|
---|
| 54 | public $machineType;
|
---|
| 55 | protected $networkType = Network::class;
|
---|
| 56 | protected $networkDataType = '';
|
---|
| 57 | /**
|
---|
| 58 | * @var string
|
---|
| 59 | */
|
---|
| 60 | public $nvidiaDriverVersion;
|
---|
| 61 | /**
|
---|
| 62 | * @var bool
|
---|
| 63 | */
|
---|
| 64 | public $preemptible;
|
---|
| 65 | /**
|
---|
| 66 | * @var string
|
---|
| 67 | */
|
---|
| 68 | public $reservation;
|
---|
| 69 | protected $serviceAccountType = ServiceAccount::class;
|
---|
| 70 | protected $serviceAccountDataType = '';
|
---|
| 71 | protected $volumesType = Volume::class;
|
---|
| 72 | protected $volumesDataType = 'array';
|
---|
| 73 |
|
---|
| 74 | /**
|
---|
| 75 | * @param Accelerator[]
|
---|
| 76 | */
|
---|
| 77 | public function setAccelerators($accelerators)
|
---|
| 78 | {
|
---|
| 79 | $this->accelerators = $accelerators;
|
---|
| 80 | }
|
---|
| 81 | /**
|
---|
| 82 | * @return Accelerator[]
|
---|
| 83 | */
|
---|
| 84 | public function getAccelerators()
|
---|
| 85 | {
|
---|
| 86 | return $this->accelerators;
|
---|
| 87 | }
|
---|
| 88 | /**
|
---|
| 89 | * @param int
|
---|
| 90 | */
|
---|
| 91 | public function setBootDiskSizeGb($bootDiskSizeGb)
|
---|
| 92 | {
|
---|
| 93 | $this->bootDiskSizeGb = $bootDiskSizeGb;
|
---|
| 94 | }
|
---|
| 95 | /**
|
---|
| 96 | * @return int
|
---|
| 97 | */
|
---|
| 98 | public function getBootDiskSizeGb()
|
---|
| 99 | {
|
---|
| 100 | return $this->bootDiskSizeGb;
|
---|
| 101 | }
|
---|
| 102 | /**
|
---|
| 103 | * @param string
|
---|
| 104 | */
|
---|
| 105 | public function setBootImage($bootImage)
|
---|
| 106 | {
|
---|
| 107 | $this->bootImage = $bootImage;
|
---|
| 108 | }
|
---|
| 109 | /**
|
---|
| 110 | * @return string
|
---|
| 111 | */
|
---|
| 112 | public function getBootImage()
|
---|
| 113 | {
|
---|
| 114 | return $this->bootImage;
|
---|
| 115 | }
|
---|
| 116 | /**
|
---|
| 117 | * @param string
|
---|
| 118 | */
|
---|
| 119 | public function setCpuPlatform($cpuPlatform)
|
---|
| 120 | {
|
---|
| 121 | $this->cpuPlatform = $cpuPlatform;
|
---|
| 122 | }
|
---|
| 123 | /**
|
---|
| 124 | * @return string
|
---|
| 125 | */
|
---|
| 126 | public function getCpuPlatform()
|
---|
| 127 | {
|
---|
| 128 | return $this->cpuPlatform;
|
---|
| 129 | }
|
---|
| 130 | /**
|
---|
| 131 | * @param Disk[]
|
---|
| 132 | */
|
---|
| 133 | public function setDisks($disks)
|
---|
| 134 | {
|
---|
| 135 | $this->disks = $disks;
|
---|
| 136 | }
|
---|
| 137 | /**
|
---|
| 138 | * @return Disk[]
|
---|
| 139 | */
|
---|
| 140 | public function getDisks()
|
---|
| 141 | {
|
---|
| 142 | return $this->disks;
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * @param string[]
|
---|
| 146 | */
|
---|
| 147 | public function setDockerCacheImages($dockerCacheImages)
|
---|
| 148 | {
|
---|
| 149 | $this->dockerCacheImages = $dockerCacheImages;
|
---|
| 150 | }
|
---|
| 151 | /**
|
---|
| 152 | * @return string[]
|
---|
| 153 | */
|
---|
| 154 | public function getDockerCacheImages()
|
---|
| 155 | {
|
---|
| 156 | return $this->dockerCacheImages;
|
---|
| 157 | }
|
---|
| 158 | /**
|
---|
| 159 | * @param bool
|
---|
| 160 | */
|
---|
| 161 | public function setEnableStackdriverMonitoring($enableStackdriverMonitoring)
|
---|
| 162 | {
|
---|
| 163 | $this->enableStackdriverMonitoring = $enableStackdriverMonitoring;
|
---|
| 164 | }
|
---|
| 165 | /**
|
---|
| 166 | * @return bool
|
---|
| 167 | */
|
---|
| 168 | public function getEnableStackdriverMonitoring()
|
---|
| 169 | {
|
---|
| 170 | return $this->enableStackdriverMonitoring;
|
---|
| 171 | }
|
---|
| 172 | /**
|
---|
| 173 | * @param string[]
|
---|
| 174 | */
|
---|
| 175 | public function setLabels($labels)
|
---|
| 176 | {
|
---|
| 177 | $this->labels = $labels;
|
---|
| 178 | }
|
---|
| 179 | /**
|
---|
| 180 | * @return string[]
|
---|
| 181 | */
|
---|
| 182 | public function getLabels()
|
---|
| 183 | {
|
---|
| 184 | return $this->labels;
|
---|
| 185 | }
|
---|
| 186 | /**
|
---|
| 187 | * @param string
|
---|
| 188 | */
|
---|
| 189 | public function setMachineType($machineType)
|
---|
| 190 | {
|
---|
| 191 | $this->machineType = $machineType;
|
---|
| 192 | }
|
---|
| 193 | /**
|
---|
| 194 | * @return string
|
---|
| 195 | */
|
---|
| 196 | public function getMachineType()
|
---|
| 197 | {
|
---|
| 198 | return $this->machineType;
|
---|
| 199 | }
|
---|
| 200 | /**
|
---|
| 201 | * @param Network
|
---|
| 202 | */
|
---|
| 203 | public function setNetwork(Network $network)
|
---|
| 204 | {
|
---|
| 205 | $this->network = $network;
|
---|
| 206 | }
|
---|
| 207 | /**
|
---|
| 208 | * @return Network
|
---|
| 209 | */
|
---|
| 210 | public function getNetwork()
|
---|
| 211 | {
|
---|
| 212 | return $this->network;
|
---|
| 213 | }
|
---|
| 214 | /**
|
---|
| 215 | * @param string
|
---|
| 216 | */
|
---|
| 217 | public function setNvidiaDriverVersion($nvidiaDriverVersion)
|
---|
| 218 | {
|
---|
| 219 | $this->nvidiaDriverVersion = $nvidiaDriverVersion;
|
---|
| 220 | }
|
---|
| 221 | /**
|
---|
| 222 | * @return string
|
---|
| 223 | */
|
---|
| 224 | public function getNvidiaDriverVersion()
|
---|
| 225 | {
|
---|
| 226 | return $this->nvidiaDriverVersion;
|
---|
| 227 | }
|
---|
| 228 | /**
|
---|
| 229 | * @param bool
|
---|
| 230 | */
|
---|
| 231 | public function setPreemptible($preemptible)
|
---|
| 232 | {
|
---|
| 233 | $this->preemptible = $preemptible;
|
---|
| 234 | }
|
---|
| 235 | /**
|
---|
| 236 | * @return bool
|
---|
| 237 | */
|
---|
| 238 | public function getPreemptible()
|
---|
| 239 | {
|
---|
| 240 | return $this->preemptible;
|
---|
| 241 | }
|
---|
| 242 | /**
|
---|
| 243 | * @param string
|
---|
| 244 | */
|
---|
| 245 | public function setReservation($reservation)
|
---|
| 246 | {
|
---|
| 247 | $this->reservation = $reservation;
|
---|
| 248 | }
|
---|
| 249 | /**
|
---|
| 250 | * @return string
|
---|
| 251 | */
|
---|
| 252 | public function getReservation()
|
---|
| 253 | {
|
---|
| 254 | return $this->reservation;
|
---|
| 255 | }
|
---|
| 256 | /**
|
---|
| 257 | * @param ServiceAccount
|
---|
| 258 | */
|
---|
| 259 | public function setServiceAccount(ServiceAccount $serviceAccount)
|
---|
| 260 | {
|
---|
| 261 | $this->serviceAccount = $serviceAccount;
|
---|
| 262 | }
|
---|
| 263 | /**
|
---|
| 264 | * @return ServiceAccount
|
---|
| 265 | */
|
---|
| 266 | public function getServiceAccount()
|
---|
| 267 | {
|
---|
| 268 | return $this->serviceAccount;
|
---|
| 269 | }
|
---|
| 270 | /**
|
---|
| 271 | * @param Volume[]
|
---|
| 272 | */
|
---|
| 273 | public function setVolumes($volumes)
|
---|
| 274 | {
|
---|
| 275 | $this->volumes = $volumes;
|
---|
| 276 | }
|
---|
| 277 | /**
|
---|
| 278 | * @return Volume[]
|
---|
| 279 | */
|
---|
| 280 | public function getVolumes()
|
---|
| 281 | {
|
---|
| 282 | return $this->volumes;
|
---|
| 283 | }
|
---|
| 284 | }
|
---|
| 285 |
|
---|
| 286 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 287 | class_alias(VirtualMachine::class, 'Google_Service_CloudLifeSciences_VirtualMachine');
|
---|