| 1 | <?php |
||
| 12 | class Job extends LazyResource |
||
| 13 | { |
||
| 14 | /** @var string */ |
||
| 15 | public $job_id; |
||
| 16 | |||
| 17 | /** @var JobInstances */ |
||
| 18 | public $instances; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Job constructor. |
||
| 22 | * |
||
| 23 | * @param Client $client |
||
| 24 | * @param string $job_id |
||
| 25 | */ |
||
| 26 | public function __construct(Client $client, $job_id) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Submit the job for running |
||
| 35 | * |
||
| 36 | * @return string The API response body |
||
| 37 | */ |
||
| 38 | public function submit() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Check if we have the full representation of our data object. |
||
| 45 | * |
||
| 46 | * @param \stdClass $data |
||
| 47 | * |
||
| 48 | * @return bool |
||
| 49 | */ |
||
| 50 | protected function isInitialized($data) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Generate the base URL for this resource. |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | protected function urlBase() |
||
| 64 | } |
||
| 65 |