diff --git a/src/eCloud/Client.php b/src/eCloud/Client.php index a2d0e0bc..b1dd9d3d 100644 --- a/src/eCloud/Client.php +++ b/src/eCloud/Client.php @@ -415,4 +415,12 @@ public function billingHistory() { return (new BillingHistoryClient($this->httpClient))->auth($this->token); } + + /** + * @return BaseClient + */ + public function instanceSoftware() + { + return (new InstanceSoftwareClient($this->httpClient))->auth($this->token); + } } diff --git a/src/eCloud/Entities/InstanceSoftware.php b/src/eCloud/Entities/InstanceSoftware.php new file mode 100644 index 00000000..69616f5a --- /dev/null +++ b/src/eCloud/Entities/InstanceSoftware.php @@ -0,0 +1,31 @@ + 'id', + 'name' => 'name', + 'instance_id' => 'instanceId', + 'software_id' => 'softwareId', + 'sync' => 'sync', + 'task' => 'task', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt', + ]; +} diff --git a/src/eCloud/InstanceSoftwareClient.php b/src/eCloud/InstanceSoftwareClient.php new file mode 100644 index 00000000..136f05d1 --- /dev/null +++ b/src/eCloud/InstanceSoftwareClient.php @@ -0,0 +1,26 @@ +apiToFriendly($data, $this->getEntityMap()) + ); + } +}