diff --git a/src/eCloud/Client.php b/src/eCloud/Client.php index c53145cb..93bcf611 100644 --- a/src/eCloud/Client.php +++ b/src/eCloud/Client.php @@ -391,4 +391,12 @@ public function vpnGatewaySpecifications() { return (new VpnGatewaySpecificationClient($this->httpClient))->auth($this->token); } + + /** + * @return BaseClient + */ + public function vpnGateways() + { + return (new VpnGatewayClient($this->httpClient))->auth($this->token); + } } diff --git a/src/eCloud/Entities/VpnGateway.php b/src/eCloud/Entities/VpnGateway.php new file mode 100644 index 00000000..32cc8c9f --- /dev/null +++ b/src/eCloud/Entities/VpnGateway.php @@ -0,0 +1,34 @@ + 'id', + 'name' => 'name', + 'availability_zone_id' => 'availabilityZoneId', + 'router_id' => 'routerId', + 'network_id' => 'networkId', + 'specification_id' => 'specificationId', + 'instance_id' => 'instanceId', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt', + ]; +} diff --git a/src/eCloud/VpnGatewayClient.php b/src/eCloud/VpnGatewayClient.php new file mode 100644 index 00000000..08b683a5 --- /dev/null +++ b/src/eCloud/VpnGatewayClient.php @@ -0,0 +1,26 @@ +apiToFriendly($data, VpnGateway::$entityMap) + ); + } +}