Skip to content

Commit

Permalink
Update generated client
Browse files Browse the repository at this point in the history
  • Loading branch information
mittwald-machine committed Jan 12, 2024
1 parent 0283b8e commit 30a2160
Show file tree
Hide file tree
Showing 35 changed files with 2,437 additions and 2,608 deletions.
37 changes: 0 additions & 37 deletions src/Generated/V2/Clients/Domain/DomainClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
use Mittwald\ApiClient\Generated\V2\Clients\Domain\DnsUpdateRecordSet\DnsUpdateRecordSetRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetDomain\GetDomainOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetDomain\GetDomainRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetDomainOwnership\GetDomainOwnershipOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetDomainOwnership\GetDomainOwnershipRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetHandleFieldsV2Deprecated\GetHandleFieldsV2DeprecatedOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetHandleFieldsV2Deprecated\GetHandleFieldsV2DeprecatedRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetLatestScreenshot\GetLatestScreenshotOKResponse;
Expand All @@ -68,8 +66,6 @@
use Mittwald\ApiClient\Generated\V2\Clients\Domain\IngressUpdateIngressPaths\IngressUpdateIngressPathsRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\IngressUpdateIngressTls\IngressUpdateIngressTlsOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\IngressUpdateIngressTls\IngressUpdateIngressTlsRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\ListDomainOwnerships\ListDomainOwnershipsOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\ListDomainOwnerships\ListDomainOwnershipsRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\ListDomains\ListDomainsOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\ListDomains\ListDomainsRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\ListDomainsV2Deprecated\ListDomainsV2DeprecatedOKResponse;
Expand All @@ -85,7 +81,6 @@
use Mittwald\ApiClient\Generated\V2\Clients\Domain\UpdateDomainContact\UpdateDomainContactRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\UpdateDomainNameservers\UpdateDomainNameserversRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\UpdateDomainProjectId\UpdateDomainProjectIdRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\VerifyDomainOwnership\VerifyDomainOwnershipRequest;

/**
* Client for Domain API
Expand Down Expand Up @@ -378,16 +373,6 @@ public function deleteDomain(DeleteDomainRequest $request): DeleteDomainOKRespon
* @return GetDomain\GetDomainOKResponse OK
*/
public function getDomain(GetDomainRequest $request): GetDomainOKResponse;
/**
* Get a DomainOwnership.
*
* @see https://developer.mittwald.de/reference/v2/#tag/Domain/operation/domain-get-domain-ownership
* @throws GuzzleException
* @throws UnexpectedResponseException
* @param GetDomainOwnership\GetDomainOwnershipRequest $request An object representing the request for this operation
* @return GetDomainOwnership\GetDomainOwnershipOKResponse OK
*/
public function getDomainOwnership(GetDomainOwnershipRequest $request): GetDomainOwnershipOKResponse;
/**
* Get a HandleSchema.
*
Expand All @@ -411,16 +396,6 @@ public function getHandleFieldsV2Deprecated(GetHandleFieldsV2DeprecatedRequest $
* @return GetLatestScreenshot\GetLatestScreenshotOKResponse OK
*/
public function getLatestScreenshot(GetLatestScreenshotRequest $request): GetLatestScreenshotOKResponse;
/**
* List the DomainOwnerships of a project.
*
* @see https://developer.mittwald.de/reference/v2/#tag/Domain/operation/domain-list-domain-ownerships
* @throws GuzzleException
* @throws UnexpectedResponseException
* @param ListDomainOwnerships\ListDomainOwnershipsRequest $request An object representing the request for this operation
* @return ListDomainOwnerships\ListDomainOwnershipsOKResponse OK
*/
public function listDomainOwnerships(ListDomainOwnershipsRequest $request): ListDomainOwnershipsOKResponse;
/**
* List Domains
*
Expand Down Expand Up @@ -520,18 +495,6 @@ public function updateDomainNameservers(UpdateDomainNameserversRequest $request)
* @return EmptyResponse No Content
*/
public function updateDomainProjectId(UpdateDomainProjectIdRequest $request): EmptyResponse;
/**
* Verify a DomainOwnership.
*
* Verify your access to a Domain with an already set TXT Record. On success, the domain will be linked with the webserver.
*
* @see https://developer.mittwald.de/reference/v2/#tag/Domain/operation/domain-verify-domain-ownership
* @throws GuzzleException
* @throws UnexpectedResponseException
* @param VerifyDomainOwnership\VerifyDomainOwnershipRequest $request An object representing the request for this operation
* @return EmptyResponse No Content
*/
public function verifyDomainOwnership(VerifyDomainOwnershipRequest $request): EmptyResponse;
/**
* Create an Ingress.
*
Expand Down
83 changes: 0 additions & 83 deletions src/Generated/V2/Clients/Domain/DomainClientImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetDomain\GetDomainNotFoundResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetDomain\GetDomainOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetDomain\GetDomainRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetDomainOwnership\GetDomainOwnershipBadRequestResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetDomainOwnership\GetDomainOwnershipDefaultResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetDomainOwnership\GetDomainOwnershipNotFoundResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetDomainOwnership\GetDomainOwnershipOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetDomainOwnership\GetDomainOwnershipRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetHandleFieldsV2Deprecated\GetHandleFieldsV2DeprecatedDefaultResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetHandleFieldsV2Deprecated\GetHandleFieldsV2DeprecatedOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\GetHandleFieldsV2Deprecated\GetHandleFieldsV2DeprecatedRequest;
Expand Down Expand Up @@ -160,10 +155,6 @@
use Mittwald\ApiClient\Generated\V2\Clients\Domain\IngressUpdateIngressTls\IngressUpdateIngressTlsNotFoundResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\IngressUpdateIngressTls\IngressUpdateIngressTlsOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\IngressUpdateIngressTls\IngressUpdateIngressTlsRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\ListDomainOwnerships\ListDomainOwnershipsBadRequestResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\ListDomainOwnerships\ListDomainOwnershipsDefaultResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\ListDomainOwnerships\ListDomainOwnershipsOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\ListDomainOwnerships\ListDomainOwnershipsRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\ListDomains\ListDomainsBadRequestResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\ListDomains\ListDomainsDefaultResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\ListDomains\ListDomainsOKResponse;
Expand Down Expand Up @@ -200,10 +191,6 @@
use Mittwald\ApiClient\Generated\V2\Clients\Domain\UpdateDomainProjectId\UpdateDomainProjectIdDefaultResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\UpdateDomainProjectId\UpdateDomainProjectIdNotFoundResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\UpdateDomainProjectId\UpdateDomainProjectIdRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\VerifyDomainOwnership\VerifyDomainOwnershipBadRequestResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\VerifyDomainOwnership\VerifyDomainOwnershipDefaultResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\VerifyDomainOwnership\VerifyDomainOwnershipNotFoundResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Domain\VerifyDomainOwnership\VerifyDomainOwnershipRequest;

/**
* Client for Domain API
Expand Down Expand Up @@ -812,29 +799,6 @@ public function getDomain(GetDomainRequest $request): GetDomainOKResponse
});
}

/**
* Get a DomainOwnership.
*
* @see https://developer.mittwald.de/reference/v2/#tag/Domain/operation/domain-get-domain-ownership
* @throws GuzzleException
* @throws UnexpectedResponseException
* @param GetDomainOwnership\GetDomainOwnershipRequest $request An object representing the request for this operation
* @return GetDomainOwnership\GetDomainOwnershipOKResponse OK
*/
public function getDomainOwnership(GetDomainOwnershipRequest $request): GetDomainOwnershipOKResponse
{
$httpRequest = new Request(GetDomainOwnershipRequest::method, $request->buildUrl());
$httpResponse = $this->client->send($httpRequest, $request->buildRequestOptions());
if ($httpResponse->getStatusCode() === 200) {
return GetDomainOwnershipOKResponse::fromResponse($httpResponse);
}
throw new UnexpectedResponseException(match ($httpResponse->getStatusCode()) {
400 => GetDomainOwnershipBadRequestResponse::fromResponse($httpResponse),
404 => GetDomainOwnershipNotFoundResponse::fromResponse($httpResponse),
default => GetDomainOwnershipDefaultResponse::fromResponse($httpResponse),
});
}

