Skip to content

Commit

Permalink
removed files from wrong branch
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjiHartley committed Jan 27, 2020
1 parent ed6bbb9 commit 7eac316
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
27 changes: 0 additions & 27 deletions src/DDoSX/DomainClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use UKFast\SDK\Client as BaseClient;
use UKFast\SDK\DDoSX\Entities\Domain;
use UKFast\SDK\DDoSX\Entities\Ip;
use UKFast\SDK\SelfResponse;

class DomainClient extends BaseClient
Expand Down Expand Up @@ -68,32 +67,6 @@ public function create(Domain $domain)
});
}

/**
* @param $domainName
* @return |null
*/
public function deploy($domainName)
{
$this->post('v1/domains/' . $domainName . '/deploy');

return null;
}

/**
* @param $domainName
* @return Ip
*/
public function getIpByDomainName($domainName)
{
$response = $this->request("GET", 'v1/domains/' . $domainName . '/ip');
$body = $this->decodeJson($response->getBody()->getContents());

return new Ip([
'ipv4Address' => $body->data->ipv4_address,
'ipv6Address' => $body->data->ipv6_address
]);
}

/**
* Converts a response stdClass into a Domain object
*
Expand Down
14 changes: 0 additions & 14 deletions src/DDoSX/Entities/Ip.php

This file was deleted.

0 comments on commit 7eac316

Please sign in to comment.