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 Image extends \Google\Collection
21{
22  protected $collection_key = 'storageLocations';
23  /**
24   * @var string
25   */
26  public $archiveSizeBytes;
27  /**
28   * @var string
29   */
30  public $creationTimestamp;
31  protected $deprecatedType = DeprecationStatus::class;
32  protected $deprecatedDataType = '';
33  /**
34   * @var string
35   */
36  public $description;
37  /**
38   * @var string
39   */
40  public $diskSizeGb;
41  /**
42   * @var string
43   */
44  public $family;
45  protected $guestOsFeaturesType = GuestOsFeature::class;
46  protected $guestOsFeaturesDataType = 'array';
47  /**
48   * @var string
49   */
50  public $id;
51  protected $imageEncryptionKeyType = CustomerEncryptionKey::class;
52  protected $imageEncryptionKeyDataType = '';
53  /**
54   * @var string
55   */
56  public $kind;
57  /**
58   * @var string
59   */
60  public $labelFingerprint;
61  /**
62   * @var string[]
63   */
64  public $labels;
65  /**
66   * @var string[]
67   */
68  public $licenseCodes;
69  /**
70   * @var string[]
71   */
72  public $licenses;
73  /**
74   * @var string
75   */
76  public $name;
77  protected $rawDiskType = ImageRawDisk::class;
78  protected $rawDiskDataType = '';
79  /**
80   * @var bool
81   */
82  public $satisfiesPzs;
83  /**
84   * @var string
85   */
86  public $selfLink;
87  protected $shieldedInstanceInitialStateType = InitialStateConfig::class;
88  protected $shieldedInstanceInitialStateDataType = '';
89  /**
90   * @var string
91   */
92  public $sourceDisk;
93  protected $sourceDiskEncryptionKeyType = CustomerEncryptionKey::class;
94  protected $sourceDiskEncryptionKeyDataType = '';
95  /**
96   * @var string
97   */
98  public $sourceDiskId;
99  /**
100   * @var string
101   */
102  public $sourceImage;
103  protected $sourceImageEncryptionKeyType = CustomerEncryptionKey::class;
104  protected $sourceImageEncryptionKeyDataType = '';
105  /**
106   * @var string
107   */
108  public $sourceImageId;
109  /**
110   * @var string
111   */
112  public $sourceSnapshot;
113  protected $sourceSnapshotEncryptionKeyType = CustomerEncryptionKey::class;
114  protected $sourceSnapshotEncryptionKeyDataType = '';
115  /**
116   * @var string
117   */
118  public $sourceSnapshotId;
119  /**
120   * @var string
121   */
122  public $sourceType;
123  /**
124   * @var string
125   */
126  public $status;
127  /**
128   * @var string[]
129   */
130  public $storageLocations;
131
132  /**
133   * @param string
134   */
135  public function setArchiveSizeBytes($archiveSizeBytes)
136  {
137    $this->archiveSizeBytes = $archiveSizeBytes;
138  }
139  /**
140   * @return string
141   */
142  public function getArchiveSizeBytes()
143  {
144    return $this->archiveSizeBytes;
145  }
146  /**
147   * @param string
148   */
149  public function setCreationTimestamp($creationTimestamp)
150  {
151    $this->creationTimestamp = $creationTimestamp;
152  }
153  /**
154   * @return string
155   */
156  public function getCreationTimestamp()
157  {
158    return $this->creationTimestamp;
159  }
160  /**
161   * @param DeprecationStatus
162   */
163  public function setDeprecated(DeprecationStatus $deprecated)
164  {
165    $this->deprecated = $deprecated;
166  }
167  /**
168   * @return DeprecationStatus
169   */
170  public function getDeprecated()
171  {
172    return $this->deprecated;
173  }
174  /**
175   * @param string
176   */
177  public function setDescription($description)
178  {
179    $this->description = $description;
180  }
181  /**
182   * @return string
183   */
184  public function getDescription()
185  {
186    return $this->description;
187  }
188  /**
189   * @param string
190   */
191  public function setDiskSizeGb($diskSizeGb)
192  {
193    $this->diskSizeGb = $diskSizeGb;
194  }
195  /**
196   * @return string
197   */
198  public function getDiskSizeGb()
199  {
200    return $this->diskSizeGb;
201  }
202  /**
203   * @param string
204   */
205  public function setFamily($family)
206  {
207    $this->family = $family;
208  }
209  /**
210   * @return string
211   */
212  public function getFamily()
213  {
214    return $this->family;
215  }
216  /**
217   * @param GuestOsFeature[]
218   */
219  public function setGuestOsFeatures($guestOsFeatures)
220  {
221    $this->guestOsFeatures = $guestOsFeatures;
222  }
223  /**
224   * @return GuestOsFeature[]
225   */
226  public function getGuestOsFeatures()
227  {
228    return $this->guestOsFeatures;
229  }
230  /**
231   * @param string
232   */
233  public function setId($id)
234  {
235    $this->id = $id;
236  }
237  /**
238   * @return string
239   */
240  public function getId()
241  {
242    return $this->id;
243  }
244  /**
245   * @param CustomerEncryptionKey
246   */
247  public function setImageEncryptionKey(CustomerEncryptionKey $imageEncryptionKey)
248  {
249    $this->imageEncryptionKey = $imageEncryptionKey;
250  }
251  /**
252   * @return CustomerEncryptionKey
253   */
254  public function getImageEncryptionKey()
255  {
256    return $this->imageEncryptionKey;
257  }
258  /**
259   * @param string
260   */
261  public function setKind($kind)
262  {
263    $this->kind = $kind;
264  }
265  /**
266   * @return string
267   */
268  public function getKind()
269  {
270    return $this->kind;
271  }
272  /**
273   * @param string
274   */
275  public function setLabelFingerprint($labelFingerprint)
276  {
277    $this->labelFingerprint = $labelFingerprint;
278  }
279  /**
280   * @return string
281   */
282  public function getLabelFingerprint()
283  {
284    return $this->labelFingerprint;
285  }
286  /**
287   * @param string[]
288   */
289  public function setLabels($labels)
290  {
291    $this->labels = $labels;
292  }
293  /**
294   * @return string[]
295   */
296  public function getLabels()
297  {
298    return $this->labels;
299  }
300  /**
301   * @param string[]
302   */
303  public function setLicenseCodes($licenseCodes)
304  {
305    $this->licenseCodes = $licenseCodes;
306  }
307  /**
308   * @return string[]
309   */
310  public function getLicenseCodes()
311  {
312    return $this->licenseCodes;
313  }
314  /**
315   * @param string[]
316   */
317  public function setLicenses($licenses)
318  {
319    $this->licenses = $licenses;
320  }
321  /**
322   * @return string[]
323   */
324  public function getLicenses()
325  {
326    return $this->licenses;
327  }
328  /**
329   * @param string
330   */
331  public function setName($name)
332  {
333    $this->name = $name;
334  }
335  /**
336   * @return string
337   */
338  public function getName()
339  {
340    return $this->name;
341  }
342  /**
343   * @param ImageRawDisk
344   */
345  public function setRawDisk(ImageRawDisk $rawDisk)
346  {
347    $this->rawDisk = $rawDisk;
348  }
349  /**
350   * @return ImageRawDisk
351   */
352  public function getRawDisk()
353  {
354    return $this->rawDisk;
355  }
356  /**
357   * @param bool
358   */
359  public function setSatisfiesPzs($satisfiesPzs)
360  {
361    $this->satisfiesPzs = $satisfiesPzs;
362  }
363  /**
364   * @return bool
365   */
366  public function getSatisfiesPzs()
367  {
368    return $this->satisfiesPzs;
369  }
370  /**
371   * @param string
372   */
373  public function setSelfLink($selfLink)
374  {
375    $this->selfLink = $selfLink;
376  }
377  /**
378   * @return string
379   */
380  public function getSelfLink()
381  {
382    return $this->selfLink;
383  }
384  /**
385   * @param InitialStateConfig
386   */
387  public function setShieldedInstanceInitialState(InitialStateConfig $shieldedInstanceInitialState)
388  {
389    $this->shieldedInstanceInitialState = $shieldedInstanceInitialState;
390  }
391  /**
392   * @return InitialStateConfig
393   */
394  public function getShieldedInstanceInitialState()
395  {
396    return $this->shieldedInstanceInitialState;
397  }
398  /**
399   * @param string
400   */
401  public function setSourceDisk($sourceDisk)
402  {
403    $this->sourceDisk = $sourceDisk;
404  }
405  /**
406   * @return string
407   */
408  public function getSourceDisk()
409  {
410    return $this->sourceDisk;
411  }
412  /**
413   * @param CustomerEncryptionKey
414   */
415  public function setSourceDiskEncryptionKey(CustomerEncryptionKey $sourceDiskEncryptionKey)
416  {
417    $this->sourceDiskEncryptionKey = $sourceDiskEncryptionKey;
418  }
419  /**
420   * @return CustomerEncryptionKey
421   */
422  public function getSourceDiskEncryptionKey()
423  {
424    return $this->sourceDiskEncryptionKey;
425  }
426  /**
427   * @param string
428   */
429  public function setSourceDiskId($sourceDiskId)
430  {
431    $this->sourceDiskId = $sourceDiskId;
432  }
433  /**
434   * @return string
435   */
436  public function getSourceDiskId()
437  {
438    return $this->sourceDiskId;
439  }
440  /**
441   * @param string
442   */
443  public function setSourceImage($sourceImage)
444  {
445    $this->sourceImage = $sourceImage;
446  }
447  /**
448   * @return string
449   */
450  public function getSourceImage()
451  {
452    return $this->sourceImage;
453  }
454  /**
455   * @param CustomerEncryptionKey
456   */
457  public function setSourceImageEncryptionKey(CustomerEncryptionKey $sourceImageEncryptionKey)
458  {
459    $this->sourceImageEncryptionKey = $sourceImageEncryptionKey;
460  }
461  /**
462   * @return CustomerEncryptionKey
463   */
464  public function getSourceImageEncryptionKey()
465  {
466    return $this->sourceImageEncryptionKey;
467  }
468  /**
469   * @param string
470   */
471  public function setSourceImageId($sourceImageId)
472  {
473    $this->sourceImageId = $sourceImageId;
474  }
475  /**
476   * @return string
477   */
478  public function getSourceImageId()
479  {
480    return $this->sourceImageId;
481  }
482  /**
483   * @param string
484   */
485  public function setSourceSnapshot($sourceSnapshot)
486  {
487    $this->sourceSnapshot = $sourceSnapshot;
488  }
489  /**
490   * @return string
491   */
492  public function getSourceSnapshot()
493  {
494    return $this->sourceSnapshot;
495  }
496  /**
497   * @param CustomerEncryptionKey
498   */
499  public function setSourceSnapshotEncryptionKey(CustomerEncryptionKey $sourceSnapshotEncryptionKey)
500  {
501    $this->sourceSnapshotEncryptionKey = $sourceSnapshotEncryptionKey;
502  }
503  /**
504   * @return CustomerEncryptionKey
505   */
506  public function getSourceSnapshotEncryptionKey()
507  {
508    return $this->sourceSnapshotEncryptionKey;
509  }
510  /**
511   * @param string
512   */
513  public function setSourceSnapshotId($sourceSnapshotId)
514  {
515    $this->sourceSnapshotId = $sourceSnapshotId;
516  }
517  /**
518   * @return string
519   */
520  public function getSourceSnapshotId()
521  {
522    return $this->sourceSnapshotId;
523  }
524  /**
525   * @param string
526   */
527  public function setSourceType($sourceType)
528  {
529    $this->sourceType = $sourceType;
530  }
531  /**
532   * @return string
533   */
534  public function getSourceType()
535  {
536    return $this->sourceType;
537  }
538  /**
539   * @param string
540   */
541  public function setStatus($status)
542  {
543    $this->status = $status;
544  }
545  /**
546   * @return string
547   */
548  public function getStatus()
549  {
550    return $this->status;
551  }
552  /**
553   * @param string[]
554   */
555  public function setStorageLocations($storageLocations)
556  {
557    $this->storageLocations = $storageLocations;
558  }
559  /**
560   * @return string[]
561   */
562  public function getStorageLocations()
563  {
564    return $this->storageLocations;
565  }
566}
567
568// Adding a class alias for backwards compatibility with the previous class name.
569class_alias(Image::class, 'Google_Service_Compute_Image');
570