[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\Compute;
|
---|
| 19 |
|
---|
| 20 | class AttachedDisk extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'licenses';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $architecture;
|
---|
| 27 | /**
|
---|
| 28 | * @var bool
|
---|
| 29 | */
|
---|
| 30 | public $autoDelete;
|
---|
| 31 | /**
|
---|
| 32 | * @var bool
|
---|
| 33 | */
|
---|
| 34 | public $boot;
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $deviceName;
|
---|
| 39 | protected $diskEncryptionKeyType = CustomerEncryptionKey::class;
|
---|
| 40 | protected $diskEncryptionKeyDataType = '';
|
---|
| 41 | /**
|
---|
| 42 | * @var string
|
---|
| 43 | */
|
---|
| 44 | public $diskSizeGb;
|
---|
| 45 | /**
|
---|
| 46 | * @var bool
|
---|
| 47 | */
|
---|
| 48 | public $forceAttach;
|
---|
| 49 | protected $guestOsFeaturesType = GuestOsFeature::class;
|
---|
| 50 | protected $guestOsFeaturesDataType = 'array';
|
---|
| 51 | /**
|
---|
| 52 | * @var int
|
---|
| 53 | */
|
---|
| 54 | public $index;
|
---|
| 55 | protected $initializeParamsType = AttachedDiskInitializeParams::class;
|
---|
| 56 | protected $initializeParamsDataType = '';
|
---|
| 57 | /**
|
---|
| 58 | * @var string
|
---|
| 59 | */
|
---|
| 60 | public $interface;
|
---|
| 61 | /**
|
---|
| 62 | * @var string
|
---|
| 63 | */
|
---|
| 64 | public $kind;
|
---|
| 65 | /**
|
---|
| 66 | * @var string[]
|
---|
| 67 | */
|
---|
| 68 | public $licenses;
|
---|
| 69 | /**
|
---|
| 70 | * @var string
|
---|
| 71 | */
|
---|
| 72 | public $mode;
|
---|
| 73 | /**
|
---|
| 74 | * @var string
|
---|
| 75 | */
|
---|
| 76 | public $savedState;
|
---|
| 77 | protected $shieldedInstanceInitialStateType = InitialStateConfig::class;
|
---|
| 78 | protected $shieldedInstanceInitialStateDataType = '';
|
---|
| 79 | /**
|
---|
| 80 | * @var string
|
---|
| 81 | */
|
---|
| 82 | public $source;
|
---|
| 83 | /**
|
---|
| 84 | * @var string
|
---|
| 85 | */
|
---|
| 86 | public $type;
|
---|
| 87 |
|
---|
| 88 | /**
|
---|
| 89 | * @param string
|
---|
| 90 | */
|
---|
| 91 | public function setArchitecture($architecture)
|
---|
| 92 | {
|
---|
| 93 | $this->architecture = $architecture;
|
---|
| 94 | }
|
---|
| 95 | /**
|
---|
| 96 | * @return string
|
---|
| 97 | */
|
---|
| 98 | public function getArchitecture()
|
---|
| 99 | {
|
---|
| 100 | return $this->architecture;
|
---|
| 101 | }
|
---|
| 102 | /**
|
---|
| 103 | * @param bool
|
---|
| 104 | */
|
---|
| 105 | public function setAutoDelete($autoDelete)
|
---|
| 106 | {
|
---|
| 107 | $this->autoDelete = $autoDelete;
|
---|
| 108 | }
|
---|
| 109 | /**
|
---|
| 110 | * @return bool
|
---|
| 111 | */
|
---|
| 112 | public function getAutoDelete()
|
---|
| 113 | {
|
---|
| 114 | return $this->autoDelete;
|
---|
| 115 | }
|
---|
| 116 | /**
|
---|
| 117 | * @param bool
|
---|
| 118 | */
|
---|
| 119 | public function setBoot($boot)
|
---|
| 120 | {
|
---|
| 121 | $this->boot = $boot;
|
---|
| 122 | }
|
---|
| 123 | /**
|
---|
| 124 | * @return bool
|
---|
| 125 | */
|
---|
| 126 | public function getBoot()
|
---|
| 127 | {
|
---|
| 128 | return $this->boot;
|
---|
| 129 | }
|
---|
| 130 | /**
|
---|
| 131 | * @param string
|
---|
| 132 | */
|
---|
| 133 | public function setDeviceName($deviceName)
|
---|
| 134 | {
|
---|
| 135 | $this->deviceName = $deviceName;
|
---|
| 136 | }
|
---|
| 137 | /**
|
---|
| 138 | * @return string
|
---|
| 139 | */
|
---|
| 140 | public function getDeviceName()
|
---|
| 141 | {
|
---|
| 142 | return $this->deviceName;
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * @param CustomerEncryptionKey
|
---|
| 146 | */
|
---|
| 147 | public function setDiskEncryptionKey(CustomerEncryptionKey $diskEncryptionKey)
|
---|
| 148 | {
|
---|
| 149 | $this->diskEncryptionKey = $diskEncryptionKey;
|
---|
| 150 | }
|
---|
| 151 | /**
|
---|
| 152 | * @return CustomerEncryptionKey
|
---|
| 153 | */
|
---|
| 154 | public function getDiskEncryptionKey()
|
---|
| 155 | {
|
---|
| 156 | return $this->diskEncryptionKey;
|
---|
| 157 | }
|
---|
| 158 | /**
|
---|
| 159 | * @param string
|
---|
| 160 | */
|
---|
| 161 | public function setDiskSizeGb($diskSizeGb)
|
---|
| 162 | {
|
---|
| 163 | $this->diskSizeGb = $diskSizeGb;
|
---|
| 164 | }
|
---|
| 165 | /**
|
---|
| 166 | * @return string
|
---|
| 167 | */
|
---|
| 168 | public function getDiskSizeGb()
|
---|
| 169 | {
|
---|
| 170 | return $this->diskSizeGb;
|
---|
| 171 | }
|
---|
| 172 | /**
|
---|
| 173 | * @param bool
|
---|
| 174 | */
|
---|
| 175 | public function setForceAttach($forceAttach)
|
---|
| 176 | {
|
---|
| 177 | $this->forceAttach = $forceAttach;
|
---|
| 178 | }
|
---|
| 179 | /**
|
---|
| 180 | * @return bool
|
---|
| 181 | */
|
---|
| 182 | public function getForceAttach()
|
---|
| 183 | {
|
---|
| 184 | return $this->forceAttach;
|
---|
| 185 | }
|
---|
| 186 | /**
|
---|
| 187 | * @param GuestOsFeature[]
|
---|
| 188 | */
|
---|
| 189 | public function setGuestOsFeatures($guestOsFeatures)
|
---|
| 190 | {
|
---|
| 191 | $this->guestOsFeatures = $guestOsFeatures;
|
---|
| 192 | }
|
---|
| 193 | /**
|
---|
| 194 | * @return GuestOsFeature[]
|
---|
| 195 | */
|
---|
| 196 | public function getGuestOsFeatures()
|
---|
| 197 | {
|
---|
| 198 | return $this->guestOsFeatures;
|
---|
| 199 | }
|
---|
| 200 | /**
|
---|
| 201 | * @param int
|
---|
| 202 | */
|
---|
| 203 | public function setIndex($index)
|
---|
| 204 | {
|
---|
| 205 | $this->index = $index;
|
---|
| 206 | }
|
---|
| 207 | /**
|
---|
| 208 | * @return int
|
---|
| 209 | */
|
---|
| 210 | public function getIndex()
|
---|
| 211 | {
|
---|
| 212 | return $this->index;
|
---|
| 213 | }
|
---|
| 214 | /**
|
---|
| 215 | * @param AttachedDiskInitializeParams
|
---|
| 216 | */
|
---|
| 217 | public function setInitializeParams(AttachedDiskInitializeParams $initializeParams)
|
---|
| 218 | {
|
---|
| 219 | $this->initializeParams = $initializeParams;
|
---|
| 220 | }
|
---|
| 221 | /**
|
---|
| 222 | * @return AttachedDiskInitializeParams
|
---|
| 223 | */
|
---|
| 224 | public function getInitializeParams()
|
---|
| 225 | {
|
---|
| 226 | return $this->initializeParams;
|
---|
| 227 | }
|
---|
| 228 | /**
|
---|
| 229 | * @param string
|
---|
| 230 | */
|
---|
| 231 | public function setInterface($interface)
|
---|
| 232 | {
|
---|
| 233 | $this->interface = $interface;
|
---|
| 234 | }
|
---|
| 235 | /**
|
---|
| 236 | * @return string
|
---|
| 237 | */
|
---|
| 238 | public function getInterface()
|
---|
| 239 | {
|
---|
| 240 | return $this->interface;
|
---|
| 241 | }
|
---|
| 242 | /**
|
---|
| 243 | * @param string
|
---|
| 244 | */
|
---|
| 245 | public function setKind($kind)
|
---|
| 246 | {
|
---|
| 247 | $this->kind = $kind;
|
---|
| 248 | }
|
---|
| 249 | /**
|
---|
| 250 | * @return string
|
---|
| 251 | */
|
---|
| 252 | public function getKind()
|
---|
| 253 | {
|
---|
| 254 | return $this->kind;
|
---|
| 255 | }
|
---|
| 256 | /**
|
---|
| 257 | * @param string[]
|
---|
| 258 | */
|
---|
| 259 | public function setLicenses($licenses)
|
---|
| 260 | {
|
---|
| 261 | $this->licenses = $licenses;
|
---|
| 262 | }
|
---|
| 263 | /**
|
---|
| 264 | * @return string[]
|
---|
| 265 | */
|
---|
| 266 | public function getLicenses()
|
---|
| 267 | {
|
---|
| 268 | return $this->licenses;
|
---|
| 269 | }
|
---|
| 270 | /**
|
---|
| 271 | * @param string
|
---|
| 272 | */
|
---|
| 273 | public function setMode($mode)
|
---|
| 274 | {
|
---|
| 275 | $this->mode = $mode;
|
---|
| 276 | }
|
---|
| 277 | /**
|
---|
| 278 | * @return string
|
---|
| 279 | */
|
---|
| 280 | public function getMode()
|
---|
| 281 | {
|
---|
| 282 | return $this->mode;
|
---|
| 283 | }
|
---|
| 284 | /**
|
---|
| 285 | * @param string
|
---|
| 286 | */
|
---|
| 287 | public function setSavedState($savedState)
|
---|
| 288 | {
|
---|
| 289 | $this->savedState = $savedState;
|
---|
| 290 | }
|
---|
| 291 | /**
|
---|
| 292 | * @return string
|
---|
| 293 | */
|
---|
| 294 | public function getSavedState()
|
---|
| 295 | {
|
---|
| 296 | return $this->savedState;
|
---|
| 297 | }
|
---|
| 298 | /**
|
---|
| 299 | * @param InitialStateConfig
|
---|
| 300 | */
|
---|
| 301 | public function setShieldedInstanceInitialState(InitialStateConfig $shieldedInstanceInitialState)
|
---|
| 302 | {
|
---|
| 303 | $this->shieldedInstanceInitialState = $shieldedInstanceInitialState;
|
---|
| 304 | }
|
---|
| 305 | /**
|
---|
| 306 | * @return InitialStateConfig
|
---|
| 307 | */
|
---|
| 308 | public function getShieldedInstanceInitialState()
|
---|
| 309 | {
|
---|
| 310 | return $this->shieldedInstanceInitialState;
|
---|
| 311 | }
|
---|
| 312 | /**
|
---|
| 313 | * @param string
|
---|
| 314 | */
|
---|
| 315 | public function setSource($source)
|
---|
| 316 | {
|
---|
| 317 | $this->source = $source;
|
---|
| 318 | }
|
---|
| 319 | /**
|
---|
| 320 | * @return string
|
---|
| 321 | */
|
---|
| 322 | public function getSource()
|
---|
| 323 | {
|
---|
| 324 | return $this->source;
|
---|
| 325 | }
|
---|
| 326 | /**
|
---|
| 327 | * @param string
|
---|
| 328 | */
|
---|
| 329 | public function setType($type)
|
---|
| 330 | {
|
---|
| 331 | $this->type = $type;
|
---|
| 332 | }
|
---|
| 333 | /**
|
---|
| 334 | * @return string
|
---|
| 335 | */
|
---|
| 336 | public function getType()
|
---|
| 337 | {
|
---|
| 338 | return $this->type;
|
---|
| 339 | }
|
---|
| 340 | }
|
---|
| 341 |
|
---|
| 342 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 343 | class_alias(AttachedDisk::class, 'Google_Service_Compute_AttachedDisk');
|
---|