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\BackupforGKE;
|
---|
19 |
|
---|
20 | class Backup extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var bool
|
---|
24 | */
|
---|
25 | public $allNamespaces;
|
---|
26 | protected $clusterMetadataType = ClusterMetadata::class;
|
---|
27 | protected $clusterMetadataDataType = '';
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $completeTime;
|
---|
32 | /**
|
---|
33 | * @var string
|
---|
34 | */
|
---|
35 | public $configBackupSizeBytes;
|
---|
36 | /**
|
---|
37 | * @var bool
|
---|
38 | */
|
---|
39 | public $containsSecrets;
|
---|
40 | /**
|
---|
41 | * @var bool
|
---|
42 | */
|
---|
43 | public $containsVolumeData;
|
---|
44 | /**
|
---|
45 | * @var string
|
---|
46 | */
|
---|
47 | public $createTime;
|
---|
48 | /**
|
---|
49 | * @var int
|
---|
50 | */
|
---|
51 | public $deleteLockDays;
|
---|
52 | /**
|
---|
53 | * @var string
|
---|
54 | */
|
---|
55 | public $deleteLockExpireTime;
|
---|
56 | /**
|
---|
57 | * @var string
|
---|
58 | */
|
---|
59 | public $description;
|
---|
60 | protected $encryptionKeyType = EncryptionKey::class;
|
---|
61 | protected $encryptionKeyDataType = '';
|
---|
62 | /**
|
---|
63 | * @var string
|
---|
64 | */
|
---|
65 | public $etag;
|
---|
66 | /**
|
---|
67 | * @var string[]
|
---|
68 | */
|
---|
69 | public $labels;
|
---|
70 | /**
|
---|
71 | * @var bool
|
---|
72 | */
|
---|
73 | public $manual;
|
---|
74 | /**
|
---|
75 | * @var string
|
---|
76 | */
|
---|
77 | public $name;
|
---|
78 | /**
|
---|
79 | * @var bool
|
---|
80 | */
|
---|
81 | public $permissiveMode;
|
---|
82 | /**
|
---|
83 | * @var int
|
---|
84 | */
|
---|
85 | public $podCount;
|
---|
86 | /**
|
---|
87 | * @var int
|
---|
88 | */
|
---|
89 | public $resourceCount;
|
---|
90 | /**
|
---|
91 | * @var int
|
---|
92 | */
|
---|
93 | public $retainDays;
|
---|
94 | /**
|
---|
95 | * @var string
|
---|
96 | */
|
---|
97 | public $retainExpireTime;
|
---|
98 | protected $selectedApplicationsType = NamespacedNames::class;
|
---|
99 | protected $selectedApplicationsDataType = '';
|
---|
100 | protected $selectedNamespacesType = Namespaces::class;
|
---|
101 | protected $selectedNamespacesDataType = '';
|
---|
102 | /**
|
---|
103 | * @var string
|
---|
104 | */
|
---|
105 | public $sizeBytes;
|
---|
106 | /**
|
---|
107 | * @var string
|
---|
108 | */
|
---|
109 | public $state;
|
---|
110 | /**
|
---|
111 | * @var string
|
---|
112 | */
|
---|
113 | public $stateReason;
|
---|
114 | /**
|
---|
115 | * @var string
|
---|
116 | */
|
---|
117 | public $uid;
|
---|
118 | /**
|
---|
119 | * @var string
|
---|
120 | */
|
---|
121 | public $updateTime;
|
---|
122 | /**
|
---|
123 | * @var int
|
---|
124 | */
|
---|
125 | public $volumeCount;
|
---|
126 |
|
---|
127 | /**
|
---|
128 | * @param bool
|
---|
129 | */
|
---|
130 | public function setAllNamespaces($allNamespaces)
|
---|
131 | {
|
---|
132 | $this->allNamespaces = $allNamespaces;
|
---|
133 | }
|
---|
134 | /**
|
---|
135 | * @return bool
|
---|
136 | */
|
---|
137 | public function getAllNamespaces()
|
---|
138 | {
|
---|
139 | return $this->allNamespaces;
|
---|
140 | }
|
---|
141 | /**
|
---|
142 | * @param ClusterMetadata
|
---|
143 | */
|
---|
144 | public function setClusterMetadata(ClusterMetadata $clusterMetadata)
|
---|
145 | {
|
---|
146 | $this->clusterMetadata = $clusterMetadata;
|
---|
147 | }
|
---|
148 | /**
|
---|
149 | * @return ClusterMetadata
|
---|
150 | */
|
---|
151 | public function getClusterMetadata()
|
---|
152 | {
|
---|
153 | return $this->clusterMetadata;
|
---|
154 | }
|
---|
155 | /**
|
---|
156 | * @param string
|
---|
157 | */
|
---|
158 | public function setCompleteTime($completeTime)
|
---|
159 | {
|
---|
160 | $this->completeTime = $completeTime;
|
---|
161 | }
|
---|
162 | /**
|
---|
163 | * @return string
|
---|
164 | */
|
---|
165 | public function getCompleteTime()
|
---|
166 | {
|
---|
167 | return $this->completeTime;
|
---|
168 | }
|
---|
169 | /**
|
---|
170 | * @param string
|
---|
171 | */
|
---|
172 | public function setConfigBackupSizeBytes($configBackupSizeBytes)
|
---|
173 | {
|
---|
174 | $this->configBackupSizeBytes = $configBackupSizeBytes;
|
---|
175 | }
|
---|
176 | /**
|
---|
177 | * @return string
|
---|
178 | */
|
---|
179 | public function getConfigBackupSizeBytes()
|
---|
180 | {
|
---|
181 | return $this->configBackupSizeBytes;
|
---|
182 | }
|
---|
183 | /**
|
---|
184 | * @param bool
|
---|
185 | */
|
---|
186 | public function setContainsSecrets($containsSecrets)
|
---|
187 | {
|
---|
188 | $this->containsSecrets = $containsSecrets;
|
---|
189 | }
|
---|
190 | /**
|
---|
191 | * @return bool
|
---|
192 | */
|
---|
193 | public function getContainsSecrets()
|
---|
194 | {
|
---|
195 | return $this->containsSecrets;
|
---|
196 | }
|
---|
197 | /**
|
---|
198 | * @param bool
|
---|
199 | */
|
---|
200 | public function setContainsVolumeData($containsVolumeData)
|
---|
201 | {
|
---|
202 | $this->containsVolumeData = $containsVolumeData;
|
---|
203 | }
|
---|
204 | /**
|
---|
205 | * @return bool
|
---|
206 | */
|
---|
207 | public function getContainsVolumeData()
|
---|
208 | {
|
---|
209 | return $this->containsVolumeData;
|
---|
210 | }
|
---|
211 | /**
|
---|
212 | * @param string
|
---|
213 | */
|
---|
214 | public function setCreateTime($createTime)
|
---|
215 | {
|
---|
216 | $this->createTime = $createTime;
|
---|
217 | }
|
---|
218 | /**
|
---|
219 | * @return string
|
---|
220 | */
|
---|
221 | public function getCreateTime()
|
---|
222 | {
|
---|
223 | return $this->createTime;
|
---|
224 | }
|
---|
225 | /**
|
---|
226 | * @param int
|
---|
227 | */
|
---|
228 | public function setDeleteLockDays($deleteLockDays)
|
---|
229 | {
|
---|
230 | $this->deleteLockDays = $deleteLockDays;
|
---|
231 | }
|
---|
232 | /**
|
---|
233 | * @return int
|
---|
234 | */
|
---|
235 | public function getDeleteLockDays()
|
---|
236 | {
|
---|
237 | return $this->deleteLockDays;
|
---|
238 | }
|
---|
239 | /**
|
---|
240 | * @param string
|
---|
241 | */
|
---|
242 | public function setDeleteLockExpireTime($deleteLockExpireTime)
|
---|
243 | {
|
---|
244 | $this->deleteLockExpireTime = $deleteLockExpireTime;
|
---|
245 | }
|
---|
246 | /**
|
---|
247 | * @return string
|
---|
248 | */
|
---|
249 | public function getDeleteLockExpireTime()
|
---|
250 | {
|
---|
251 | return $this->deleteLockExpireTime;
|
---|
252 | }
|
---|
253 | /**
|
---|
254 | * @param string
|
---|
255 | */
|
---|
256 | public function setDescription($description)
|
---|
257 | {
|
---|
258 | $this->description = $description;
|
---|
259 | }
|
---|
260 | /**
|
---|
261 | * @return string
|
---|
262 | */
|
---|
263 | public function getDescription()
|
---|
264 | {
|
---|
265 | return $this->description;
|
---|
266 | }
|
---|
267 | /**
|
---|
268 | * @param EncryptionKey
|
---|
269 | */
|
---|
270 | public function setEncryptionKey(EncryptionKey $encryptionKey)
|
---|
271 | {
|
---|
272 | $this->encryptionKey = $encryptionKey;
|
---|
273 | }
|
---|
274 | /**
|
---|
275 | * @return EncryptionKey
|
---|
276 | */
|
---|
277 | public function getEncryptionKey()
|
---|
278 | {
|
---|
279 | return $this->encryptionKey;
|
---|
280 | }
|
---|
281 | /**
|
---|
282 | * @param string
|
---|
283 | */
|
---|
284 | public function setEtag($etag)
|
---|
285 | {
|
---|
286 | $this->etag = $etag;
|
---|
287 | }
|
---|
288 | /**
|
---|
289 | * @return string
|
---|
290 | */
|
---|
291 | public function getEtag()
|
---|
292 | {
|
---|
293 | return $this->etag;
|
---|
294 | }
|
---|
295 | /**
|
---|
296 | * @param string[]
|
---|
297 | */
|
---|
298 | public function setLabels($labels)
|
---|
299 | {
|
---|
300 | $this->labels = $labels;
|
---|
301 | }
|
---|
302 | /**
|
---|
303 | * @return string[]
|
---|
304 | */
|
---|
305 | public function getLabels()
|
---|
306 | {
|
---|
307 | return $this->labels;
|
---|
308 | }
|
---|
309 | /**
|
---|
310 | * @param bool
|
---|
311 | */
|
---|
312 | public function setManual($manual)
|
---|
313 | {
|
---|
314 | $this->manual = $manual;
|
---|
315 | }
|
---|
316 | /**
|
---|
317 | * @return bool
|
---|
318 | */
|
---|
319 | public function getManual()
|
---|
320 | {
|
---|
321 | return $this->manual;
|
---|
322 | }
|
---|
323 | /**
|
---|
324 | * @param string
|
---|
325 | */
|
---|
326 | public function setName($name)
|
---|
327 | {
|
---|
328 | $this->name = $name;
|
---|
329 | }
|
---|
330 | /**
|
---|
331 | * @return string
|
---|
332 | */
|
---|
333 | public function getName()
|
---|
334 | {
|
---|
335 | return $this->name;
|
---|
336 | }
|
---|
337 | /**
|
---|
338 | * @param bool
|
---|
339 | */
|
---|
340 | public function setPermissiveMode($permissiveMode)
|
---|
341 | {
|
---|
342 | $this->permissiveMode = $permissiveMode;
|
---|
343 | }
|
---|
344 | /**
|
---|
345 | * @return bool
|
---|
346 | */
|
---|
347 | public function getPermissiveMode()
|
---|
348 | {
|
---|
349 | return $this->permissiveMode;
|
---|
350 | }
|
---|
351 | /**
|
---|
352 | * @param int
|
---|
353 | */
|
---|
354 | public function setPodCount($podCount)
|
---|
355 | {
|
---|
356 | $this->podCount = $podCount;
|
---|
357 | }
|
---|
358 | /**
|
---|
359 | * @return int
|
---|
360 | */
|
---|
361 | public function getPodCount()
|
---|
362 | {
|
---|
363 | return $this->podCount;
|
---|
364 | }
|
---|
365 | /**
|
---|
366 | * @param int
|
---|
367 | */
|
---|
368 | public function setResourceCount($resourceCount)
|
---|
369 | {
|
---|
370 | $this->resourceCount = $resourceCount;
|
---|
371 | }
|
---|
372 | /**
|
---|
373 | * @return int
|
---|
374 | */
|
---|
375 | public function getResourceCount()
|
---|
376 | {
|
---|
377 | return $this->resourceCount;
|
---|
378 | }
|
---|
379 | /**
|
---|
380 | * @param int
|
---|
381 | */
|
---|
382 | public function setRetainDays($retainDays)
|
---|
383 | {
|
---|
384 | $this->retainDays = $retainDays;
|
---|
385 | }
|
---|
386 | /**
|
---|
387 | * @return int
|
---|
388 | */
|
---|
389 | public function getRetainDays()
|
---|
390 | {
|
---|
391 | return $this->retainDays;
|
---|
392 | }
|
---|
393 | /**
|
---|
394 | * @param string
|
---|
395 | */
|
---|
396 | public function setRetainExpireTime($retainExpireTime)
|
---|
397 | {
|
---|
398 | $this->retainExpireTime = $retainExpireTime;
|
---|
399 | }
|
---|
400 | /**
|
---|
401 | * @return string
|
---|
402 | */
|
---|
403 | public function getRetainExpireTime()
|
---|
404 | {
|
---|
405 | return $this->retainExpireTime;
|
---|
406 | }
|
---|
407 | /**
|
---|
408 | * @param NamespacedNames
|
---|
409 | */
|
---|
410 | public function setSelectedApplications(NamespacedNames $selectedApplications)
|
---|
411 | {
|
---|
412 | $this->selectedApplications = $selectedApplications;
|
---|
413 | }
|
---|
414 | /**
|
---|
415 | * @return NamespacedNames
|
---|
416 | */
|
---|
417 | public function getSelectedApplications()
|
---|
418 | {
|
---|
419 | return $this->selectedApplications;
|
---|
420 | }
|
---|
421 | /**
|
---|
422 | * @param Namespaces
|
---|
423 | */
|
---|
424 | public function setSelectedNamespaces(Namespaces $selectedNamespaces)
|
---|
425 | {
|
---|
426 | $this->selectedNamespaces = $selectedNamespaces;
|
---|
427 | }
|
---|
428 | /**
|
---|
429 | * @return Namespaces
|
---|
430 | */
|
---|
431 | public function getSelectedNamespaces()
|
---|
432 | {
|
---|
433 | return $this->selectedNamespaces;
|
---|
434 | }
|
---|
435 | /**
|
---|
436 | * @param string
|
---|
437 | */
|
---|
438 | public function setSizeBytes($sizeBytes)
|
---|
439 | {
|
---|
440 | $this->sizeBytes = $sizeBytes;
|
---|
441 | }
|
---|
442 | /**
|
---|
443 | * @return string
|
---|
444 | */
|
---|
445 | public function getSizeBytes()
|
---|
446 | {
|
---|
447 | return $this->sizeBytes;
|
---|
448 | }
|
---|
449 | /**
|
---|
450 | * @param string
|
---|
451 | */
|
---|
452 | public function setState($state)
|
---|
453 | {
|
---|
454 | $this->state = $state;
|
---|
455 | }
|
---|
456 | /**
|
---|
457 | * @return string
|
---|
458 | */
|
---|
459 | public function getState()
|
---|
460 | {
|
---|
461 | return $this->state;
|
---|
462 | }
|
---|
463 | /**
|
---|
464 | * @param string
|
---|
465 | */
|
---|
466 | public function setStateReason($stateReason)
|
---|
467 | {
|
---|
468 | $this->stateReason = $stateReason;
|
---|
469 | }
|
---|
470 | /**
|
---|
471 | * @return string
|
---|
472 | */
|
---|
473 | public function getStateReason()
|
---|
474 | {
|
---|
475 | return $this->stateReason;
|
---|
476 | }
|
---|
477 | /**
|
---|
478 | * @param string
|
---|
479 | */
|
---|
480 | public function setUid($uid)
|
---|
481 | {
|
---|
482 | $this->uid = $uid;
|
---|
483 | }
|
---|
484 | /**
|
---|
485 | * @return string
|
---|
486 | */
|
---|
487 | public function getUid()
|
---|
488 | {
|
---|
489 | return $this->uid;
|
---|
490 | }
|
---|
491 | /**
|
---|
492 | * @param string
|
---|
493 | */
|
---|
494 | public function setUpdateTime($updateTime)
|
---|
495 | {
|
---|
496 | $this->updateTime = $updateTime;
|
---|
497 | }
|
---|
498 | /**
|
---|
499 | * @return string
|
---|
500 | */
|
---|
501 | public function getUpdateTime()
|
---|
502 | {
|
---|
503 | return $this->updateTime;
|
---|
504 | }
|
---|
505 | /**
|
---|
506 | * @param int
|
---|
507 | */
|
---|
508 | public function setVolumeCount($volumeCount)
|
---|
509 | {
|
---|
510 | $this->volumeCount = $volumeCount;
|
---|
511 | }
|
---|
512 | /**
|
---|
513 | * @return int
|
---|
514 | */
|
---|
515 | public function getVolumeCount()
|
---|
516 | {
|
---|
517 | return $this->volumeCount;
|
---|
518 | }
|
---|
519 | }
|
---|
520 |
|
---|
521 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
522 | class_alias(Backup::class, 'Google_Service_BackupforGKE_Backup');
|
---|