[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\CloudBuild;
|
---|
| 19 |
|
---|
| 20 | class Build extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'warnings';
|
---|
| 23 | protected $approvalType = BuildApproval::class;
|
---|
| 24 | protected $approvalDataType = '';
|
---|
| 25 | protected $artifactsType = Artifacts::class;
|
---|
| 26 | protected $artifactsDataType = '';
|
---|
| 27 | protected $availableSecretsType = Secrets::class;
|
---|
| 28 | protected $availableSecretsDataType = '';
|
---|
| 29 | /**
|
---|
| 30 | * @var string
|
---|
| 31 | */
|
---|
| 32 | public $buildTriggerId;
|
---|
| 33 | /**
|
---|
| 34 | * @var string
|
---|
| 35 | */
|
---|
| 36 | public $createTime;
|
---|
| 37 | protected $failureInfoType = FailureInfo::class;
|
---|
| 38 | protected $failureInfoDataType = '';
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $finishTime;
|
---|
| 43 | /**
|
---|
| 44 | * @var string
|
---|
| 45 | */
|
---|
| 46 | public $id;
|
---|
| 47 | /**
|
---|
| 48 | * @var string[]
|
---|
| 49 | */
|
---|
| 50 | public $images;
|
---|
| 51 | /**
|
---|
| 52 | * @var string
|
---|
| 53 | */
|
---|
| 54 | public $logUrl;
|
---|
| 55 | /**
|
---|
| 56 | * @var string
|
---|
| 57 | */
|
---|
| 58 | public $logsBucket;
|
---|
| 59 | /**
|
---|
| 60 | * @var string
|
---|
| 61 | */
|
---|
| 62 | public $name;
|
---|
| 63 | protected $optionsType = BuildOptions::class;
|
---|
| 64 | protected $optionsDataType = '';
|
---|
| 65 | /**
|
---|
| 66 | * @var string
|
---|
| 67 | */
|
---|
| 68 | public $projectId;
|
---|
| 69 | /**
|
---|
| 70 | * @var string
|
---|
| 71 | */
|
---|
| 72 | public $queueTtl;
|
---|
| 73 | protected $resultsType = Results::class;
|
---|
| 74 | protected $resultsDataType = '';
|
---|
| 75 | protected $secretsType = Secret::class;
|
---|
| 76 | protected $secretsDataType = 'array';
|
---|
| 77 | /**
|
---|
| 78 | * @var string
|
---|
| 79 | */
|
---|
| 80 | public $serviceAccount;
|
---|
| 81 | protected $sourceType = Source::class;
|
---|
| 82 | protected $sourceDataType = '';
|
---|
| 83 | protected $sourceProvenanceType = SourceProvenance::class;
|
---|
| 84 | protected $sourceProvenanceDataType = '';
|
---|
| 85 | /**
|
---|
| 86 | * @var string
|
---|
| 87 | */
|
---|
| 88 | public $startTime;
|
---|
| 89 | /**
|
---|
| 90 | * @var string
|
---|
| 91 | */
|
---|
| 92 | public $status;
|
---|
| 93 | /**
|
---|
| 94 | * @var string
|
---|
| 95 | */
|
---|
| 96 | public $statusDetail;
|
---|
| 97 | protected $stepsType = BuildStep::class;
|
---|
| 98 | protected $stepsDataType = 'array';
|
---|
| 99 | /**
|
---|
| 100 | * @var string[]
|
---|
| 101 | */
|
---|
| 102 | public $substitutions;
|
---|
| 103 | /**
|
---|
| 104 | * @var string[]
|
---|
| 105 | */
|
---|
| 106 | public $tags;
|
---|
| 107 | /**
|
---|
| 108 | * @var string
|
---|
| 109 | */
|
---|
| 110 | public $timeout;
|
---|
| 111 | protected $timingType = TimeSpan::class;
|
---|
| 112 | protected $timingDataType = 'map';
|
---|
| 113 | protected $warningsType = Warning::class;
|
---|
| 114 | protected $warningsDataType = 'array';
|
---|
| 115 |
|
---|
| 116 | /**
|
---|
| 117 | * @param BuildApproval
|
---|
| 118 | */
|
---|
| 119 | public function setApproval(BuildApproval $approval)
|
---|
| 120 | {
|
---|
| 121 | $this->approval = $approval;
|
---|
| 122 | }
|
---|
| 123 | /**
|
---|
| 124 | * @return BuildApproval
|
---|
| 125 | */
|
---|
| 126 | public function getApproval()
|
---|
| 127 | {
|
---|
| 128 | return $this->approval;
|
---|
| 129 | }
|
---|
| 130 | /**
|
---|
| 131 | * @param Artifacts
|
---|
| 132 | */
|
---|
| 133 | public function setArtifacts(Artifacts $artifacts)
|
---|
| 134 | {
|
---|
| 135 | $this->artifacts = $artifacts;
|
---|
| 136 | }
|
---|
| 137 | /**
|
---|
| 138 | * @return Artifacts
|
---|
| 139 | */
|
---|
| 140 | public function getArtifacts()
|
---|
| 141 | {
|
---|
| 142 | return $this->artifacts;
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * @param Secrets
|
---|
| 146 | */
|
---|
| 147 | public function setAvailableSecrets(Secrets $availableSecrets)
|
---|
| 148 | {
|
---|
| 149 | $this->availableSecrets = $availableSecrets;
|
---|
| 150 | }
|
---|
| 151 | /**
|
---|
| 152 | * @return Secrets
|
---|
| 153 | */
|
---|
| 154 | public function getAvailableSecrets()
|
---|
| 155 | {
|
---|
| 156 | return $this->availableSecrets;
|
---|
| 157 | }
|
---|
| 158 | /**
|
---|
| 159 | * @param string
|
---|
| 160 | */
|
---|
| 161 | public function setBuildTriggerId($buildTriggerId)
|
---|
| 162 | {
|
---|
| 163 | $this->buildTriggerId = $buildTriggerId;
|
---|
| 164 | }
|
---|
| 165 | /**
|
---|
| 166 | * @return string
|
---|
| 167 | */
|
---|
| 168 | public function getBuildTriggerId()
|
---|
| 169 | {
|
---|
| 170 | return $this->buildTriggerId;
|
---|
| 171 | }
|
---|
| 172 | /**
|
---|
| 173 | * @param string
|
---|
| 174 | */
|
---|
| 175 | public function setCreateTime($createTime)
|
---|
| 176 | {
|
---|
| 177 | $this->createTime = $createTime;
|
---|
| 178 | }
|
---|
| 179 | /**
|
---|
| 180 | * @return string
|
---|
| 181 | */
|
---|
| 182 | public function getCreateTime()
|
---|
| 183 | {
|
---|
| 184 | return $this->createTime;
|
---|
| 185 | }
|
---|
| 186 | /**
|
---|
| 187 | * @param FailureInfo
|
---|
| 188 | */
|
---|
| 189 | public function setFailureInfo(FailureInfo $failureInfo)
|
---|
| 190 | {
|
---|
| 191 | $this->failureInfo = $failureInfo;
|
---|
| 192 | }
|
---|
| 193 | /**
|
---|
| 194 | * @return FailureInfo
|
---|
| 195 | */
|
---|
| 196 | public function getFailureInfo()
|
---|
| 197 | {
|
---|
| 198 | return $this->failureInfo;
|
---|
| 199 | }
|
---|
| 200 | /**
|
---|
| 201 | * @param string
|
---|
| 202 | */
|
---|
| 203 | public function setFinishTime($finishTime)
|
---|
| 204 | {
|
---|
| 205 | $this->finishTime = $finishTime;
|
---|
| 206 | }
|
---|
| 207 | /**
|
---|
| 208 | * @return string
|
---|
| 209 | */
|
---|
| 210 | public function getFinishTime()
|
---|
| 211 | {
|
---|
| 212 | return $this->finishTime;
|
---|
| 213 | }
|
---|
| 214 | /**
|
---|
| 215 | * @param string
|
---|
| 216 | */
|
---|
| 217 | public function setId($id)
|
---|
| 218 | {
|
---|
| 219 | $this->id = $id;
|
---|
| 220 | }
|
---|
| 221 | /**
|
---|
| 222 | * @return string
|
---|
| 223 | */
|
---|
| 224 | public function getId()
|
---|
| 225 | {
|
---|
| 226 | return $this->id;
|
---|
| 227 | }
|
---|
| 228 | /**
|
---|
| 229 | * @param string[]
|
---|
| 230 | */
|
---|
| 231 | public function setImages($images)
|
---|
| 232 | {
|
---|
| 233 | $this->images = $images;
|
---|
| 234 | }
|
---|
| 235 | /**
|
---|
| 236 | * @return string[]
|
---|
| 237 | */
|
---|
| 238 | public function getImages()
|
---|
| 239 | {
|
---|
| 240 | return $this->images;
|
---|
| 241 | }
|
---|
| 242 | /**
|
---|
| 243 | * @param string
|
---|
| 244 | */
|
---|
| 245 | public function setLogUrl($logUrl)
|
---|
| 246 | {
|
---|
| 247 | $this->logUrl = $logUrl;
|
---|
| 248 | }
|
---|
| 249 | /**
|
---|
| 250 | * @return string
|
---|
| 251 | */
|
---|
| 252 | public function getLogUrl()
|
---|
| 253 | {
|
---|
| 254 | return $this->logUrl;
|
---|
| 255 | }
|
---|
| 256 | /**
|
---|
| 257 | * @param string
|
---|
| 258 | */
|
---|
| 259 | public function setLogsBucket($logsBucket)
|
---|
| 260 | {
|
---|
| 261 | $this->logsBucket = $logsBucket;
|
---|
| 262 | }
|
---|
| 263 | /**
|
---|
| 264 | * @return string
|
---|
| 265 | */
|
---|
| 266 | public function getLogsBucket()
|
---|
| 267 | {
|
---|
| 268 | return $this->logsBucket;
|
---|
| 269 | }
|
---|
| 270 | /**
|
---|
| 271 | * @param string
|
---|
| 272 | */
|
---|
| 273 | public function setName($name)
|
---|
| 274 | {
|
---|
| 275 | $this->name = $name;
|
---|
| 276 | }
|
---|
| 277 | /**
|
---|
| 278 | * @return string
|
---|
| 279 | */
|
---|
| 280 | public function getName()
|
---|
| 281 | {
|
---|
| 282 | return $this->name;
|
---|
| 283 | }
|
---|
| 284 | /**
|
---|
| 285 | * @param BuildOptions
|
---|
| 286 | */
|
---|
| 287 | public function setOptions(BuildOptions $options)
|
---|
| 288 | {
|
---|
| 289 | $this->options = $options;
|
---|
| 290 | }
|
---|
| 291 | /**
|
---|
| 292 | * @return BuildOptions
|
---|
| 293 | */
|
---|
| 294 | public function getOptions()
|
---|
| 295 | {
|
---|
| 296 | return $this->options;
|
---|
| 297 | }
|
---|
| 298 | /**
|
---|
| 299 | * @param string
|
---|
| 300 | */
|
---|
| 301 | public function setProjectId($projectId)
|
---|
| 302 | {
|
---|
| 303 | $this->projectId = $projectId;
|
---|
| 304 | }
|
---|
| 305 | /**
|
---|
| 306 | * @return string
|
---|
| 307 | */
|
---|
| 308 | public function getProjectId()
|
---|
| 309 | {
|
---|
| 310 | return $this->projectId;
|
---|
| 311 | }
|
---|
| 312 | /**
|
---|
| 313 | * @param string
|
---|
| 314 | */
|
---|
| 315 | public function setQueueTtl($queueTtl)
|
---|
| 316 | {
|
---|
| 317 | $this->queueTtl = $queueTtl;
|
---|
| 318 | }
|
---|
| 319 | /**
|
---|
| 320 | * @return string
|
---|
| 321 | */
|
---|
| 322 | public function getQueueTtl()
|
---|
| 323 | {
|
---|
| 324 | return $this->queueTtl;
|
---|
| 325 | }
|
---|
| 326 | /**
|
---|
| 327 | * @param Results
|
---|
| 328 | */
|
---|
| 329 | public function setResults(Results $results)
|
---|
| 330 | {
|
---|
| 331 | $this->results = $results;
|
---|
| 332 | }
|
---|
| 333 | /**
|
---|
| 334 | * @return Results
|
---|
| 335 | */
|
---|
| 336 | public function getResults()
|
---|
| 337 | {
|
---|
| 338 | return $this->results;
|
---|
| 339 | }
|
---|
| 340 | /**
|
---|
| 341 | * @param Secret[]
|
---|
| 342 | */
|
---|
| 343 | public function setSecrets($secrets)
|
---|
| 344 | {
|
---|
| 345 | $this->secrets = $secrets;
|
---|
| 346 | }
|
---|
| 347 | /**
|
---|
| 348 | * @return Secret[]
|
---|
| 349 | */
|
---|
| 350 | public function getSecrets()
|
---|
| 351 | {
|
---|
| 352 | return $this->secrets;
|
---|
| 353 | }
|
---|
| 354 | /**
|
---|
| 355 | * @param string
|
---|
| 356 | */
|
---|
| 357 | public function setServiceAccount($serviceAccount)
|
---|
| 358 | {
|
---|
| 359 | $this->serviceAccount = $serviceAccount;
|
---|
| 360 | }
|
---|
| 361 | /**
|
---|
| 362 | * @return string
|
---|
| 363 | */
|
---|
| 364 | public function getServiceAccount()
|
---|
| 365 | {
|
---|
| 366 | return $this->serviceAccount;
|
---|
| 367 | }
|
---|
| 368 | /**
|
---|
| 369 | * @param Source
|
---|
| 370 | */
|
---|
| 371 | public function setSource(Source $source)
|
---|
| 372 | {
|
---|
| 373 | $this->source = $source;
|
---|
| 374 | }
|
---|
| 375 | /**
|
---|
| 376 | * @return Source
|
---|
| 377 | */
|
---|
| 378 | public function getSource()
|
---|
| 379 | {
|
---|
| 380 | return $this->source;
|
---|
| 381 | }
|
---|
| 382 | /**
|
---|
| 383 | * @param SourceProvenance
|
---|
| 384 | */
|
---|
| 385 | public function setSourceProvenance(SourceProvenance $sourceProvenance)
|
---|
| 386 | {
|
---|
| 387 | $this->sourceProvenance = $sourceProvenance;
|
---|
| 388 | }
|
---|
| 389 | /**
|
---|
| 390 | * @return SourceProvenance
|
---|
| 391 | */
|
---|
| 392 | public function getSourceProvenance()
|
---|
| 393 | {
|
---|
| 394 | return $this->sourceProvenance;
|
---|
| 395 | }
|
---|
| 396 | /**
|
---|
| 397 | * @param string
|
---|
| 398 | */
|
---|
| 399 | public function setStartTime($startTime)
|
---|
| 400 | {
|
---|
| 401 | $this->startTime = $startTime;
|
---|
| 402 | }
|
---|
| 403 | /**
|
---|
| 404 | * @return string
|
---|
| 405 | */
|
---|
| 406 | public function getStartTime()
|
---|
| 407 | {
|
---|
| 408 | return $this->startTime;
|
---|
| 409 | }
|
---|
| 410 | /**
|
---|
| 411 | * @param string
|
---|
| 412 | */
|
---|
| 413 | public function setStatus($status)
|
---|
| 414 | {
|
---|
| 415 | $this->status = $status;
|
---|
| 416 | }
|
---|
| 417 | /**
|
---|
| 418 | * @return string
|
---|
| 419 | */
|
---|
| 420 | public function getStatus()
|
---|
| 421 | {
|
---|
| 422 | return $this->status;
|
---|
| 423 | }
|
---|
| 424 | /**
|
---|
| 425 | * @param string
|
---|
| 426 | */
|
---|
| 427 | public function setStatusDetail($statusDetail)
|
---|
| 428 | {
|
---|
| 429 | $this->statusDetail = $statusDetail;
|
---|
| 430 | }
|
---|
| 431 | /**
|
---|
| 432 | * @return string
|
---|
| 433 | */
|
---|
| 434 | public function getStatusDetail()
|
---|
| 435 | {
|
---|
| 436 | return $this->statusDetail;
|
---|
| 437 | }
|
---|
| 438 | /**
|
---|
| 439 | * @param BuildStep[]
|
---|
| 440 | */
|
---|
| 441 | public function setSteps($steps)
|
---|
| 442 | {
|
---|
| 443 | $this->steps = $steps;
|
---|
| 444 | }
|
---|
| 445 | /**
|
---|
| 446 | * @return BuildStep[]
|
---|
| 447 | */
|
---|
| 448 | public function getSteps()
|
---|
| 449 | {
|
---|
| 450 | return $this->steps;
|
---|
| 451 | }
|
---|
| 452 | /**
|
---|
| 453 | * @param string[]
|
---|
| 454 | */
|
---|
| 455 | public function setSubstitutions($substitutions)
|
---|
| 456 | {
|
---|
| 457 | $this->substitutions = $substitutions;
|
---|
| 458 | }
|
---|
| 459 | /**
|
---|
| 460 | * @return string[]
|
---|
| 461 | */
|
---|
| 462 | public function getSubstitutions()
|
---|
| 463 | {
|
---|
| 464 | return $this->substitutions;
|
---|
| 465 | }
|
---|
| 466 | /**
|
---|
| 467 | * @param string[]
|
---|
| 468 | */
|
---|
| 469 | public function setTags($tags)
|
---|
| 470 | {
|
---|
| 471 | $this->tags = $tags;
|
---|
| 472 | }
|
---|
| 473 | /**
|
---|
| 474 | * @return string[]
|
---|
| 475 | */
|
---|
| 476 | public function getTags()
|
---|
| 477 | {
|
---|
| 478 | return $this->tags;
|
---|
| 479 | }
|
---|
| 480 | /**
|
---|
| 481 | * @param string
|
---|
| 482 | */
|
---|
| 483 | public function setTimeout($timeout)
|
---|
| 484 | {
|
---|
| 485 | $this->timeout = $timeout;
|
---|
| 486 | }
|
---|
| 487 | /**
|
---|
| 488 | * @return string
|
---|
| 489 | */
|
---|
| 490 | public function getTimeout()
|
---|
| 491 | {
|
---|
| 492 | return $this->timeout;
|
---|
| 493 | }
|
---|
| 494 | /**
|
---|
| 495 | * @param TimeSpan[]
|
---|
| 496 | */
|
---|
| 497 | public function setTiming($timing)
|
---|
| 498 | {
|
---|
| 499 | $this->timing = $timing;
|
---|
| 500 | }
|
---|
| 501 | /**
|
---|
| 502 | * @return TimeSpan[]
|
---|
| 503 | */
|
---|
| 504 | public function getTiming()
|
---|
| 505 | {
|
---|
| 506 | return $this->timing;
|
---|
| 507 | }
|
---|
| 508 | /**
|
---|
| 509 | * @param Warning[]
|
---|
| 510 | */
|
---|
| 511 | public function setWarnings($warnings)
|
---|
| 512 | {
|
---|
| 513 | $this->warnings = $warnings;
|
---|
| 514 | }
|
---|
| 515 | /**
|
---|
| 516 | * @return Warning[]
|
---|
| 517 | */
|
---|
| 518 | public function getWarnings()
|
---|
| 519 | {
|
---|
| 520 | return $this->warnings;
|
---|
| 521 | }
|
---|
| 522 | }
|
---|
| 523 |
|
---|
| 524 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 525 | class_alias(Build::class, 'Google_Service_CloudBuild_Build');
|
---|