Skip to content

Commit

Permalink
fix: api spec fixes for nullable and partial models
Browse files Browse the repository at this point in the history
  • Loading branch information
bencromwell authored Feb 8, 2024
1 parent a40af62 commit fca8f39
Show file tree
Hide file tree
Showing 1,018 changed files with 2,629 additions and 71,312 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.1
3.0.0
222 changes: 2 additions & 220 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -939,8 +939,8 @@ public function deleteDiskBackupPolicySchedule(Model\DiskBackupPoliciesDiskBacku
/**
* @param array $queryParameters {
*
* @var string $organization[id] The organization to return DNS zones for. All 'organization[]' params are mutually exclusive, only one can be provided.
* @var string $organization[sub_domain] The organization to return DNS zones for. All 'organization[]' params are mutually exclusive, only one can be provided.
* @var string $organization[id] All 'organization[]' params are mutually exclusive, only one can be provided
* @var string $organization[sub_domain] All 'organization[]' params are mutually exclusive, only one can be provided
* @var int $page
* @var int $per_page
* }
Expand Down Expand Up @@ -975,224 +975,6 @@ public function postOrganizationDnsZones(Model\OrganizationsOrganizationDnsZones
return $this->executeEndpoint(new Endpoint\PostOrganizationDnsZones($requestBody), $fetch);
}

/**
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneDeleteResponse200|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\DeleteDnsZonesDnsZoneBadRequestException
* @throws Exception\DeleteDnsZonesDnsZoneForbiddenException
* @throws Exception\DeleteDnsZonesDnsZoneNotFoundException
* @throws Exception\DeleteDnsZonesDnsZoneTooManyRequestsException
*/
public function deleteDnsZonesDnsZone(Model\DnsZonesDnsZoneDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\DeleteDnsZonesDnsZone($requestBody), $fetch);
}

/**
* @param array $queryParameters {
*
* @var string $dns_zone[id] The DNS zone to return information for. All 'dns_zone[]' params are mutually exclusive, only one can be provided.
* @var string $dns_zone[name] The DNS zone to return information for. All 'dns_zone[]' params are mutually exclusive, only one can be provided.
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneGetResponse200|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\GetDnsZonesDnsZoneBadRequestException
* @throws Exception\GetDnsZonesDnsZoneForbiddenException
* @throws Exception\GetDnsZonesDnsZoneNotFoundException
* @throws Exception\GetDnsZonesDnsZoneTooManyRequestsException
*/
public function getDnsZonesDnsZone(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\GetDnsZonesDnsZone($queryParameters), $fetch);
}

/**
* @param array $queryParameters {
*
* @var string $dns_zone[id] The DNS zone to get verification details for. All 'dns_zone[]' params are mutually exclusive, only one can be provided.
* @var string $dns_zone[name] The DNS zone to get verification details for. All 'dns_zone[]' params are mutually exclusive, only one can be provided.
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneVerificationDetailsGetResponse200|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\GetDnsZonesDnsZoneVerificationDetailsBadRequestException
* @throws Exception\GetDnsZonesDnsZoneVerificationDetailsForbiddenException
* @throws Exception\GetDnsZonesDnsZoneVerificationDetailsNotFoundException
* @throws Exception\GetDnsZonesDnsZoneVerificationDetailsUnprocessableEntityException
* @throws Exception\GetDnsZonesDnsZoneVerificationDetailsTooManyRequestsException
*/
public function getDnsZonesDnsZoneVerificationDetails(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\GetDnsZonesDnsZoneVerificationDetails($queryParameters), $fetch);
}

/**
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneVerifyPostResponse200|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\PostDnsZonesDnsZoneVerifyBadRequestException
* @throws Exception\PostDnsZonesDnsZoneVerifyForbiddenException
* @throws Exception\PostDnsZonesDnsZoneVerifyNotFoundException
* @throws Exception\PostDnsZonesDnsZoneVerifyUnprocessableEntityException
* @throws Exception\PostDnsZonesDnsZoneVerifyTooManyRequestsException
*/
public function postDnsZonesDnsZoneVerify(Model\DnsZonesDnsZoneVerifyPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\PostDnsZonesDnsZoneVerify($requestBody), $fetch);
}

/**
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneUpdateTtlPostResponse200|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\PostDnsZonesDnsZoneUpdateTtlBadRequestException
* @throws Exception\PostDnsZonesDnsZoneUpdateTtlForbiddenException
* @throws Exception\PostDnsZonesDnsZoneUpdateTtlNotFoundException
* @throws Exception\PostDnsZonesDnsZoneUpdateTtlUnprocessableEntityException
* @throws Exception\PostDnsZonesDnsZoneUpdateTtlTooManyRequestsException
*/
public function postDnsZonesDnsZoneUpdateTtl(Model\DnsZonesDnsZoneUpdateTtlPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\PostDnsZonesDnsZoneUpdateTtl($requestBody), $fetch);
}

