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