[e3d4e0a] | 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 Restore extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'volumeDataRestorePolicyOverrides';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $backup;
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $cluster;
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $completeTime;
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $createTime;
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $description;
|
---|
| 43 | /**
|
---|
| 44 | * @var string
|
---|
| 45 | */
|
---|
| 46 | public $etag;
|
---|
| 47 | protected $filterType = Filter::class;
|
---|
| 48 | protected $filterDataType = '';
|
---|
| 49 | /**
|
---|
| 50 | * @var string[]
|
---|
| 51 | */
|
---|
| 52 | public $labels;
|
---|
| 53 | /**
|
---|
| 54 | * @var string
|
---|
| 55 | */
|
---|
| 56 | public $name;
|
---|
| 57 | /**
|
---|
| 58 | * @var int
|
---|
| 59 | */
|
---|
| 60 | public $resourcesExcludedCount;
|
---|
| 61 | /**
|
---|
| 62 | * @var int
|
---|
| 63 | */
|
---|
| 64 | public $resourcesFailedCount;
|
---|
| 65 | /**
|
---|
| 66 | * @var int
|
---|
| 67 | */
|
---|
| 68 | public $resourcesRestoredCount;
|
---|
| 69 | protected $restoreConfigType = RestoreConfig::class;
|
---|
| 70 | protected $restoreConfigDataType = '';
|
---|
| 71 | /**
|
---|
| 72 | * @var string
|
---|
| 73 | */
|
---|
| 74 | public $state;
|
---|
| 75 | /**
|
---|
| 76 | * @var string
|
---|
| 77 | */
|
---|
| 78 | public $stateReason;
|
---|
| 79 | /**
|
---|
| 80 | * @var string
|
---|
| 81 | */
|
---|
| 82 | public $uid;
|
---|
| 83 | /**
|
---|
| 84 | * @var string
|
---|
| 85 | */
|
---|
| 86 | public $updateTime;
|
---|
| 87 | protected $volumeDataRestorePolicyOverridesType = VolumeDataRestorePolicyOverride::class;
|
---|
| 88 | protected $volumeDataRestorePolicyOverridesDataType = 'array';
|
---|
| 89 | /**
|
---|
| 90 | * @var int
|
---|
| 91 | */
|
---|
| 92 | public $volumesRestoredCount;
|
---|
| 93 |
|
---|
| 94 | /**
|
---|
| 95 | * @param string
|
---|
| 96 | */
|
---|
| 97 | public function setBackup($backup)
|
---|
| 98 | {
|
---|
| 99 | $this->backup = $backup;
|
---|
| 100 | }
|
---|
| 101 | /**
|
---|
| 102 | * @return string
|
---|
| 103 | */
|
---|
| 104 | public function getBackup()
|
---|
| 105 | {
|
---|
| 106 | return $this->backup;
|
---|
| 107 | }
|
---|
| 108 | /**
|
---|
| 109 | * @param string
|
---|
| 110 | */
|
---|
| 111 | public function setCluster($cluster)
|
---|
| 112 | {
|
---|
| 113 | $this->cluster = $cluster;
|
---|
| 114 | }
|
---|
| 115 | /**
|
---|
| 116 | * @return string
|
---|
| 117 | */
|
---|
| 118 | public function getCluster()
|
---|
| 119 | {
|
---|
| 120 | return $this->cluster;
|
---|
| 121 | }
|
---|
| 122 | /**
|
---|
| 123 | * @param string
|
---|
| 124 | */
|
---|
| 125 | public function setCompleteTime($completeTime)
|
---|
| 126 | {
|
---|
| 127 | $this->completeTime = $completeTime;
|
---|
| 128 | }
|
---|
| 129 | /**
|
---|
| 130 | * @return string
|
---|
| 131 | */
|
---|
| 132 | public function getCompleteTime()
|
---|
| 133 | {
|
---|
| 134 | return $this->completeTime;
|
---|
| 135 | }
|
---|
| 136 | /**
|
---|
| 137 | * @param string
|
---|
| 138 | */
|
---|
| 139 | public function setCreateTime($createTime)
|
---|
| 140 | {
|
---|
| 141 | $this->createTime = $createTime;
|
---|
| 142 | }
|
---|
| 143 | /**
|
---|
| 144 | * @return string
|
---|
| 145 | */
|
---|
| 146 | public function getCreateTime()
|
---|
| 147 | {
|
---|
| 148 | return $this->createTime;
|
---|
| 149 | }
|
---|
| 150 | /**
|
---|
| 151 | * @param string
|
---|
| 152 | */
|
---|
| 153 | public function setDescription($description)
|
---|
| 154 | {
|
---|
| 155 | $this->description = $description;
|
---|
| 156 | }
|
---|
| 157 | /**
|
---|
| 158 | * @return string
|
---|
| 159 | */
|
---|
| 160 | public function getDescription()
|
---|
| 161 | {
|
---|
| 162 | return $this->description;
|
---|
| 163 | }
|
---|
| 164 | /**
|
---|
| 165 | * @param string
|
---|
| 166 | */
|
---|
| 167 | public function setEtag($etag)
|
---|
| 168 | {
|
---|
| 169 | $this->etag = $etag;
|
---|
| 170 | }
|
---|
| 171 | /**
|
---|
| 172 | * @return string
|
---|
| 173 | */
|
---|
| 174 | public function getEtag()
|
---|
| 175 | {
|
---|
| 176 | return $this->etag;
|
---|
| 177 | }
|
---|
| 178 | /**
|
---|
| 179 | * @param Filter
|
---|
| 180 | */
|
---|
| 181 | public function setFilter(Filter $filter)
|
---|
| 182 | {
|
---|
| 183 | $this->filter = $filter;
|
---|
| 184 | }
|
---|
| 185 | /**
|
---|
| 186 | * @return Filter
|
---|
| 187 | */
|
---|
| 188 | public function getFilter()
|
---|
| 189 | {
|
---|
| 190 | return $this->filter;
|
---|
| 191 | }
|
---|
| 192 | /**
|
---|
| 193 | * @param string[]
|
---|
| 194 | */
|
---|
| 195 | public function setLabels($labels)
|
---|
| 196 | {
|
---|
| 197 | $this->labels = $labels;
|
---|
| 198 | }
|
---|
| 199 | /**
|
---|
| 200 | * @return string[]
|
---|
| 201 | */
|
---|
| 202 | public function getLabels()
|
---|
| 203 | {
|
---|
| 204 | return $this->labels;
|
---|
| 205 | }
|
---|
| 206 | /**
|
---|
| 207 | * @param string
|
---|
| 208 | */
|
---|
| 209 | public function setName($name)
|
---|
| 210 | {
|
---|
| 211 | $this->name = $name;
|
---|
| 212 | }
|
---|
| 213 | /**
|
---|
| 214 | * @return string
|
---|
| 215 | */
|
---|
| 216 | public function getName()
|
---|
| 217 | {
|
---|
| 218 | return $this->name;
|
---|
| 219 | }
|
---|
| 220 | /**
|
---|
| 221 | * @param int
|
---|
| 222 | */
|
---|
| 223 | public function setResourcesExcludedCount($resourcesExcludedCount)
|
---|
| 224 | {
|
---|
| 225 | $this->resourcesExcludedCount = $resourcesExcludedCount;
|
---|
| 226 | }
|
---|
| 227 | /**
|
---|
| 228 | * @return int
|
---|
| 229 | */
|
---|
| 230 | public function getResourcesExcludedCount()
|
---|
| 231 | {
|
---|
| 232 | return $this->resourcesExcludedCount;
|
---|
| 233 | }
|
---|
| 234 | /**
|
---|
| 235 | * @param int
|
---|
| 236 | */
|
---|
| 237 | public function setResourcesFailedCount($resourcesFailedCount)
|
---|
| 238 | {
|
---|
| 239 | $this->resourcesFailedCount = $resourcesFailedCount;
|
---|
| 240 | }
|
---|
| 241 | /**
|
---|
| 242 | * @return int
|
---|
| 243 | */
|
---|
| 244 | public function getResourcesFailedCount()
|
---|
| 245 | {
|
---|
| 246 | return $this->resourcesFailedCount;
|
---|
| 247 | }
|
---|
| 248 | /**
|
---|
| 249 | * @param int
|
---|
| 250 | */
|
---|
| 251 | public function setResourcesRestoredCount($resourcesRestoredCount)
|
---|
| 252 | {
|
---|
| 253 | $this->resourcesRestoredCount = $resourcesRestoredCount;
|
---|
| 254 | }
|
---|
| 255 | /**
|
---|
| 256 | * @return int
|
---|
| 257 | */
|
---|
| 258 | public function getResourcesRestoredCount()
|
---|
| 259 | {
|
---|
| 260 | return $this->resourcesRestoredCount;
|
---|
| 261 | }
|
---|
| 262 | /**
|
---|
| 263 | * @param RestoreConfig
|
---|
| 264 | */
|
---|
| 265 | public function setRestoreConfig(RestoreConfig $restoreConfig)
|
---|
| 266 | {
|
---|
| 267 | $this->restoreConfig = $restoreConfig;
|
---|
| 268 | }
|
---|
| 269 | /**
|
---|
| 270 | * @return RestoreConfig
|
---|
| 271 | */
|
---|
| 272 | public function getRestoreConfig()
|
---|
| 273 | {
|
---|
| 274 | return $this->restoreConfig;
|
---|
| 275 | }
|
---|
| 276 | /**
|
---|
| 277 | * @param string
|
---|
| 278 | */
|
---|
| 279 | public function setState($state)
|
---|
| 280 | {
|
---|
| 281 | $this->state = $state;
|
---|
| 282 | }
|
---|
| 283 | /**
|
---|
| 284 | * @return string
|
---|
| 285 | */
|
---|
| 286 | public function getState()
|
---|
| 287 | {
|
---|
| 288 | return $this->state;
|
---|
| 289 | }
|
---|
| 290 | /**
|
---|
| 291 | * @param string
|
---|
| 292 | */
|
---|
| 293 | public function setStateReason($stateReason)
|
---|
| 294 | {
|
---|
| 295 | $this->stateReason = $stateReason;
|
---|
| 296 | }
|
---|
| 297 | /**
|
---|
| 298 | * @return string
|
---|
| 299 | */
|
---|
| 300 | public function getStateReason()
|
---|
| 301 | {
|
---|
| 302 | return $this->stateReason;
|
---|
| 303 | }
|
---|
| 304 | /**
|
---|
| 305 | * @param string
|
---|
| 306 | */
|
---|
| 307 | public function setUid($uid)
|
---|
| 308 | {
|
---|
| 309 | $this->uid = $uid;
|
---|
| 310 | }
|
---|
| 311 | /**
|
---|
| 312 | * @return string
|
---|
| 313 | */
|
---|
| 314 | public function getUid()
|
---|
| 315 | {
|
---|
| 316 | return $this->uid;
|
---|
| 317 | }
|
---|
| 318 | /**
|
---|
| 319 | * @param string
|
---|
| 320 | */
|
---|
| 321 | public function setUpdateTime($updateTime)
|
---|
| 322 | {
|
---|
| 323 | $this->updateTime = $updateTime;
|
---|
| 324 | }
|
---|
| 325 | /**
|
---|
| 326 | * @return string
|
---|
| 327 | */
|
---|
| 328 | public function getUpdateTime()
|
---|
| 329 | {
|
---|
| 330 | return $this->updateTime;
|
---|
| 331 | }
|
---|
| 332 | /**
|
---|
| 333 | * @param VolumeDataRestorePolicyOverride[]
|
---|
| 334 | */
|
---|
| 335 | public function setVolumeDataRestorePolicyOverrides($volumeDataRestorePolicyOverrides)
|
---|
| 336 | {
|
---|
| 337 | $this->volumeDataRestorePolicyOverrides = $volumeDataRestorePolicyOverrides;
|
---|
| 338 | }
|
---|
| 339 | /**
|
---|
| 340 | * @return VolumeDataRestorePolicyOverride[]
|
---|
| 341 | */
|
---|
| 342 | public function getVolumeDataRestorePolicyOverrides()
|
---|
| 343 | {
|
---|
| 344 | return $this->volumeDataRestorePolicyOverrides;
|
---|
| 345 | }
|
---|
| 346 | /**
|
---|
| 347 | * @param int
|
---|
| 348 | */
|
---|
| 349 | public function setVolumesRestoredCount($volumesRestoredCount)
|
---|
| 350 | {
|
---|
| 351 | $this->volumesRestoredCount = $volumesRestoredCount;
|
---|
| 352 | }
|
---|
| 353 | /**
|
---|
| 354 | * @return int
|
---|
| 355 | */
|
---|
| 356 | public function getVolumesRestoredCount()
|
---|
| 357 | {
|
---|
| 358 | return $this->volumesRestoredCount;
|
---|
| 359 | }
|
---|
| 360 | }
|
---|
| 361 |
|
---|
| 362 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 363 | class_alias(Restore::class, 'Google_Service_BackupforGKE_Restore');
|
---|