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