| @@ 63-69 (lines=7) @@ | ||
| 60 | $this->execute($this->api->deleteImage(), $this->getAttrs(['id'])); |
|
| 61 | } |
|
| 62 | ||
| 63 | public function addTags(array $userOptions) |
|
| 64 | { |
|
| 65 | $options = array_merge($this->getAttrs(['id']), $userOptions); |
|
| 66 | $response = $this->execute($this->api->postImageTag(), $options); |
|
| 67 | ||
| 68 | return $this->populateFromResponse($response); |
|
| 69 | } |
|
| 70 | ||
| 71 | public function removeTags(array $userOptions) |
|
| 72 | { |
|
| @@ 71-77 (lines=7) @@ | ||
| 68 | return $this->populateFromResponse($response); |
|
| 69 | } |
|
| 70 | ||
| 71 | public function removeTags(array $userOptions) |
|
| 72 | { |
|
| 73 | $options = array_merge($this->getAttrs(['id']), $userOptions); |
|
| 74 | $response = $this->execute($this->api->unPostImageTag(), $options); |
|
| 75 | ||
| 76 | return $this->populateFromResponse($response); |
|
| 77 | } |
|
| 78 | } |
|
| 79 | ||
| @@ 40-48 (lines=9) @@ | ||
| 37 | $this->populateFromResponse($response); |
|
| 38 | } |
|
| 39 | ||
| 40 | public function create(array $userOptions): Creatable |
|
| 41 | { |
|
| 42 | $options = array_merge($userOptions, [ |
|
| 43 | 'contentType' => 'application/octet-stream', |
|
| 44 | ]); |
|
| 45 | $response = $this->execute($this->api->putJobBinaryInternal(), $options); |
|
| 46 | ||
| 47 | return $this->populateFromResponse($response); |
|
| 48 | } |
|
| 49 | ||
| 50 | public function delete() |
|
| 51 | { |
|