|
| 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 BDRBackupPlanJobLog extends \Google\Collection |
| 21 | +{ |
| 22 | + protected $collection_key = 'revisedBackupRules'; |
| 23 | + /** |
| 24 | + * Canonical resource name for Backup Plan Plan of the job. |
| 25 | + * |
| 26 | + * @var string |
| 27 | + */ |
| 28 | + public $backupPlanName; |
| 29 | + /** |
| 30 | + * End time of the job. |
| 31 | + * |
| 32 | + * @var string |
| 33 | + */ |
| 34 | + public $endTime; |
| 35 | + /** |
| 36 | + * The error code. Only populated in error scenarios. |
| 37 | + * |
| 38 | + * @var int |
| 39 | + */ |
| 40 | + public $errorCode; |
| 41 | + /** |
| 42 | + * The user readable error message. Only populated in error scenarios. |
| 43 | + * |
| 44 | + * @var string |
| 45 | + */ |
| 46 | + public $errorMessage; |
| 47 | + /** |
| 48 | + * The name of the error type eg. PERMISSION_DENIED. Only populated in error |
| 49 | + * scenarios. |
| 50 | + * |
| 51 | + * @var string |
| 52 | + */ |
| 53 | + public $errorType; |
| 54 | + /** |
| 55 | + * The category field displays the category of the job. Can be one of |
| 56 | + * [UPDATE_BACKUP_PLAN]. |
| 57 | + * |
| 58 | + * @var string |
| 59 | + */ |
| 60 | + public $jobCategory; |
| 61 | + /** |
| 62 | + * The job_id field displays the identifier of the job being reported. |
| 63 | + * |
| 64 | + * @var string |
| 65 | + */ |
| 66 | + public $jobId; |
| 67 | + /** |
| 68 | + * The status field displays the status of the job. Can be one of |
| 69 | + * [RUNNING,SUCCESSFUL, FAILED]. |
| 70 | + * |
| 71 | + * @var string |
| 72 | + */ |
| 73 | + public $jobStatus; |
| 74 | + /** |
| 75 | + * User friendly revision id e.g. v0, v1 etc. |
| 76 | + * |
| 77 | + * @var string |
| 78 | + */ |
| 79 | + public $newBackupPlanRevisionId; |
| 80 | + /** |
| 81 | + * Full resource name for new backup plan revision |
| 82 | + * |
| 83 | + * @var string |
| 84 | + */ |
| 85 | + public $newBackupPlanRevisionName; |
| 86 | + /** |
| 87 | + * User friendly revision id e.g. v0, v1 etc. |
| 88 | + * |
| 89 | + * @var string |
| 90 | + */ |
| 91 | + public $previousBackupPlanRevisionId; |
| 92 | + /** |
| 93 | + * Full resource name for previous backup plan revision |
| 94 | + * |
| 95 | + * @var string |
| 96 | + */ |
| 97 | + public $previousBackupPlanRevisionName; |
| 98 | + protected $previousBackupRulesType = BackupRuleDetail::class; |
| 99 | + protected $previousBackupRulesDataType = 'array'; |
| 100 | + /** |
| 101 | + * The resource_type field displays the type of the protected resource. |
| 102 | + * |
| 103 | + * @var string |
| 104 | + */ |
| 105 | + public $resourceType; |
| 106 | + protected $revisedBackupRulesType = BackupRuleDetail::class; |
| 107 | + protected $revisedBackupRulesDataType = 'array'; |
| 108 | + /** |
| 109 | + * Start time of the job. |
| 110 | + * |
| 111 | + * @var string |
| 112 | + */ |
| 113 | + public $startTime; |
| 114 | + /** |
| 115 | + * The total number of workloads affected by the job. |
| 116 | + * |
| 117 | + * @var int |
| 118 | + */ |
| 119 | + public $workloadsAffectedCount; |
| 120 | + |
| 121 | + /** |
| 122 | + * Canonical resource name for Backup Plan Plan of the job. |
| 123 | + * |
| 124 | + * @param string $backupPlanName |
| 125 | + */ |
| 126 | + public function setBackupPlanName($backupPlanName) |
| 127 | + { |
| 128 | + $this->backupPlanName = $backupPlanName; |
| 129 | + } |
| 130 | + /** |
| 131 | + * @return string |
| 132 | + */ |
| 133 | + public function getBackupPlanName() |
| 134 | + { |
| 135 | + return $this->backupPlanName; |
| 136 | + } |
| 137 | + /** |
| 138 | + * End time of the job. |
| 139 | + * |
| 140 | + * @param string $endTime |
| 141 | + */ |
| 142 | + public function setEndTime($endTime) |
| 143 | + { |
| 144 | + $this->endTime = $endTime; |
| 145 | + } |
| 146 | + /** |
| 147 | + * @return string |
| 148 | + */ |
| 149 | + public function getEndTime() |
| 150 | + { |
| 151 | + return $this->endTime; |
| 152 | + } |
| 153 | + /** |
| 154 | + * The error code. Only populated in error scenarios. |
| 155 | + * |
| 156 | + * @param int $errorCode |
| 157 | + */ |
| 158 | + public function setErrorCode($errorCode) |
| 159 | + { |
| 160 | + $this->errorCode = $errorCode; |
| 161 | + } |
| 162 | + /** |
| 163 | + * @return int |
| 164 | + */ |
| 165 | + public function getErrorCode() |
| 166 | + { |
| 167 | + return $this->errorCode; |
| 168 | + } |
| 169 | + /** |
| 170 | + * The user readable error message. Only populated in error scenarios. |
| 171 | + * |
| 172 | + * @param string $errorMessage |
| 173 | + */ |
| 174 | + public function setErrorMessage($errorMessage) |
| 175 | + { |
| 176 | + $this->errorMessage = $errorMessage; |
| 177 | + } |
| 178 | + /** |
| 179 | + * @return string |
| 180 | + */ |
| 181 | + public function getErrorMessage() |
| 182 | + { |
| 183 | + return $this->errorMessage; |
| 184 | + } |
| 185 | + /** |
| 186 | + * The name of the error type eg. PERMISSION_DENIED. Only populated in error |
| 187 | + * scenarios. |
| 188 | + * |
| 189 | + * @param string $errorType |
| 190 | + */ |
| 191 | + public function setErrorType($errorType) |
| 192 | + { |
| 193 | + $this->errorType = $errorType; |
| 194 | + } |
| 195 | + /** |
| 196 | + * @return string |
| 197 | + */ |
| 198 | + public function getErrorType() |
| 199 | + { |
| 200 | + return $this->errorType; |
| 201 | + } |
| 202 | + /** |
| 203 | + * The category field displays the category of the job. Can be one of |
| 204 | + * [UPDATE_BACKUP_PLAN]. |
| 205 | + * |
| 206 | + * @param string $jobCategory |
| 207 | + */ |
| 208 | + public function setJobCategory($jobCategory) |
| 209 | + { |
| 210 | + $this->jobCategory = $jobCategory; |
| 211 | + } |
| 212 | + /** |
| 213 | + * @return string |
| 214 | + */ |
| 215 | + public function getJobCategory() |
| 216 | + { |
| 217 | + return $this->jobCategory; |
| 218 | + } |
| 219 | + /** |
| 220 | + * The job_id field displays the identifier of the job being reported. |
| 221 | + * |
| 222 | + * @param string $jobId |
| 223 | + */ |
| 224 | + public function setJobId($jobId) |
| 225 | + { |
| 226 | + $this->jobId = $jobId; |
| 227 | + } |
| 228 | + /** |
| 229 | + * @return string |
| 230 | + */ |
| 231 | + public function getJobId() |
| 232 | + { |
| 233 | + return $this->jobId; |
| 234 | + } |
| 235 | + /** |
| 236 | + * The status field displays the status of the job. Can be one of |
| 237 | + * [RUNNING,SUCCESSFUL, FAILED]. |
| 238 | + * |
| 239 | + * @param string $jobStatus |
| 240 | + */ |
| 241 | + public function setJobStatus($jobStatus) |
| 242 | + { |
| 243 | + $this->jobStatus = $jobStatus; |
| 244 | + } |
| 245 | + /** |
| 246 | + * @return string |
| 247 | + */ |
| 248 | + public function getJobStatus() |
| 249 | + { |
| 250 | + return $this->jobStatus; |
| 251 | + } |
| 252 | + /** |
| 253 | + * User friendly revision id e.g. v0, v1 etc. |
| 254 | + * |
| 255 | + * @param string $newBackupPlanRevisionId |
| 256 | + */ |
| 257 | + public function setNewBackupPlanRevisionId($newBackupPlanRevisionId) |
| 258 | + { |
| 259 | + $this->newBackupPlanRevisionId = $newBackupPlanRevisionId; |
| 260 | + } |
| 261 | + /** |
| 262 | + * @return string |
| 263 | + */ |
| 264 | + public function getNewBackupPlanRevisionId() |
| 265 | + { |
| 266 | + return $this->newBackupPlanRevisionId; |
| 267 | + } |
| 268 | + /** |
| 269 | + * Full resource name for new backup plan revision |
| 270 | + * |
| 271 | + * @param string $newBackupPlanRevisionName |
| 272 | + */ |
| 273 | + public function setNewBackupPlanRevisionName($newBackupPlanRevisionName) |
| 274 | + { |
| 275 | + $this->newBackupPlanRevisionName = $newBackupPlanRevisionName; |
| 276 | + } |
| 277 | + /** |
| 278 | + * @return string |
| 279 | + */ |
| 280 | + public function getNewBackupPlanRevisionName() |
| 281 | + { |
| 282 | + return $this->newBackupPlanRevisionName; |
| 283 | + } |
| 284 | + /** |
| 285 | + * User friendly revision id e.g. v0, v1 etc. |
| 286 | + * |
| 287 | + * @param string $previousBackupPlanRevisionId |
| 288 | + */ |
| 289 | + public function setPreviousBackupPlanRevisionId($previousBackupPlanRevisionId) |
| 290 | + { |
| 291 | + $this->previousBackupPlanRevisionId = $previousBackupPlanRevisionId; |
| 292 | + } |
| 293 | + /** |
| 294 | + * @return string |
| 295 | + */ |
| 296 | + public function getPreviousBackupPlanRevisionId() |
| 297 | + { |
| 298 | + return $this->previousBackupPlanRevisionId; |
| 299 | + } |
| 300 | + /** |
| 301 | + * Full resource name for previous backup plan revision |
| 302 | + * |
| 303 | + * @param string $previousBackupPlanRevisionName |
| 304 | + */ |
| 305 | + public function setPreviousBackupPlanRevisionName($previousBackupPlanRevisionName) |
| 306 | + { |
| 307 | + $this->previousBackupPlanRevisionName = $previousBackupPlanRevisionName; |
| 308 | + } |
| 309 | + /** |
| 310 | + * @return string |
| 311 | + */ |
| 312 | + public function getPreviousBackupPlanRevisionName() |
| 313 | + { |
| 314 | + return $this->previousBackupPlanRevisionName; |
| 315 | + } |
| 316 | + /** |
| 317 | + * Previous Backup Plan rules. |
| 318 | + * |
| 319 | + * @param BackupRuleDetail[] $previousBackupRules |
| 320 | + */ |
| 321 | + public function setPreviousBackupRules($previousBackupRules) |
| 322 | + { |
| 323 | + $this->previousBackupRules = $previousBackupRules; |
| 324 | + } |
| 325 | + /** |
| 326 | + * @return BackupRuleDetail[] |
| 327 | + */ |
| 328 | + public function getPreviousBackupRules() |
| 329 | + { |
| 330 | + return $this->previousBackupRules; |
| 331 | + } |
| 332 | + /** |
| 333 | + * The resource_type field displays the type of the protected resource. |
| 334 | + * |
| 335 | + * @param string $resourceType |
| 336 | + */ |
| 337 | + public function setResourceType($resourceType) |
| 338 | + { |
| 339 | + $this->resourceType = $resourceType; |
| 340 | + } |
| 341 | + /** |
| 342 | + * @return string |
| 343 | + */ |
| 344 | + public function getResourceType() |
| 345 | + { |
| 346 | + return $this->resourceType; |
| 347 | + } |
| 348 | + /** |
| 349 | + * Revised Backup Plan rules. |
| 350 | + * |
| 351 | + * @param BackupRuleDetail[] $revisedBackupRules |
| 352 | + */ |
| 353 | + public function setRevisedBackupRules($revisedBackupRules) |
| 354 | + { |
| 355 | + $this->revisedBackupRules = $revisedBackupRules; |
| 356 | + } |
| 357 | + /** |
| 358 | + * @return BackupRuleDetail[] |
| 359 | + */ |
| 360 | + public function getRevisedBackupRules() |
| 361 | + { |
| 362 | + return $this->revisedBackupRules; |
| 363 | + } |
| 364 | + /** |
| 365 | + * Start time of the job. |
| 366 | + * |
| 367 | + * @param string $startTime |
| 368 | + */ |
| 369 | + public function setStartTime($startTime) |
| 370 | + { |
| 371 | + $this->startTime = $startTime; |
| 372 | + } |
| 373 | + /** |
| 374 | + * @return string |
| 375 | + */ |
| 376 | + public function getStartTime() |
| 377 | + { |
| 378 | + return $this->startTime; |
| 379 | + } |
| 380 | + /** |
| 381 | + * The total number of workloads affected by the job. |
| 382 | + * |
| 383 | + * @param int $workloadsAffectedCount |
| 384 | + */ |
| 385 | + public function setWorkloadsAffectedCount($workloadsAffectedCount) |
| 386 | + { |
| 387 | + $this->workloadsAffectedCount = $workloadsAffectedCount; |
| 388 | + } |
| 389 | + /** |
| 390 | + * @return int |
| 391 | + */ |
| 392 | + public function getWorkloadsAffectedCount() |
| 393 | + { |
| 394 | + return $this->workloadsAffectedCount; |
| 395 | + } |
| 396 | +} |
| 397 | + |
| 398 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 399 | +class_alias(BDRBackupPlanJobLog::class, 'Google_Service_BackupforGKE_BDRBackupPlanJobLog'); |
0 commit comments