[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\Dataflow;
|
---|
| 19 |
|
---|
| 20 | class Job extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'tempFiles';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $clientRequestId;
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $createTime;
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $createdFromSnapshotId;
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $currentState;
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $currentStateTime;
|
---|
| 43 | protected $environmentType = Environment::class;
|
---|
| 44 | protected $environmentDataType = '';
|
---|
| 45 | protected $executionInfoType = JobExecutionInfo::class;
|
---|
| 46 | protected $executionInfoDataType = '';
|
---|
| 47 | /**
|
---|
| 48 | * @var string
|
---|
| 49 | */
|
---|
| 50 | public $id;
|
---|
| 51 | protected $jobMetadataType = JobMetadata::class;
|
---|
| 52 | protected $jobMetadataDataType = '';
|
---|
| 53 | /**
|
---|
| 54 | * @var string[]
|
---|
| 55 | */
|
---|
| 56 | public $labels;
|
---|
| 57 | /**
|
---|
| 58 | * @var string
|
---|
| 59 | */
|
---|
| 60 | public $location;
|
---|
| 61 | /**
|
---|
| 62 | * @var string
|
---|
| 63 | */
|
---|
| 64 | public $name;
|
---|
| 65 | protected $pipelineDescriptionType = PipelineDescription::class;
|
---|
| 66 | protected $pipelineDescriptionDataType = '';
|
---|
| 67 | /**
|
---|
| 68 | * @var string
|
---|
| 69 | */
|
---|
| 70 | public $projectId;
|
---|
| 71 | /**
|
---|
| 72 | * @var string
|
---|
| 73 | */
|
---|
| 74 | public $replaceJobId;
|
---|
| 75 | /**
|
---|
| 76 | * @var string
|
---|
| 77 | */
|
---|
| 78 | public $replacedByJobId;
|
---|
| 79 | /**
|
---|
| 80 | * @var string
|
---|
| 81 | */
|
---|
| 82 | public $requestedState;
|
---|
| 83 | protected $runtimeUpdatableParamsType = RuntimeUpdatableParams::class;
|
---|
| 84 | protected $runtimeUpdatableParamsDataType = '';
|
---|
| 85 | /**
|
---|
| 86 | * @var bool
|
---|
| 87 | */
|
---|
| 88 | public $satisfiesPzi;
|
---|
| 89 | /**
|
---|
| 90 | * @var bool
|
---|
| 91 | */
|
---|
| 92 | public $satisfiesPzs;
|
---|
| 93 | protected $serviceResourcesType = ServiceResources::class;
|
---|
| 94 | protected $serviceResourcesDataType = '';
|
---|
| 95 | protected $stageStatesType = ExecutionStageState::class;
|
---|
| 96 | protected $stageStatesDataType = 'array';
|
---|
| 97 | /**
|
---|
| 98 | * @var string
|
---|
| 99 | */
|
---|
| 100 | public $startTime;
|
---|
| 101 | protected $stepsType = Step::class;
|
---|
| 102 | protected $stepsDataType = 'array';
|
---|
| 103 | /**
|
---|
| 104 | * @var string
|
---|
| 105 | */
|
---|
| 106 | public $stepsLocation;
|
---|
| 107 | /**
|
---|
| 108 | * @var string[]
|
---|
| 109 | */
|
---|
| 110 | public $tempFiles;
|
---|
| 111 | /**
|
---|
| 112 | * @var string[]
|
---|
| 113 | */
|
---|
| 114 | public $transformNameMapping;
|
---|
| 115 | /**
|
---|
| 116 | * @var string
|
---|
| 117 | */
|
---|
| 118 | public $type;
|
---|
| 119 |
|
---|
| 120 | /**
|
---|
| 121 | * @param string
|
---|
| 122 | */
|
---|
| 123 | public function setClientRequestId($clientRequestId)
|
---|
| 124 | {
|
---|
| 125 | $this->clientRequestId = $clientRequestId;
|
---|
| 126 | }
|
---|
| 127 | /**
|
---|
| 128 | * @return string
|
---|
| 129 | */
|
---|
| 130 | public function getClientRequestId()
|
---|
| 131 | {
|
---|
| 132 | return $this->clientRequestId;
|
---|
| 133 | }
|
---|
| 134 | /**
|
---|
| 135 | * @param string
|
---|
| 136 | */
|
---|
| 137 | public function setCreateTime($createTime)
|
---|
| 138 | {
|
---|
| 139 | $this->createTime = $createTime;
|
---|
| 140 | }
|
---|
| 141 | /**
|
---|
| 142 | * @return string
|
---|
| 143 | */
|
---|
| 144 | public function getCreateTime()
|
---|
| 145 | {
|
---|
| 146 | return $this->createTime;
|
---|
| 147 | }
|
---|
| 148 | /**
|
---|
| 149 | * @param string
|
---|
| 150 | */
|
---|
| 151 | public function setCreatedFromSnapshotId($createdFromSnapshotId)
|
---|
| 152 | {
|
---|
| 153 | $this->createdFromSnapshotId = $createdFromSnapshotId;
|
---|
| 154 | }
|
---|
| 155 | /**
|
---|
| 156 | * @return string
|
---|
| 157 | */
|
---|
| 158 | public function getCreatedFromSnapshotId()
|
---|
| 159 | {
|
---|
| 160 | return $this->createdFromSnapshotId;
|
---|
| 161 | }
|
---|
| 162 | /**
|
---|
| 163 | * @param string
|
---|
| 164 | */
|
---|
| 165 | public function setCurrentState($currentState)
|
---|
| 166 | {
|
---|
| 167 | $this->currentState = $currentState;
|
---|
| 168 | }
|
---|
| 169 | /**
|
---|
| 170 | * @return string
|
---|
| 171 | */
|
---|
| 172 | public function getCurrentState()
|
---|
| 173 | {
|
---|
| 174 | return $this->currentState;
|
---|
| 175 | }
|
---|
| 176 | /**
|
---|
| 177 | * @param string
|
---|
| 178 | */
|
---|
| 179 | public function setCurrentStateTime($currentStateTime)
|
---|
| 180 | {
|
---|
| 181 | $this->currentStateTime = $currentStateTime;
|
---|
| 182 | }
|
---|
| 183 | /**
|
---|
| 184 | * @return string
|
---|
| 185 | */
|
---|
| 186 | public function getCurrentStateTime()
|
---|
| 187 | {
|
---|
| 188 | return $this->currentStateTime;
|
---|
| 189 | }
|
---|
| 190 | /**
|
---|
| 191 | * @param Environment
|
---|
| 192 | */
|
---|
| 193 | public function setEnvironment(Environment $environment)
|
---|
| 194 | {
|
---|
| 195 | $this->environment = $environment;
|
---|
| 196 | }
|
---|
| 197 | /**
|
---|
| 198 | * @return Environment
|
---|
| 199 | */
|
---|
| 200 | public function getEnvironment()
|
---|
| 201 | {
|
---|
| 202 | return $this->environment;
|
---|
| 203 | }
|
---|
| 204 | /**
|
---|
| 205 | * @param JobExecutionInfo
|
---|
| 206 | */
|
---|
| 207 | public function setExecutionInfo(JobExecutionInfo $executionInfo)
|
---|
| 208 | {
|
---|
| 209 | $this->executionInfo = $executionInfo;
|
---|
| 210 | }
|
---|
| 211 | /**
|
---|
| 212 | * @return JobExecutionInfo
|
---|
| 213 | */
|
---|
| 214 | public function getExecutionInfo()
|
---|
| 215 | {
|
---|
| 216 | return $this->executionInfo;
|
---|
| 217 | }
|
---|
| 218 | /**
|
---|
| 219 | * @param string
|
---|
| 220 | */
|
---|
| 221 | public function setId($id)
|
---|
| 222 | {
|
---|
| 223 | $this->id = $id;
|
---|
| 224 | }
|
---|
| 225 | /**
|
---|
| 226 | * @return string
|
---|
| 227 | */
|
---|
| 228 | public function getId()
|
---|
| 229 | {
|
---|
| 230 | return $this->id;
|
---|
| 231 | }
|
---|
| 232 | /**
|
---|
| 233 | * @param JobMetadata
|
---|
| 234 | */
|
---|
| 235 | public function setJobMetadata(JobMetadata $jobMetadata)
|
---|
| 236 | {
|
---|
| 237 | $this->jobMetadata = $jobMetadata;
|
---|
| 238 | }
|
---|
| 239 | /**
|
---|
| 240 | * @return JobMetadata
|
---|
| 241 | */
|
---|
| 242 | public function getJobMetadata()
|
---|
| 243 | {
|
---|
| 244 | return $this->jobMetadata;
|
---|
| 245 | }
|
---|
| 246 | /**
|
---|
| 247 | * @param string[]
|
---|
| 248 | */
|
---|
| 249 | public function setLabels($labels)
|
---|
| 250 | {
|
---|
| 251 | $this->labels = $labels;
|
---|
| 252 | }
|
---|
| 253 | /**
|
---|
| 254 | * @return string[]
|
---|
| 255 | */
|
---|
| 256 | public function getLabels()
|
---|
| 257 | {
|
---|
| 258 | return $this->labels;
|
---|
| 259 | }
|
---|
| 260 | /**
|
---|
| 261 | * @param string
|
---|
| 262 | */
|
---|
| 263 | public function setLocation($location)
|
---|
| 264 | {
|
---|
| 265 | $this->location = $location;
|
---|
| 266 | }
|
---|
| 267 | /**
|
---|
| 268 | * @return string
|
---|
| 269 | */
|
---|
| 270 | public function getLocation()
|
---|
| 271 | {
|
---|
| 272 | return $this->location;
|
---|
| 273 | }
|
---|
| 274 | /**
|
---|
| 275 | * @param string
|
---|
| 276 | */
|
---|
| 277 | public function setName($name)
|
---|
| 278 | {
|
---|
| 279 | $this->name = $name;
|
---|
| 280 | }
|
---|
| 281 | /**
|
---|
| 282 | * @return string
|
---|
| 283 | */
|
---|
| 284 | public function getName()
|
---|
| 285 | {
|
---|
| 286 | return $this->name;
|
---|
| 287 | }
|
---|
| 288 | /**
|
---|
| 289 | * @param PipelineDescription
|
---|
| 290 | */
|
---|
| 291 | public function setPipelineDescription(PipelineDescription $pipelineDescription)
|
---|
| 292 | {
|
---|
| 293 | $this->pipelineDescription = $pipelineDescription;
|
---|
| 294 | }
|
---|
| 295 | /**
|
---|
| 296 | * @return PipelineDescription
|
---|
| 297 | */
|
---|
| 298 | public function getPipelineDescription()
|
---|
| 299 | {
|
---|
| 300 | return $this->pipelineDescription;
|
---|
| 301 | }
|
---|
| 302 | /**
|
---|
| 303 | * @param string
|
---|
| 304 | */
|
---|
| 305 | public function setProjectId($projectId)
|
---|
| 306 | {
|
---|
| 307 | $this->projectId = $projectId;
|
---|
| 308 | }
|
---|
| 309 | /**
|
---|
| 310 | * @return string
|
---|
| 311 | */
|
---|
| 312 | public function getProjectId()
|
---|
| 313 | {
|
---|
| 314 | return $this->projectId;
|
---|
| 315 | }
|
---|
| 316 | /**
|
---|
| 317 | * @param string
|
---|
| 318 | */
|
---|
| 319 | public function setReplaceJobId($replaceJobId)
|
---|
| 320 | {
|
---|
| 321 | $this->replaceJobId = $replaceJobId;
|
---|
| 322 | }
|
---|
| 323 | /**
|
---|
| 324 | * @return string
|
---|
| 325 | */
|
---|
| 326 | public function getReplaceJobId()
|
---|
| 327 | {
|
---|
| 328 | return $this->replaceJobId;
|
---|
| 329 | }
|
---|
| 330 | /**
|
---|
| 331 | * @param string
|
---|
| 332 | */
|
---|
| 333 | public function setReplacedByJobId($replacedByJobId)
|
---|
| 334 | {
|
---|
| 335 | $this->replacedByJobId = $replacedByJobId;
|
---|
| 336 | }
|
---|
| 337 | /**
|
---|
| 338 | * @return string
|
---|
| 339 | */
|
---|
| 340 | public function getReplacedByJobId()
|
---|
| 341 | {
|
---|
| 342 | return $this->replacedByJobId;
|
---|
| 343 | }
|
---|
| 344 | /**
|
---|
| 345 | * @param string
|
---|
| 346 | */
|
---|
| 347 | public function setRequestedState($requestedState)
|
---|
| 348 | {
|
---|
| 349 | $this->requestedState = $requestedState;
|
---|
| 350 | }
|
---|
| 351 | /**
|
---|
| 352 | * @return string
|
---|
| 353 | */
|
---|
| 354 | public function getRequestedState()
|
---|
| 355 | {
|
---|
| 356 | return $this->requestedState;
|
---|
| 357 | }
|
---|
| 358 | /**
|
---|
| 359 | * @param RuntimeUpdatableParams
|
---|
| 360 | */
|
---|
| 361 | public function setRuntimeUpdatableParams(RuntimeUpdatableParams $runtimeUpdatableParams)
|
---|
| 362 | {
|
---|
| 363 | $this->runtimeUpdatableParams = $runtimeUpdatableParams;
|
---|
| 364 | }
|
---|
| 365 | /**
|
---|
| 366 | * @return RuntimeUpdatableParams
|
---|
| 367 | */
|
---|
| 368 | public function getRuntimeUpdatableParams()
|
---|
| 369 | {
|
---|
| 370 | return $this->runtimeUpdatableParams;
|
---|
| 371 | }
|
---|
| 372 | /**
|
---|
| 373 | * @param bool
|
---|
| 374 | */
|
---|
| 375 | public function setSatisfiesPzi($satisfiesPzi)
|
---|
| 376 | {
|
---|
| 377 | $this->satisfiesPzi = $satisfiesPzi;
|
---|
| 378 | }
|
---|
| 379 | /**
|
---|
| 380 | * @return bool
|
---|
| 381 | */
|
---|
| 382 | public function getSatisfiesPzi()
|
---|
| 383 | {
|
---|
| 384 | return $this->satisfiesPzi;
|
---|
| 385 | }
|
---|
| 386 | /**
|
---|
| 387 | * @param bool
|
---|
| 388 | */
|
---|
| 389 | public function setSatisfiesPzs($satisfiesPzs)
|
---|
| 390 | {
|
---|
| 391 | $this->satisfiesPzs = $satisfiesPzs;
|
---|
| 392 | }
|
---|
| 393 | /**
|
---|
| 394 | * @return bool
|
---|
| 395 | */
|
---|
| 396 | public function getSatisfiesPzs()
|
---|
| 397 | {
|
---|
| 398 | return $this->satisfiesPzs;
|
---|
| 399 | }
|
---|
| 400 | /**
|
---|
| 401 | * @param ServiceResources
|
---|
| 402 | */
|
---|
| 403 | public function setServiceResources(ServiceResources $serviceResources)
|
---|
| 404 | {
|
---|
| 405 | $this->serviceResources = $serviceResources;
|
---|
| 406 | }
|
---|
| 407 | /**
|
---|
| 408 | * @return ServiceResources
|
---|
| 409 | */
|
---|
| 410 | public function getServiceResources()
|
---|
| 411 | {
|
---|
| 412 | return $this->serviceResources;
|
---|
| 413 | }
|
---|
| 414 | /**
|
---|
| 415 | * @param ExecutionStageState[]
|
---|
| 416 | */
|
---|
| 417 | public function setStageStates($stageStates)
|
---|
| 418 | {
|
---|
| 419 | $this->stageStates = $stageStates;
|
---|
| 420 | }
|
---|
| 421 | /**
|
---|
| 422 | * @return ExecutionStageState[]
|
---|
| 423 | */
|
---|
| 424 | public function getStageStates()
|
---|
| 425 | {
|
---|
| 426 | return $this->stageStates;
|
---|
| 427 | }
|
---|
| 428 | /**
|
---|
| 429 | * @param string
|
---|
| 430 | */
|
---|
| 431 | public function setStartTime($startTime)
|
---|
| 432 | {
|
---|
| 433 | $this->startTime = $startTime;
|
---|
| 434 | }
|
---|
| 435 | /**
|
---|
| 436 | * @return string
|
---|
| 437 | */
|
---|
| 438 | public function getStartTime()
|
---|
| 439 | {
|
---|
| 440 | return $this->startTime;
|
---|
| 441 | }
|
---|
| 442 | /**
|
---|
| 443 | * @param Step[]
|
---|
| 444 | */
|
---|
| 445 | public function setSteps($steps)
|
---|
| 446 | {
|
---|
| 447 | $this->steps = $steps;
|
---|
| 448 | }
|
---|
| 449 | /**
|
---|
| 450 | * @return Step[]
|
---|
| 451 | */
|
---|
| 452 | public function getSteps()
|
---|
| 453 | {
|
---|
| 454 | return $this->steps;
|
---|
| 455 | }
|
---|
| 456 | /**
|
---|
| 457 | * @param string
|
---|
| 458 | */
|
---|
| 459 | public function setStepsLocation($stepsLocation)
|
---|
| 460 | {
|
---|
| 461 | $this->stepsLocation = $stepsLocation;
|
---|
| 462 | }
|
---|
| 463 | /**
|
---|
| 464 | * @return string
|
---|
| 465 | */
|
---|
| 466 | public function getStepsLocation()
|
---|
| 467 | {
|
---|
| 468 | return $this->stepsLocation;
|
---|
| 469 | }
|
---|
| 470 | /**
|
---|
| 471 | * @param string[]
|
---|
| 472 | */
|
---|
| 473 | public function setTempFiles($tempFiles)
|
---|
| 474 | {
|
---|
| 475 | $this->tempFiles = $tempFiles;
|
---|
| 476 | }
|
---|
| 477 | /**
|
---|
| 478 | * @return string[]
|
---|
| 479 | */
|
---|
| 480 | public function getTempFiles()
|
---|
| 481 | {
|
---|
| 482 | return $this->tempFiles;
|
---|
| 483 | }
|
---|
| 484 | /**
|
---|
| 485 | * @param string[]
|
---|
| 486 | */
|
---|
| 487 | public function setTransformNameMapping($transformNameMapping)
|
---|
| 488 | {
|
---|
| 489 | $this->transformNameMapping = $transformNameMapping;
|
---|
| 490 | }
|
---|
| 491 | /**
|
---|
| 492 | * @return string[]
|
---|
| 493 | */
|
---|
| 494 | public function getTransformNameMapping()
|
---|
| 495 | {
|
---|
| 496 | return $this->transformNameMapping;
|
---|
| 497 | }
|
---|
| 498 | /**
|
---|
| 499 | * @param string
|
---|
| 500 | */
|
---|
| 501 | public function setType($type)
|
---|
| 502 | {
|
---|
| 503 | $this->type = $type;
|
---|
| 504 | }
|
---|
| 505 | /**
|
---|
| 506 | * @return string
|
---|
| 507 | */
|
---|
| 508 | public function getType()
|
---|
| 509 | {
|
---|
| 510 | return $this->type;
|
---|
| 511 | }
|
---|
| 512 | }
|
---|
| 513 |
|
---|
| 514 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 515 | class_alias(Job::class, 'Google_Service_Dataflow_Job');
|
---|