Skip to content

Commit

Permalink
delete: deprecated DNS record classes and methods
Browse files Browse the repository at this point in the history
This commit removes various deprecated DNS record classes and their related methods from the codebase, including A, CNAME, MX, SRV, and TXT record types. These deprecations are aimed at cleaning up outdated implementations and redirecting users to updated endpoints and classes in favor of more current approaches.
  • Loading branch information
mittwald-machine committed Feb 3, 2025
1 parent 002ea81 commit 8be3cc6
Show file tree
Hide file tree
Showing 41 changed files with 516 additions and 488 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);

namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DnsRecordASetCustomDeprecated;
namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DeprecatedDnsRecordASetCustom;

use InvalidArgumentException;
use JsonSchema\Validator;
use Mittwald\ApiClient\Client\ResponseContainer;
use Mittwald\ApiClient\Generated\V2\Schemas\Commons\ValidationErrors;
use Psr\Http\Message\ResponseInterface;

class DnsRecordASetCustomDeprecatedBadRequestResponse implements ResponseContainer
class DeprecatedDnsRecordASetCustomBadRequestResponse implements ResponseContainer
{
/**
* Schema used to validate input for creating instances of this class
Expand Down Expand Up @@ -54,10 +54,10 @@ public function withBody(ValidationErrors $body): self
*
* @param array|object $input Input data
* @param bool $validate Set this to false to skip validation; use at own risk
* @return DnsRecordASetCustomDeprecatedBadRequestResponse Created instance
* @return DeprecatedDnsRecordASetCustomBadRequestResponse Created instance
* @throws InvalidArgumentException
*/
public static function buildFromInput(array|object $input, bool $validate = true): DnsRecordASetCustomDeprecatedBadRequestResponse
public static function buildFromInput(array|object $input, bool $validate = true): DeprecatedDnsRecordASetCustomBadRequestResponse
{
$input = is_array($input) ? Validator::arrayToObjectRecursive($input) : $input;
if ($validate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);

namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DnsRecordASetCustomDeprecated;
namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DeprecatedDnsRecordASetCustom;

use InvalidArgumentException;
use JsonSchema\Validator;
use Mittwald\ApiClient\Client\ResponseContainer;
use Mittwald\ApiClient\Generated\V2\Schemas\Commons\Error;
use Psr\Http\Message\ResponseInterface;

class DnsRecordASetCustomDeprecatedDefaultResponse implements ResponseContainer
class DeprecatedDnsRecordASetCustomDefaultResponse implements ResponseContainer
{
/**
* Schema used to validate input for creating instances of this class
Expand Down Expand Up @@ -54,10 +54,10 @@ public function withBody(Error $body): self
*
* @param array|object $input Input data
* @param bool $validate Set this to false to skip validation; use at own risk
* @return DnsRecordASetCustomDeprecatedDefaultResponse Created instance
* @return DeprecatedDnsRecordASetCustomDefaultResponse Created instance
* @throws InvalidArgumentException
*/
public static function buildFromInput(array|object $input, bool $validate = true): DnsRecordASetCustomDeprecatedDefaultResponse
public static function buildFromInput(array|object $input, bool $validate = true): DeprecatedDnsRecordASetCustomDefaultResponse
{
$input = is_array($input) ? Validator::arrayToObjectRecursive($input) : $input;
if ($validate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

declare(strict_types=1);

namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DnsRecordASetCustomDeprecated;
namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DeprecatedDnsRecordASetCustom;

use InvalidArgumentException;
use JsonSchema\Validator;
use Mittwald\ApiClient\Generated\V2\Schemas\Dns\CombinedACustom;
use Mittwald\ApiClient\Generated\V2\Schemas\Dns\RecordUnset;

class DnsRecordASetCustomDeprecatedRequest
class DeprecatedDnsRecordASetCustomRequest
{
public const method = 'put';

Expand Down Expand Up @@ -91,10 +91,10 @@ public function withBody(CombinedACustom|RecordUnset $body): self
*
* @param array|object $input Input data
* @param bool $validate Set this to false to skip validation; use at own risk
* @return DnsRecordASetCustomDeprecatedRequest Created instance
* @return DeprecatedDnsRecordASetCustomRequest Created instance
* @throws InvalidArgumentException
*/
public static function buildFromInput(array|object $input, bool $validate = true): DnsRecordASetCustomDeprecatedRequest
public static function buildFromInput(array|object $input, bool $validate = true): DeprecatedDnsRecordASetCustomRequest
{
$input = is_array($input) ? Validator::arrayToObjectRecursive($input) : $input;
if ($validate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

declare(strict_types=1);

namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DnsRecordASetCustomDeprecated;
namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DeprecatedDnsRecordASetCustom;

use InvalidArgumentException;
use JsonSchema\Validator;
use Mittwald\ApiClient\Client\ResponseContainer;
use Psr\Http\Message\ResponseInterface;

class DnsRecordASetCustomDeprecatedTooManyRequestsResponse implements ResponseContainer
class DeprecatedDnsRecordASetCustomTooManyRequestsResponse implements ResponseContainer
{
/**
* Schema used to validate input for creating instances of this class
Expand All @@ -36,21 +36,21 @@ class DnsRecordASetCustomDeprecatedTooManyRequestsResponse implements ResponseCo
],
];

private DnsRecordASetCustomDeprecatedTooManyRequestsResponseBody $body;
private DeprecatedDnsRecordASetCustomTooManyRequestsResponseBody $body;

private ResponseInterface|null $httpResponse = null;

public function __construct(DnsRecordASetCustomDeprecatedTooManyRequestsResponseBody $body)
public function __construct(DeprecatedDnsRecordASetCustomTooManyRequestsResponseBody $body)
{
$this->body = $body;
}

public function getBody(): DnsRecordASetCustomDeprecatedTooManyRequestsResponseBody
public function getBody(): DeprecatedDnsRecordASetCustomTooManyRequestsResponseBody
{
return $this->body;
}

public function withBody(DnsRecordASetCustomDeprecatedTooManyRequestsResponseBody $body): self
public function withBody(DeprecatedDnsRecordASetCustomTooManyRequestsResponseBody $body): self
{
$clone = clone $this;
$clone->body = $body;
Expand All @@ -63,17 +63,17 @@ public function withBody(DnsRecordASetCustomDeprecatedTooManyRequestsResponseBod
*
* @param array|object $input Input data
* @param bool $validate Set this to false to skip validation; use at own risk
* @return DnsRecordASetCustomDeprecatedTooManyRequestsResponse Created instance
* @return DeprecatedDnsRecordASetCustomTooManyRequestsResponse Created instance
* @throws InvalidArgumentException
*/
public static function buildFromInput(array|object $input, bool $validate = true): DnsRecordASetCustomDeprecatedTooManyRequestsResponse
public static function buildFromInput(array|object $input, bool $validate = true): DeprecatedDnsRecordASetCustomTooManyRequestsResponse
{
$input = is_array($input) ? Validator::arrayToObjectRecursive($input) : $input;
if ($validate) {
static::validateInput($input);
}

$body = DnsRecordASetCustomDeprecatedTooManyRequestsResponseBody::buildFromInput($input->{'body'}, validate: $validate);
$body = DeprecatedDnsRecordASetCustomTooManyRequestsResponseBody::buildFromInput($input->{'body'}, validate: $validate);

$obj = new self($body);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DnsRecordASetCustomDeprecated;
namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DeprecatedDnsRecordASetCustom;

use InvalidArgumentException;
use JsonSchema\Validator;

class DnsRecordASetCustomDeprecatedTooManyRequestsResponseBody
class DeprecatedDnsRecordASetCustomTooManyRequestsResponseBody
{
/**
* Schema used to validate input for creating instances of this class
Expand Down Expand Up @@ -96,10 +96,10 @@ public function withoutType(): self
*
* @param array|object $input Input data
* @param bool $validate Set this to false to skip validation; use at own risk
* @return DnsRecordASetCustomDeprecatedTooManyRequestsResponseBody Created instance
* @return DeprecatedDnsRecordASetCustomTooManyRequestsResponseBody Created instance
* @throws InvalidArgumentException
*/
public static function buildFromInput(array|object $input, bool $validate = true): DnsRecordASetCustomDeprecatedTooManyRequestsResponseBody
public static function buildFromInput(array|object $input, bool $validate = true): DeprecatedDnsRecordASetCustomTooManyRequestsResponseBody
{
$input = is_array($input) ? Validator::arrayToObjectRecursive($input) : $input;
if ($validate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);

namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DnsRecordASetManagedByIngressDeprecated;
namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DeprecatedDnsRecordASetManagedByIngress;

use InvalidArgumentException;
use JsonSchema\Validator;
use Mittwald\ApiClient\Client\ResponseContainer;
use Mittwald\ApiClient\Generated\V2\Schemas\Commons\ValidationErrors;
use Psr\Http\Message\ResponseInterface;

class DnsRecordASetManagedByIngressDeprecatedBadRequestResponse implements ResponseContainer
class DeprecatedDnsRecordASetManagedByIngressBadRequestResponse implements ResponseContainer
{
/**
* Schema used to validate input for creating instances of this class
Expand Down Expand Up @@ -54,10 +54,10 @@ public function withBody(ValidationErrors $body): self
*
* @param array|object $input Input data
* @param bool $validate Set this to false to skip validation; use at own risk
* @return DnsRecordASetManagedByIngressDeprecatedBadRequestResponse Created instance
* @return DeprecatedDnsRecordASetManagedByIngressBadRequestResponse Created instance
* @throws InvalidArgumentException
*/
public static function buildFromInput(array|object $input, bool $validate = true): DnsRecordASetManagedByIngressDeprecatedBadRequestResponse
public static function buildFromInput(array|object $input, bool $validate = true): DeprecatedDnsRecordASetManagedByIngressBadRequestResponse
{
$input = is_array($input) ? Validator::arrayToObjectRecursive($input) : $input;
if ($validate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);

namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DnsRecordASetManagedByIngressDeprecated;
namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DeprecatedDnsRecordASetManagedByIngress;

use InvalidArgumentException;
use JsonSchema\Validator;
use Mittwald\ApiClient\Client\ResponseContainer;
use Mittwald\ApiClient\Generated\V2\Schemas\Commons\Error;
use Psr\Http\Message\ResponseInterface;

class DnsRecordASetManagedByIngressDeprecatedDefaultResponse implements ResponseContainer
class DeprecatedDnsRecordASetManagedByIngressDefaultResponse implements ResponseContainer
{
/**
* Schema used to validate input for creating instances of this class
Expand Down Expand Up @@ -54,10 +54,10 @@ public function withBody(Error $body): self
*
* @param array|object $input Input data
* @param bool $validate Set this to false to skip validation; use at own risk
* @return DnsRecordASetManagedByIngressDeprecatedDefaultResponse Created instance
* @return DeprecatedDnsRecordASetManagedByIngressDefaultResponse Created instance
* @throws InvalidArgumentException
*/
public static function buildFromInput(array|object $input, bool $validate = true): DnsRecordASetManagedByIngressDeprecatedDefaultResponse
public static function buildFromInput(array|object $input, bool $validate = true): DeprecatedDnsRecordASetManagedByIngressDefaultResponse
{
$input = is_array($input) ? Validator::arrayToObjectRecursive($input) : $input;
if ($validate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

declare(strict_types=1);

namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DnsRecordASetManagedByIngressDeprecated;
namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DeprecatedDnsRecordASetManagedByIngress;

use InvalidArgumentException;
use JsonSchema\Validator;
use Mittwald\ApiClient\Client\ResponseContainer;
use Psr\Http\Message\ResponseInterface;

class DnsRecordASetManagedByIngressDeprecatedNoContentResponse implements ResponseContainer
class DeprecatedDnsRecordASetManagedByIngressNoContentResponse implements ResponseContainer
{
/**
* Schema used to validate input for creating instances of this class
Expand All @@ -35,21 +35,21 @@ class DnsRecordASetManagedByIngressDeprecatedNoContentResponse implements Respon
],
];

private DnsRecordASetManagedByIngressDeprecatedNoContentResponseBody $body;
private DeprecatedDnsRecordASetManagedByIngressNoContentResponseBody $body;

private ResponseInterface|null $httpResponse = null;

public function __construct(DnsRecordASetManagedByIngressDeprecatedNoContentResponseBody $body)
public function __construct(DeprecatedDnsRecordASetManagedByIngressNoContentResponseBody $body)
{
$this->body = $body;
}

public function getBody(): DnsRecordASetManagedByIngressDeprecatedNoContentResponseBody
public function getBody(): DeprecatedDnsRecordASetManagedByIngressNoContentResponseBody
{
return $this->body;
}

public function withBody(DnsRecordASetManagedByIngressDeprecatedNoContentResponseBody $body): self
public function withBody(DeprecatedDnsRecordASetManagedByIngressNoContentResponseBody $body): self
{
$clone = clone $this;
$clone->body = $body;
Expand All @@ -62,17 +62,17 @@ public function withBody(DnsRecordASetManagedByIngressDeprecatedNoContentRespons
*
* @param array|object $input Input data
* @param bool $validate Set this to false to skip validation; use at own risk
* @return DnsRecordASetManagedByIngressDeprecatedNoContentResponse Created instance
* @return DeprecatedDnsRecordASetManagedByIngressNoContentResponse Created instance
* @throws InvalidArgumentException
*/
public static function buildFromInput(array|object $input, bool $validate = true): DnsRecordASetManagedByIngressDeprecatedNoContentResponse
public static function buildFromInput(array|object $input, bool $validate = true): DeprecatedDnsRecordASetManagedByIngressNoContentResponse
{
$input = is_array($input) ? Validator::arrayToObjectRecursive($input) : $input;
if ($validate) {
static::validateInput($input);
}

$body = DnsRecordASetManagedByIngressDeprecatedNoContentResponseBody::buildFromInput($input->{'body'}, validate: $validate);
$body = DeprecatedDnsRecordASetManagedByIngressNoContentResponseBody::buildFromInput($input->{'body'}, validate: $validate);

$obj = new self($body);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DnsRecordASetManagedByIngressDeprecated;
namespace Mittwald\ApiClient\Generated\V2\Clients\Domain\DeprecatedDnsRecordASetManagedByIngress;

use InvalidArgumentException;
use JsonSchema\Validator;

class DnsRecordASetManagedByIngressDeprecatedNoContentResponseBody
class DeprecatedDnsRecordASetManagedByIngressNoContentResponseBody
{
/**
* Schema used to validate input for creating instances of this class
Expand Down Expand Up @@ -56,10 +56,10 @@ public function withIngressId(string $ingressId): self
*
* @param array|object $input Input data
* @param bool $validate Set this to false to skip validation; use at own risk
* @return DnsRecordASetManagedByIngressDeprecatedNoContentResponseBody Created instance
* @return DeprecatedDnsRecordASetManagedByIngressNoContentResponseBody Created instance
* @throws InvalidArgumentException
*/
public static function buildFromInput(array|object $input, bool $validate = true): DnsRecordASetManagedByIngressDeprecatedNoContentResponseBody
public static function buildFromInput(array|object $input, bool $validate = true): DeprecatedDnsRecordASetManagedByIngressNoContentResponseBody
{
$input = is_array($input) ? Validator::arrayToObjectRecursive($input) : $input;
if ($validate) {
Expand Down
Loading

0 comments on commit 8be3cc6

Please sign in to comment.