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 Snapshot extends \Google\Collection
21{
22  protected $collection_key = 'storageLocations';
23  /**
24   * @var bool
25   */
26  public $autoCreated;
27  /**
28   * @var string
29   */
30  public $chainName;
31  /**
32   * @var string
33   */
34  public $creationTimestamp;
35  /**
36   * @var string
37   */
38  public $description;
39  /**
40   * @var string
41   */
42  public $diskSizeGb;
43  /**
44   * @var string
45   */
46  public $downloadBytes;
47  /**
48   * @var string
49   */
50  public $id;
51  /**
52   * @var string
53   */
54  public $kind;
55  /**
56   * @var string
57   */
58  public $labelFingerprint;
59  /**
60   * @var string[]
61   */
62  public $labels;
63  /**
64   * @var string[]
65   */
66  public $licenseCodes;
67  /**
68   * @var string[]
69   */
70  public $licenses;
71  /**
72   * @var string
73   */
74  public $locationHint;
75  /**
76   * @var string
77   */
78  public $name;
79  /**
80   * @var bool
81   */
82  public $satisfiesPzs;
83  /**
84   * @var string
85   */
86  public $selfLink;
87  protected $snapshotEncryptionKeyType = CustomerEncryptionKey::class;
88  protected $snapshotEncryptionKeyDataType = '';
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 $status;
103  /**
104   * @var string
105   */
106  public $storageBytes;
107  /**
108   * @var string
109   */
110  public $storageBytesStatus;
111  /**
112   * @var string[]
113   */
114  public $storageLocations;
115
116  /**
117   * @param bool
118   */
119  public function setAutoCreated($autoCreated)
120  {
121    $this->autoCreated = $autoCreated;
122  }
123  /**
124   * @return bool
125   */
126  public function getAutoCreated()
127  {
128    return $this->autoCreated;
129  }
130  /**
131   * @param string
132   */
133  public function setChainName($chainName)
134  {
135    $this->chainName = $chainName;
136  }
137  /**
138   * @return string
139   */
140  public function getChainName()
141  {
142    return $this->chainName;
143  }
144  /**
145   * @param string
146   */
147  public function setCreationTimestamp($creationTimestamp)
148  {
149    $this->creationTimestamp = $creationTimestamp;
150  }
151  /**
152   * @return string
153   */
154  public function getCreationTimestamp()
155  {
156    return $this->creationTimestamp;
157  }
158  /**
159   * @param string
160   */
161  public function setDescription($description)
162  {
163    $this->description = $description;
164  }
165  /**
166   * @return string
167   */
168  public function getDescription()
169  {
170    return $this->description;
171  }
172  /**
173   * @param string
174   */
175  public function setDiskSizeGb($diskSizeGb)
176  {
177    $this->diskSizeGb = $diskSizeGb;
178  }
179  /**
180   * @return string
181   */
182  public function getDiskSizeGb()
183  {
184    return $this->diskSizeGb;
185  }
186  /**
187   * @param string
188   */
189  public function setDownloadBytes($downloadBytes)
190  {
191    $this->downloadBytes = $downloadBytes;
192  }
193  /**
194   * @return string
195   */
196  public function getDownloadBytes()
197  {
198    return $this->downloadBytes;
199  }
200  /**
201   * @param string
202   */
203  public function setId($id)
204  {
205    $this->id = $id;
206  }
207  /**
208   * @return string
209   */
210  public function getId()
211  {
212    return $this->id;
213  }
214  /**
215   * @param string
216   */
217  public function setKind($kind)
218  {
219    $this->kind = $kind;
220  }
221  /**
222   * @return string
223   */
224  public function getKind()
225  {
226    return $this->kind;
227  }
228  /**
229   * @param string
230   */
231  public function setLabelFingerprint($labelFingerprint)
232  {
233    $this->labelFingerprint = $labelFingerprint;
234  }
235  /**
236   * @return string
237   */
238  public function getLabelFingerprint()
239  {
240    return $this->labelFingerprint;
241  }
242  /**
243   * @param string[]
244   */
245  public function setLabels($labels)
246  {
247    $this->labels = $labels;
248  }
249  /**
250   * @return string[]
251   */
252  public function getLabels()
253  {
254    return $this->labels;
255  }
256  /**
257   * @param string[]
258   */
259  public function setLicenseCodes($licenseCodes)
260  {
261    $this->licenseCodes = $licenseCodes;
262  }
263  /**
264   * @return string[]
265   */
266  public function getLicenseCodes()
267  {
268    return $this->licenseCodes;
269  }
270  /**
271   * @param string[]
272   */
273  public function setLicenses($licenses)
274  {
275    $this->licenses = $licenses;
276  }
277  /**
278   * @return string[]
279   */
280  public function getLicenses()
281  {
282    return $this->licenses;
283  }
284  /**
285   * @param string
286   */
287  public function setLocationHint($locationHint)
288  {
289    $this->locationHint = $locationHint;
290  }
291  /**
292   * @return string
293   */
294  public function getLocationHint()
295  {
296    return $this->locationHint;
297  }
298  /**
299   * @param string
300   */
301  public function setName($name)
302  {
303    $this->name = $name;
304  }
305  /**
306   * @return string
307   */
308  public function getName()
309  {
310    return $this->name;
311  }
312  /**
313   * @param bool
314   */
315  public function setSatisfiesPzs($satisfiesPzs)
316  {
317    $this->satisfiesPzs = $satisfiesPzs;
318  }
319  /**
320   * @return bool
321   */
322  public function getSatisfiesPzs()
323  {
324    return $this->satisfiesPzs;
325  }
326  /**
327   * @param string
328   */
329  public function setSelfLink($selfLink)
330  {
331    $this->selfLink = $selfLink;
332  }
333  /**
334   * @return string
335   */
336  public function getSelfLink()
337  {
338    return $this->selfLink;
339  }
340  /**
341   * @param CustomerEncryptionKey
342   */
343  public function setSnapshotEncryptionKey(CustomerEncryptionKey $snapshotEncryptionKey)
344  {
345    $this->snapshotEncryptionKey = $snapshotEncryptionKey;
346  }
347  /**
348   * @return CustomerEncryptionKey
349   */
350  public function getSnapshotEncryptionKey()
351  {
352    return $this->snapshotEncryptionKey;
353  }
354  /**
355   * @param string
356   */
357  public function setSourceDisk($sourceDisk)
358  {
359    $this->sourceDisk = $sourceDisk;
360  }
361  /**
362   * @return string
363   */
364  public function getSourceDisk()
365  {
366    return $this->sourceDisk;
367  }
368  /**
369   * @param CustomerEncryptionKey
370   */
371  public function setSourceDiskEncryptionKey(CustomerEncryptionKey $sourceDiskEncryptionKey)
372  {
373    $this->sourceDiskEncryptionKey = $sourceDiskEncryptionKey;
374  }
375  /**
376   * @return CustomerEncryptionKey
377   */
378  public function getSourceDiskEncryptionKey()
379  {
380    return $this->sourceDiskEncryptionKey;
381  }
382  /**
383   * @param string
384   */
385  public function setSourceDiskId($sourceDiskId)
386  {
387    $this->sourceDiskId = $sourceDiskId;
388  }
389  /**
390   * @return string
391   */
392  public function getSourceDiskId()
393  {
394    return $this->sourceDiskId;
395  }
396  /**
397   * @param string
398   */
399  public function setStatus($status)
400  {
401    $this->status = $status;
402  }
403  /**
404   * @return string
405   */
406  public function getStatus()
407  {
408    return $this->status;
409  }
410  /**
411   * @param string
412   */
413  public function setStorageBytes($storageBytes)
414  {
415    $this->storageBytes = $storageBytes;
416  }
417  /**
418   * @return string
419   */
420  public function getStorageBytes()
421  {
422    return $this->storageBytes;
423  }
424  /**
425   * @param string
426   */
427  public function setStorageBytesStatus($storageBytesStatus)
428  {
429    $this->storageBytesStatus = $storageBytesStatus;
430  }
431  /**
432   * @return string
433   */
434  public function getStorageBytesStatus()
435  {
436    return $this->storageBytesStatus;
437  }
438  /**
439   * @param string[]
440   */
441  public function setStorageLocations($storageLocations)
442  {
443    $this->storageLocations = $storageLocations;
444  }
445  /**
446   * @return string[]
447   */
448  public function getStorageLocations()
449  {
450    return $this->storageLocations;
451  }
452}
453
454// Adding a class alias for backwards compatibility with the previous class name.
455class_alias(Snapshot::class, 'Google_Service_Compute_Snapshot');
456