[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\Config;
|
---|
| 19 |
|
---|
| 20 | class Deployment extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'tfErrors';
|
---|
| 23 | /**
|
---|
| 24 | * @var string[]
|
---|
| 25 | */
|
---|
| 26 | public $annotations;
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $artifactsGcsBucket;
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $createTime;
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $deleteBuild;
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $deleteLogs;
|
---|
| 43 | protected $deleteResultsType = ApplyResults::class;
|
---|
| 44 | protected $deleteResultsDataType = '';
|
---|
| 45 | /**
|
---|
| 46 | * @var string
|
---|
| 47 | */
|
---|
| 48 | public $errorCode;
|
---|
| 49 | /**
|
---|
| 50 | * @var string
|
---|
| 51 | */
|
---|
| 52 | public $errorLogs;
|
---|
| 53 | /**
|
---|
| 54 | * @var bool
|
---|
| 55 | */
|
---|
| 56 | public $importExistingResources;
|
---|
| 57 | /**
|
---|
| 58 | * @var string[]
|
---|
| 59 | */
|
---|
| 60 | public $labels;
|
---|
| 61 | /**
|
---|
| 62 | * @var string
|
---|
| 63 | */
|
---|
| 64 | public $latestRevision;
|
---|
| 65 | /**
|
---|
| 66 | * @var string
|
---|
| 67 | */
|
---|
| 68 | public $lockState;
|
---|
| 69 | /**
|
---|
| 70 | * @var string
|
---|
| 71 | */
|
---|
| 72 | public $name;
|
---|
| 73 | /**
|
---|
| 74 | * @var string
|
---|
| 75 | */
|
---|
| 76 | public $quotaValidation;
|
---|
| 77 | /**
|
---|
| 78 | * @var string
|
---|
| 79 | */
|
---|
| 80 | public $serviceAccount;
|
---|
| 81 | /**
|
---|
| 82 | * @var string
|
---|
| 83 | */
|
---|
| 84 | public $state;
|
---|
| 85 | /**
|
---|
| 86 | * @var string
|
---|
| 87 | */
|
---|
| 88 | public $stateDetail;
|
---|
| 89 | protected $terraformBlueprintType = TerraformBlueprint::class;
|
---|
| 90 | protected $terraformBlueprintDataType = '';
|
---|
| 91 | protected $tfErrorsType = TerraformError::class;
|
---|
| 92 | protected $tfErrorsDataType = 'array';
|
---|
| 93 | /**
|
---|
| 94 | * @var string
|
---|
| 95 | */
|
---|
| 96 | public $tfVersion;
|
---|
| 97 | /**
|
---|
| 98 | * @var string
|
---|
| 99 | */
|
---|
| 100 | public $tfVersionConstraint;
|
---|
| 101 | /**
|
---|
| 102 | * @var string
|
---|
| 103 | */
|
---|
| 104 | public $updateTime;
|
---|
| 105 | /**
|
---|
| 106 | * @var string
|
---|
| 107 | */
|
---|
| 108 | public $workerPool;
|
---|
| 109 |
|
---|
| 110 | /**
|
---|
| 111 | * @param string[]
|
---|
| 112 | */
|
---|
| 113 | public function setAnnotations($annotations)
|
---|
| 114 | {
|
---|
| 115 | $this->annotations = $annotations;
|
---|
| 116 | }
|
---|
| 117 | /**
|
---|
| 118 | * @return string[]
|
---|
| 119 | */
|
---|
| 120 | public function getAnnotations()
|
---|
| 121 | {
|
---|
| 122 | return $this->annotations;
|
---|
| 123 | }
|
---|
| 124 | /**
|
---|
| 125 | * @param string
|
---|
| 126 | */
|
---|
| 127 | public function setArtifactsGcsBucket($artifactsGcsBucket)
|
---|
| 128 | {
|
---|
| 129 | $this->artifactsGcsBucket = $artifactsGcsBucket;
|
---|
| 130 | }
|
---|
| 131 | /**
|
---|
| 132 | * @return string
|
---|
| 133 | */
|
---|
| 134 | public function getArtifactsGcsBucket()
|
---|
| 135 | {
|
---|
| 136 | return $this->artifactsGcsBucket;
|
---|
| 137 | }
|
---|
| 138 | /**
|
---|
| 139 | * @param string
|
---|
| 140 | */
|
---|
| 141 | public function setCreateTime($createTime)
|
---|
| 142 | {
|
---|
| 143 | $this->createTime = $createTime;
|
---|
| 144 | }
|
---|
| 145 | /**
|
---|
| 146 | * @return string
|
---|
| 147 | */
|
---|
| 148 | public function getCreateTime()
|
---|
| 149 | {
|
---|
| 150 | return $this->createTime;
|
---|
| 151 | }
|
---|
| 152 | /**
|
---|
| 153 | * @param string
|
---|
| 154 | */
|
---|
| 155 | public function setDeleteBuild($deleteBuild)
|
---|
| 156 | {
|
---|
| 157 | $this->deleteBuild = $deleteBuild;
|
---|
| 158 | }
|
---|
| 159 | /**
|
---|
| 160 | * @return string
|
---|
| 161 | */
|
---|
| 162 | public function getDeleteBuild()
|
---|
| 163 | {
|
---|
| 164 | return $this->deleteBuild;
|
---|
| 165 | }
|
---|
| 166 | /**
|
---|
| 167 | * @param string
|
---|
| 168 | */
|
---|
| 169 | public function setDeleteLogs($deleteLogs)
|
---|
| 170 | {
|
---|
| 171 | $this->deleteLogs = $deleteLogs;
|
---|
| 172 | }
|
---|
| 173 | /**
|
---|
| 174 | * @return string
|
---|
| 175 | */
|
---|
| 176 | public function getDeleteLogs()
|
---|
| 177 | {
|
---|
| 178 | return $this->deleteLogs;
|
---|
| 179 | }
|
---|
| 180 | /**
|
---|
| 181 | * @param ApplyResults
|
---|
| 182 | */
|
---|
| 183 | public function setDeleteResults(ApplyResults $deleteResults)
|
---|
| 184 | {
|
---|
| 185 | $this->deleteResults = $deleteResults;
|
---|
| 186 | }
|
---|
| 187 | /**
|
---|
| 188 | * @return ApplyResults
|
---|
| 189 | */
|
---|
| 190 | public function getDeleteResults()
|
---|
| 191 | {
|
---|
| 192 | return $this->deleteResults;
|
---|
| 193 | }
|
---|
| 194 | /**
|
---|
| 195 | * @param string
|
---|
| 196 | */
|
---|
| 197 | public function setErrorCode($errorCode)
|
---|
| 198 | {
|
---|
| 199 | $this->errorCode = $errorCode;
|
---|
| 200 | }
|
---|
| 201 | /**
|
---|
| 202 | * @return string
|
---|
| 203 | */
|
---|
| 204 | public function getErrorCode()
|
---|
| 205 | {
|
---|
| 206 | return $this->errorCode;
|
---|
| 207 | }
|
---|
| 208 | /**
|
---|
| 209 | * @param string
|
---|
| 210 | */
|
---|
| 211 | public function setErrorLogs($errorLogs)
|
---|
| 212 | {
|
---|
| 213 | $this->errorLogs = $errorLogs;
|
---|
| 214 | }
|
---|
| 215 | /**
|
---|
| 216 | * @return string
|
---|
| 217 | */
|
---|
| 218 | public function getErrorLogs()
|
---|
| 219 | {
|
---|
| 220 | return $this->errorLogs;
|
---|
| 221 | }
|
---|
| 222 | /**
|
---|
| 223 | * @param bool
|
---|
| 224 | */
|
---|
| 225 | public function setImportExistingResources($importExistingResources)
|
---|
| 226 | {
|
---|
| 227 | $this->importExistingResources = $importExistingResources;
|
---|
| 228 | }
|
---|
| 229 | /**
|
---|
| 230 | * @return bool
|
---|
| 231 | */
|
---|
| 232 | public function getImportExistingResources()
|
---|
| 233 | {
|
---|
| 234 | return $this->importExistingResources;
|
---|
| 235 | }
|
---|
| 236 | /**
|
---|
| 237 | * @param string[]
|
---|
| 238 | */
|
---|
| 239 | public function setLabels($labels)
|
---|
| 240 | {
|
---|
| 241 | $this->labels = $labels;
|
---|
| 242 | }
|
---|
| 243 | /**
|
---|
| 244 | * @return string[]
|
---|
| 245 | */
|
---|
| 246 | public function getLabels()
|
---|
| 247 | {
|
---|
| 248 | return $this->labels;
|
---|
| 249 | }
|
---|
| 250 | /**
|
---|
| 251 | * @param string
|
---|
| 252 | */
|
---|
| 253 | public function setLatestRevision($latestRevision)
|
---|
| 254 | {
|
---|
| 255 | $this->latestRevision = $latestRevision;
|
---|
| 256 | }
|
---|
| 257 | /**
|
---|
| 258 | * @return string
|
---|
| 259 | */
|
---|
| 260 | public function getLatestRevision()
|
---|
| 261 | {
|
---|
| 262 | return $this->latestRevision;
|
---|
| 263 | }
|
---|
| 264 | /**
|
---|
| 265 | * @param string
|
---|
| 266 | */
|
---|
| 267 | public function setLockState($lockState)
|
---|
| 268 | {
|
---|
| 269 | $this->lockState = $lockState;
|
---|
| 270 | }
|
---|
| 271 | /**
|
---|
| 272 | * @return string
|
---|
| 273 | */
|
---|
| 274 | public function getLockState()
|
---|
| 275 | {
|
---|
| 276 | return $this->lockState;
|
---|
| 277 | }
|
---|
| 278 | /**
|
---|
| 279 | * @param string
|
---|
| 280 | */
|
---|
| 281 | public function setName($name)
|
---|
| 282 | {
|
---|
| 283 | $this->name = $name;
|
---|
| 284 | }
|
---|
| 285 | /**
|
---|
| 286 | * @return string
|
---|
| 287 | */
|
---|
| 288 | public function getName()
|
---|
| 289 | {
|
---|
| 290 | return $this->name;
|
---|
| 291 | }
|
---|
| 292 | /**
|
---|
| 293 | * @param string
|
---|
| 294 | */
|
---|
| 295 | public function setQuotaValidation($quotaValidation)
|
---|
| 296 | {
|
---|
| 297 | $this->quotaValidation = $quotaValidation;
|
---|
| 298 | }
|
---|
| 299 | /**
|
---|
| 300 | * @return string
|
---|
| 301 | */
|
---|
| 302 | public function getQuotaValidation()
|
---|
| 303 | {
|
---|
| 304 | return $this->quotaValidation;
|
---|
| 305 | }
|
---|
| 306 | /**
|
---|
| 307 | * @param string
|
---|
| 308 | */
|
---|
| 309 | public function setServiceAccount($serviceAccount)
|
---|
| 310 | {
|
---|
| 311 | $this->serviceAccount = $serviceAccount;
|
---|
| 312 | }
|
---|
| 313 | /**
|
---|
| 314 | * @return string
|
---|
| 315 | */
|
---|
| 316 | public function getServiceAccount()
|
---|
| 317 | {
|
---|
| 318 | return $this->serviceAccount;
|
---|
| 319 | }
|
---|
| 320 | /**
|
---|
| 321 | * @param string
|
---|
| 322 | */
|
---|
| 323 | public function setState($state)
|
---|
| 324 | {
|
---|
| 325 | $this->state = $state;
|
---|
| 326 | }
|
---|
| 327 | /**
|
---|
| 328 | * @return string
|
---|
| 329 | */
|
---|
| 330 | public function getState()
|
---|
| 331 | {
|
---|
| 332 | return $this->state;
|
---|
| 333 | }
|
---|
| 334 | /**
|
---|
| 335 | * @param string
|
---|
| 336 | */
|
---|
| 337 | public function setStateDetail($stateDetail)
|
---|
| 338 | {
|
---|
| 339 | $this->stateDetail = $stateDetail;
|
---|
| 340 | }
|
---|
| 341 | /**
|
---|
| 342 | * @return string
|
---|
| 343 | */
|
---|
| 344 | public function getStateDetail()
|
---|
| 345 | {
|
---|
| 346 | return $this->stateDetail;
|
---|
| 347 | }
|
---|
| 348 | /**
|
---|
| 349 | * @param TerraformBlueprint
|
---|
| 350 | */
|
---|
| 351 | public function setTerraformBlueprint(TerraformBlueprint $terraformBlueprint)
|
---|
| 352 | {
|
---|
| 353 | $this->terraformBlueprint = $terraformBlueprint;
|
---|
| 354 | }
|
---|
| 355 | /**
|
---|
| 356 | * @return TerraformBlueprint
|
---|
| 357 | */
|
---|
| 358 | public function getTerraformBlueprint()
|
---|
| 359 | {
|
---|
| 360 | return $this->terraformBlueprint;
|
---|
| 361 | }
|
---|
| 362 | /**
|
---|
| 363 | * @param TerraformError[]
|
---|
| 364 | */
|
---|
| 365 | public function setTfErrors($tfErrors)
|
---|
| 366 | {
|
---|
| 367 | $this->tfErrors = $tfErrors;
|
---|
| 368 | }
|
---|
| 369 | /**
|
---|
| 370 | * @return TerraformError[]
|
---|
| 371 | */
|
---|
| 372 | public function getTfErrors()
|
---|
| 373 | {
|
---|
| 374 | return $this->tfErrors;
|
---|
| 375 | }
|
---|
| 376 | /**
|
---|
| 377 | * @param string
|
---|
| 378 | */
|
---|
| 379 | public function setTfVersion($tfVersion)
|
---|
| 380 | {
|
---|
| 381 | $this->tfVersion = $tfVersion;
|
---|
| 382 | }
|
---|
| 383 | /**
|
---|
| 384 | * @return string
|
---|
| 385 | */
|
---|
| 386 | public function getTfVersion()
|
---|
| 387 | {
|
---|
| 388 | return $this->tfVersion;
|
---|
| 389 | }
|
---|
| 390 | /**
|
---|
| 391 | * @param string
|
---|
| 392 | */
|
---|
| 393 | public function setTfVersionConstraint($tfVersionConstraint)
|
---|
| 394 | {
|
---|
| 395 | $this->tfVersionConstraint = $tfVersionConstraint;
|
---|
| 396 | }
|
---|
| 397 | /**
|
---|
| 398 | * @return string
|
---|
| 399 | */
|
---|
| 400 | public function getTfVersionConstraint()
|
---|
| 401 | {
|
---|
| 402 | return $this->tfVersionConstraint;
|
---|
| 403 | }
|
---|
| 404 | /**
|
---|
| 405 | * @param string
|
---|
| 406 | */
|
---|
| 407 | public function setUpdateTime($updateTime)
|
---|
| 408 | {
|
---|
| 409 | $this->updateTime = $updateTime;
|
---|
| 410 | }
|
---|
| 411 | /**
|
---|
| 412 | * @return string
|
---|
| 413 | */
|
---|
| 414 | public function getUpdateTime()
|
---|
| 415 | {
|
---|
| 416 | return $this->updateTime;
|
---|
| 417 | }
|
---|
| 418 | /**
|
---|
| 419 | * @param string
|
---|
| 420 | */
|
---|
| 421 | public function setWorkerPool($workerPool)
|
---|
| 422 | {
|
---|
| 423 | $this->workerPool = $workerPool;
|
---|
| 424 | }
|
---|
| 425 | /**
|
---|
| 426 | * @return string
|
---|
| 427 | */
|
---|
| 428 | public function getWorkerPool()
|
---|
| 429 | {
|
---|
| 430 | return $this->workerPool;
|
---|
| 431 | }
|
---|
| 432 | }
|
---|
| 433 |
|
---|
| 434 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 435 | class_alias(Deployment::class, 'Google_Service_Config_Deployment');
|
---|