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\Baremetalsolution;
|
---|
19 |
|
---|
20 | class Volume extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'instances';
|
---|
23 | /**
|
---|
24 | * @var bool
|
---|
25 | */
|
---|
26 | public $attached;
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $autoGrownSizeGib;
|
---|
31 | /**
|
---|
32 | * @var bool
|
---|
33 | */
|
---|
34 | public $bootVolume;
|
---|
35 | /**
|
---|
36 | * @var string
|
---|
37 | */
|
---|
38 | public $currentSizeGib;
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $emergencySizeGib;
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $expireTime;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $id;
|
---|
51 | /**
|
---|
52 | * @var string[]
|
---|
53 | */
|
---|
54 | public $instances;
|
---|
55 | /**
|
---|
56 | * @var string[]
|
---|
57 | */
|
---|
58 | public $labels;
|
---|
59 | /**
|
---|
60 | * @var string
|
---|
61 | */
|
---|
62 | public $maxSizeGib;
|
---|
63 | /**
|
---|
64 | * @var string
|
---|
65 | */
|
---|
66 | public $name;
|
---|
67 | /**
|
---|
68 | * @var string
|
---|
69 | */
|
---|
70 | public $notes;
|
---|
71 | /**
|
---|
72 | * @var string
|
---|
73 | */
|
---|
74 | public $originallyRequestedSizeGib;
|
---|
75 | /**
|
---|
76 | * @var string
|
---|
77 | */
|
---|
78 | public $performanceTier;
|
---|
79 | /**
|
---|
80 | * @var string
|
---|
81 | */
|
---|
82 | public $pod;
|
---|
83 | /**
|
---|
84 | * @var string
|
---|
85 | */
|
---|
86 | public $protocol;
|
---|
87 | /**
|
---|
88 | * @var string
|
---|
89 | */
|
---|
90 | public $remainingSpaceGib;
|
---|
91 | /**
|
---|
92 | * @var string
|
---|
93 | */
|
---|
94 | public $requestedSizeGib;
|
---|
95 | /**
|
---|
96 | * @var string
|
---|
97 | */
|
---|
98 | public $snapshotAutoDeleteBehavior;
|
---|
99 | /**
|
---|
100 | * @var bool
|
---|
101 | */
|
---|
102 | public $snapshotEnabled;
|
---|
103 | protected $snapshotReservationDetailType = SnapshotReservationDetail::class;
|
---|
104 | protected $snapshotReservationDetailDataType = '';
|
---|
105 | /**
|
---|
106 | * @var string
|
---|
107 | */
|
---|
108 | public $state;
|
---|
109 | /**
|
---|
110 | * @var string
|
---|
111 | */
|
---|
112 | public $storageType;
|
---|
113 | /**
|
---|
114 | * @var string
|
---|
115 | */
|
---|
116 | public $workloadProfile;
|
---|
117 |
|
---|
118 | /**
|
---|
119 | * @param bool
|
---|
120 | */
|
---|
121 | public function setAttached($attached)
|
---|
122 | {
|
---|
123 | $this->attached = $attached;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return bool
|
---|
127 | */
|
---|
128 | public function getAttached()
|
---|
129 | {
|
---|
130 | return $this->attached;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param string
|
---|
134 | */
|
---|
135 | public function setAutoGrownSizeGib($autoGrownSizeGib)
|
---|
136 | {
|
---|
137 | $this->autoGrownSizeGib = $autoGrownSizeGib;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return string
|
---|
141 | */
|
---|
142 | public function getAutoGrownSizeGib()
|
---|
143 | {
|
---|
144 | return $this->autoGrownSizeGib;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param bool
|
---|
148 | */
|
---|
149 | public function setBootVolume($bootVolume)
|
---|
150 | {
|
---|
151 | $this->bootVolume = $bootVolume;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return bool
|
---|
155 | */
|
---|
156 | public function getBootVolume()
|
---|
157 | {
|
---|
158 | return $this->bootVolume;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param string
|
---|
162 | */
|
---|
163 | public function setCurrentSizeGib($currentSizeGib)
|
---|
164 | {
|
---|
165 | $this->currentSizeGib = $currentSizeGib;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return string
|
---|
169 | */
|
---|
170 | public function getCurrentSizeGib()
|
---|
171 | {
|
---|
172 | return $this->currentSizeGib;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @param string
|
---|
176 | */
|
---|
177 | public function setEmergencySizeGib($emergencySizeGib)
|
---|
178 | {
|
---|
179 | $this->emergencySizeGib = $emergencySizeGib;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @return string
|
---|
183 | */
|
---|
184 | public function getEmergencySizeGib()
|
---|
185 | {
|
---|
186 | return $this->emergencySizeGib;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @param string
|
---|
190 | */
|
---|
191 | public function setExpireTime($expireTime)
|
---|
192 | {
|
---|
193 | $this->expireTime = $expireTime;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @return string
|
---|
197 | */
|
---|
198 | public function getExpireTime()
|
---|
199 | {
|
---|
200 | return $this->expireTime;
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * @param string
|
---|
204 | */
|
---|
205 | public function setId($id)
|
---|
206 | {
|
---|
207 | $this->id = $id;
|
---|
208 | }
|
---|
209 | /**
|
---|
210 | * @return string
|
---|
211 | */
|
---|
212 | public function getId()
|
---|
213 | {
|
---|
214 | return $this->id;
|
---|
215 | }
|
---|
216 | /**
|
---|
217 | * @param string[]
|
---|
218 | */
|
---|
219 | public function setInstances($instances)
|
---|
220 | {
|
---|
221 | $this->instances = $instances;
|
---|
222 | }
|
---|
223 | /**
|
---|
224 | * @return string[]
|
---|
225 | */
|
---|
226 | public function getInstances()
|
---|
227 | {
|
---|
228 | return $this->instances;
|
---|
229 | }
|
---|
230 | /**
|
---|
231 | * @param string[]
|
---|
232 | */
|
---|
233 | public function setLabels($labels)
|
---|
234 | {
|
---|
235 | $this->labels = $labels;
|
---|
236 | }
|
---|
237 | /**
|
---|
238 | * @return string[]
|
---|
239 | */
|
---|
240 | public function getLabels()
|
---|
241 | {
|
---|
242 | return $this->labels;
|
---|
243 | }
|
---|
244 | /**
|
---|
245 | * @param string
|
---|
246 | */
|
---|
247 | public function setMaxSizeGib($maxSizeGib)
|
---|
248 | {
|
---|
249 | $this->maxSizeGib = $maxSizeGib;
|
---|
250 | }
|
---|
251 | /**
|
---|
252 | * @return string
|
---|
253 | */
|
---|
254 | public function getMaxSizeGib()
|
---|
255 | {
|
---|
256 | return $this->maxSizeGib;
|
---|
257 | }
|
---|
258 | /**
|
---|
259 | * @param string
|
---|
260 | */
|
---|
261 | public function setName($name)
|
---|
262 | {
|
---|
263 | $this->name = $name;
|
---|
264 | }
|
---|
265 | /**
|
---|
266 | * @return string
|
---|
267 | */
|
---|
268 | public function getName()
|
---|
269 | {
|
---|
270 | return $this->name;
|
---|
271 | }
|
---|
272 | /**
|
---|
273 | * @param string
|
---|
274 | */
|
---|
275 | public function setNotes($notes)
|
---|
276 | {
|
---|
277 | $this->notes = $notes;
|
---|
278 | }
|
---|
279 | /**
|
---|
280 | * @return string
|
---|
281 | */
|
---|
282 | public function getNotes()
|
---|
283 | {
|
---|
284 | return $this->notes;
|
---|
285 | }
|
---|
286 | /**
|
---|
287 | * @param string
|
---|
288 | */
|
---|
289 | public function setOriginallyRequestedSizeGib($originallyRequestedSizeGib)
|
---|
290 | {
|
---|
291 | $this->originallyRequestedSizeGib = $originallyRequestedSizeGib;
|
---|
292 | }
|
---|
293 | /**
|
---|
294 | * @return string
|
---|
295 | */
|
---|
296 | public function getOriginallyRequestedSizeGib()
|
---|
297 | {
|
---|
298 | return $this->originallyRequestedSizeGib;
|
---|
299 | }
|
---|
300 | /**
|
---|
301 | * @param string
|
---|
302 | */
|
---|
303 | public function setPerformanceTier($performanceTier)
|
---|
304 | {
|
---|
305 | $this->performanceTier = $performanceTier;
|
---|
306 | }
|
---|
307 | /**
|
---|
308 | * @return string
|
---|
309 | */
|
---|
310 | public function getPerformanceTier()
|
---|
311 | {
|
---|
312 | return $this->performanceTier;
|
---|
313 | }
|
---|
314 | /**
|
---|
315 | * @param string
|
---|
316 | */
|
---|
317 | public function setPod($pod)
|
---|
318 | {
|
---|
319 | $this->pod = $pod;
|
---|
320 | }
|
---|
321 | /**
|
---|
322 | * @return string
|
---|
323 | */
|
---|
324 | public function getPod()
|
---|
325 | {
|
---|
326 | return $this->pod;
|
---|
327 | }
|
---|
328 | /**
|
---|
329 | * @param string
|
---|
330 | */
|
---|
331 | public function setProtocol($protocol)
|
---|
332 | {
|
---|
333 | $this->protocol = $protocol;
|
---|
334 | }
|
---|
335 | /**
|
---|
336 | * @return string
|
---|
337 | */
|
---|
338 | public function getProtocol()
|
---|
339 | {
|
---|
340 | return $this->protocol;
|
---|
341 | }
|
---|
342 | /**
|
---|
343 | * @param string
|
---|
344 | */
|
---|
345 | public function setRemainingSpaceGib($remainingSpaceGib)
|
---|
346 | {
|
---|
347 | $this->remainingSpaceGib = $remainingSpaceGib;
|
---|
348 | }
|
---|
349 | /**
|
---|
350 | * @return string
|
---|
351 | */
|
---|
352 | public function getRemainingSpaceGib()
|
---|
353 | {
|
---|
354 | return $this->remainingSpaceGib;
|
---|
355 | }
|
---|
356 | /**
|
---|
357 | * @param string
|
---|
358 | */
|
---|
359 | public function setRequestedSizeGib($requestedSizeGib)
|
---|
360 | {
|
---|
361 | $this->requestedSizeGib = $requestedSizeGib;
|
---|
362 | }
|
---|
363 | /**
|
---|
364 | * @return string
|
---|
365 | */
|
---|
366 | public function getRequestedSizeGib()
|
---|
367 | {
|
---|
368 | return $this->requestedSizeGib;
|
---|
369 | }
|
---|
370 | /**
|
---|
371 | * @param string
|
---|
372 | */
|
---|
373 | public function setSnapshotAutoDeleteBehavior($snapshotAutoDeleteBehavior)
|
---|
374 | {
|
---|
375 | $this->snapshotAutoDeleteBehavior = $snapshotAutoDeleteBehavior;
|
---|
376 | }
|
---|
377 | /**
|
---|
378 | * @return string
|
---|
379 | */
|
---|
380 | public function getSnapshotAutoDeleteBehavior()
|
---|
381 | {
|
---|
382 | return $this->snapshotAutoDeleteBehavior;
|
---|
383 | }
|
---|
384 | /**
|
---|
385 | * @param bool
|
---|
386 | */
|
---|
387 | public function setSnapshotEnabled($snapshotEnabled)
|
---|
388 | {
|
---|
389 | $this->snapshotEnabled = $snapshotEnabled;
|
---|
390 | }
|
---|
391 | /**
|
---|
392 | * @return bool
|
---|
393 | */
|
---|
394 | public function getSnapshotEnabled()
|
---|
395 | {
|
---|
396 | return $this->snapshotEnabled;
|
---|
397 | }
|
---|
398 | /**
|
---|
399 | * @param SnapshotReservationDetail
|
---|
400 | */
|
---|
401 | public function setSnapshotReservationDetail(SnapshotReservationDetail $snapshotReservationDetail)
|
---|
402 | {
|
---|
403 | $this->snapshotReservationDetail = $snapshotReservationDetail;
|
---|
404 | }
|
---|
405 | /**
|
---|
406 | * @return SnapshotReservationDetail
|
---|
407 | */
|
---|
408 | public function getSnapshotReservationDetail()
|
---|
409 | {
|
---|
410 | return $this->snapshotReservationDetail;
|
---|
411 | }
|
---|
412 | /**
|
---|
413 | * @param string
|
---|
414 | */
|
---|
415 | public function setState($state)
|
---|
416 | {
|
---|
417 | $this->state = $state;
|
---|
418 | }
|
---|
419 | /**
|
---|
420 | * @return string
|
---|
421 | */
|
---|
422 | public function getState()
|
---|
423 | {
|
---|
424 | return $this->state;
|
---|
425 | }
|
---|
426 | /**
|
---|
427 | * @param string
|
---|
428 | */
|
---|
429 | public function setStorageType($storageType)
|
---|
430 | {
|
---|
431 | $this->storageType = $storageType;
|
---|
432 | }
|
---|
433 | /**
|
---|
434 | * @return string
|
---|
435 | */
|
---|
436 | public function getStorageType()
|
---|
437 | {
|
---|
438 | return $this->storageType;
|
---|
439 | }
|
---|
440 | /**
|
---|
441 | * @param string
|
---|
442 | */
|
---|
443 | public function setWorkloadProfile($workloadProfile)
|
---|
444 | {
|
---|
445 | $this->workloadProfile = $workloadProfile;
|
---|
446 | }
|
---|
447 | /**
|
---|
448 | * @return string
|
---|
449 | */
|
---|
450 | public function getWorkloadProfile()
|
---|
451 | {
|
---|
452 | return $this->workloadProfile;
|
---|
453 | }
|
---|
454 | }
|
---|
455 |
|
---|
456 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
457 | class_alias(Volume::class, 'Google_Service_Baremetalsolution_Volume');
|
---|