/**
* @param array $queryParameters {
*
* @var string $dns_zone[id] The DNS zone to find all DNS records for. All 'dns_zone[]' params are mutually exclusive, only one can be provided.
* @var string $dns_zone[name] The DNS zone to find all DNS records for. All 'dns_zone[]' params are mutually exclusive, only one can be provided.
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneRecordsGetResponse200|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\GetDnsZonesDnsZoneRecordsBadRequestException
* @throws Exception\GetDnsZonesDnsZoneRecordsForbiddenException
* @throws Exception\GetDnsZonesDnsZoneRecordsNotFoundException
* @throws Exception\GetDnsZonesDnsZoneRecordsTooManyRequestsException
*/
public function getDnsZonesDnsZoneRecords(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\GetDnsZonesDnsZoneRecords($queryParameters), $fetch);
}

/**
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneRecordsPostResponse200|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\PostDnsZonesDnsZoneRecordsBadRequestException
* @throws Exception\PostDnsZonesDnsZoneRecordsForbiddenException
* @throws Exception\PostDnsZonesDnsZoneRecordsNotFoundException
* @throws Exception\PostDnsZonesDnsZoneRecordsUnprocessableEntityException
* @throws Exception\PostDnsZonesDnsZoneRecordsTooManyRequestsException
*/
public function postDnsZonesDnsZoneRecords(Model\DnsZonesDnsZoneRecordsPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\PostDnsZonesDnsZoneRecords($requestBody), $fetch);
}

/**
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordDeleteResponse200|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\DeleteDnsRecordsDnsRecordBadRequestException
* @throws Exception\DeleteDnsRecordsDnsRecordForbiddenException
* @throws Exception\DeleteDnsRecordsDnsRecordNotFoundException
* @throws Exception\DeleteDnsRecordsDnsRecordUnprocessableEntityException
* @throws Exception\DeleteDnsRecordsDnsRecordTooManyRequestsException
*/
public function deleteDnsRecordsDnsRecord(Model\DnsRecordsDnsRecordDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\DeleteDnsRecordsDnsRecord($requestBody), $fetch);
}

/**
* @param array $queryParameters {
*
* @var string $dns_record[id] The DNS record to return information for. All 'dns_record[]' params are mutually exclusive, only one can be provided.
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordGetResponse200|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\GetDnsRecordsDnsRecordBadRequestException
* @throws Exception\GetDnsRecordsDnsRecordForbiddenException
* @throws Exception\GetDnsRecordsDnsRecordNotFoundException
* @throws Exception\GetDnsRecordsDnsRecordTooManyRequestsException
*/
public function getDnsRecordsDnsRecord(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\GetDnsRecordsDnsRecord($queryParameters), $fetch);
}

/**
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordPatchResponse200|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\PatchDnsRecordsDnsRecordBadRequestException
* @throws Exception\PatchDnsRecordsDnsRecordForbiddenException
* @throws Exception\PatchDnsRecordsDnsRecordNotFoundException
* @throws Exception\PatchDnsRecordsDnsRecordUnprocessableEntityException
* @throws Exception\PatchDnsRecordsDnsRecordTooManyRequestsException
*/
public function patchDnsRecordsDnsRecord(Model\DnsRecordsDnsRecordPatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\PatchDnsRecordsDnsRecord($requestBody), $fetch);
}

/**
* @param array $queryParameters {
*
* @var string $organization[id] All 'organization[]' params are mutually exclusive, only one can be provided
* @var string $organization[sub_domain] All 'organization[]' params are mutually exclusive, only one can be provided
* @var int $page
* @var int $per_page
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDnsZonesGetResponse200|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\GetOrganizationsOrganizationDnsZonesBadRequestException
* @throws Exception\GetOrganizationsOrganizationDnsZonesForbiddenException
* @throws Exception\GetOrganizationsOrganizationDnsZonesNotFoundException
* @throws Exception\GetOrganizationsOrganizationDnsZonesTooManyRequestsException
*/
public function getOrganizationsOrganizationDnsZones(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\GetOrganizationsOrganizationDnsZones($queryParameters), $fetch);
}

/**
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDnsZonesPostResponse201|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\PostOrganizationsOrganizationDnsZonesBadRequestException
* @throws Exception\PostOrganizationsOrganizationDnsZonesForbiddenException
* @throws Exception\PostOrganizationsOrganizationDnsZonesNotFoundException
* @throws Exception\PostOrganizationsOrganizationDnsZonesUnprocessableEntityException
* @throws Exception\PostOrganizationsOrganizationDnsZonesTooManyRequestsException
*/
public function postOrganizationsOrganizationDnsZones(Model\OrganizationsOrganizationDnsZonesPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\PostOrganizationsOrganizationDnsZones($requestBody), $fetch);
}

/**
* @param array $queryParameters {
*
Expand Down
83 changes: 0 additions & 83 deletions src/Endpoint/DeleteDnsRecordsDnsRecord.php

This file was deleted.

Loading

0 comments on commit fca8f39

Please sign in to comment.