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