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