[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\Dataproc;
|
---|
| 19 |
|
---|
| 20 | class Job extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'yarnApplications';
|
---|
| 23 | /**
|
---|
| 24 | * @var bool
|
---|
| 25 | */
|
---|
| 26 | public $done;
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $driverControlFilesUri;
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $driverOutputResourceUri;
|
---|
| 35 | protected $driverSchedulingConfigType = DriverSchedulingConfig::class;
|
---|
| 36 | protected $driverSchedulingConfigDataType = '';
|
---|
| 37 | protected $flinkJobType = FlinkJob::class;
|
---|
| 38 | protected $flinkJobDataType = '';
|
---|
| 39 | protected $hadoopJobType = HadoopJob::class;
|
---|
| 40 | protected $hadoopJobDataType = '';
|
---|
| 41 | protected $hiveJobType = HiveJob::class;
|
---|
| 42 | protected $hiveJobDataType = '';
|
---|
| 43 | /**
|
---|
| 44 | * @var string
|
---|
| 45 | */
|
---|
| 46 | public $jobUuid;
|
---|
| 47 | /**
|
---|
| 48 | * @var string[]
|
---|
| 49 | */
|
---|
| 50 | public $labels;
|
---|
| 51 | protected $pigJobType = PigJob::class;
|
---|
| 52 | protected $pigJobDataType = '';
|
---|
| 53 | protected $placementType = JobPlacement::class;
|
---|
| 54 | protected $placementDataType = '';
|
---|
| 55 | protected $prestoJobType = PrestoJob::class;
|
---|
| 56 | protected $prestoJobDataType = '';
|
---|
| 57 | protected $pysparkJobType = PySparkJob::class;
|
---|
| 58 | protected $pysparkJobDataType = '';
|
---|
| 59 | protected $referenceType = JobReference::class;
|
---|
| 60 | protected $referenceDataType = '';
|
---|
| 61 | protected $schedulingType = JobScheduling::class;
|
---|
| 62 | protected $schedulingDataType = '';
|
---|
| 63 | protected $sparkJobType = SparkJob::class;
|
---|
| 64 | protected $sparkJobDataType = '';
|
---|
| 65 | protected $sparkRJobType = SparkRJob::class;
|
---|
| 66 | protected $sparkRJobDataType = '';
|
---|
| 67 | protected $sparkSqlJobType = SparkSqlJob::class;
|
---|
| 68 | protected $sparkSqlJobDataType = '';
|
---|
| 69 | protected $statusType = JobStatus::class;
|
---|
| 70 | protected $statusDataType = '';
|
---|
| 71 | protected $statusHistoryType = JobStatus::class;
|
---|
| 72 | protected $statusHistoryDataType = 'array';
|
---|
| 73 | protected $trinoJobType = TrinoJob::class;
|
---|
| 74 | protected $trinoJobDataType = '';
|
---|
| 75 | protected $yarnApplicationsType = YarnApplication::class;
|
---|
| 76 | protected $yarnApplicationsDataType = 'array';
|
---|
| 77 |
|
---|
| 78 | /**
|
---|
| 79 | * @param bool
|
---|
| 80 | */
|
---|
| 81 | public function setDone($done)
|
---|
| 82 | {
|
---|
| 83 | $this->done = $done;
|
---|
| 84 | }
|
---|
| 85 | /**
|
---|
| 86 | * @return bool
|
---|
| 87 | */
|
---|
| 88 | public function getDone()
|
---|
| 89 | {
|
---|
| 90 | return $this->done;
|
---|
| 91 | }
|
---|
| 92 | /**
|
---|
| 93 | * @param string
|
---|
| 94 | */
|
---|
| 95 | public function setDriverControlFilesUri($driverControlFilesUri)
|
---|
| 96 | {
|
---|
| 97 | $this->driverControlFilesUri = $driverControlFilesUri;
|
---|
| 98 | }
|
---|
| 99 | /**
|
---|
| 100 | * @return string
|
---|
| 101 | */
|
---|
| 102 | public function getDriverControlFilesUri()
|
---|
| 103 | {
|
---|
| 104 | return $this->driverControlFilesUri;
|
---|
| 105 | }
|
---|
| 106 | /**
|
---|
| 107 | * @param string
|
---|
| 108 | */
|
---|
| 109 | public function setDriverOutputResourceUri($driverOutputResourceUri)
|
---|
| 110 | {
|
---|
| 111 | $this->driverOutputResourceUri = $driverOutputResourceUri;
|
---|
| 112 | }
|
---|
| 113 | /**
|
---|
| 114 | * @return string
|
---|
| 115 | */
|
---|
| 116 | public function getDriverOutputResourceUri()
|
---|
| 117 | {
|
---|
| 118 | return $this->driverOutputResourceUri;
|
---|
| 119 | }
|
---|
| 120 | /**
|
---|
| 121 | * @param DriverSchedulingConfig
|
---|
| 122 | */
|
---|
| 123 | public function setDriverSchedulingConfig(DriverSchedulingConfig $driverSchedulingConfig)
|
---|
| 124 | {
|
---|
| 125 | $this->driverSchedulingConfig = $driverSchedulingConfig;
|
---|
| 126 | }
|
---|
| 127 | /**
|
---|
| 128 | * @return DriverSchedulingConfig
|
---|
| 129 | */
|
---|
| 130 | public function getDriverSchedulingConfig()
|
---|
| 131 | {
|
---|
| 132 | return $this->driverSchedulingConfig;
|
---|
| 133 | }
|
---|
| 134 | /**
|
---|
| 135 | * @param FlinkJob
|
---|
| 136 | */
|
---|
| 137 | public function setFlinkJob(FlinkJob $flinkJob)
|
---|
| 138 | {
|
---|
| 139 | $this->flinkJob = $flinkJob;
|
---|
| 140 | }
|
---|
| 141 | /**
|
---|
| 142 | * @return FlinkJob
|
---|
| 143 | */
|
---|
| 144 | public function getFlinkJob()
|
---|
| 145 | {
|
---|
| 146 | return $this->flinkJob;
|
---|
| 147 | }
|
---|
| 148 | /**
|
---|
| 149 | * @param HadoopJob
|
---|
| 150 | */
|
---|
| 151 | public function setHadoopJob(HadoopJob $hadoopJob)
|
---|
| 152 | {
|
---|
| 153 | $this->hadoopJob = $hadoopJob;
|
---|
| 154 | }
|
---|
| 155 | /**
|
---|
| 156 | * @return HadoopJob
|
---|
| 157 | */
|
---|
| 158 | public function getHadoopJob()
|
---|
| 159 | {
|
---|
| 160 | return $this->hadoopJob;
|
---|
| 161 | }
|
---|
| 162 | /**
|
---|
| 163 | * @param HiveJob
|
---|
| 164 | */
|
---|
| 165 | public function setHiveJob(HiveJob $hiveJob)
|
---|
| 166 | {
|
---|
| 167 | $this->hiveJob = $hiveJob;
|
---|
| 168 | }
|
---|
| 169 | /**
|
---|
| 170 | * @return HiveJob
|
---|
| 171 | */
|
---|
| 172 | public function getHiveJob()
|
---|
| 173 | {
|
---|
| 174 | return $this->hiveJob;
|
---|
| 175 | }
|
---|
| 176 | /**
|
---|
| 177 | * @param string
|
---|
| 178 | */
|
---|
| 179 | public function setJobUuid($jobUuid)
|
---|
| 180 | {
|
---|
| 181 | $this->jobUuid = $jobUuid;
|
---|
| 182 | }
|
---|
| 183 | /**
|
---|
| 184 | * @return string
|
---|
| 185 | */
|
---|
| 186 | public function getJobUuid()
|
---|
| 187 | {
|
---|
| 188 | return $this->jobUuid;
|
---|
| 189 | }
|
---|
| 190 | /**
|
---|
| 191 | * @param string[]
|
---|
| 192 | */
|
---|
| 193 | public function setLabels($labels)
|
---|
| 194 | {
|
---|
| 195 | $this->labels = $labels;
|
---|
| 196 | }
|
---|
| 197 | /**
|
---|
| 198 | * @return string[]
|
---|
| 199 | */
|
---|
| 200 | public function getLabels()
|
---|
| 201 | {
|
---|
| 202 | return $this->labels;
|
---|
| 203 | }
|
---|
| 204 | /**
|
---|
| 205 | * @param PigJob
|
---|
| 206 | */
|
---|
| 207 | public function setPigJob(PigJob $pigJob)
|
---|
| 208 | {
|
---|
| 209 | $this->pigJob = $pigJob;
|
---|
| 210 | }
|
---|
| 211 | /**
|
---|
| 212 | * @return PigJob
|
---|
| 213 | */
|
---|
| 214 | public function getPigJob()
|
---|
| 215 | {
|
---|
| 216 | return $this->pigJob;
|
---|
| 217 | }
|
---|
| 218 | /**
|
---|
| 219 | * @param JobPlacement
|
---|
| 220 | */
|
---|
| 221 | public function setPlacement(JobPlacement $placement)
|
---|
| 222 | {
|
---|
| 223 | $this->placement = $placement;
|
---|
| 224 | }
|
---|
| 225 | /**
|
---|
| 226 | * @return JobPlacement
|
---|
| 227 | */
|
---|
| 228 | public function getPlacement()
|
---|
| 229 | {
|
---|
| 230 | return $this->placement;
|
---|
| 231 | }
|
---|
| 232 | /**
|
---|
| 233 | * @param PrestoJob
|
---|
| 234 | */
|
---|
| 235 | public function setPrestoJob(PrestoJob $prestoJob)
|
---|
| 236 | {
|
---|
| 237 | $this->prestoJob = $prestoJob;
|
---|
| 238 | }
|
---|
| 239 | /**
|
---|
| 240 | * @return PrestoJob
|
---|
| 241 | */
|
---|
| 242 | public function getPrestoJob()
|
---|
| 243 | {
|
---|
| 244 | return $this->prestoJob;
|
---|
| 245 | }
|
---|
| 246 | /**
|
---|
| 247 | * @param PySparkJob
|
---|
| 248 | */
|
---|
| 249 | public function setPysparkJob(PySparkJob $pysparkJob)
|
---|
| 250 | {
|
---|
| 251 | $this->pysparkJob = $pysparkJob;
|
---|
| 252 | }
|
---|
| 253 | /**
|
---|
| 254 | * @return PySparkJob
|
---|
| 255 | */
|
---|
| 256 | public function getPysparkJob()
|
---|
| 257 | {
|
---|
| 258 | return $this->pysparkJob;
|
---|
| 259 | }
|
---|
| 260 | /**
|
---|
| 261 | * @param JobReference
|
---|
| 262 | */
|
---|
| 263 | public function setReference(JobReference $reference)
|
---|
| 264 | {
|
---|
| 265 | $this->reference = $reference;
|
---|
| 266 | }
|
---|
| 267 | /**
|
---|
| 268 | * @return JobReference
|
---|
| 269 | */
|
---|
| 270 | public function getReference()
|
---|
| 271 | {
|
---|
| 272 | return $this->reference;
|
---|
| 273 | }
|
---|
| 274 | /**
|
---|
| 275 | * @param JobScheduling
|
---|
| 276 | */
|
---|
| 277 | public function setScheduling(JobScheduling $scheduling)
|
---|
| 278 | {
|
---|
| 279 | $this->scheduling = $scheduling;
|
---|
| 280 | }
|
---|
| 281 | /**
|
---|
| 282 | * @return JobScheduling
|
---|
| 283 | */
|
---|
| 284 | public function getScheduling()
|
---|
| 285 | {
|
---|
| 286 | return $this->scheduling;
|
---|
| 287 | }
|
---|
| 288 | /**
|
---|
| 289 | * @param SparkJob
|
---|
| 290 | */
|
---|
| 291 | public function setSparkJob(SparkJob $sparkJob)
|
---|
| 292 | {
|
---|
| 293 | $this->sparkJob = $sparkJob;
|
---|
| 294 | }
|
---|
| 295 | /**
|
---|
| 296 | * @return SparkJob
|
---|
| 297 | */
|
---|
| 298 | public function getSparkJob()
|
---|
| 299 | {
|
---|
| 300 | return $this->sparkJob;
|
---|
| 301 | }
|
---|
| 302 | /**
|
---|
| 303 | * @param SparkRJob
|
---|
| 304 | */
|
---|
| 305 | public function setSparkRJob(SparkRJob $sparkRJob)
|
---|
| 306 | {
|
---|
| 307 | $this->sparkRJob = $sparkRJob;
|
---|
| 308 | }
|
---|
| 309 | /**
|
---|
| 310 | * @return SparkRJob
|
---|
| 311 | */
|
---|
| 312 | public function getSparkRJob()
|
---|
| 313 | {
|
---|
| 314 | return $this->sparkRJob;
|
---|
| 315 | }
|
---|
| 316 | /**
|
---|
| 317 | * @param SparkSqlJob
|
---|
| 318 | */
|
---|
| 319 | public function setSparkSqlJob(SparkSqlJob $sparkSqlJob)
|
---|
| 320 | {
|
---|
| 321 | $this->sparkSqlJob = $sparkSqlJob;
|
---|
| 322 | }
|
---|
| 323 | /**
|
---|
| 324 | * @return SparkSqlJob
|
---|
| 325 | */
|
---|
| 326 | public function getSparkSqlJob()
|
---|
| 327 | {
|
---|
| 328 | return $this->sparkSqlJob;
|
---|
| 329 | }
|
---|
| 330 | /**
|
---|
| 331 | * @param JobStatus
|
---|
| 332 | */
|
---|
| 333 | public function setStatus(JobStatus $status)
|
---|
| 334 | {
|
---|
| 335 | $this->status = $status;
|
---|
| 336 | }
|
---|
| 337 | /**
|
---|
| 338 | * @return JobStatus
|
---|
| 339 | */
|
---|
| 340 | public function getStatus()
|
---|
| 341 | {
|
---|
| 342 | return $this->status;
|
---|
| 343 | }
|
---|
| 344 | /**
|
---|
| 345 | * @param JobStatus[]
|
---|
| 346 | */
|
---|
| 347 | public function setStatusHistory($statusHistory)
|
---|
| 348 | {
|
---|
| 349 | $this->statusHistory = $statusHistory;
|
---|
| 350 | }
|
---|
| 351 | /**
|
---|
| 352 | * @return JobStatus[]
|
---|
| 353 | */
|
---|
| 354 | public function getStatusHistory()
|
---|
| 355 | {
|
---|
| 356 | return $this->statusHistory;
|
---|
| 357 | }
|
---|
| 358 | /**
|
---|
| 359 | * @param TrinoJob
|
---|
| 360 | */
|
---|
| 361 | public function setTrinoJob(TrinoJob $trinoJob)
|
---|
| 362 | {
|
---|
| 363 | $this->trinoJob = $trinoJob;
|
---|
| 364 | }
|
---|
| 365 | /**
|
---|
| 366 | * @return TrinoJob
|
---|
| 367 | */
|
---|
| 368 | public function getTrinoJob()
|
---|
| 369 | {
|
---|
| 370 | return $this->trinoJob;
|
---|
| 371 | }
|
---|
| 372 | /**
|
---|
| 373 | * @param YarnApplication[]
|
---|
| 374 | */
|
---|
| 375 | public function setYarnApplications($yarnApplications)
|
---|
| 376 | {
|
---|
| 377 | $this->yarnApplications = $yarnApplications;
|
---|
| 378 | }
|
---|
| 379 | /**
|
---|
| 380 | * @return YarnApplication[]
|
---|
| 381 | */
|
---|
| 382 | public function getYarnApplications()
|
---|
| 383 | {
|
---|
| 384 | return $this->yarnApplications;
|
---|
| 385 | }
|
---|
| 386 | }
|
---|
| 387 |
|
---|
| 388 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 389 | class_alias(Job::class, 'Google_Service_Dataproc_Job');
|
---|