/**
* Get a HandleSchema.
*
Expand Down Expand Up @@ -881,28 +845,6 @@ public function getLatestScreenshot(GetLatestScreenshotRequest $request): GetLat
});
}

/**
* List the DomainOwnerships of a project.
*
* @see https://developer.mittwald.de/reference/v2/#tag/Domain/operation/domain-list-domain-ownerships
* @throws GuzzleException
* @throws UnexpectedResponseException
* @param ListDomainOwnerships\ListDomainOwnershipsRequest $request An object representing the request for this operation
* @return ListDomainOwnerships\ListDomainOwnershipsOKResponse OK
*/
public function listDomainOwnerships(ListDomainOwnershipsRequest $request): ListDomainOwnershipsOKResponse
{
$httpRequest = new Request(ListDomainOwnershipsRequest::method, $request->buildUrl());
$httpResponse = $this->client->send($httpRequest, $request->buildRequestOptions());
if ($httpResponse->getStatusCode() === 200) {
return ListDomainOwnershipsOKResponse::fromResponse($httpResponse);
}
throw new UnexpectedResponseException(match ($httpResponse->getStatusCode()) {
400 => ListDomainOwnershipsBadRequestResponse::fromResponse($httpResponse),
default => ListDomainOwnershipsDefaultResponse::fromResponse($httpResponse),
});
}

/**
* List Domains
*
Expand Down Expand Up @@ -1113,31 +1055,6 @@ public function updateDomainProjectId(UpdateDomainProjectIdRequest $request): Em
});
}

/**
* Verify a DomainOwnership.
*
* Verify your access to a Domain with an already set TXT Record. On success, the domain will be linked with the webserver.
*
* @see https://developer.mittwald.de/reference/v2/#tag/Domain/operation/domain-verify-domain-ownership
* @throws GuzzleException
* @throws UnexpectedResponseException
* @param VerifyDomainOwnership\VerifyDomainOwnershipRequest $request An object representing the request for this operation
* @return EmptyResponse No Content
*/
public function verifyDomainOwnership(VerifyDomainOwnershipRequest $request): EmptyResponse
{
$httpRequest = new Request(VerifyDomainOwnershipRequest::method, $request->buildUrl());
$httpResponse = $this->client->send($httpRequest, $request->buildRequestOptions());
if ($httpResponse->getStatusCode() === 204) {
return new EmptyResponse($httpResponse);
}
throw new UnexpectedResponseException(match ($httpResponse->getStatusCode()) {
400 => VerifyDomainOwnershipBadRequestResponse::fromResponse($httpResponse),
404 => VerifyDomainOwnershipNotFoundResponse::fromResponse($httpResponse),
default => VerifyDomainOwnershipDefaultResponse::fromResponse($httpResponse),
});
}

/**
* Create an Ingress.
*
Expand Down

This file was deleted.

Loading

0 comments on commit 30a2160

Please sign in to comment.