diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..ab97e180 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2023 Krystal Hosting Ltd. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index eb499be3..00000000 --- a/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Krystal Hosting Ltd - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index 8945c16c..9d27740b 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ A PHP library for integrating with [Katapult](https://katapult.io/) ## Version constraints * V1.x supports PHP 5.6 * V2.x supports PHP 7.4 +* V3.x supports PHP 8.1 ## Installation @@ -18,84 +19,3 @@ You can install the package via Composer: ```bash composer require krystal/katapult ``` - -## Usage - -```php -use Krystal\Katapult\API\RestfulKatapultApiV1 as KatapultApi; -use Krystal\Katapult\Katapult; -use Krystal\Katapult\Resources\DataCenter; -use Krystal\Katapult\Resources\Organization; -use Krystal\Katapult\Resources\VirtualMachinePackage; - -$katapult = Katapult::make(new KatapultApi( - 'your-katapult-api-token' -)); - -$dataCenters = $katapult->resource(DataCenter::class)->all(); -$organization = $katapult->resource(Organization::class)->first(); -$virtualMachinePackages = $katapult->resource(VirtualMachinePackage::class)->all(); -$virtualMachines = $katapult->resource(Organization\VirtualMachine::class, $organization)->all(); -``` - -### Guzzle handler stack -You can inject your own handler stack for Guzzle, which is usually done for adding middleware, such as logging requests. - -```php -use Krystal\Katapult\API\RestfulKatapultApiV1 as KatapultApi; -use Krystal\Katapult\Katapult; -use GuzzleHttp\HandlerStack; -use GuzzleHttp\Middleware; -use Psr\Http\Message\RequestInterface; -use Psr\Http\Message\ResponseInterface; - -// Create a handler stack -$handlerStack = HandlerStack::create(); - -// Add some middleware -$handlerStack->push(Middleware::mapRequest(function(RequestInterface $request) { - return $request; -})); - -// And some more -$handlerStack->push(Middleware::mapResponse(function(ResponseInterface $response) { - return $response; -})); - -// Use the handler stack directly on the constructor -$katapult = Katapult::make( - new KatapultApi('your-katapult-api-token', true, $handlerStack) -); - -// Or by rebuilding the Guzzle client -$katapult = Katapult::make( - (new KatapultApi('your-katapult-api-token')) - ->rebuildClient($handlerStack) -); -``` - -## Testing - -``` bash -KATAPULT_API_TOKEN= composer test -``` - -## Contributing - -Please see [CONTRIBUTING](CONTRIBUTING.md) for details. - -### Security - -If you discover any security related issues, please email contact@krystal.uk instead of using the issue tracker. - -## Credits - -- [All Contributors](../../contributors) - -## License - -The MIT License (MIT). Please see [License File](LICENSE.md) for more information. - -## PHP Package Boilerplate - -This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com). diff --git a/composer.json b/composer.json index 0341ef29..6c8cd445 100644 --- a/composer.json +++ b/composer.json @@ -1,44 +1,24 @@ { - "name": "krystal/katapult", - "description": "API library for Katapult cloud platform", - "keywords": [ - "krystal", - "katapult" - ], - "homepage": "https://github.com/krystal/katapult", - "license": "MIT", - "type": "library", - "authors": [ - { - "name": "Josh Bonfield", - "email": "josh@grizzlyware.com", - "role": "Developer" - } - ], - "require": { - "php": "^7.4", - "guzzlehttp/guzzle": "^7.2" + "name": "krystal/katapult", + "type": "library", + "license": "MIT", + "require": { + "php": "^8.1", + "jane-php/open-api-runtime": "^7.5" + }, + "require-dev": { + "jane-php/open-api-3": "^7.5" + }, + "config": { + "preferred-install": { + "*": "dist" }, - "require-dev": { - "pestphp/pest": "^1.0", - "phpunit/phpunit": "^9.5" - }, - "autoload": { - "psr-4": { - "Krystal\\Katapult\\": "src" - } - }, - "autoload-dev": { - "psr-4": { - "Krystal\\Katapult\\Tests\\": "tests" - } - }, - "scripts": { - "test": "php vendor/bin/pest", - "test-coverage": "php vendor/bin/pest --coverage" - - }, - "config": { - "sort-packages": true + "sort-packages": true + }, + "autoload": { + "psr-4": { + "Krystal\\Katapult\\KatapultAPI\\": "src/" } + }, + "prefer-stable": true } diff --git a/phpunit.xml b/phpunit.xml deleted file mode 100644 index 8f4b58c9..00000000 --- a/phpunit.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - ./tests - - - - - ./app - ./src - - - diff --git a/src/API/AbstractKatapultApi.php b/src/API/AbstractKatapultApi.php deleted file mode 100644 index 4f812f41..00000000 --- a/src/API/AbstractKatapultApi.php +++ /dev/null @@ -1,7 +0,0 @@ -setEndpoint($useProductionEndpoint ? self::PRODUCTION_ENDPOINT : self::STAGING_ENDPOINT, false) - ->setAuthenticationToken($authToken, false) - ->rebuildClient($handlerStack); - } - - public function rebuildClient(HandlerStack $handlerStack = null): RestfulKatapultApiV1 - { - $guzzleOptions = [ - 'base_uri' => $this->endpoint, - 'timeout' => 5.0, - 'headers' => [ - 'Authorization' => "Bearer {$this->authToken}", - 'Accepts' => 'application/json', - 'User-Agent' => 'Katapult-PHP', - ] - ]; - - if ($handlerStack) { - $guzzleOptions['handler'] = $handlerStack; - } - - $this->client = new GuzzleClient($guzzleOptions); - - return $this; - } - - public function setEndpoint(string $endpoint, bool $rebuildClient = true): RestfulKatapultApiV1 - { - $this->endpoint = $endpoint; - - if ($rebuildClient) { - $this->rebuildClient(); - } - - return $this; - } - - public function setAuthenticationToken(string $authToken, bool $rebuildClient = true): RestfulKatapultApiV1 - { - $this->authToken = $authToken; - - if ($rebuildClient) { - $this->rebuildClient(); - } - - return $this; - } - - public function getResourceController($resourceClass, ...$args): ResourceController - { - return ResourceController::make($resourceClass, $this, ...$args); - } - - public function get($url): ResponseInterface - { - return $this->client->get($url); - } - - public function post($url, array $body = []): ResponseInterface - { - $body['php_nonce'] = md5(microtime()); - - return $this->client->post($url, [ - 'json' => $body - ]); - } - - public function put($url, array $body = []): ResponseInterface - { - return $this->client->put($url, [ - 'json' => $body - ]); - } - - public function delete($url): ResponseInterface - { - return $this->client->delete($url); - } -} diff --git a/src/API/RestfulKatapultApiV1/Helper.php b/src/API/RestfulKatapultApiV1/Helper.php deleted file mode 100644 index 6f8107fe..00000000 --- a/src/API/RestfulKatapultApiV1/Helper.php +++ /dev/null @@ -1,15 +0,0 @@ -api = $api; - $this->resourceClass = $resourceClass; - $this->mappedResourceClass = $mappedResourceClass; - $this->resourceName = $mappedResourceClass::getResourceName(); - $this->resourceNamePlural = $mappedResourceClass::getResourceName(true); - $this->arguments = $args; - } - - protected static function mapResourceToApiVersion(string $resourceClass): string - { - $resourceName = explode('\\', $resourceClass, 4); - $localClassName = __NAMESPACE__ . '\\Resources\\' . $resourceName[3]; - return (class_exists($localClassName)) ? $localClassName : $resourceClass; - } - - public function createResourceFromSpec(object $resourceSpec): ResourceInterface - { - $resourceClass = $this->mappedResourceClass; // Due to lacking Uniform Variable Syntax in PHP < 7 - return $resourceClass::instantiateFromSpec($resourceSpec, $this); - } - - public function createApiUrl(string $resourceId = null, array $contextualArguments = null): string - { - if (!$contextualArguments) { - $contextualArguments = []; - } - - return $this->mappedResourceClass::getUrl($resourceId, array_merge($this->arguments, $contextualArguments)); - } - - public function first(): ? ResourceInterface - { - $resources = $this->all(false); - return count($resources) > 0 ? reset($resources) : null; - } - - /** - * @param bool $fetchAllPages - * @return array|ResourceInterface[] - */ - public function all(bool $fetchAllPages = true): array - { - // If this resource doesn't support index listing, just return an empty array - if (!$this->mappedResourceClass::supportsResourceIndex()) { - return []; - } - - $lastFetchedPage = null; - $nextPage = 1; - $totalPages = null; - - $resources = []; - - while ($lastFetchedPage === null || $lastFetchedPage < $totalPages) { - $res = $this->api->get($this->createApiUrl(null, ['query' => ['page' => $nextPage]])); - $responseBody = GuzzleUtils::jsonDecode($res->getBody()); - - foreach ($responseBody->{$this->resourceNamePlural} as $resourceSpec) { - $resources[] = $this->mappedResourceClass::instantiateFromSpec($resourceSpec, $this); - } - - // If this route doesn't support pagination, break out - if (!$fetchAllPages || !isset($responseBody->pagination)) { - break; - } - - $lastFetchedPage = $nextPage; - $totalPages = $responseBody->pagination->total_pages; - $nextPage++; - } - - return $resources; - } - - public function get(string $resourceId): ResourceInterface - { - $res = $this->api->get($this->createApiUrl($resourceId)); - - return $this->createResourceFromSpec(GuzzleUtils::jsonDecode($res->getBody())->{$this->resourceName}); - } - - public function create(array $specification = null): ResourceInterface - { - if (!$specification) { - $specification = []; - } - - $res = $this->api->post($this->createApiUrl(), $specification); - - return $this->createResourceFromSpec(GuzzleUtils::jsonDecode($res->getBody())->{$this->resourceName}); - } - - public function __call(string $name, $arguments) - { - // Handover to the Resource directly in this case.. - return $this->mappedResourceClass::callApiAction($this, $name, $arguments); - } - - public function __get($name) - { - switch ($name) { - case 'api': - case 'resourceName': - return $this->{$name}; - } - - return null; - } -} diff --git a/src/API/RestfulKatapultApiV1/Resources/DataCenter.php b/src/API/RestfulKatapultApiV1/Resources/DataCenter.php deleted file mode 100644 index 56feb2c2..00000000 --- a/src/API/RestfulKatapultApiV1/Resources/DataCenter.php +++ /dev/null @@ -1,17 +0,0 @@ -resourceController->api) - ->resource(\Krystal\Katapult\Resources\Organization\ManagedOrganization::class, $this) - ->create(); - } -} diff --git a/src/API/RestfulKatapultApiV1/Resources/Organization/DNS/DnsZone.php b/src/API/RestfulKatapultApiV1/Resources/Organization/DNS/DnsZone.php deleted file mode 100644 index 36e86f2c..00000000 --- a/src/API/RestfulKatapultApiV1/Resources/Organization/DNS/DnsZone.php +++ /dev/null @@ -1,33 +0,0 @@ -id . '/dns/zones'; - } - - return \Krystal\Katapult\API\RestfulKatapultApiV1\Helper::addQueryToUrl($url, $arguments); - } -} diff --git a/src/API/RestfulKatapultApiV1/Resources/Organization/DiskTemplate.php b/src/API/RestfulKatapultApiV1/Resources/Organization/DiskTemplate.php deleted file mode 100644 index 73add790..00000000 --- a/src/API/RestfulKatapultApiV1/Resources/Organization/DiskTemplate.php +++ /dev/null @@ -1,42 +0,0 @@ -id . '/' . self::getResourceName(true); - } - - return \Krystal\Katapult\API\RestfulKatapultApiV1\Helper::addQueryToUrl($url, $arguments); - } -} diff --git a/src/API/RestfulKatapultApiV1/Resources/Organization/ManagedOrganization.php b/src/API/RestfulKatapultApiV1/Resources/Organization/ManagedOrganization.php deleted file mode 100644 index be463a19..00000000 --- a/src/API/RestfulKatapultApiV1/Resources/Organization/ManagedOrganization.php +++ /dev/null @@ -1,32 +0,0 @@ -id . '/managed'; - } - - return \Krystal\Katapult\API\RestfulKatapultApiV1\Helper::addQueryToUrl($url, $arguments); - } -} diff --git a/src/API/RestfulKatapultApiV1/Resources/Organization/VirtualMachine.php b/src/API/RestfulKatapultApiV1/Resources/Organization/VirtualMachine.php deleted file mode 100644 index 98ca9b64..00000000 --- a/src/API/RestfulKatapultApiV1/Resources/Organization/VirtualMachine.php +++ /dev/null @@ -1,137 +0,0 @@ -id . '/virtual_machines'; - } - - return \Krystal\Katapult\API\RestfulKatapultApiV1\Helper::addQueryToUrl($url, $arguments); - } - - public static function callApiAction(ResourceController $resourceController, string $action, array $arguments) - { - switch ($action) { - case 'build': - $res = $resourceController->api->post($resourceController->createApiUrl() . '/build', $arguments[0]); - $body = GuzzleUtils::jsonDecode($res->getBody()); - - return (object)[ - 'task' => Task::instantiateFromSpec($body->task, $resourceController), - 'build' => VirtualMachineBuild::instantiateFromSpec($body->build, $resourceController) - ]; - - case 'buildFromSpec': - $res = $resourceController->api->post($resourceController->createApiUrl() . '/build_from_spec', $arguments[0]); - $body = GuzzleUtils::jsonDecode($res->getBody()); - - return (object)[ - 'task' => Task::instantiateFromSpec($body->task, $resourceController), - 'build' => VirtualMachineBuild::instantiateFromSpec($body->build, $resourceController) - ]; - } - - throw new \Exception('Invalid action called'); - } - - public function createConsoleSession(): ConsoleSession - { - return Katapult::make($this->resourceController->api) - ->resource(\Krystal\Katapult\Resources\Organization\VirtualMachine\ConsoleSession::class, $this) - ->create(); - } - - public function start(): ResponseInterface - { - return $this->resourceController->api->post($this->resourceController->createApiUrl($this->id, [ - 'action' => self::ACTION_START - ])); - } - - public function stop(): ResponseInterface - { - return $this->resourceController->api->post($this->resourceController->createApiUrl($this->id, [ - 'action' => self::ACTION_STOP - ])); - } - - public function shutdown(): ResponseInterface - { - return $this->resourceController->api->post($this->resourceController->createApiUrl($this->id, [ - 'action' => self::ACTION_SHUTDOWN - ])); - } - - public function reset(): ResponseInterface - { - return $this->resourceController->api->post($this->resourceController->createApiUrl($this->id, [ - 'action' => self::ACTION_RESET - ])); - } - - public function changePackage($virtualMachinePackageLookup): ResponseInterface - { - return $this->resourceController->api->put($this->resourceController->createApiUrl($this->id, [ - 'action' => self::ACTION_CHANGE_PACKAGE - ]), ['virtual_machine_package' => $virtualMachinePackageLookup]); - } -} diff --git a/src/API/RestfulKatapultApiV1/Resources/Organization/VirtualMachine/ConsoleSession.php b/src/API/RestfulKatapultApiV1/Resources/Organization/VirtualMachine/ConsoleSession.php deleted file mode 100644 index aeb700c8..00000000 --- a/src/API/RestfulKatapultApiV1/Resources/Organization/VirtualMachine/ConsoleSession.php +++ /dev/null @@ -1,33 +0,0 @@ -id . '/console_sessions'; - } - - return \Krystal\Katapult\API\RestfulKatapultApiV1\Helper::addQueryToUrl($url, $arguments); - } -} diff --git a/src/API/RestfulKatapultApiV1/Resources/Organization/VirtualMachine/VirtualMachineBuild.php b/src/API/RestfulKatapultApiV1/Resources/Organization/VirtualMachine/VirtualMachineBuild.php deleted file mode 100644 index 6a87835f..00000000 --- a/src/API/RestfulKatapultApiV1/Resources/Organization/VirtualMachine/VirtualMachineBuild.php +++ /dev/null @@ -1,28 +0,0 @@ -id; - $url = "virtual_machines/{$vmId}/disk_backup_policies"; - } - - return \Krystal\Katapult\API\RestfulKatapultApiV1\Helper::addQueryToUrl($url, $arguments); - } - - public static function getResourceName(bool $pluralize = false): string - { - return 'disk_backup_policies'; - } -} diff --git a/src/API/RestfulKatapultApiV1/Resources/ResourceInterface.php b/src/API/RestfulKatapultApiV1/Resources/ResourceInterface.php deleted file mode 100644 index 6064f219..00000000 --- a/src/API/RestfulKatapultApiV1/Resources/ResourceInterface.php +++ /dev/null @@ -1,13 +0,0 @@ -resourceController->api->delete($this->resourceController->createApiUrl($this->id)); - } -} diff --git a/src/API/RestfulKatapultApiV1/Traits/DoesNotSupportIndexing.php b/src/API/RestfulKatapultApiV1/Traits/DoesNotSupportIndexing.php deleted file mode 100644 index b746d70f..00000000 --- a/src/API/RestfulKatapultApiV1/Traits/DoesNotSupportIndexing.php +++ /dev/null @@ -1,11 +0,0 @@ -{'token'} = $token; + } + + public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface + { + $header = sprintf('Bearer %s', $this->{'token'}); + $request = $request->withHeader('Authorization', $header); + + return $request; + } + + public function getScope(): string + { + return 'Authenticator'; + } +} diff --git a/src/Client.php b/src/Client.php new file mode 100644 index 00000000..827baac2 --- /dev/null +++ b/src/Client.php @@ -0,0 +1,2734 @@ +executeEndpoint(new Endpoint\GetDataCenters(), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $data_center[id] All 'data_center[]' params are mutually exclusive, only one can be provided + * @var string $data_center[permalink] All 'data_center[]' 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\DataCentersDataCenterGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDataCenterBadRequestException + * @throws Exception\GetDataCenterForbiddenException + * @throws Exception\GetDataCenterNotFoundException + * @throws Exception\GetDataCenterTooManyRequestsException + */ + public function getDataCenter(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDataCenter($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $data_center[id] All 'data_center[]' params are mutually exclusive, only one can be provided + * @var string $data_center[permalink] All 'data_center[]' 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\DataCentersDataCenterDefaultNetworkGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDataCenterDefaultNetworkBadRequestException + * @throws Exception\GetDataCenterDefaultNetworkForbiddenException + * @throws Exception\GetDataCenterDefaultNetworkNotFoundException + * @throws Exception\GetDataCenterDefaultNetworkTooManyRequestsException + */ + public function getDataCenterDefaultNetwork(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDataCenterDefaultNetwork($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationsBadRequestException + * @throws Exception\GetOrganizationsForbiddenException + * @throws Exception\GetOrganizationsTooManyRequestsException + */ + public function getOrganizations(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizations(), $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. + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationBadRequestException + * @throws Exception\GetOrganizationForbiddenException + * @throws Exception\GetOrganizationNotFoundException + * @throws Exception\GetOrganizationTooManyRequestsException + */ + public function getOrganization(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganization($queryParameters), $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\OrganizationsOrganizationUsersWithAccessGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationUsersWithAccessBadRequestException + * @throws Exception\GetOrganizationUsersWithAccessForbiddenException + * @throws Exception\GetOrganizationUsersWithAccessNotFoundException + * @throws Exception\GetOrganizationUsersWithAccessTooManyRequestsException + */ + public function getOrganizationUsersWithAccess(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationUsersWithAccess($queryParameters), $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\OrganizationsOrganizationManagedGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationManagedBadRequestException + * @throws Exception\GetOrganizationManagedForbiddenException + * @throws Exception\GetOrganizationManagedNotFoundException + * @throws Exception\GetOrganizationManagedTooManyRequestsException + */ + public function getOrganizationManaged(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationManaged($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationManagedPostResponse201|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationManagedBadRequestException + * @throws Exception\PostOrganizationManagedForbiddenException + * @throws Exception\PostOrganizationManagedNotFoundException + * @throws Exception\PostOrganizationManagedUnprocessableEntityException + * @throws Exception\PostOrganizationManagedTooManyRequestsException + */ + public function postOrganizationManaged(Model\OrganizationsOrganizationManagedPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationManaged($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] The organization to find disks for. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to find disks for. 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\OrganizationsOrganizationDisksGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationDisksBadRequestException + * @throws Exception\GetOrganizationDisksForbiddenException + * @throws Exception\GetOrganizationDisksNotFoundException + * @throws Exception\GetOrganizationDisksTooManyRequestsException + */ + public function getOrganizationDisks(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationDisks($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $disk[id] The disk to return. All 'disk[]' 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\DisksDiskGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDiskBadRequestException + * @throws Exception\GetDiskForbiddenException + * @throws Exception\GetDiskNotFoundException + * @throws Exception\GetDiskTooManyRequestsException + */ + public function getDisk(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDisk($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $virtual_machine[id] The virtual machine to find disks for. All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * @var string $virtual_machine[fqdn] The virtual machine to find disks for. All 'virtual_machine[]' 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\VirtualMachinesVirtualMachineDisksGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetVirtualMachineDisksBadRequestException + * @throws Exception\GetVirtualMachineDisksForbiddenException + * @throws Exception\GetVirtualMachineDisksNotFoundException + * @throws Exception\GetVirtualMachineDisksNotAcceptableException + * @throws Exception\GetVirtualMachineDisksTooManyRequestsException + */ + public function getVirtualMachineDisks(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetVirtualMachineDisks($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] The organization to find disk templates for. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to find disk templates for. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var bool $include_universal Whether or not to include universal templates + * @var string $operating_system[id] An operating system to use to filter disk templates. All 'operating_system[]' 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\OrganizationsOrganizationDiskTemplatesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationDiskTemplatesBadRequestException + * @throws Exception\GetOrganizationDiskTemplatesForbiddenException + * @throws Exception\GetOrganizationDiskTemplatesNotFoundException + * @throws Exception\GetOrganizationDiskTemplatesTooManyRequestsException + */ + public function getOrganizationDiskTemplates(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationDiskTemplates($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $disk_template[id] The disk template to return. All 'disk_template[]' params are mutually exclusive, only one can be provided. + * @var string $disk_template[permalink] The disk template to return. All 'disk_template[]' 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\DiskTemplatesDiskTemplateGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDiskTemplateBadRequestException + * @throws Exception\GetDiskTemplateForbiddenException + * @throws Exception\GetDiskTemplateNotFoundException + * @throws Exception\GetDiskTemplateTooManyRequestsException + */ + public function getDiskTemplate(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDiskTemplate($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $disk_template[id] The disk template to return the versions for. All 'disk_template[]' params are mutually exclusive, only one can be provided. + * @var string $disk_template[permalink] The disk template to return the versions for. All 'disk_template[]' 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\DiskTemplatesDiskTemplateVersionsGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDiskTemplateVersionsBadRequestException + * @throws Exception\GetDiskTemplateVersionsForbiddenException + * @throws Exception\GetDiskTemplateVersionsNotFoundException + * @throws Exception\GetDiskTemplateVersionsTooManyRequestsException + */ + public function getDiskTemplateVersions(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDiskTemplateVersions($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $disk_template_version[id] The disk template version to return. All 'disk_template_version[]' 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\DiskTemplateVersionsDiskTemplateVersionGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDiskTemplateVersionBadRequestException + * @throws Exception\GetDiskTemplateVersionForbiddenException + * @throws Exception\GetDiskTemplateVersionNotFoundException + * @throws Exception\GetDiskTemplateVersionTooManyRequestsException + */ + public function getDiskTemplateVersion(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDiskTemplateVersion($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $disk_template_version[id] The disk template version to return. All 'disk_template_version[]' 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\DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDiskTemplateVersionSpecBadRequestException + * @throws Exception\GetDiskTemplateVersionSpecForbiddenException + * @throws Exception\GetDiskTemplateVersionSpecNotFoundException + * @throws Exception\GetDiskTemplateVersionSpecTooManyRequestsException + */ + public function getDiskTemplateVersionSpec(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDiskTemplateVersionSpec($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var int $page + * @var int $per_page + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\GpuTypesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGpuTypesBadRequestException + * @throws Exception\GetGpuTypesForbiddenException + * @throws Exception\GetGpuTypesTooManyRequestsException + */ + public function getGpuTypes(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGpuTypes($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $gpu_type[id] All 'gpu_type[]' params are mutually exclusive, only one can be provided + * @var string $gpu_type[permalink] All 'gpu_type[]' 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\GpuTypesGpuTypeGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGpuTypeBadRequestException + * @throws Exception\GetGpuTypeForbiddenException + * @throws Exception\GetGpuTypeNotFoundException + * @throws Exception\GetGpuTypeTooManyRequestsException + */ + public function getGpuType(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGpuType($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $data_center[id] The data center to list GPU types for. All 'data_center[]' params are mutually exclusive, only one can be provided. + * @var string $data_center[permalink] The data center to list GPU types for. All 'data_center[]' 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\DataCentersDataCenterGpuTypesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDataCenterGpuTypesBadRequestException + * @throws Exception\GetDataCenterGpuTypesForbiddenException + * @throws Exception\GetDataCenterGpuTypesNotFoundException + * @throws Exception\GetDataCenterGpuTypesTooManyRequestsException + */ + public function getDataCenterGpuTypes(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDataCenterGpuTypes($queryParameters), $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\OrganizationsOrganizationVirtualMachinesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationVirtualMachinesBadRequestException + * @throws Exception\GetOrganizationVirtualMachinesForbiddenException + * @throws Exception\GetOrganizationVirtualMachinesNotFoundException + * @throws Exception\GetOrganizationVirtualMachinesTooManyRequestsException + */ + public function getOrganizationVirtualMachines(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationVirtualMachines($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteVirtualMachineBadRequestException + * @throws Exception\DeleteVirtualMachineForbiddenException + * @throws Exception\DeleteVirtualMachineNotFoundException + * @throws Exception\DeleteVirtualMachineNotAcceptableException + * @throws Exception\DeleteVirtualMachineTooManyRequestsException + */ + public function deleteVirtualMachine(Model\VirtualMachinesVirtualMachineDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteVirtualMachine($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $virtual_machine[id] All 'virtual_machine[]' params are mutually exclusive, only one can be provided + * @var string $virtual_machine[fqdn] All 'virtual_machine[]' 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\VirtualMachinesVirtualMachineGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetVirtualMachineBadRequestException + * @throws Exception\GetVirtualMachineForbiddenException + * @throws Exception\GetVirtualMachineNotFoundException + * @throws Exception\GetVirtualMachineNotAcceptableException + * @throws Exception\GetVirtualMachineTooManyRequestsException + */ + public function getVirtualMachine(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetVirtualMachine($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachinePatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchVirtualMachineBadRequestException + * @throws Exception\PatchVirtualMachineForbiddenException + * @throws Exception\PatchVirtualMachineNotFoundException + * @throws Exception\PatchVirtualMachineNotAcceptableException + * @throws Exception\PatchVirtualMachineTooManyRequestsException + */ + public function patchVirtualMachine(Model\VirtualMachinesVirtualMachinePatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchVirtualMachine($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachinePackagePutResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PutVirtualMachinePackageBadRequestException + * @throws Exception\PutVirtualMachinePackageForbiddenException + * @throws Exception\PutVirtualMachinePackageNotFoundException + * @throws Exception\PutVirtualMachinePackageNotAcceptableException + * @throws Exception\PutVirtualMachinePackageTooManyRequestsException + */ + public function putVirtualMachinePackage(Model\VirtualMachinesVirtualMachinePackagePutBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PutVirtualMachinePackage($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PutVirtualMachineFlexibleResourcesBadRequestException + * @throws Exception\PutVirtualMachineFlexibleResourcesForbiddenException + * @throws Exception\PutVirtualMachineFlexibleResourcesNotFoundException + * @throws Exception\PutVirtualMachineFlexibleResourcesNotAcceptableException + * @throws Exception\PutVirtualMachineFlexibleResourcesTooManyRequestsException + */ + public function putVirtualMachineFlexibleResources(Model\VirtualMachinesVirtualMachineFlexibleResourcesPutBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PutVirtualMachineFlexibleResources($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineAllocateIpPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostVirtualMachineAllocateIpBadRequestException + * @throws Exception\PostVirtualMachineAllocateIpForbiddenException + * @throws Exception\PostVirtualMachineAllocateIpNotFoundException + * @throws Exception\PostVirtualMachineAllocateIpNotAcceptableException + * @throws Exception\PostVirtualMachineAllocateIpUnprocessableEntityException + * @throws Exception\PostVirtualMachineAllocateIpTooManyRequestsException + */ + public function postVirtualMachineAllocateIp(Model\VirtualMachinesVirtualMachineAllocateIpPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostVirtualMachineAllocateIp($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationVirtualMachinesBuildPostResponse201|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationVirtualMachinesBuildBadRequestException + * @throws Exception\PostOrganizationVirtualMachinesBuildForbiddenException + * @throws Exception\PostOrganizationVirtualMachinesBuildNotFoundException + * @throws Exception\PostOrganizationVirtualMachinesBuildUnprocessableEntityException + * @throws Exception\PostOrganizationVirtualMachinesBuildTooManyRequestsException + */ + public function postOrganizationVirtualMachinesBuild(Model\OrganizationsOrganizationVirtualMachinesBuildPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationVirtualMachinesBuild($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationVirtualMachinesBuildFromSpecBadRequestException + * @throws Exception\PostOrganizationVirtualMachinesBuildFromSpecForbiddenException + * @throws Exception\PostOrganizationVirtualMachinesBuildFromSpecNotFoundException + * @throws Exception\PostOrganizationVirtualMachinesBuildFromSpecUnprocessableEntityException + * @throws Exception\PostOrganizationVirtualMachinesBuildFromSpecTooManyRequestsException + */ + public function postOrganizationVirtualMachinesBuildFromSpec(Model\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationVirtualMachinesBuildFromSpec($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $virtual_machine_build[id] All 'virtual_machine_build[]' 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\VirtualMachinesBuildsVirtualMachineBuildGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetVirtualMachinesBuildsVirtualMachineBuildBadRequestException + * @throws Exception\GetVirtualMachinesBuildsVirtualMachineBuildForbiddenException + * @throws Exception\GetVirtualMachinesBuildsVirtualMachineBuildNotFoundException + * @throws Exception\GetVirtualMachinesBuildsVirtualMachineBuildTooManyRequestsException + */ + public function getVirtualMachinesBuildsVirtualMachineBuild(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetVirtualMachinesBuildsVirtualMachineBuild($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineStartPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostVirtualMachineStartBadRequestException + * @throws Exception\PostVirtualMachineStartForbiddenException + * @throws Exception\PostVirtualMachineStartNotFoundException + * @throws Exception\PostVirtualMachineStartNotAcceptableException + * @throws Exception\PostVirtualMachineStartTooManyRequestsException + */ + public function postVirtualMachineStart(Model\VirtualMachinesVirtualMachineStartPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostVirtualMachineStart($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineStopPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostVirtualMachineStopBadRequestException + * @throws Exception\PostVirtualMachineStopForbiddenException + * @throws Exception\PostVirtualMachineStopNotFoundException + * @throws Exception\PostVirtualMachineStopNotAcceptableException + * @throws Exception\PostVirtualMachineStopTooManyRequestsException + */ + public function postVirtualMachineStop(Model\VirtualMachinesVirtualMachineStopPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostVirtualMachineStop($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineShutdownPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostVirtualMachineShutdownBadRequestException + * @throws Exception\PostVirtualMachineShutdownForbiddenException + * @throws Exception\PostVirtualMachineShutdownNotFoundException + * @throws Exception\PostVirtualMachineShutdownNotAcceptableException + * @throws Exception\PostVirtualMachineShutdownTooManyRequestsException + */ + public function postVirtualMachineShutdown(Model\VirtualMachinesVirtualMachineShutdownPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostVirtualMachineShutdown($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineResetPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostVirtualMachineResetBadRequestException + * @throws Exception\PostVirtualMachineResetForbiddenException + * @throws Exception\PostVirtualMachineResetNotFoundException + * @throws Exception\PostVirtualMachineResetNotAcceptableException + * @throws Exception\PostVirtualMachineResetTooManyRequestsException + */ + public function postVirtualMachineReset(Model\VirtualMachinesVirtualMachineResetPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostVirtualMachineReset($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineConsoleSessionsPostResponse201|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostVirtualMachineConsoleSessionsBadRequestException + * @throws Exception\PostVirtualMachineConsoleSessionsForbiddenException + * @throws Exception\PostVirtualMachineConsoleSessionsNotFoundException + * @throws Exception\PostVirtualMachineConsoleSessionsNotAcceptableException + * @throws Exception\PostVirtualMachineConsoleSessionsUnprocessableEntityException + * @throws Exception\PostVirtualMachineConsoleSessionsTooManyRequestsException + */ + public function postVirtualMachineConsoleSessions(Model\VirtualMachinesVirtualMachineConsoleSessionsPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostVirtualMachineConsoleSessions($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] Provide an organization to only show packages available to the given organization (otherwise only public packages will be displayed). All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] Provide an organization to only show packages available to the given organization (otherwise only public packages will be displayed). 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\VirtualMachinePackagesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetVirtualMachinePackagesBadRequestException + * @throws Exception\GetVirtualMachinePackagesForbiddenException + * @throws Exception\GetVirtualMachinePackagesNotFoundException + * @throws Exception\GetVirtualMachinePackagesTooManyRequestsException + */ + public function getVirtualMachinePackages(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetVirtualMachinePackages($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $virtual_machine_package[id] All 'virtual_machine_package[]' params are mutually exclusive, only one can be provided + * @var string $virtual_machine_package[permalink] All 'virtual_machine_package[]' 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\VirtualMachinePackagesVirtualMachinePackageGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetVirtualMachinePackageBadRequestException + * @throws Exception\GetVirtualMachinePackageForbiddenException + * @throws Exception\GetVirtualMachinePackageNotFoundException + * @throws Exception\GetVirtualMachinePackageTooManyRequestsException + */ + public function getVirtualMachinePackage(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetVirtualMachinePackage($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] The organization to list SSH keys for. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to list SSH keys for. 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\OrganizationsOrganizationSshKeysGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationSshKeysBadRequestException + * @throws Exception\GetOrganizationSshKeysForbiddenException + * @throws Exception\GetOrganizationSshKeysNotFoundException + * @throws Exception\GetOrganizationSshKeysTooManyRequestsException + */ + public function getOrganizationSshKeys(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationSshKeys($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationSshKeysPostResponse201|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationSshKeysBadRequestException + * @throws Exception\PostOrganizationSshKeysForbiddenException + * @throws Exception\PostOrganizationSshKeysNotFoundException + * @throws Exception\PostOrganizationSshKeysUnprocessableEntityException + * @throws Exception\PostOrganizationSshKeysTooManyRequestsException + */ + public function postOrganizationSshKeys(Model\OrganizationsOrganizationSshKeysPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationSshKeys($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\SshKeysSshKeyDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteSshKeyBadRequestException + * @throws Exception\DeleteSshKeyForbiddenException + * @throws Exception\DeleteSshKeyNotFoundException + * @throws Exception\DeleteSshKeyConflictException + * @throws Exception\DeleteSshKeyTooManyRequestsException + */ + public function deleteSshKey(Model\SshKeysSshKeyDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteSshKey($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] The organization to return disk backup policies for. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to return disk backup policies for. 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\OrganizationsOrganizationDiskBackupPoliciesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationDiskBackupPoliciesBadRequestException + * @throws Exception\GetOrganizationDiskBackupPoliciesForbiddenException + * @throws Exception\GetOrganizationDiskBackupPoliciesNotFoundException + * @throws Exception\GetOrganizationDiskBackupPoliciesTooManyRequestsException + */ + public function getOrganizationDiskBackupPolicies(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationDiskBackupPolicies($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $virtual_machine[id] The virtual machine to return disk backup policies for. All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * @var string $virtual_machine[fqdn] The virtual machine to return disk backup policies for. All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * @var bool $include_disks If true, the returned list will include backup policies owned by disks assigned to this virtual machine in addition to those that belong to the whole virtual machine + * @var int $page + * @var int $per_page + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetVirtualMachineDiskBackupPoliciesBadRequestException + * @throws Exception\GetVirtualMachineDiskBackupPoliciesForbiddenException + * @throws Exception\GetVirtualMachineDiskBackupPoliciesNotFoundException + * @throws Exception\GetVirtualMachineDiskBackupPoliciesNotAcceptableException + * @throws Exception\GetVirtualMachineDiskBackupPoliciesTooManyRequestsException + */ + public function getVirtualMachineDiskBackupPolicies(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetVirtualMachineDiskBackupPolicies($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostVirtualMachineDiskBackupPoliciesBadRequestException + * @throws Exception\PostVirtualMachineDiskBackupPoliciesForbiddenException + * @throws Exception\PostVirtualMachineDiskBackupPoliciesNotFoundException + * @throws Exception\PostVirtualMachineDiskBackupPoliciesNotAcceptableException + * @throws Exception\PostVirtualMachineDiskBackupPoliciesUnprocessableEntityException + * @throws Exception\PostVirtualMachineDiskBackupPoliciesTooManyRequestsException + */ + public function postVirtualMachineDiskBackupPolicies(Model\VirtualMachinesVirtualMachineDiskBackupPoliciesPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostVirtualMachineDiskBackupPolicies($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $disk[id] The disk to return disk backup policies for. All 'disk[]' 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\DisksDiskDiskBackupPoliciesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDiskDiskBackupPoliciesBadRequestException + * @throws Exception\GetDiskDiskBackupPoliciesForbiddenException + * @throws Exception\GetDiskDiskBackupPoliciesNotFoundException + * @throws Exception\GetDiskDiskBackupPoliciesTooManyRequestsException + */ + public function getDiskDiskBackupPolicies(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDiskDiskBackupPolicies($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\DisksDiskDiskBackupPoliciesPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostDiskDiskBackupPoliciesBadRequestException + * @throws Exception\PostDiskDiskBackupPoliciesForbiddenException + * @throws Exception\PostDiskDiskBackupPoliciesNotFoundException + * @throws Exception\PostDiskDiskBackupPoliciesUnprocessableEntityException + * @throws Exception\PostDiskDiskBackupPoliciesTooManyRequestsException + */ + public function postDiskDiskBackupPolicies(Model\DisksDiskDiskBackupPoliciesPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostDiskDiskBackupPolicies($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\DiskBackupPoliciesDiskBackupPolicyDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteDiskBackupPolicyBadRequestException + * @throws Exception\DeleteDiskBackupPolicyForbiddenException + * @throws Exception\DeleteDiskBackupPolicyNotFoundException + * @throws Exception\DeleteDiskBackupPolicyNotAcceptableException + * @throws Exception\DeleteDiskBackupPolicyTooManyRequestsException + */ + public function deleteDiskBackupPolicy(Model\DiskBackupPoliciesDiskBackupPolicyDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteDiskBackupPolicy($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $disk_backup_policy[id] The disk backup policy to get information for. All 'disk_backup_policy[]' 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\DiskBackupPoliciesDiskBackupPolicyGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDiskBackupPolicyBadRequestException + * @throws Exception\GetDiskBackupPolicyForbiddenException + * @throws Exception\GetDiskBackupPolicyNotFoundException + * @throws Exception\GetDiskBackupPolicyNotAcceptableException + * @throws Exception\GetDiskBackupPolicyTooManyRequestsException + */ + public function getDiskBackupPolicy(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDiskBackupPolicy($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\DiskBackupPoliciesDiskBackupPolicyPatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchDiskBackupPolicyBadRequestException + * @throws Exception\PatchDiskBackupPolicyForbiddenException + * @throws Exception\PatchDiskBackupPolicyNotFoundException + * @throws Exception\PatchDiskBackupPolicyNotAcceptableException + * @throws Exception\PatchDiskBackupPolicyUnprocessableEntityException + * @throws Exception\PatchDiskBackupPolicyTooManyRequestsException + */ + public function patchDiskBackupPolicy(Model\DiskBackupPoliciesDiskBackupPolicyPatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchDiskBackupPolicy($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteDiskBackupPolicyScheduleBadRequestException + * @throws Exception\DeleteDiskBackupPolicyScheduleForbiddenException + * @throws Exception\DeleteDiskBackupPolicyScheduleNotFoundException + * @throws Exception\DeleteDiskBackupPolicyScheduleNotAcceptableException + * @throws Exception\DeleteDiskBackupPolicyScheduleTooManyRequestsException + */ + public function deleteDiskBackupPolicySchedule(Model\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteDiskBackupPolicySchedule($requestBody), $fetch); + } + + /** + * @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 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\GetOrganizationDnsZonesBadRequestException + * @throws Exception\GetOrganizationDnsZonesForbiddenException + * @throws Exception\GetOrganizationDnsZonesNotFoundException + * @throws Exception\GetOrganizationDnsZonesTooManyRequestsException + */ + public function getOrganizationDnsZones(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationDnsZones($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\PostOrganizationDnsZonesBadRequestException + * @throws Exception\PostOrganizationDnsZonesForbiddenException + * @throws Exception\PostOrganizationDnsZonesNotFoundException + * @throws Exception\PostOrganizationDnsZonesUnprocessableEntityException + * @throws Exception\PostOrganizationDnsZonesTooManyRequestsException + */ + public function postOrganizationDnsZones(Model\OrganizationsOrganizationDnsZonesPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + 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 { + * + * @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. + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDnsZonesNameserversGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationDnsZonesNameserversBadRequestException + * @throws Exception\GetOrganizationDnsZonesNameserversForbiddenException + * @throws Exception\GetOrganizationDnsZonesNameserversNotFoundException + * @throws Exception\GetOrganizationDnsZonesNameserversTooManyRequestsException + */ + public function getOrganizationDnsZonesNameservers(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationDnsZonesNameservers($queryParameters), $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\DeleteDnsZoneBadRequestException + * @throws Exception\DeleteDnsZoneForbiddenException + * @throws Exception\DeleteDnsZoneNotFoundException + * @throws Exception\DeleteDnsZoneTooManyRequestsException + */ + public function deleteDnsZone(Model\DnsZonesDnsZoneDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteDnsZone($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $dns_zone[id] All 'dns_zone[]' params are mutually exclusive, only one can be provided + * @var string $dns_zone[name] 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\GetDnsZoneBadRequestException + * @throws Exception\GetDnsZoneForbiddenException + * @throws Exception\GetDnsZoneNotFoundException + * @throws Exception\GetDnsZoneTooManyRequestsException + */ + public function getDnsZone(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDnsZone($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZonePatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchDnsZoneBadRequestException + * @throws Exception\PatchDnsZoneForbiddenException + * @throws Exception\PatchDnsZoneNotFoundException + * @throws Exception\PatchDnsZoneUnprocessableEntityException + * @throws Exception\PatchDnsZoneTooManyRequestsException + */ + public function patchDnsZone(Model\DnsZonesDnsZonePatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchDnsZone($requestBody), $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\PostDnsZoneVerifyBadRequestException + * @throws Exception\PostDnsZoneVerifyForbiddenException + * @throws Exception\PostDnsZoneVerifyNotFoundException + * @throws Exception\PostDnsZoneVerifyUnprocessableEntityException + * @throws Exception\PostDnsZoneVerifyTooManyRequestsException + */ + public function postDnsZoneVerify(Model\DnsZonesDnsZoneVerifyPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostDnsZoneVerify($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $dns_zone[id] All 'dns_zone[]' params are mutually exclusive, only one can be provided + * @var string $dns_zone[name] 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\GetDnsZoneRecordsBadRequestException + * @throws Exception\GetDnsZoneRecordsForbiddenException + * @throws Exception\GetDnsZoneRecordsNotFoundException + * @throws Exception\GetDnsZoneRecordsTooManyRequestsException + */ + public function getDnsZoneRecords(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDnsZoneRecords($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\PostDnsZoneRecordsBadRequestException + * @throws Exception\PostDnsZoneRecordsForbiddenException + * @throws Exception\PostDnsZoneRecordsNotFoundException + * @throws Exception\PostDnsZoneRecordsUnprocessableEntityException + * @throws Exception\PostDnsZoneRecordsTooManyRequestsException + */ + public function postDnsZoneRecords(Model\DnsZonesDnsZoneRecordsPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostDnsZoneRecords($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\DeleteDnsRecordBadRequestException + * @throws Exception\DeleteDnsRecordForbiddenException + * @throws Exception\DeleteDnsRecordNotFoundException + * @throws Exception\DeleteDnsRecordTooManyRequestsException + */ + public function deleteDnsRecord(Model\DnsRecordsDnsRecordDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteDnsRecord($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $dns_record[id] 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\GetDnsRecordBadRequestException + * @throws Exception\GetDnsRecordForbiddenException + * @throws Exception\GetDnsRecordNotFoundException + * @throws Exception\GetDnsRecordTooManyRequestsException + */ + public function getDnsRecord(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDnsRecord($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\PatchDnsRecordBadRequestException + * @throws Exception\PatchDnsRecordForbiddenException + * @throws Exception\PatchDnsRecordNotFoundException + * @throws Exception\PatchDnsRecordUnprocessableEntityException + * @throws Exception\PatchDnsRecordTooManyRequestsException + */ + public function patchDnsRecord(Model\DnsRecordsDnsRecordPatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchDnsRecord($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] The organization to return all security groups for. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to return all security groups for. 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\OrganizationsOrganizationSecurityGroupsGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationSecurityGroupsBadRequestException + * @throws Exception\GetOrganizationSecurityGroupsForbiddenException + * @throws Exception\GetOrganizationSecurityGroupsNotFoundException + * @throws Exception\GetOrganizationSecurityGroupsTooManyRequestsException + */ + public function getOrganizationSecurityGroups(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationSecurityGroups($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationSecurityGroupsPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationSecurityGroupsBadRequestException + * @throws Exception\PostOrganizationSecurityGroupsForbiddenException + * @throws Exception\PostOrganizationSecurityGroupsNotFoundException + * @throws Exception\PostOrganizationSecurityGroupsUnprocessableEntityException + * @throws Exception\PostOrganizationSecurityGroupsTooManyRequestsException + */ + public function postOrganizationSecurityGroups(Model\OrganizationsOrganizationSecurityGroupsPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationSecurityGroups($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsSecurityGroupDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteSecurityGroupBadRequestException + * @throws Exception\DeleteSecurityGroupForbiddenException + * @throws Exception\DeleteSecurityGroupNotFoundException + * @throws Exception\DeleteSecurityGroupConflictException + * @throws Exception\DeleteSecurityGroupUnprocessableEntityException + * @throws Exception\DeleteSecurityGroupTooManyRequestsException + */ + public function deleteSecurityGroup(Model\SecurityGroupsSecurityGroupDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteSecurityGroup($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $security_group[id] The security group to return the details for. All 'security_group[]' 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\SecurityGroupsSecurityGroupGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetSecurityGroupBadRequestException + * @throws Exception\GetSecurityGroupForbiddenException + * @throws Exception\GetSecurityGroupNotFoundException + * @throws Exception\GetSecurityGroupTooManyRequestsException + */ + public function getSecurityGroup(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetSecurityGroup($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsSecurityGroupPatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchSecurityGroupBadRequestException + * @throws Exception\PatchSecurityGroupForbiddenException + * @throws Exception\PatchSecurityGroupNotFoundException + * @throws Exception\PatchSecurityGroupUnprocessableEntityException + * @throws Exception\PatchSecurityGroupTooManyRequestsException + */ + public function patchSecurityGroup(Model\SecurityGroupsSecurityGroupPatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchSecurityGroup($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $security_group[id] The security group to return all load rules for. All 'security_group[]' 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\SecurityGroupsSecurityGroupRulesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetSecurityGroupRulesBadRequestException + * @throws Exception\GetSecurityGroupRulesForbiddenException + * @throws Exception\GetSecurityGroupRulesNotFoundException + * @throws Exception\GetSecurityGroupRulesTooManyRequestsException + */ + public function getSecurityGroupRules(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetSecurityGroupRules($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsSecurityGroupRulesPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostSecurityGroupRulesBadRequestException + * @throws Exception\PostSecurityGroupRulesForbiddenException + * @throws Exception\PostSecurityGroupRulesNotFoundException + * @throws Exception\PostSecurityGroupRulesUnprocessableEntityException + * @throws Exception\PostSecurityGroupRulesTooManyRequestsException + */ + public function postSecurityGroupRules(Model\SecurityGroupsSecurityGroupRulesPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostSecurityGroupRules($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsRulesSecurityGroupRuleDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteSecurityGroupsRulesSecurityGroupRuleBadRequestException + * @throws Exception\DeleteSecurityGroupsRulesSecurityGroupRuleForbiddenException + * @throws Exception\DeleteSecurityGroupsRulesSecurityGroupRuleNotFoundException + * @throws Exception\DeleteSecurityGroupsRulesSecurityGroupRuleUnprocessableEntityException + * @throws Exception\DeleteSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException + */ + public function deleteSecurityGroupsRulesSecurityGroupRule(Model\SecurityGroupsRulesSecurityGroupRuleDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteSecurityGroupsRulesSecurityGroupRule($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $security_group_rule[id] The security group rule to return the details for. All 'security_group_rule[]' 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\SecurityGroupsRulesSecurityGroupRuleGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetSecurityGroupsRulesSecurityGroupRuleBadRequestException + * @throws Exception\GetSecurityGroupsRulesSecurityGroupRuleForbiddenException + * @throws Exception\GetSecurityGroupsRulesSecurityGroupRuleNotFoundException + * @throws Exception\GetSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException + */ + public function getSecurityGroupsRulesSecurityGroupRule(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetSecurityGroupsRulesSecurityGroupRule($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsRulesSecurityGroupRulePatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchSecurityGroupsRulesSecurityGroupRuleBadRequestException + * @throws Exception\PatchSecurityGroupsRulesSecurityGroupRuleForbiddenException + * @throws Exception\PatchSecurityGroupsRulesSecurityGroupRuleNotFoundException + * @throws Exception\PatchSecurityGroupsRulesSecurityGroupRuleUnprocessableEntityException + * @throws Exception\PatchSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException + */ + public function patchSecurityGroupsRulesSecurityGroupRule(Model\SecurityGroupsRulesSecurityGroupRulePatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchSecurityGroupsRulesSecurityGroupRule($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] The organization to return all file storage volumes for. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to return all file storage volumes for. 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\OrganizationsOrganizationFileStorageVolumesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationFileStorageVolumesBadRequestException + * @throws Exception\GetOrganizationFileStorageVolumesForbiddenException + * @throws Exception\GetOrganizationFileStorageVolumesNotFoundException + * @throws Exception\GetOrganizationFileStorageVolumesTooManyRequestsException + */ + public function getOrganizationFileStorageVolumes(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationFileStorageVolumes($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationFileStorageVolumesPostResponse201|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationFileStorageVolumesBadRequestException + * @throws Exception\PostOrganizationFileStorageVolumesForbiddenException + * @throws Exception\PostOrganizationFileStorageVolumesNotFoundException + * @throws Exception\PostOrganizationFileStorageVolumesUnprocessableEntityException + * @throws Exception\PostOrganizationFileStorageVolumesTooManyRequestsException + */ + public function postOrganizationFileStorageVolumes(Model\OrganizationsOrganizationFileStorageVolumesPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationFileStorageVolumes($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\FileStorageVolumesFileStorageVolumeDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteFileStorageVolumeBadRequestException + * @throws Exception\DeleteFileStorageVolumeForbiddenException + * @throws Exception\DeleteFileStorageVolumeNotFoundException + * @throws Exception\DeleteFileStorageVolumeNotAcceptableException + * @throws Exception\DeleteFileStorageVolumeUnprocessableEntityException + * @throws Exception\DeleteFileStorageVolumeTooManyRequestsException + */ + public function deleteFileStorageVolume(Model\FileStorageVolumesFileStorageVolumeDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteFileStorageVolume($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $file_storage_volume[id] The file storage volume to return. All 'file_storage_volume[]' 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\FileStorageVolumesFileStorageVolumeGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetFileStorageVolumeBadRequestException + * @throws Exception\GetFileStorageVolumeForbiddenException + * @throws Exception\GetFileStorageVolumeNotFoundException + * @throws Exception\GetFileStorageVolumeNotAcceptableException + * @throws Exception\GetFileStorageVolumeTooManyRequestsException + */ + public function getFileStorageVolume(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetFileStorageVolume($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\FileStorageVolumesFileStorageVolumePatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchFileStorageVolumeBadRequestException + * @throws Exception\PatchFileStorageVolumeForbiddenException + * @throws Exception\PatchFileStorageVolumeNotFoundException + * @throws Exception\PatchFileStorageVolumeNotAcceptableException + * @throws Exception\PatchFileStorageVolumeUnprocessableEntityException + * @throws Exception\PatchFileStorageVolumeTooManyRequestsException + */ + public function patchFileStorageVolume(Model\FileStorageVolumesFileStorageVolumePatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchFileStorageVolume($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. + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationAvailableNetworksGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationAvailableNetworksBadRequestException + * @throws Exception\GetOrganizationAvailableNetworksForbiddenException + * @throws Exception\GetOrganizationAvailableNetworksNotFoundException + * @throws Exception\GetOrganizationAvailableNetworksTooManyRequestsException + */ + public function getOrganizationAvailableNetworks(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationAvailableNetworks($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $network[id] The network to return. All 'network[]' params are mutually exclusive, only one can be provided. + * @var string $network[permalink] The network to return. All 'network[]' 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\NetworksNetworkGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetNetworkBadRequestException + * @throws Exception\GetNetworkForbiddenException + * @throws Exception\GetNetworkNotFoundException + * @throws Exception\GetNetworkTooManyRequestsException + */ + public function getNetwork(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetNetwork($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] The organization to use when looking up network speed profiles. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to use when looking up network speed profiles. 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\OrganizationsOrganizationNetworkSpeedProfilesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationNetworkSpeedProfilesBadRequestException + * @throws Exception\GetOrganizationNetworkSpeedProfilesForbiddenException + * @throws Exception\GetOrganizationNetworkSpeedProfilesNotFoundException + * @throws Exception\GetOrganizationNetworkSpeedProfilesTooManyRequestsException + */ + public function getOrganizationNetworkSpeedProfiles(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationNetworkSpeedProfiles($queryParameters), $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\OrganizationsOrganizationCertificatesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationCertificatesBadRequestException + * @throws Exception\GetOrganizationCertificatesForbiddenException + * @throws Exception\GetOrganizationCertificatesNotFoundException + * @throws Exception\GetOrganizationCertificatesTooManyRequestsException + */ + public function getOrganizationCertificates(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationCertificates($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $certificate[id] All 'certificate[]' 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\CertificatesCertificateGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCertificateBadRequestException + * @throws Exception\GetCertificateForbiddenException + * @throws Exception\GetCertificateNotFoundException + * @throws Exception\GetCertificateNotAcceptableException + * @throws Exception\GetCertificateTooManyRequestsException + */ + public function getCertificate(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCertificate($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] The organization to return all load balancers for. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to return all load balancers for. 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\OrganizationsOrganizationLoadBalancersGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationLoadBalancersBadRequestException + * @throws Exception\GetOrganizationLoadBalancersForbiddenException + * @throws Exception\GetOrganizationLoadBalancersNotFoundException + * @throws Exception\GetOrganizationLoadBalancersTooManyRequestsException + */ + public function getOrganizationLoadBalancers(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationLoadBalancers($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationLoadBalancersPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationLoadBalancersBadRequestException + * @throws Exception\PostOrganizationLoadBalancersForbiddenException + * @throws Exception\PostOrganizationLoadBalancersNotFoundException + * @throws Exception\PostOrganizationLoadBalancersUnprocessableEntityException + * @throws Exception\PostOrganizationLoadBalancersTooManyRequestsException + */ + public function postOrganizationLoadBalancers(Model\OrganizationsOrganizationLoadBalancersPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationLoadBalancers($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersLoadBalancerDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteLoadBalancerBadRequestException + * @throws Exception\DeleteLoadBalancerForbiddenException + * @throws Exception\DeleteLoadBalancerNotFoundException + * @throws Exception\DeleteLoadBalancerUnprocessableEntityException + * @throws Exception\DeleteLoadBalancerTooManyRequestsException + */ + public function deleteLoadBalancer(Model\LoadBalancersLoadBalancerDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteLoadBalancer($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $load_balancer[id] The load balancer to return the details for. All 'load_balancer[]' params are mutually exclusive, only one can be provided. + * @var string $load_balancer[api_reference] The load balancer to return the details for. All 'load_balancer[]' 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\LoadBalancersLoadBalancerGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetLoadBalancerBadRequestException + * @throws Exception\GetLoadBalancerForbiddenException + * @throws Exception\GetLoadBalancerNotFoundException + * @throws Exception\GetLoadBalancerTooManyRequestsException + */ + public function getLoadBalancer(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetLoadBalancer($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersLoadBalancerPatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchLoadBalancerBadRequestException + * @throws Exception\PatchLoadBalancerForbiddenException + * @throws Exception\PatchLoadBalancerNotFoundException + * @throws Exception\PatchLoadBalancerUnprocessableEntityException + * @throws Exception\PatchLoadBalancerTooManyRequestsException + */ + public function patchLoadBalancer(Model\LoadBalancersLoadBalancerPatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchLoadBalancer($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $load_balancer[id] The load balancer to return all load rules for. All 'load_balancer[]' params are mutually exclusive, only one can be provided. + * @var string $load_balancer[api_reference] The load balancer to return all load rules for. All 'load_balancer[]' 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\LoadBalancersLoadBalancerRulesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetLoadBalancerRulesBadRequestException + * @throws Exception\GetLoadBalancerRulesForbiddenException + * @throws Exception\GetLoadBalancerRulesNotFoundException + * @throws Exception\GetLoadBalancerRulesTooManyRequestsException + */ + public function getLoadBalancerRules(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetLoadBalancerRules($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersLoadBalancerRulesPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostLoadBalancerRulesBadRequestException + * @throws Exception\PostLoadBalancerRulesForbiddenException + * @throws Exception\PostLoadBalancerRulesNotFoundException + * @throws Exception\PostLoadBalancerRulesUnprocessableEntityException + * @throws Exception\PostLoadBalancerRulesTooManyRequestsException + */ + public function postLoadBalancerRules(Model\LoadBalancersLoadBalancerRulesPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostLoadBalancerRules($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersRulesLoadBalancerRuleDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteLoadBalancersRulesLoadBalancerRuleBadRequestException + * @throws Exception\DeleteLoadBalancersRulesLoadBalancerRuleForbiddenException + * @throws Exception\DeleteLoadBalancersRulesLoadBalancerRuleNotFoundException + * @throws Exception\DeleteLoadBalancersRulesLoadBalancerRuleUnprocessableEntityException + * @throws Exception\DeleteLoadBalancersRulesLoadBalancerRuleTooManyRequestsException + */ + public function deleteLoadBalancersRulesLoadBalancerRule(Model\LoadBalancersRulesLoadBalancerRuleDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteLoadBalancersRulesLoadBalancerRule($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $load_balancer_rule[id] The load balancer rule to return the details for. All 'load_balancer_rule[]' 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\LoadBalancersRulesLoadBalancerRuleGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetLoadBalancersRulesLoadBalancerRuleBadRequestException + * @throws Exception\GetLoadBalancersRulesLoadBalancerRuleForbiddenException + * @throws Exception\GetLoadBalancersRulesLoadBalancerRuleNotFoundException + * @throws Exception\GetLoadBalancersRulesLoadBalancerRuleTooManyRequestsException + */ + public function getLoadBalancersRulesLoadBalancerRule(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetLoadBalancersRulesLoadBalancerRule($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersRulesLoadBalancerRulePatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchLoadBalancersRulesLoadBalancerRuleBadRequestException + * @throws Exception\PatchLoadBalancersRulesLoadBalancerRuleForbiddenException + * @throws Exception\PatchLoadBalancersRulesLoadBalancerRuleNotFoundException + * @throws Exception\PatchLoadBalancersRulesLoadBalancerRuleUnprocessableEntityException + * @throws Exception\PatchLoadBalancersRulesLoadBalancerRuleTooManyRequestsException + */ + public function patchLoadBalancersRulesLoadBalancerRule(Model\LoadBalancersRulesLoadBalancerRulePatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchLoadBalancersRulesLoadBalancerRule($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] The organization to use when looking up IP addresses. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to use when looking up IP addresses. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var bool $allocated If true, only return allocated IP addresss. If false, only return unallocated IP addresses. + * @var int $page + * @var int $per_page + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationIpAddressesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationIpAddressesBadRequestException + * @throws Exception\GetOrganizationIpAddressesForbiddenException + * @throws Exception\GetOrganizationIpAddressesNotFoundException + * @throws Exception\GetOrganizationIpAddressesTooManyRequestsException + */ + public function getOrganizationIpAddresses(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationIpAddresses($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationIpAddressesPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationIpAddressesBadRequestException + * @throws Exception\PostOrganizationIpAddressesForbiddenException + * @throws Exception\PostOrganizationIpAddressesNotFoundException + * @throws Exception\PostOrganizationIpAddressesUnprocessableEntityException + * @throws Exception\PostOrganizationIpAddressesTooManyRequestsException + * @throws Exception\PostOrganizationIpAddressesServiceUnavailableException + */ + public function postOrganizationIpAddresses(Model\OrganizationsOrganizationIpAddressesPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationIpAddresses($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\IpAddressesIpAddressDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteIpAddressBadRequestException + * @throws Exception\DeleteIpAddressForbiddenException + * @throws Exception\DeleteIpAddressNotFoundException + * @throws Exception\DeleteIpAddressConflictException + * @throws Exception\DeleteIpAddressTooManyRequestsException + */ + public function deleteIpAddress(Model\IpAddressesIpAddressDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteIpAddress($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $ip_address[id] The IP address to find. All 'ip_address[]' params are mutually exclusive, only one can be provided. + * @var string $ip_address[address] The IP address to find. All 'ip_address[]' 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\IpAddressesIpAddressGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetIpAddressBadRequestException + * @throws Exception\GetIpAddressForbiddenException + * @throws Exception\GetIpAddressNotFoundException + * @throws Exception\GetIpAddressTooManyRequestsException + */ + public function getIpAddress(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetIpAddress($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\IpAddressesIpAddressPatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchIpAddressBadRequestException + * @throws Exception\PatchIpAddressForbiddenException + * @throws Exception\PatchIpAddressNotFoundException + * @throws Exception\PatchIpAddressUnprocessableEntityException + * @throws Exception\PatchIpAddressTooManyRequestsException + */ + public function patchIpAddress(Model\IpAddressesIpAddressPatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchIpAddress($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\IpAddressesIpAddressUnallocatePostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostIpAddressUnallocateBadRequestException + * @throws Exception\PostIpAddressUnallocateForbiddenException + * @throws Exception\PostIpAddressUnallocateNotFoundException + * @throws Exception\PostIpAddressUnallocateConflictException + * @throws Exception\PostIpAddressUnallocateUnprocessableEntityException + * @throws Exception\PostIpAddressUnallocateTooManyRequestsException + */ + public function postIpAddressUnallocate(Model\IpAddressesIpAddressUnallocatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostIpAddressUnallocate($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $virtual_machine[id] The virtual machine to show network interfaces for. All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * @var string $virtual_machine[fqdn] The virtual machine to show network interfaces for. All 'virtual_machine[]' 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\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetVirtualMachineNetworkInterfacesBadRequestException + * @throws Exception\GetVirtualMachineNetworkInterfacesForbiddenException + * @throws Exception\GetVirtualMachineNetworkInterfacesNotFoundException + * @throws Exception\GetVirtualMachineNetworkInterfacesNotAcceptableException + * @throws Exception\GetVirtualMachineNetworkInterfacesTooManyRequestsException + */ + public function getVirtualMachineNetworkInterfaces(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetVirtualMachineNetworkInterfaces($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $virtual_machine[id] The virtual machine to find the network interface for. All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * @var string $virtual_machine[fqdn] The virtual machine to find the network interface for. All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * @var string $network[id] The network to find the network interface for. All 'network[]' params are mutually exclusive, only one can be provided. + * @var string $network[permalink] The network to find the network interface for. All 'network[]' 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\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetVirtualMachineNetworkInterfaceBadRequestException + * @throws Exception\GetVirtualMachineNetworkInterfaceForbiddenException + * @throws Exception\GetVirtualMachineNetworkInterfaceNotFoundException + * @throws Exception\GetVirtualMachineNetworkInterfaceNotAcceptableException + * @throws Exception\GetVirtualMachineNetworkInterfaceTooManyRequestsException + */ + public function getVirtualMachineNetworkInterface(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetVirtualMachineNetworkInterface($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $virtual_machine_network_interface[id] The network interface to show the information for. All 'virtual_machine_network_interface[]' 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\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetVMNIVMNIBadRequestException + * @throws Exception\GetVMNIVMNIForbiddenException + * @throws Exception\GetVMNIVMNINotFoundException + * @throws Exception\GetVMNIVMNITooManyRequestsException + */ + public function getVMNIVMNI(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetVMNIVMNI($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $virtual_machine_network_interface[id] The network interface to get IP addresses for. All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. + * @var string $address_version The IP address version to return results for + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionBadRequestException + * @throws Exception\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionForbiddenException + * @throws Exception\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionNotFoundException + * @throws Exception\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionTooManyRequestsException + */ + public function getVirtualMachineNetworkInterfaceAvailableIpsAddressVersion(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersion($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostVirtualMachineNetworkInterfaceAllocateIpBadRequestException + * @throws Exception\PostVirtualMachineNetworkInterfaceAllocateIpForbiddenException + * @throws Exception\PostVirtualMachineNetworkInterfaceAllocateIpNotFoundException + * @throws Exception\PostVirtualMachineNetworkInterfaceAllocateIpUnprocessableEntityException + * @throws Exception\PostVirtualMachineNetworkInterfaceAllocateIpTooManyRequestsException + */ + public function postVirtualMachineNetworkInterfaceAllocateIp(Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostVirtualMachineNetworkInterfaceAllocateIp($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpBadRequestException + * @throws Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpForbiddenException + * @throws Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpNotFoundException + * @throws Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpTooManyRequestsException + * @throws Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpServiceUnavailableException + */ + public function postVirtualMachineNetworkInterfaceAllocateNewIp(Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostVirtualMachineNetworkInterfaceAllocateNewIp($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileBadRequestException + * @throws Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileForbiddenException + * @throws Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileNotFoundException + * @throws Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileNotAcceptableException + * @throws Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileUnprocessableEntityException + * @throws Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileTooManyRequestsException + */ + public function patchVirtualMachineNetworkInterfaceUpdateSpeedProfile(Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfile($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] The organization to list the tags for. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to list the tags for. 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\OrganizationsOrganizationTagsGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationTagsBadRequestException + * @throws Exception\GetOrganizationTagsForbiddenException + * @throws Exception\GetOrganizationTagsNotFoundException + * @throws Exception\GetOrganizationTagsTooManyRequestsException + */ + public function getOrganizationTags(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationTags($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationTagsPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationTagsBadRequestException + * @throws Exception\PostOrganizationTagsForbiddenException + * @throws Exception\PostOrganizationTagsNotFoundException + * @throws Exception\PostOrganizationTagsUnprocessableEntityException + * @throws Exception\PostOrganizationTagsTooManyRequestsException + */ + public function postOrganizationTags(Model\OrganizationsOrganizationTagsPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationTags($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\TagsTagDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteTagBadRequestException + * @throws Exception\DeleteTagForbiddenException + * @throws Exception\DeleteTagNotFoundException + * @throws Exception\DeleteTagTooManyRequestsException + */ + public function deleteTag(Model\TagsTagDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteTag($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $tag[id] The tag to load the details for. All 'tag[]' 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\TagsTagGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetTagBadRequestException + * @throws Exception\GetTagForbiddenException + * @throws Exception\GetTagNotFoundException + * @throws Exception\GetTagTooManyRequestsException + */ + public function getTag(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetTag($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\TagsTagPatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchTagBadRequestException + * @throws Exception\PatchTagForbiddenException + * @throws Exception\PatchTagNotFoundException + * @throws Exception\PatchTagUnprocessableEntityException + * @throws Exception\PatchTagTooManyRequestsException + */ + public function patchTag(Model\TagsTagPatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchTag($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] The organization to return groups for. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to return groups for. All 'organization[]' 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\OrganizationsOrganizationVirtualMachineGroupsGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationVirtualMachineGroupsBadRequestException + * @throws Exception\GetOrganizationVirtualMachineGroupsForbiddenException + * @throws Exception\GetOrganizationVirtualMachineGroupsNotFoundException + * @throws Exception\GetOrganizationVirtualMachineGroupsTooManyRequestsException + */ + public function getOrganizationVirtualMachineGroups(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationVirtualMachineGroups($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationVirtualMachineGroupsPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationVirtualMachineGroupsBadRequestException + * @throws Exception\PostOrganizationVirtualMachineGroupsForbiddenException + * @throws Exception\PostOrganizationVirtualMachineGroupsNotFoundException + * @throws Exception\PostOrganizationVirtualMachineGroupsUnprocessableEntityException + * @throws Exception\PostOrganizationVirtualMachineGroupsTooManyRequestsException + */ + public function postOrganizationVirtualMachineGroups(Model\OrganizationsOrganizationVirtualMachineGroupsPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationVirtualMachineGroups($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineGroupsVirtualMachineGroupDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteVirtualMachineGroupBadRequestException + * @throws Exception\DeleteVirtualMachineGroupForbiddenException + * @throws Exception\DeleteVirtualMachineGroupNotFoundException + * @throws Exception\DeleteVirtualMachineGroupConflictException + * @throws Exception\DeleteVirtualMachineGroupTooManyRequestsException + */ + public function deleteVirtualMachineGroup(Model\VirtualMachineGroupsVirtualMachineGroupDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteVirtualMachineGroup($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $virtual_machine_group[id] The virtual machine group to retrieve. All 'virtual_machine_group[]' 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\VirtualMachineGroupsVirtualMachineGroupGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetVirtualMachineGroupBadRequestException + * @throws Exception\GetVirtualMachineGroupForbiddenException + * @throws Exception\GetVirtualMachineGroupNotFoundException + * @throws Exception\GetVirtualMachineGroupTooManyRequestsException + */ + public function getVirtualMachineGroup(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetVirtualMachineGroup($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineGroupsVirtualMachineGroupPatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchVirtualMachineGroupBadRequestException + * @throws Exception\PatchVirtualMachineGroupForbiddenException + * @throws Exception\PatchVirtualMachineGroupNotFoundException + * @throws Exception\PatchVirtualMachineGroupUnprocessableEntityException + * @throws Exception\PatchVirtualMachineGroupTooManyRequestsException + */ + public function patchVirtualMachineGroup(Model\VirtualMachineGroupsVirtualMachineGroupPatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchVirtualMachineGroup($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var int $page + * @var int $per_page + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OperatingSystemsGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOperatingSystemsBadRequestException + * @throws Exception\GetOperatingSystemsForbiddenException + * @throws Exception\GetOperatingSystemsTooManyRequestsException + */ + public function getOperatingSystems(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOperatingSystems($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $operating_system[id] The operating system to return. All 'operating_system[]' 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\OperatingSystemsOperatingSystemGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOperatingSystemBadRequestException + * @throws Exception\GetOperatingSystemForbiddenException + * @throws Exception\GetOperatingSystemNotFoundException + * @throws Exception\GetOperatingSystemTooManyRequestsException + */ + public function getOperatingSystem(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOperatingSystem($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $organization[id] The organization to find all trash objects for. All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to find all trash objects for. 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\OrganizationsOrganizationTrashObjectsGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationTrashObjectsBadRequestException + * @throws Exception\GetOrganizationTrashObjectsForbiddenException + * @throws Exception\GetOrganizationTrashObjectsNotFoundException + * @throws Exception\GetOrganizationTrashObjectsTooManyRequestsException + */ + public function getOrganizationTrashObjects(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationTrashObjects($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationTrashObjectsPurgeAllBadRequestException + * @throws Exception\PostOrganizationTrashObjectsPurgeAllForbiddenException + * @throws Exception\PostOrganizationTrashObjectsPurgeAllNotFoundException + * @throws Exception\PostOrganizationTrashObjectsPurgeAllNotAcceptableException + * @throws Exception\PostOrganizationTrashObjectsPurgeAllTooManyRequestsException + */ + public function postOrganizationTrashObjectsPurgeAll(Model\OrganizationsOrganizationTrashObjectsPurgeAllPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationTrashObjectsPurgeAll($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\TrashObjectsTrashObjectDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteTrashObjectBadRequestException + * @throws Exception\DeleteTrashObjectForbiddenException + * @throws Exception\DeleteTrashObjectNotFoundException + * @throws Exception\DeleteTrashObjectNotAcceptableException + * @throws Exception\DeleteTrashObjectTooManyRequestsException + */ + public function deleteTrashObject(Model\TrashObjectsTrashObjectDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteTrashObject($requestBody), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $trash_object[id] The trash object to find. All 'trash_object[]' params are mutually exclusive, only one can be provided. + * @var string $trash_object[object_id] The trash object to find. All 'trash_object[]' 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\TrashObjectsTrashObjectGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetTrashObjectBadRequestException + * @throws Exception\GetTrashObjectForbiddenException + * @throws Exception\GetTrashObjectNotFoundException + * @throws Exception\GetTrashObjectTooManyRequestsException + */ + public function getTrashObject(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetTrashObject($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\TrashObjectsTrashObjectRestorePostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostTrashObjectRestoreBadRequestException + * @throws Exception\PostTrashObjectRestoreForbiddenException + * @throws Exception\PostTrashObjectRestoreNotFoundException + * @throws Exception\PostTrashObjectRestoreTooManyRequestsException + */ + public function postTrashObjectRestore(Model\TrashObjectsTrashObjectRestorePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostTrashObjectRestore($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\ZonesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetZonesBadRequestException + * @throws Exception\GetZonesForbiddenException + * @throws Exception\GetZonesTooManyRequestsException + */ + public function getZones(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetZones(), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $zone[id] The zone to find. All 'zone[]' params are mutually exclusive, only one can be provided. + * @var string $zone[permalink] The zone to find. All '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\ZonesZoneGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetZoneBadRequestException + * @throws Exception\GetZoneForbiddenException + * @throws Exception\GetZoneNotFoundException + * @throws Exception\GetZoneTooManyRequestsException + */ + public function getZone(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetZone($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var int $page + * @var int $per_page + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\CountriesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCountriesBadRequestException + * @throws Exception\GetCountriesForbiddenException + * @throws Exception\GetCountriesTooManyRequestsException + */ + public function getCountries(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCountries($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $country[id] The country to return. All 'country[]' params are mutually exclusive, only one can be provided. + * @var string $country[iso_code2] The country to return. All 'country[]' params are mutually exclusive, only one can be provided. + * @var string $country[iso_code3] The country to return. All 'country[]' 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\CountriesCountryGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCountryBadRequestException + * @throws Exception\GetCountryForbiddenException + * @throws Exception\GetCountryNotFoundException + * @throws Exception\GetCountryTooManyRequestsException + */ + public function getCountry(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCountry($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $country[id] The country to return states for. All 'country[]' params are mutually exclusive, only one can be provided. + * @var string $country[iso_code2] The country to return states for. All 'country[]' params are mutually exclusive, only one can be provided. + * @var string $country[iso_code3] The country to return states for. All 'country[]' 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\CountriesCountryCountryStatesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCountryCountryStatesBadRequestException + * @throws Exception\GetCountryCountryStatesForbiddenException + * @throws Exception\GetCountryCountryStatesNotFoundException + * @throws Exception\GetCountryCountryStatesTooManyRequestsException + */ + public function getCountryCountryStates(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCountryCountryStates($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $country_state[id] The country state to return. All 'country_state[]' 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\CountryStatesCountryStateGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCountryStateBadRequestException + * @throws Exception\GetCountryStateForbiddenException + * @throws Exception\GetCountryStateNotFoundException + * @throws Exception\GetCountryStateTooManyRequestsException + */ + public function getCountryState(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCountryState($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var int $page + * @var int $per_page + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\CurrenciesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCurrenciesBadRequestException + * @throws Exception\GetCurrenciesForbiddenException + * @throws Exception\GetCurrenciesTooManyRequestsException + */ + public function getCurrencies(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCurrencies($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $currency[id] The currency to return. All 'currency[]' params are mutually exclusive, only one can be provided. + * @var string $currency[iso_code] The currency to return. All 'currency[]' 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\CurrenciesCurrencyGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCurrencyBadRequestException + * @throws Exception\GetCurrencyForbiddenException + * @throws Exception\GetCurrencyNotFoundException + * @throws Exception\GetCurrencyTooManyRequestsException + */ + public function getCurrency(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCurrency($queryParameters), $fetch); + } + + /** + * @param array $queryParameters { + * + * @var string $task[id] All 'task[]' 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\TasksTaskGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetTaskBadRequestException + * @throws Exception\GetTaskForbiddenException + * @throws Exception\GetTaskNotFoundException + * @throws Exception\GetTaskTooManyRequestsException + */ + public function getTask(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetTask($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\UsersCurrentGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetUsersCurrentBadRequestException + * @throws Exception\GetUsersCurrentForbiddenException + * @throws Exception\GetUsersCurrentNotFoundException + * @throws Exception\GetUsersCurrentTooManyRequestsException + */ + public function getUsersCurrent(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetUsersCurrent(), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Krystal\Katapult\KatapultAPI\Model\InvalidateLinkedWebSessionPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostInvalidateLinkedWebSessionBadRequestException + * @throws Exception\PostInvalidateLinkedWebSessionForbiddenException + * @throws Exception\PostInvalidateLinkedWebSessionTooManyRequestsException + */ + public function postInvalidateLinkedWebSession(Model\InvalidateLinkedWebSessionPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostInvalidateLinkedWebSession($requestBody), $fetch); + } + + public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = []) + { + if (null === $httpClient) { + $httpClient = \Http\Discovery\Psr18ClientDiscovery::find(); + $plugins = []; + $uri = \Http\Discovery\Psr17FactoryDiscovery::findUriFactory()->createUri('http://katapult-api.localhost/core/v1'); + $plugins[] = new \Http\Client\Common\Plugin\AddHostPlugin($uri); + $plugins[] = new \Http\Client\Common\Plugin\AddPathPlugin($uri); + if (count($additionalPlugins) > 0) { + $plugins = array_merge($plugins, $additionalPlugins); + } + $httpClient = new \Http\Client\Common\PluginClient($httpClient, $plugins); + } + $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); + $streamFactory = \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory(); + $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new Normalizer\JaneObjectNormalizer()]; + if (count($additionalNormalizers) > 0) { + $normalizers = array_merge($normalizers, $additionalNormalizers); + } + $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(['json_decode_associative' => true]))]); + + return new static($httpClient, $requestFactory, $serializer, $streamFactory); + } +} diff --git a/src/ClientFactory.php b/src/ClientFactory.php new file mode 100644 index 00000000..2b3fe0c1 --- /dev/null +++ b/src/ClientFactory.php @@ -0,0 +1,96 @@ +token = $token; + } + + /** + * @param string $host Hostname for Katapult. You don't need to explicitly set this if you're using api.katapult.io. + * + * @return $this + */ + public function setHost(string $host): self + { + $this->host = $host; + + return $this; + } + + /** + * @param ClientInterface|null $httpClient Inject a ClientInterface if you're not relying on php-http/discovery. + * + * @return $this + */ + public function setHttpClient(?ClientInterface $httpClient): self + { + $this->httpClient = $httpClient; + + return $this; + } + + /** + * Create an instance of the Katapult API Client. + * @return Client + */ + public function create(): Client + { + if (is_null($this->httpClient)) { + $this->httpClient = Psr18ClientDiscovery::find(); + } + + $uri = Psr17FactoryDiscovery::findUriFactory()->createUri('https://' . $this->host . '/core/v1'); + + $plugins = []; + + $plugins[] = new AddHostPlugin($uri); + $plugins[] = new AddPathPlugin($uri); + + $plugins[] = new HeaderSetPlugin([ + 'Authorization' => 'Bearer ' . $this->token, + 'User-Agent' => 'KatapultAPIClientPHP/' . self::VERSION, + ]); + + $plugins[] = new ErrorPlugin(); + + $pluginClient = new PluginClient($this->httpClient, $plugins); + + return Client::create($pluginClient); + } +} diff --git a/src/Endpoint/DeleteDiskBackupPolicy.php b/src/Endpoint/DeleteDiskBackupPolicy.php new file mode 100644 index 00000000..edd6538f --- /dev/null +++ b/src/Endpoint/DeleteDiskBackupPolicy.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/disk_backup_policies/:disk_backup_policy'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DiskBackupPoliciesDiskBackupPolicyDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DiskBackupPoliciesDiskBackupPolicyDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskBackupPolicyNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteDiskBackupPolicySchedule.php b/src/Endpoint/DeleteDiskBackupPolicySchedule.php new file mode 100644 index 00000000..0c38e4ef --- /dev/null +++ b/src/Endpoint/DeleteDiskBackupPolicySchedule.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/disk_backup_policies/:disk_backup_policy/schedule'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyScheduleBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyScheduleForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyScheduleNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyScheduleNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyScheduleTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyScheduleBadRequestException($response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyScheduleForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyScheduleNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskBackupPolicyNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyScheduleNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDiskBackupPolicyScheduleTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteDnsRecord.php b/src/Endpoint/DeleteDnsRecord.php new file mode 100644 index 00000000..545d8c20 --- /dev/null +++ b/src/Endpoint/DeleteDnsRecord.php @@ -0,0 +1,79 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/dns_records/:dns_record'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSRecordNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteDnsRecordsDnsRecord.php b/src/Endpoint/DeleteDnsRecordsDnsRecord.php new file mode 100644 index 00000000..0b50eca9 --- /dev/null +++ b/src/Endpoint/DeleteDnsRecordsDnsRecord.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/dns/records/:dns_record'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordsDnsRecordBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordsDnsRecordForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordsDnsRecordNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordsDnsRecordUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordsDnsRecordTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordsDnsRecordBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordsDnsRecordForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordsDnsRecordNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSRecordNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordsDnsRecordUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsRecordsDnsRecordTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteDnsZone.php b/src/Endpoint/DeleteDnsZone.php new file mode 100644 index 00000000..d983f7a7 --- /dev/null +++ b/src/Endpoint/DeleteDnsZone.php @@ -0,0 +1,79 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/dns_zones/:dns_zone'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZoneBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZoneForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZoneNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZoneTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZoneBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZoneForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZoneNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZoneTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteDnsZonesDnsZone.php b/src/Endpoint/DeleteDnsZonesDnsZone.php new file mode 100644 index 00000000..db9cc5da --- /dev/null +++ b/src/Endpoint/DeleteDnsZonesDnsZone.php @@ -0,0 +1,79 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/dns/zones/:dns_zone'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZonesDnsZoneBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZonesDnsZoneForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZonesDnsZoneNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZonesDnsZoneTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZonesDnsZoneBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZonesDnsZoneForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZonesDnsZoneNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteDnsZonesDnsZoneTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteFileStorageVolume.php b/src/Endpoint/DeleteFileStorageVolume.php new file mode 100644 index 00000000..23a7f8ad --- /dev/null +++ b/src/Endpoint/DeleteFileStorageVolume.php @@ -0,0 +1,87 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/file_storage_volumes/:file_storage_volume'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\FileStorageVolumesFileStorageVolumeDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\FileStorageVolumesFileStorageVolumeDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteFileStorageVolumeBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteFileStorageVolumeForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteFileStorageVolumeNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteFileStorageVolumeNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteFileStorageVolumeUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteFileStorageVolumeTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteFileStorageVolumeBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteFileStorageVolumeForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteFileStorageVolumeNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseFileStorageVolumeNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteFileStorageVolumeNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteFileStorageVolumeUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteFileStorageVolumeTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteIpAddress.php b/src/Endpoint/DeleteIpAddress.php new file mode 100644 index 00000000..347dfb85 --- /dev/null +++ b/src/Endpoint/DeleteIpAddress.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/ip_addresses/:ip_address'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\IpAddressesIpAddressDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\IpAddressesIpAddressDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteIpAddressBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteIpAddressForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteIpAddressNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteIpAddressConflictException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteIpAddressTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteIpAddressBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteIpAddressForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteIpAddressNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseIPAddressNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteIpAddressConflictException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseResourceDoesNotSupportUnallocationResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteIpAddressTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteLoadBalancer.php b/src/Endpoint/DeleteLoadBalancer.php new file mode 100644 index 00000000..a2881b88 --- /dev/null +++ b/src/Endpoint/DeleteLoadBalancer.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/load_balancers/:load_balancer'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\LoadBalancersLoadBalancerDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersLoadBalancerDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancerBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancerForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancerNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancerUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancerTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancerBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancerForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancerNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancerUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancerTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteLoadBalancersRulesLoadBalancerRule.php b/src/Endpoint/DeleteLoadBalancersRulesLoadBalancerRule.php new file mode 100644 index 00000000..c65aa9f0 --- /dev/null +++ b/src/Endpoint/DeleteLoadBalancersRulesLoadBalancerRule.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/load_balancers/rules/:load_balancer_rule'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\LoadBalancersRulesLoadBalancerRuleDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersRulesLoadBalancerRuleDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancersRulesLoadBalancerRuleBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancersRulesLoadBalancerRuleForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancersRulesLoadBalancerRuleNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancersRulesLoadBalancerRuleUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancersRulesLoadBalancerRuleTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancersRulesLoadBalancerRuleBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancersRulesLoadBalancerRuleForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancersRulesLoadBalancerRuleNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerRuleNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancersRulesLoadBalancerRuleUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteLoadBalancersRulesLoadBalancerRuleTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteSecurityGroup.php b/src/Endpoint/DeleteSecurityGroup.php new file mode 100644 index 00000000..c2218ae3 --- /dev/null +++ b/src/Endpoint/DeleteSecurityGroup.php @@ -0,0 +1,87 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/security_groups/:security_group'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsSecurityGroupDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsSecurityGroupDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupConflictException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupConflictException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDeletionRestrictedResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteSecurityGroupsRulesSecurityGroupRule.php b/src/Endpoint/DeleteSecurityGroupsRulesSecurityGroupRule.php new file mode 100644 index 00000000..d67fbbef --- /dev/null +++ b/src/Endpoint/DeleteSecurityGroupsRulesSecurityGroupRule.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/security_groups/rules/:security_group_rule'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsRulesSecurityGroupRuleDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsRulesSecurityGroupRuleDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupsRulesSecurityGroupRuleBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupsRulesSecurityGroupRuleForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupsRulesSecurityGroupRuleNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupsRulesSecurityGroupRuleUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupsRulesSecurityGroupRuleBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupsRulesSecurityGroupRuleForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupsRulesSecurityGroupRuleNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupRuleNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupsRulesSecurityGroupRuleUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteSshKey.php b/src/Endpoint/DeleteSshKey.php new file mode 100644 index 00000000..1db57bed --- /dev/null +++ b/src/Endpoint/DeleteSshKey.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/ssh_keys/:ssh_key'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\SshKeysSshKeyDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\SshKeysSshKeyDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSshKeyBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSshKeyForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSshKeyNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSshKeyConflictException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteSshKeyTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\SshKeysSshKeyDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSshKeyBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSshKeyForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSshKeyNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSSHKeyNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSshKeyConflictException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDeletionRestrictedResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteSshKeyTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteTag.php b/src/Endpoint/DeleteTag.php new file mode 100644 index 00000000..652dbd36 --- /dev/null +++ b/src/Endpoint/DeleteTag.php @@ -0,0 +1,79 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/tags/:tag'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\TagsTagDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\TagsTagDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteTagBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteTagForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteTagNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteTagTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteTagBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteTagForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteTagNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTagNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteTagTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteTrashObject.php b/src/Endpoint/DeleteTrashObject.php new file mode 100644 index 00000000..9e7a0ba3 --- /dev/null +++ b/src/Endpoint/DeleteTrashObject.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/trash_objects/:trash_object'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\TrashObjectsTrashObjectDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\TrashObjectsTrashObjectDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteTrashObjectBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteTrashObjectForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteTrashObjectNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteTrashObjectNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteTrashObjectTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteTrashObjectBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteTrashObjectForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteTrashObjectNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTrashObjectNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteTrashObjectNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTaskQueueingErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteTrashObjectTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteVirtualMachine.php b/src/Endpoint/DeleteVirtualMachine.php new file mode 100644 index 00000000..0e26df60 --- /dev/null +++ b/src/Endpoint/DeleteVirtualMachine.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/DeleteVirtualMachineGroup.php b/src/Endpoint/DeleteVirtualMachineGroup.php new file mode 100644 index 00000000..784c6c64 --- /dev/null +++ b/src/Endpoint/DeleteVirtualMachineGroup.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/virtual_machine_groups/:virtual_machine_group'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachineGroupsVirtualMachineGroupDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineGroupsVirtualMachineGroupDeleteResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineGroupBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineGroupForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineGroupNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineGroupConflictException + * @throws \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineGroupTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineGroupBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineGroupForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineGroupNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineGroupNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineGroupConflictException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDeletionRestrictedResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\DeleteVirtualMachineGroupTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetCertificate.php b/src/Endpoint/GetCertificate.php new file mode 100644 index 00000000..8ccd8601 --- /dev/null +++ b/src/Endpoint/GetCertificate.php @@ -0,0 +1,96 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/certificates/:certificate'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['certificate[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('certificate[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\CertificatesCertificateGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCertificateBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCertificateForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCertificateNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCertificateNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCertificateTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\CertificatesCertificateGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCertificateBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCertificateForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCertificateNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCertificateNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCertificateNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCertificateTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetCountries.php b/src/Endpoint/GetCountries.php new file mode 100644 index 00000000..5c03e93f --- /dev/null +++ b/src/Endpoint/GetCountries.php @@ -0,0 +1,90 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/countries'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\CountriesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountriesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountriesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountriesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountriesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountriesForbiddenException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountriesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetCountry.php b/src/Endpoint/GetCountry.php new file mode 100644 index 00000000..c83f8876 --- /dev/null +++ b/src/Endpoint/GetCountry.php @@ -0,0 +1,96 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/countries/:country'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['country[id]', 'country[iso_code2]', 'country[iso_code3]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('country[id]', ['string']); + $optionsResolver->addAllowedTypes('country[iso_code2]', ['string']); + $optionsResolver->addAllowedTypes('country[iso_code3]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\CountriesCountryGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountryBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountryForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountryNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountryTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountryBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountryForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountryNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCountryNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountryTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetCountryCountryStates.php b/src/Endpoint/GetCountryCountryStates.php new file mode 100644 index 00000000..0a39d65b --- /dev/null +++ b/src/Endpoint/GetCountryCountryStates.php @@ -0,0 +1,100 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/countries/:country/country_states'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['country[id]', 'country[iso_code2]', 'country[iso_code3]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('country[id]', ['string']); + $optionsResolver->addAllowedTypes('country[iso_code2]', ['string']); + $optionsResolver->addAllowedTypes('country[iso_code3]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\CountriesCountryCountryStatesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountryCountryStatesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountryCountryStatesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountryCountryStatesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountryCountryStatesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryCountryStatesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountryCountryStatesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountryCountryStatesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountryCountryStatesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCountryNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountryCountryStatesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetCountryState.php b/src/Endpoint/GetCountryState.php new file mode 100644 index 00000000..d0df1642 --- /dev/null +++ b/src/Endpoint/GetCountryState.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/country_states/:country_state'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['country_state[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('country_state[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\CountryStatesCountryStateGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountryStateBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountryStateForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountryStateNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCountryStateTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountryStatesCountryStateGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountryStateBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountryStateForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountryStateNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCountryStateNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCountryStateTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetCurrencies.php b/src/Endpoint/GetCurrencies.php new file mode 100644 index 00000000..a6d12180 --- /dev/null +++ b/src/Endpoint/GetCurrencies.php @@ -0,0 +1,90 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/currencies'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\CurrenciesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCurrenciesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCurrenciesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCurrenciesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCurrenciesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCurrenciesForbiddenException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCurrenciesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetCurrency.php b/src/Endpoint/GetCurrency.php new file mode 100644 index 00000000..a21b7853 --- /dev/null +++ b/src/Endpoint/GetCurrency.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/currencies/:currency'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['currency[id]', 'currency[iso_code]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('currency[id]', ['string']); + $optionsResolver->addAllowedTypes('currency[iso_code]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\CurrenciesCurrencyGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCurrencyBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCurrencyForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCurrencyNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetCurrencyTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesCurrencyGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCurrencyBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCurrencyForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCurrencyNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCurrencyNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetCurrencyTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDataCenter.php b/src/Endpoint/GetDataCenter.php new file mode 100644 index 00000000..2f46d7f9 --- /dev/null +++ b/src/Endpoint/GetDataCenter.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/data_centers/:data_center'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['data_center[id]', 'data_center[permalink]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('data_center[id]', ['string']); + $optionsResolver->addAllowedTypes('data_center[permalink]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DataCentersDataCenterGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDataCenterNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDataCenterDefaultNetwork.php b/src/Endpoint/GetDataCenterDefaultNetwork.php new file mode 100644 index 00000000..617d96d4 --- /dev/null +++ b/src/Endpoint/GetDataCenterDefaultNetwork.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/data_centers/:data_center/default_network'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['data_center[id]', 'data_center[permalink]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('data_center[id]', ['string']); + $optionsResolver->addAllowedTypes('data_center[permalink]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DataCentersDataCenterDefaultNetworkGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterDefaultNetworkBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterDefaultNetworkForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterDefaultNetworkNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterDefaultNetworkTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterDefaultNetworkGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterDefaultNetworkBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterDefaultNetworkForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterDefaultNetworkNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDataCenterNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterDefaultNetworkTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDataCenterGpuTypes.php b/src/Endpoint/GetDataCenterGpuTypes.php new file mode 100644 index 00000000..6436b32c --- /dev/null +++ b/src/Endpoint/GetDataCenterGpuTypes.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/data_centers/:data_center/gpu_types'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['data_center[id]', 'data_center[permalink]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('data_center[id]', ['string']); + $optionsResolver->addAllowedTypes('data_center[permalink]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DataCentersDataCenterGpuTypesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterGpuTypesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterGpuTypesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterGpuTypesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterGpuTypesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGpuTypesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterGpuTypesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterGpuTypesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterGpuTypesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDataCenterNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCenterGpuTypesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDataCenters.php b/src/Endpoint/GetDataCenters.php new file mode 100644 index 00000000..731ec2a8 --- /dev/null +++ b/src/Endpoint/GetDataCenters.php @@ -0,0 +1,66 @@ + ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DataCentersGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCentersBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCentersForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDataCentersTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCentersBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCentersForbiddenException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDataCentersTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDisk.php b/src/Endpoint/GetDisk.php new file mode 100644 index 00000000..2593e115 --- /dev/null +++ b/src/Endpoint/GetDisk.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/disks/:disk'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['disk[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('disk[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DisksDiskGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDiskBackupPolicy.php b/src/Endpoint/GetDiskBackupPolicy.php new file mode 100644 index 00000000..9d39af7e --- /dev/null +++ b/src/Endpoint/GetDiskBackupPolicy.php @@ -0,0 +1,96 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/disk_backup_policies/:disk_backup_policy'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['disk_backup_policy[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('disk_backup_policy[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DiskBackupPoliciesDiskBackupPolicyGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskBackupPolicyBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskBackupPolicyForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskBackupPolicyNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskBackupPolicyNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskBackupPolicyTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskBackupPolicyBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskBackupPolicyForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskBackupPolicyNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskBackupPolicyNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskBackupPolicyNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskBackupPolicyTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDiskDiskBackupPolicies.php b/src/Endpoint/GetDiskDiskBackupPolicies.php new file mode 100644 index 00000000..f43b7a00 --- /dev/null +++ b/src/Endpoint/GetDiskDiskBackupPolicies.php @@ -0,0 +1,96 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/disks/:disk/disk_backup_policies'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['disk[id]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('disk[id]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DisksDiskDiskBackupPoliciesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskDiskBackupPoliciesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskDiskBackupPoliciesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskDiskBackupPoliciesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskDiskBackupPoliciesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskDiskBackupPoliciesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskDiskBackupPoliciesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskDiskBackupPoliciesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskDiskBackupPoliciesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDiskTemplate.php b/src/Endpoint/GetDiskTemplate.php new file mode 100644 index 00000000..1309c1c4 --- /dev/null +++ b/src/Endpoint/GetDiskTemplate.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/disk_templates/:disk_template'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['disk_template[id]', 'disk_template[permalink]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('disk_template[id]', ['string']); + $optionsResolver->addAllowedTypes('disk_template[permalink]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DiskTemplatesDiskTemplateGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskTemplateNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDiskTemplateVersion.php b/src/Endpoint/GetDiskTemplateVersion.php new file mode 100644 index 00000000..eff8532c --- /dev/null +++ b/src/Endpoint/GetDiskTemplateVersion.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/disk_template_versions/:disk_template_version'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['disk_template_version[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('disk_template_version[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DiskTemplateVersionsDiskTemplateVersionGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskTemplateVersionNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDiskTemplateVersionSpec.php b/src/Endpoint/GetDiskTemplateVersionSpec.php new file mode 100644 index 00000000..27b31785 --- /dev/null +++ b/src/Endpoint/GetDiskTemplateVersionSpec.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/disk_template_versions/:disk_template_version/spec'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['disk_template_version[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('disk_template_version[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionSpecBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionSpecForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionSpecNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionSpecTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionSpecBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionSpecForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionSpecNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskTemplateVersionNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionSpecTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDiskTemplateVersions.php b/src/Endpoint/GetDiskTemplateVersions.php new file mode 100644 index 00000000..2dc70c9d --- /dev/null +++ b/src/Endpoint/GetDiskTemplateVersions.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/disk_templates/:disk_template/versions'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['disk_template[id]', 'disk_template[permalink]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('disk_template[id]', ['string']); + $optionsResolver->addAllowedTypes('disk_template[permalink]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DiskTemplatesDiskTemplateVersionsGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateVersionsGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskTemplateNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDiskTemplateVersionsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDnsRecord.php b/src/Endpoint/GetDnsRecord.php new file mode 100644 index 00000000..70569242 --- /dev/null +++ b/src/Endpoint/GetDnsRecord.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/dns_records/:dns_record'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['dns_record[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('dns_record[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSRecordNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDnsRecordsDnsRecord.php b/src/Endpoint/GetDnsRecordsDnsRecord.php new file mode 100644 index 00000000..e047324f --- /dev/null +++ b/src/Endpoint/GetDnsRecordsDnsRecord.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/dns/records/:dns_record'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['dns_record[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('dns_record[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordsDnsRecordBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordsDnsRecordForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordsDnsRecordNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordsDnsRecordTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordsDnsRecordBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordsDnsRecordForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordsDnsRecordNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSRecordNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsRecordsDnsRecordTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDnsZone.php b/src/Endpoint/GetDnsZone.php new file mode 100644 index 00000000..d185b298 --- /dev/null +++ b/src/Endpoint/GetDnsZone.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/dns_zones/:dns_zone'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['dns_zone[id]', 'dns_zone[name]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('dns_zone[id]', ['string']); + $optionsResolver->addAllowedTypes('dns_zone[name]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDnsZoneRecords.php b/src/Endpoint/GetDnsZoneRecords.php new file mode 100644 index 00000000..76f92172 --- /dev/null +++ b/src/Endpoint/GetDnsZoneRecords.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/dns_zones/:dns_zone/records'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['dns_zone[id]', 'dns_zone[name]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('dns_zone[id]', ['string']); + $optionsResolver->addAllowedTypes('dns_zone[name]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneRecordsGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneRecordsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneRecordsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneRecordsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneRecordsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneRecordsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneRecordsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneRecordsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZoneRecordsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDnsZonesDnsZone.php b/src/Endpoint/GetDnsZonesDnsZone.php new file mode 100644 index 00000000..252aebb4 --- /dev/null +++ b/src/Endpoint/GetDnsZonesDnsZone.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/dns/zones/:dns_zone'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['dns_zone[id]', 'dns_zone[name]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('dns_zone[id]', ['string']); + $optionsResolver->addAllowedTypes('dns_zone[name]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDnsZonesDnsZoneRecords.php b/src/Endpoint/GetDnsZonesDnsZoneRecords.php new file mode 100644 index 00000000..cd7be97d --- /dev/null +++ b/src/Endpoint/GetDnsZonesDnsZoneRecords.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/dns/zones/:dns_zone/records'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['dns_zone[id]', 'dns_zone[name]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('dns_zone[id]', ['string']); + $optionsResolver->addAllowedTypes('dns_zone[name]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneRecordsGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneRecordsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneRecordsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneRecordsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneRecordsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneRecordsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneRecordsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneRecordsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneRecordsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetDnsZonesDnsZoneVerificationDetails.php b/src/Endpoint/GetDnsZonesDnsZoneVerificationDetails.php new file mode 100644 index 00000000..fbc33ad6 --- /dev/null +++ b/src/Endpoint/GetDnsZonesDnsZoneVerificationDetails.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/dns/zones/:dns_zone/verification_details'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['dns_zone[id]', 'dns_zone[name]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('dns_zone[id]', ['string']); + $optionsResolver->addAllowedTypes('dns_zone[name]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneVerificationDetailsGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneVerificationDetailsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneVerificationDetailsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneVerificationDetailsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneVerificationDetailsUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneVerificationDetailsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerificationDetailsGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneVerificationDetailsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneVerificationDetailsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneVerificationDetailsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneVerificationDetailsUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneAlreadyVerifiedResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetDnsZonesDnsZoneVerificationDetailsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetFileStorageVolume.php b/src/Endpoint/GetFileStorageVolume.php new file mode 100644 index 00000000..770b659b --- /dev/null +++ b/src/Endpoint/GetFileStorageVolume.php @@ -0,0 +1,96 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/file_storage_volumes/:file_storage_volume'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['file_storage_volume[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('file_storage_volume[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\FileStorageVolumesFileStorageVolumeGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetFileStorageVolumeBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetFileStorageVolumeForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetFileStorageVolumeNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetFileStorageVolumeNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetFileStorageVolumeTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetFileStorageVolumeBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetFileStorageVolumeForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetFileStorageVolumeNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseFileStorageVolumeNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetFileStorageVolumeNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetFileStorageVolumeTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetGpuType.php b/src/Endpoint/GetGpuType.php new file mode 100644 index 00000000..94687398 --- /dev/null +++ b/src/Endpoint/GetGpuType.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/gpu_types/:gpu_type'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['gpu_type[id]', 'gpu_type[permalink]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('gpu_type[id]', ['string']); + $optionsResolver->addAllowedTypes('gpu_type[permalink]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\GpuTypesGpuTypeGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypeBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypeForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypeNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypeTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGpuTypeGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypeBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypeForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypeNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseGPUTypeNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypeTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetGpuTypes.php b/src/Endpoint/GetGpuTypes.php new file mode 100644 index 00000000..558245a0 --- /dev/null +++ b/src/Endpoint/GetGpuTypes.php @@ -0,0 +1,90 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/gpu_types'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\GpuTypesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypesForbiddenException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetGpuTypesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetIpAddress.php b/src/Endpoint/GetIpAddress.php new file mode 100644 index 00000000..b9d8fd35 --- /dev/null +++ b/src/Endpoint/GetIpAddress.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/ip_addresses/:ip_address'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['ip_address[id]', 'ip_address[address]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('ip_address[id]', ['string']); + $optionsResolver->addAllowedTypes('ip_address[address]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\IpAddressesIpAddressGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetIpAddressBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetIpAddressForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetIpAddressNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetIpAddressTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetIpAddressBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetIpAddressForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetIpAddressNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseIPAddressNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetIpAddressTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetLoadBalancer.php b/src/Endpoint/GetLoadBalancer.php new file mode 100644 index 00000000..4f2d5a28 --- /dev/null +++ b/src/Endpoint/GetLoadBalancer.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/load_balancers/:load_balancer'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['load_balancer[id]', 'load_balancer[api_reference]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('load_balancer[id]', ['string']); + $optionsResolver->addAllowedTypes('load_balancer[api_reference]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersLoadBalancerGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetLoadBalancerRules.php b/src/Endpoint/GetLoadBalancerRules.php new file mode 100644 index 00000000..99adf87d --- /dev/null +++ b/src/Endpoint/GetLoadBalancerRules.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/load_balancers/:load_balancer/rules'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['load_balancer[id]', 'load_balancer[api_reference]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('load_balancer[id]', ['string']); + $optionsResolver->addAllowedTypes('load_balancer[api_reference]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersLoadBalancerRulesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerRulesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerRulesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerRulesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerRulesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerRulesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerRulesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerRulesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancerRulesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetLoadBalancersRulesLoadBalancerRule.php b/src/Endpoint/GetLoadBalancersRulesLoadBalancerRule.php new file mode 100644 index 00000000..cf08d773 --- /dev/null +++ b/src/Endpoint/GetLoadBalancersRulesLoadBalancerRule.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/load_balancers/rules/:load_balancer_rule'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['load_balancer_rule[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('load_balancer_rule[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersRulesLoadBalancerRuleGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancersRulesLoadBalancerRuleBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancersRulesLoadBalancerRuleForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancersRulesLoadBalancerRuleNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancersRulesLoadBalancerRuleTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancersRulesLoadBalancerRuleBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancersRulesLoadBalancerRuleForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancersRulesLoadBalancerRuleNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerRuleNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetLoadBalancersRulesLoadBalancerRuleTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetNetwork.php b/src/Endpoint/GetNetwork.php new file mode 100644 index 00000000..d51cfbe3 --- /dev/null +++ b/src/Endpoint/GetNetwork.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/networks/:network'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['network[id]', 'network[permalink]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('network[id]', ['string']); + $optionsResolver->addAllowedTypes('network[permalink]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\NetworksNetworkGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetNetworkBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetNetworkForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetNetworkNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetNetworkTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworksNetworkGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetNetworkBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetNetworkForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetNetworkNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNetworkNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetNetworkTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOperatingSystem.php b/src/Endpoint/GetOperatingSystem.php new file mode 100644 index 00000000..3e902b79 --- /dev/null +++ b/src/Endpoint/GetOperatingSystem.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/operating_systems/:operating_system'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['operating_system[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('operating_system[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OperatingSystemsOperatingSystemGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsOperatingSystemGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOperatingSystemNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOperatingSystems.php b/src/Endpoint/GetOperatingSystems.php new file mode 100644 index 00000000..aebc3b8e --- /dev/null +++ b/src/Endpoint/GetOperatingSystems.php @@ -0,0 +1,90 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/operating_systems'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OperatingSystemsGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemsForbiddenException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOperatingSystemsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganization.php b/src/Endpoint/GetOrganization.php new file mode 100644 index 00000000..a8a9be43 --- /dev/null +++ b/src/Endpoint/GetOrganization.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationAvailableNetworks.php b/src/Endpoint/GetOrganizationAvailableNetworks.php new file mode 100644 index 00000000..7a1c0d4a --- /dev/null +++ b/src/Endpoint/GetOrganizationAvailableNetworks.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/available_networks'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationAvailableNetworksGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationAvailableNetworksBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationAvailableNetworksForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationAvailableNetworksNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationAvailableNetworksTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationAvailableNetworksGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationAvailableNetworksBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationAvailableNetworksForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationAvailableNetworksNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationAvailableNetworksTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationCertificates.php b/src/Endpoint/GetOrganizationCertificates.php new file mode 100644 index 00000000..b7962b01 --- /dev/null +++ b/src/Endpoint/GetOrganizationCertificates.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/certificates'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationCertificatesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationCertificatesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationCertificatesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationCertificatesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationCertificatesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationCertificatesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationCertificatesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationCertificatesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationCertificatesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationCertificatesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationDiskBackupPolicies.php b/src/Endpoint/GetOrganizationDiskBackupPolicies.php new file mode 100644 index 00000000..0121378a --- /dev/null +++ b/src/Endpoint/GetOrganizationDiskBackupPolicies.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/disk_backup_policies'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDiskBackupPoliciesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskBackupPoliciesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskBackupPoliciesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskBackupPoliciesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskBackupPoliciesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskBackupPoliciesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskBackupPoliciesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskBackupPoliciesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskBackupPoliciesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskBackupPoliciesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationDiskTemplates.php b/src/Endpoint/GetOrganizationDiskTemplates.php new file mode 100644 index 00000000..56bab38e --- /dev/null +++ b/src/Endpoint/GetOrganizationDiskTemplates.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/disk_templates'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'include_universal', 'operating_system[id]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('include_universal', ['bool']); + $optionsResolver->addAllowedTypes('operating_system[id]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDiskTemplatesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskTemplatesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskTemplatesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskTemplatesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskTemplatesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskTemplatesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskTemplatesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskTemplatesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskTemplatesNotFoundException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDiskTemplatesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationDisks.php b/src/Endpoint/GetOrganizationDisks.php new file mode 100644 index 00000000..b413862d --- /dev/null +++ b/src/Endpoint/GetOrganizationDisks.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/disks'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDisksGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDisksBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDisksForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDisksNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDisksTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDisksGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDisksBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDisksForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDisksNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDisksTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationDnsZones.php b/src/Endpoint/GetOrganizationDnsZones.php new file mode 100644 index 00000000..48feff6d --- /dev/null +++ b/src/Endpoint/GetOrganizationDnsZones.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/dns/zones'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDnsZonesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationDnsZonesNameservers.php b/src/Endpoint/GetOrganizationDnsZonesNameservers.php new file mode 100644 index 00000000..5e9dcd9b --- /dev/null +++ b/src/Endpoint/GetOrganizationDnsZonesNameservers.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/dns_zones/nameservers'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDnsZonesNameserversGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesNameserversBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesNameserversForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesNameserversNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesNameserversTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesNameserversGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesNameserversBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesNameserversForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesNameserversNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationDnsZonesNameserversTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationFileStorageVolumes.php b/src/Endpoint/GetOrganizationFileStorageVolumes.php new file mode 100644 index 00000000..74896767 --- /dev/null +++ b/src/Endpoint/GetOrganizationFileStorageVolumes.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/file_storage_volumes'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationFileStorageVolumesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationFileStorageVolumesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationFileStorageVolumesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationFileStorageVolumesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationFileStorageVolumesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationFileStorageVolumesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationFileStorageVolumesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationFileStorageVolumesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationFileStorageVolumesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationIpAddresses.php b/src/Endpoint/GetOrganizationIpAddresses.php new file mode 100644 index 00000000..0f94548f --- /dev/null +++ b/src/Endpoint/GetOrganizationIpAddresses.php @@ -0,0 +1,100 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/ip_addresses'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'allocated', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('allocated', ['bool']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationIpAddressesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationIpAddressesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationIpAddressesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationIpAddressesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationIpAddressesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationIpAddressesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationIpAddressesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationIpAddressesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationIpAddressesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationLoadBalancers.php b/src/Endpoint/GetOrganizationLoadBalancers.php new file mode 100644 index 00000000..442863fd --- /dev/null +++ b/src/Endpoint/GetOrganizationLoadBalancers.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/load_balancers'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationLoadBalancersGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationLoadBalancersBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationLoadBalancersForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationLoadBalancersNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationLoadBalancersTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationLoadBalancersBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationLoadBalancersForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationLoadBalancersNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationLoadBalancersTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationManaged.php b/src/Endpoint/GetOrganizationManaged.php new file mode 100644 index 00000000..e096f514 --- /dev/null +++ b/src/Endpoint/GetOrganizationManaged.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/managed'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationManagedGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationManagedBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationManagedForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationManagedNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationManagedTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationManagedBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationManagedForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationManagedNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationManagedTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationNetworkSpeedProfiles.php b/src/Endpoint/GetOrganizationNetworkSpeedProfiles.php new file mode 100644 index 00000000..c4268d1d --- /dev/null +++ b/src/Endpoint/GetOrganizationNetworkSpeedProfiles.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/network_speed_profiles'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationNetworkSpeedProfilesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationNetworkSpeedProfilesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationNetworkSpeedProfilesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationNetworkSpeedProfilesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationNetworkSpeedProfilesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationNetworkSpeedProfilesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationNetworkSpeedProfilesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationNetworkSpeedProfilesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationNetworkSpeedProfilesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationNetworkSpeedProfilesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationSecurityGroups.php b/src/Endpoint/GetOrganizationSecurityGroups.php new file mode 100644 index 00000000..838cee78 --- /dev/null +++ b/src/Endpoint/GetOrganizationSecurityGroups.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/security_groups'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationSecurityGroupsGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSecurityGroupsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSecurityGroupsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSecurityGroupsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSecurityGroupsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSecurityGroupsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSecurityGroupsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSecurityGroupsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSecurityGroupsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationSshKeys.php b/src/Endpoint/GetOrganizationSshKeys.php new file mode 100644 index 00000000..314f9287 --- /dev/null +++ b/src/Endpoint/GetOrganizationSshKeys.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/ssh_keys'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationSshKeysGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSshKeysBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSshKeysForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSshKeysNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSshKeysTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSshKeysBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSshKeysForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSshKeysNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationSshKeysTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationTags.php b/src/Endpoint/GetOrganizationTags.php new file mode 100644 index 00000000..2e56c700 --- /dev/null +++ b/src/Endpoint/GetOrganizationTags.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/tags'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationTagsGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTagsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTagsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTagsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTagsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTagsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTagsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTagsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTagsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationTrashObjects.php b/src/Endpoint/GetOrganizationTrashObjects.php new file mode 100644 index 00000000..b2985796 --- /dev/null +++ b/src/Endpoint/GetOrganizationTrashObjects.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/trash_objects'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationTrashObjectsGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTrashObjectsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTrashObjectsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTrashObjectsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTrashObjectsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTrashObjectsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTrashObjectsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTrashObjectsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationTrashObjectsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationUsersWithAccess.php b/src/Endpoint/GetOrganizationUsersWithAccess.php new file mode 100644 index 00000000..58c0faa2 --- /dev/null +++ b/src/Endpoint/GetOrganizationUsersWithAccess.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/users_with_access'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationUsersWithAccessGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationUsersWithAccessBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationUsersWithAccessForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationUsersWithAccessNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationUsersWithAccessTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationUsersWithAccessGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationUsersWithAccessBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationUsersWithAccessForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationUsersWithAccessNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationUsersWithAccessTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationVirtualMachineGroups.php b/src/Endpoint/GetOrganizationVirtualMachineGroups.php new file mode 100644 index 00000000..21c0f8ea --- /dev/null +++ b/src/Endpoint/GetOrganizationVirtualMachineGroups.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/virtual_machine_groups'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationVirtualMachineGroupsGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachineGroupsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachineGroupsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachineGroupsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachineGroupsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachineGroupsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachineGroupsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachineGroupsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachineGroupsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationVirtualMachines.php b/src/Endpoint/GetOrganizationVirtualMachines.php new file mode 100644 index 00000000..b78f9c3c --- /dev/null +++ b/src/Endpoint/GetOrganizationVirtualMachines.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/virtual_machines'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationVirtualMachinesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachinesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachinesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachinesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachinesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachinesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachinesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachinesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationVirtualMachinesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizations.php b/src/Endpoint/GetOrganizations.php new file mode 100644 index 00000000..1b12ec38 --- /dev/null +++ b/src/Endpoint/GetOrganizations.php @@ -0,0 +1,66 @@ + ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsForbiddenException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetOrganizationsOrganizationDnsZones.php b/src/Endpoint/GetOrganizationsOrganizationDnsZones.php new file mode 100644 index 00000000..8a79a33f --- /dev/null +++ b/src/Endpoint/GetOrganizationsOrganizationDnsZones.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/:organization/dns_zones'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDnsZonesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsOrganizationDnsZonesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsOrganizationDnsZonesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsOrganizationDnsZonesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsOrganizationDnsZonesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsOrganizationDnsZonesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsOrganizationDnsZonesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsOrganizationDnsZonesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetOrganizationsOrganizationDnsZonesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetSecurityGroup.php b/src/Endpoint/GetSecurityGroup.php new file mode 100644 index 00000000..eaf12d17 --- /dev/null +++ b/src/Endpoint/GetSecurityGroup.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/security_groups/:security_group'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['security_group[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('security_group[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsSecurityGroupGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetSecurityGroupRules.php b/src/Endpoint/GetSecurityGroupRules.php new file mode 100644 index 00000000..aab67d1e --- /dev/null +++ b/src/Endpoint/GetSecurityGroupRules.php @@ -0,0 +1,96 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/security_groups/:security_group/rules'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['security_group[id]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('security_group[id]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsSecurityGroupRulesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupRulesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupRulesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupRulesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupRulesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupRulesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupRulesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupRulesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupRulesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetSecurityGroupsRulesSecurityGroupRule.php b/src/Endpoint/GetSecurityGroupsRulesSecurityGroupRule.php new file mode 100644 index 00000000..266c9f78 --- /dev/null +++ b/src/Endpoint/GetSecurityGroupsRulesSecurityGroupRule.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/security_groups/rules/:security_group_rule'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['security_group_rule[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('security_group_rule[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsRulesSecurityGroupRuleGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupsRulesSecurityGroupRuleBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupsRulesSecurityGroupRuleForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupsRulesSecurityGroupRuleNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupsRulesSecurityGroupRuleBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupsRulesSecurityGroupRuleForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupsRulesSecurityGroupRuleNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupRuleNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetTag.php b/src/Endpoint/GetTag.php new file mode 100644 index 00000000..f4671ad1 --- /dev/null +++ b/src/Endpoint/GetTag.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/tags/:tag'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['tag[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('tag[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\TagsTagGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetTagBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetTagForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetTagNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetTagTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetTagBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetTagForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetTagNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTagNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetTagTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetTask.php b/src/Endpoint/GetTask.php new file mode 100644 index 00000000..81c5e07c --- /dev/null +++ b/src/Endpoint/GetTask.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/tasks/:task'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['task[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('task[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\TasksTaskGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetTaskBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetTaskForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetTaskNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetTaskTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\TasksTaskGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetTaskBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetTaskForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetTaskNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTaskNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetTaskTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetTrashObject.php b/src/Endpoint/GetTrashObject.php new file mode 100644 index 00000000..f8deaa03 --- /dev/null +++ b/src/Endpoint/GetTrashObject.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/trash_objects/:trash_object'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['trash_object[id]', 'trash_object[object_id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('trash_object[id]', ['string']); + $optionsResolver->addAllowedTypes('trash_object[object_id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\TrashObjectsTrashObjectGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetTrashObjectBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetTrashObjectForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetTrashObjectNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetTrashObjectTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetTrashObjectBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetTrashObjectForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetTrashObjectNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTrashObjectNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetTrashObjectTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetUsersCurrent.php b/src/Endpoint/GetUsersCurrent.php new file mode 100644 index 00000000..d094a9b6 --- /dev/null +++ b/src/Endpoint/GetUsersCurrent.php @@ -0,0 +1,70 @@ + ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\UsersCurrentGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetUsersCurrentBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetUsersCurrentForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetUsersCurrentNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetUsersCurrentTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\UsersCurrentGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetUsersCurrentBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetUsersCurrentForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetUsersCurrentNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoUserAssociatedWithIdentityResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetUsersCurrentTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetVMNIVMNI.php b/src/Endpoint/GetVMNIVMNI.php new file mode 100644 index 00000000..3e2a483c --- /dev/null +++ b/src/Endpoint/GetVMNIVMNI.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/virtual_machine_network_interfaces/:virtual_machine_network_interface'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['virtual_machine_network_interface[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('virtual_machine_network_interface[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVMNIVMNIBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVMNIVMNIForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVMNIVMNINotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVMNIVMNITooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVMNIVMNIBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVMNIVMNIForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVMNIVMNINotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNetworkInterfaceNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVMNIVMNITooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetVirtualMachine.php b/src/Endpoint/GetVirtualMachine.php new file mode 100644 index 00000000..5f4b106d --- /dev/null +++ b/src/Endpoint/GetVirtualMachine.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['virtual_machine[id]', 'virtual_machine[fqdn]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('virtual_machine[id]', ['string']); + $optionsResolver->addAllowedTypes('virtual_machine[fqdn]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetVirtualMachineDiskBackupPolicies.php b/src/Endpoint/GetVirtualMachineDiskBackupPolicies.php new file mode 100644 index 00000000..bc971957 --- /dev/null +++ b/src/Endpoint/GetVirtualMachineDiskBackupPolicies.php @@ -0,0 +1,104 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/disk_backup_policies'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['virtual_machine[id]', 'virtual_machine[fqdn]', 'include_disks', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('virtual_machine[id]', ['string']); + $optionsResolver->addAllowedTypes('virtual_machine[fqdn]', ['string']); + $optionsResolver->addAllowedTypes('include_disks', ['bool']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDiskBackupPoliciesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDiskBackupPoliciesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDiskBackupPoliciesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDiskBackupPoliciesNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDiskBackupPoliciesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDiskBackupPoliciesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDiskBackupPoliciesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDiskBackupPoliciesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDiskBackupPoliciesNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDiskBackupPoliciesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetVirtualMachineDisks.php b/src/Endpoint/GetVirtualMachineDisks.php new file mode 100644 index 00000000..1b758601 --- /dev/null +++ b/src/Endpoint/GetVirtualMachineDisks.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/disks'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['virtual_machine[id]', 'virtual_machine[fqdn]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('virtual_machine[id]', ['string']); + $optionsResolver->addAllowedTypes('virtual_machine[fqdn]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineDisksGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDisksBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDisksForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDisksNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDisksNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDisksTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDisksGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDisksBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDisksForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDisksNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDisksNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineDisksTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetVirtualMachineGroup.php b/src/Endpoint/GetVirtualMachineGroup.php new file mode 100644 index 00000000..eefb15ec --- /dev/null +++ b/src/Endpoint/GetVirtualMachineGroup.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/virtual_machine_groups/:virtual_machine_group'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['virtual_machine_group[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('virtual_machine_group[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineGroupsVirtualMachineGroupGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineGroupBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineGroupForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineGroupNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineGroupTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineGroupBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineGroupForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineGroupNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineGroupNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineGroupTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetVirtualMachineNetworkInterface.php b/src/Endpoint/GetVirtualMachineNetworkInterface.php new file mode 100644 index 00000000..968f42fe --- /dev/null +++ b/src/Endpoint/GetVirtualMachineNetworkInterface.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/networks/:network/interface'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['virtual_machine[id]', 'virtual_machine[fqdn]', 'network[id]', 'network[permalink]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('virtual_machine[id]', ['string']); + $optionsResolver->addAllowedTypes('virtual_machine[fqdn]', ['string']); + $optionsResolver->addAllowedTypes('network[id]', ['string']); + $optionsResolver->addAllowedTypes('network[permalink]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceNotFoundException($response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersion.php b/src/Endpoint/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersion.php new file mode 100644 index 00000000..709d0397 --- /dev/null +++ b/src/Endpoint/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersion.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/virtual_machine_network_interfaces/:virtual_machine_network_interface/available_ips/:address_version'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['virtual_machine_network_interface[id]', 'address_version']); + $optionsResolver->setRequired(['address_version']); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('virtual_machine_network_interface[id]', ['string']); + $optionsResolver->addAllowedTypes('address_version', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNetworkInterfaceNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetVirtualMachineNetworkInterfaces.php b/src/Endpoint/GetVirtualMachineNetworkInterfaces.php new file mode 100644 index 00000000..1f9018ef --- /dev/null +++ b/src/Endpoint/GetVirtualMachineNetworkInterfaces.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/network_interfaces'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['virtual_machine[id]', 'virtual_machine[fqdn]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('virtual_machine[id]', ['string']); + $optionsResolver->addAllowedTypes('virtual_machine[fqdn]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfacesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfacesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfacesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfacesNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfacesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfacesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfacesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfacesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfacesNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachineNetworkInterfacesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetVirtualMachinePackage.php b/src/Endpoint/GetVirtualMachinePackage.php new file mode 100644 index 00000000..3c4c7823 --- /dev/null +++ b/src/Endpoint/GetVirtualMachinePackage.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/virtual_machine_packages/:virtual_machine_package'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['virtual_machine_package[id]', 'virtual_machine_package[permalink]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('virtual_machine_package[id]', ['string']); + $optionsResolver->addAllowedTypes('virtual_machine_package[permalink]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinePackagesVirtualMachinePackageGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackageBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackageForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackageNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackageTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesVirtualMachinePackageGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackageBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackageForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackageNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachinePackageNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackageTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetVirtualMachinePackages.php b/src/Endpoint/GetVirtualMachinePackages.php new file mode 100644 index 00000000..322d5c90 --- /dev/null +++ b/src/Endpoint/GetVirtualMachinePackages.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/virtual_machine_packages'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinePackagesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackagesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackagesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackagesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackagesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackagesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackagesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackagesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinePackagesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetVirtualMachinesBuildsVirtualMachineBuild.php b/src/Endpoint/GetVirtualMachinesBuildsVirtualMachineBuild.php new file mode 100644 index 00000000..4aaf99af --- /dev/null +++ b/src/Endpoint/GetVirtualMachinesBuildsVirtualMachineBuild.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/virtual_machines/builds/:virtual_machine_build'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['virtual_machine_build[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('virtual_machine_build[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesBuildsVirtualMachineBuildGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinesBuildsVirtualMachineBuildBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinesBuildsVirtualMachineBuildForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinesBuildsVirtualMachineBuildNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinesBuildsVirtualMachineBuildTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesBuildsVirtualMachineBuildGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinesBuildsVirtualMachineBuildBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinesBuildsVirtualMachineBuildForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinesBuildsVirtualMachineBuildNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineBuildNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetVirtualMachinesBuildsVirtualMachineBuildTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetZone.php b/src/Endpoint/GetZone.php new file mode 100644 index 00000000..664d01d2 --- /dev/null +++ b/src/Endpoint/GetZone.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/zones/:zone'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['zone[id]', 'zone[permalink]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('zone[id]', ['string']); + $optionsResolver->addAllowedTypes('zone[permalink]', ['string']); + + return $optionsResolver; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\ZonesZoneGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetZoneBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetZoneForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetZoneNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetZoneTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ZonesZoneGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetZoneBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetZoneForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetZoneNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetZoneTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/GetZones.php b/src/Endpoint/GetZones.php new file mode 100644 index 00000000..db19c83a --- /dev/null +++ b/src/Endpoint/GetZones.php @@ -0,0 +1,66 @@ + ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\ZonesGetResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetZonesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetZonesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\GetZonesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ZonesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetZonesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetZonesForbiddenException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\GetZonesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchDiskBackupPolicy.php b/src/Endpoint/PatchDiskBackupPolicy.php new file mode 100644 index 00000000..9b5780dc --- /dev/null +++ b/src/Endpoint/PatchDiskBackupPolicy.php @@ -0,0 +1,87 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/disk_backup_policies/:disk_backup_policy'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DiskBackupPoliciesDiskBackupPolicyPatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DiskBackupPoliciesDiskBackupPolicyPatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDiskBackupPolicyBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDiskBackupPolicyForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDiskBackupPolicyNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDiskBackupPolicyNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDiskBackupPolicyUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDiskBackupPolicyTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyPatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDiskBackupPolicyBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDiskBackupPolicyForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDiskBackupPolicyNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskBackupPolicyNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDiskBackupPolicyNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDiskBackupPolicyUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDiskBackupPolicyTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchDnsRecord.php b/src/Endpoint/PatchDnsRecord.php new file mode 100644 index 00000000..310b2c10 --- /dev/null +++ b/src/Endpoint/PatchDnsRecord.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/dns_records/:dns_record'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordPatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordPatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordPatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSRecordNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchDnsRecordsDnsRecord.php b/src/Endpoint/PatchDnsRecordsDnsRecord.php new file mode 100644 index 00000000..ea08a68d --- /dev/null +++ b/src/Endpoint/PatchDnsRecordsDnsRecord.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/dns/records/:dns_record'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordPatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsRecordsDnsRecordPatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordsDnsRecordBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordsDnsRecordForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordsDnsRecordNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordsDnsRecordUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordsDnsRecordTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordPatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordsDnsRecordBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordsDnsRecordForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordsDnsRecordNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSRecordNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordsDnsRecordUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsRecordsDnsRecordTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchDnsZone.php b/src/Endpoint/PatchDnsZone.php new file mode 100644 index 00000000..ae69c0a7 --- /dev/null +++ b/src/Endpoint/PatchDnsZone.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/dns_zones/:dns_zone'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZonePatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZonePatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsZoneBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsZoneForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsZoneNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsZoneUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchDnsZoneTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZonePatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsZoneBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsZoneForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsZoneNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsZoneUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchDnsZoneTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchFileStorageVolume.php b/src/Endpoint/PatchFileStorageVolume.php new file mode 100644 index 00000000..adcde182 --- /dev/null +++ b/src/Endpoint/PatchFileStorageVolume.php @@ -0,0 +1,87 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/file_storage_volumes/:file_storage_volume'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\FileStorageVolumesFileStorageVolumePatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\FileStorageVolumesFileStorageVolumePatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchFileStorageVolumeBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchFileStorageVolumeForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchFileStorageVolumeNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchFileStorageVolumeNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchFileStorageVolumeUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchFileStorageVolumeTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumePatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchFileStorageVolumeBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchFileStorageVolumeForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchFileStorageVolumeNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseFileStorageVolumeNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchFileStorageVolumeNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchFileStorageVolumeUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchFileStorageVolumeTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchIpAddress.php b/src/Endpoint/PatchIpAddress.php new file mode 100644 index 00000000..466df84f --- /dev/null +++ b/src/Endpoint/PatchIpAddress.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/ip_addresses/:ip_address'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\IpAddressesIpAddressPatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\IpAddressesIpAddressPatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchIpAddressBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchIpAddressForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchIpAddressNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchIpAddressUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchIpAddressTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressPatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchIpAddressBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchIpAddressForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchIpAddressNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseIPAddressNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchIpAddressUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchIpAddressTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchLoadBalancer.php b/src/Endpoint/PatchLoadBalancer.php new file mode 100644 index 00000000..5f3bcf34 --- /dev/null +++ b/src/Endpoint/PatchLoadBalancer.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/load_balancers/:load_balancer'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\LoadBalancersLoadBalancerPatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersLoadBalancerPatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancerBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancerForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancerNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancerUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancerTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerPatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancerBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancerForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancerNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancerUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancerTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchLoadBalancersRulesLoadBalancerRule.php b/src/Endpoint/PatchLoadBalancersRulesLoadBalancerRule.php new file mode 100644 index 00000000..d1f14777 --- /dev/null +++ b/src/Endpoint/PatchLoadBalancersRulesLoadBalancerRule.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/load_balancers/rules/:load_balancer_rule'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\LoadBalancersRulesLoadBalancerRulePatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersRulesLoadBalancerRulePatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancersRulesLoadBalancerRuleBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancersRulesLoadBalancerRuleForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancersRulesLoadBalancerRuleNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancersRulesLoadBalancerRuleUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancersRulesLoadBalancerRuleTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRulePatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancersRulesLoadBalancerRuleBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancersRulesLoadBalancerRuleForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancersRulesLoadBalancerRuleNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerRuleNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancersRulesLoadBalancerRuleUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchLoadBalancersRulesLoadBalancerRuleTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchSecurityGroup.php b/src/Endpoint/PatchSecurityGroup.php new file mode 100644 index 00000000..6561d256 --- /dev/null +++ b/src/Endpoint/PatchSecurityGroup.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/security_groups/:security_group'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsSecurityGroupPatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsSecurityGroupPatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupPatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchSecurityGroupsRulesSecurityGroupRule.php b/src/Endpoint/PatchSecurityGroupsRulesSecurityGroupRule.php new file mode 100644 index 00000000..5945af79 --- /dev/null +++ b/src/Endpoint/PatchSecurityGroupsRulesSecurityGroupRule.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/security_groups/rules/:security_group_rule'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsRulesSecurityGroupRulePatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsRulesSecurityGroupRulePatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupsRulesSecurityGroupRuleBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupsRulesSecurityGroupRuleForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupsRulesSecurityGroupRuleNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupsRulesSecurityGroupRuleUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRulePatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupsRulesSecurityGroupRuleBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupsRulesSecurityGroupRuleForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupsRulesSecurityGroupRuleNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupRuleNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupsRulesSecurityGroupRuleUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchTag.php b/src/Endpoint/PatchTag.php new file mode 100644 index 00000000..bb3a8367 --- /dev/null +++ b/src/Endpoint/PatchTag.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/tags/:tag'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\TagsTagPatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\TagsTagPatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchTagBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchTagForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchTagNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchTagUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchTagTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagPatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchTagBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchTagForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchTagNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTagNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchTagUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchTagTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchVirtualMachine.php b/src/Endpoint/PatchVirtualMachine.php new file mode 100644 index 00000000..cfca2532 --- /dev/null +++ b/src/Endpoint/PatchVirtualMachine.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachinePatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachinePatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchVirtualMachineGroup.php b/src/Endpoint/PatchVirtualMachineGroup.php new file mode 100644 index 00000000..eaa808a3 --- /dev/null +++ b/src/Endpoint/PatchVirtualMachineGroup.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/virtual_machine_groups/:virtual_machine_group'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachineGroupsVirtualMachineGroupPatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineGroupsVirtualMachineGroupPatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineGroupBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineGroupForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineGroupNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineGroupUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineGroupTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupPatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineGroupBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineGroupForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineGroupNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineGroupNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineGroupUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineGroupTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfile.php b/src/Endpoint/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfile.php new file mode 100644 index 00000000..6af8912e --- /dev/null +++ b/src/Endpoint/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfile.php @@ -0,0 +1,87 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/virtual_machine_network_interfaces/:virtual_machine_network_interface/update_speed_profile'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileNotFoundException($response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTaskQueueingErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSpeedProfileAlreadyAssignedResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostDiskDiskBackupPolicies.php b/src/Endpoint/PostDiskDiskBackupPolicies.php new file mode 100644 index 00000000..2a8dd5a3 --- /dev/null +++ b/src/Endpoint/PostDiskDiskBackupPolicies.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/disks/:disk/disk_backup_policies'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DisksDiskDiskBackupPoliciesPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DisksDiskDiskBackupPoliciesPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDiskDiskBackupPoliciesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDiskDiskBackupPoliciesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDiskDiskBackupPoliciesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDiskDiskBackupPoliciesUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDiskDiskBackupPoliciesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDiskDiskBackupPoliciesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDiskDiskBackupPoliciesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDiskDiskBackupPoliciesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDiskDiskBackupPoliciesUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDiskDiskBackupPoliciesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostDnsZoneRecords.php b/src/Endpoint/PostDnsZoneRecords.php new file mode 100644 index 00000000..7d96eed6 --- /dev/null +++ b/src/Endpoint/PostDnsZoneRecords.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/dns_zones/:dns_zone/records'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneRecordsPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneRecordsPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneRecordsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneRecordsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneRecordsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneRecordsUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneRecordsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneRecordsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneRecordsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneRecordsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneRecordsUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneRecordsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostDnsZoneVerify.php b/src/Endpoint/PostDnsZoneVerify.php new file mode 100644 index 00000000..78fcea62 --- /dev/null +++ b/src/Endpoint/PostDnsZoneVerify.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/dns_zones/:dns_zone/verify'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneVerifyPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneVerifyPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneVerifyBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneVerifyForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneVerifyNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneVerifyUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneVerifyTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerifyPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneVerifyBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneVerifyForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneVerifyNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneVerifyUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotVerifiedResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZoneVerifyTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostDnsZonesDnsZoneRecords.php b/src/Endpoint/PostDnsZonesDnsZoneRecords.php new file mode 100644 index 00000000..3c02f725 --- /dev/null +++ b/src/Endpoint/PostDnsZonesDnsZoneRecords.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/dns/zones/:dns_zone/records'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneRecordsPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneRecordsPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneRecordsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneRecordsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneRecordsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneRecordsUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneRecordsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneRecordsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneRecordsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneRecordsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneRecordsUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneRecordsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostDnsZonesDnsZoneUpdateTtl.php b/src/Endpoint/PostDnsZonesDnsZoneUpdateTtl.php new file mode 100644 index 00000000..1f729ce3 --- /dev/null +++ b/src/Endpoint/PostDnsZonesDnsZoneUpdateTtl.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/dns/zones/:dns_zone/update_ttl'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneUpdateTtlPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneUpdateTtlPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneUpdateTtlBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneUpdateTtlForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneUpdateTtlNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneUpdateTtlUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneUpdateTtlTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneUpdateTtlPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneUpdateTtlBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneUpdateTtlForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneUpdateTtlNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneUpdateTtlUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneUpdateTtlTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostDnsZonesDnsZoneVerify.php b/src/Endpoint/PostDnsZonesDnsZoneVerify.php new file mode 100644 index 00000000..83630218 --- /dev/null +++ b/src/Endpoint/PostDnsZonesDnsZoneVerify.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/dns/zones/:dns_zone/verify'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneVerifyPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\DnsZonesDnsZoneVerifyPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneVerifyBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneVerifyForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneVerifyNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneVerifyUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneVerifyTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerifyPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneVerifyBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneVerifyForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneVerifyNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneVerifyUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotVerifiedResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostDnsZonesDnsZoneVerifyTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostInvalidateLinkedWebSession.php b/src/Endpoint/PostInvalidateLinkedWebSession.php new file mode 100644 index 00000000..2683214c --- /dev/null +++ b/src/Endpoint/PostInvalidateLinkedWebSession.php @@ -0,0 +1,75 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/invalidate_linked_web_session'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\InvalidateLinkedWebSessionPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\InvalidateLinkedWebSessionPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostInvalidateLinkedWebSessionBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostInvalidateLinkedWebSessionForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostInvalidateLinkedWebSessionTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidateLinkedWebSessionPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostInvalidateLinkedWebSessionBadRequestException($response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostInvalidateLinkedWebSessionForbiddenException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostInvalidateLinkedWebSessionTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostIpAddressUnallocate.php b/src/Endpoint/PostIpAddressUnallocate.php new file mode 100644 index 00000000..39ef5b03 --- /dev/null +++ b/src/Endpoint/PostIpAddressUnallocate.php @@ -0,0 +1,87 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/ip_addresses/:ip_address/unallocate'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\IpAddressesIpAddressUnallocatePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\IpAddressesIpAddressUnallocatePostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostIpAddressUnallocateBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostIpAddressUnallocateForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostIpAddressUnallocateNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostIpAddressUnallocateConflictException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostIpAddressUnallocateUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostIpAddressUnallocateTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressUnallocatePostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostIpAddressUnallocateBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostIpAddressUnallocateForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostIpAddressUnallocateNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseIPAddressNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostIpAddressUnallocateConflictException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseResourceDoesNotSupportUnallocationResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostIpAddressUnallocateUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoAllocationResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostIpAddressUnallocateTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostLoadBalancerRules.php b/src/Endpoint/PostLoadBalancerRules.php new file mode 100644 index 00000000..958ab698 --- /dev/null +++ b/src/Endpoint/PostLoadBalancerRules.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/load_balancers/:load_balancer/rules'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\LoadBalancersLoadBalancerRulesPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\LoadBalancersLoadBalancerRulesPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostLoadBalancerRulesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostLoadBalancerRulesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostLoadBalancerRulesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostLoadBalancerRulesUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostLoadBalancerRulesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostLoadBalancerRulesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostLoadBalancerRulesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostLoadBalancerRulesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostLoadBalancerRulesUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostLoadBalancerRulesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationDnsZones.php b/src/Endpoint/PostOrganizationDnsZones.php new file mode 100644 index 00000000..6a296be2 --- /dev/null +++ b/src/Endpoint/PostOrganizationDnsZones.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/dns/zones'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDnsZonesPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDnsZonesPostResponse201|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationDnsZonesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationDnsZonesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationDnsZonesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationDnsZonesUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationDnsZonesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesPostResponse201', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationDnsZonesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationDnsZonesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationDnsZonesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationDnsZonesUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationDnsZonesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationFileStorageVolumes.php b/src/Endpoint/PostOrganizationFileStorageVolumes.php new file mode 100644 index 00000000..a04801d1 --- /dev/null +++ b/src/Endpoint/PostOrganizationFileStorageVolumes.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/file_storage_volumes'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationFileStorageVolumesPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationFileStorageVolumesPostResponse201|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationFileStorageVolumesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationFileStorageVolumesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationFileStorageVolumesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationFileStorageVolumesUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationFileStorageVolumesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesPostResponse201', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationFileStorageVolumesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationFileStorageVolumesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationFileStorageVolumesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationFileStorageVolumesUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationFileStorageVolumesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationIpAddresses.php b/src/Endpoint/PostOrganizationIpAddresses.php new file mode 100644 index 00000000..7352c1ec --- /dev/null +++ b/src/Endpoint/PostOrganizationIpAddresses.php @@ -0,0 +1,87 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/ip_addresses'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationIpAddressesPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationIpAddressesPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationIpAddressesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationIpAddressesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationIpAddressesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationIpAddressesUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationIpAddressesTooManyRequestsException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationIpAddressesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationIpAddressesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationIpAddressesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationIpAddressesNotFoundException($response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationIpAddressesUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationIpAddressesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationIpAddressesServiceUnavailableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoAvailableAddressesResponse', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationLoadBalancers.php b/src/Endpoint/PostOrganizationLoadBalancers.php new file mode 100644 index 00000000..04a92497 --- /dev/null +++ b/src/Endpoint/PostOrganizationLoadBalancers.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/load_balancers'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationLoadBalancersPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationLoadBalancersPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationLoadBalancersBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationLoadBalancersForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationLoadBalancersNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationLoadBalancersUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationLoadBalancersTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationLoadBalancersBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationLoadBalancersForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationLoadBalancersNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationLoadBalancersUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationLoadBalancersTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationManaged.php b/src/Endpoint/PostOrganizationManaged.php new file mode 100644 index 00000000..5cf4ed20 --- /dev/null +++ b/src/Endpoint/PostOrganizationManaged.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/managed'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationManagedPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationManagedPostResponse201|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationManagedBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationManagedForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationManagedNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationManagedUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationManagedTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedPostResponse201', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationManagedBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationManagedForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationManagedNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationManagedUnprocessableEntityException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationManagedTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationSecurityGroups.php b/src/Endpoint/PostOrganizationSecurityGroups.php new file mode 100644 index 00000000..bf4d21cb --- /dev/null +++ b/src/Endpoint/PostOrganizationSecurityGroups.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/security_groups'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationSecurityGroupsPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationSecurityGroupsPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSecurityGroupsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSecurityGroupsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSecurityGroupsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSecurityGroupsUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSecurityGroupsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSecurityGroupsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSecurityGroupsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSecurityGroupsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSecurityGroupsUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSecurityGroupsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationSshKeys.php b/src/Endpoint/PostOrganizationSshKeys.php new file mode 100644 index 00000000..e37dcd56 --- /dev/null +++ b/src/Endpoint/PostOrganizationSshKeys.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/ssh_keys'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationSshKeysPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationSshKeysPostResponse201|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSshKeysBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSshKeysForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSshKeysNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSshKeysUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSshKeysTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysPostResponse201', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSshKeysBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSshKeysForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSshKeysNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSshKeysUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationSshKeysTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationTags.php b/src/Endpoint/PostOrganizationTags.php new file mode 100644 index 00000000..b2b2faa7 --- /dev/null +++ b/src/Endpoint/PostOrganizationTags.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/tags'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationTagsPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationTagsPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTagsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTagsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTagsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTagsUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTagsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTagsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTagsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTagsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTagsUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTagsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationTrashObjectsPurgeAll.php b/src/Endpoint/PostOrganizationTrashObjectsPurgeAll.php new file mode 100644 index 00000000..3184bd6c --- /dev/null +++ b/src/Endpoint/PostOrganizationTrashObjectsPurgeAll.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/trash_objects/purge_all'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationTrashObjectsPurgeAllPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTrashObjectsPurgeAllBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTrashObjectsPurgeAllForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTrashObjectsPurgeAllNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTrashObjectsPurgeAllNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTrashObjectsPurgeAllTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTrashObjectsPurgeAllBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTrashObjectsPurgeAllForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTrashObjectsPurgeAllNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTrashObjectsPurgeAllNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTaskQueueingErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationTrashObjectsPurgeAllTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationVirtualMachineGroups.php b/src/Endpoint/PostOrganizationVirtualMachineGroups.php new file mode 100644 index 00000000..f9434a9c --- /dev/null +++ b/src/Endpoint/PostOrganizationVirtualMachineGroups.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/virtual_machine_groups'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationVirtualMachineGroupsPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationVirtualMachineGroupsPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachineGroupsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachineGroupsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachineGroupsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachineGroupsUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachineGroupsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachineGroupsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachineGroupsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachineGroupsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachineGroupsUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachineGroupsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationVirtualMachinesBuild.php b/src/Endpoint/PostOrganizationVirtualMachinesBuild.php new file mode 100644 index 00000000..08cdae3c --- /dev/null +++ b/src/Endpoint/PostOrganizationVirtualMachinesBuild.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/virtual_machines/build'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationVirtualMachinesBuildPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationVirtualMachinesBuildPostResponse201|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildNotFoundException($response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildUnprocessableEntityException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationVirtualMachinesBuildFromSpec.php b/src/Endpoint/PostOrganizationVirtualMachinesBuildFromSpec.php new file mode 100644 index 00000000..ad1e79fa --- /dev/null +++ b/src/Endpoint/PostOrganizationVirtualMachinesBuildFromSpec.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/virtual_machines/build_from_spec'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildFromSpecBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildFromSpecForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildFromSpecNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildFromSpecUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildFromSpecTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildFromSpecBadRequestException($response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildFromSpecForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildFromSpecNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildFromSpecUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationVirtualMachinesBuildFromSpecTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostOrganizationsOrganizationDnsZones.php b/src/Endpoint/PostOrganizationsOrganizationDnsZones.php new file mode 100644 index 00000000..9ce837f9 --- /dev/null +++ b/src/Endpoint/PostOrganizationsOrganizationDnsZones.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/:organization/dns_zones'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDnsZonesPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\OrganizationsOrganizationDnsZonesPostResponse201|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationsOrganizationDnsZonesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationsOrganizationDnsZonesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationsOrganizationDnsZonesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationsOrganizationDnsZonesUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationsOrganizationDnsZonesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesPostResponse201', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationsOrganizationDnsZonesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationsOrganizationDnsZonesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationsOrganizationDnsZonesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationsOrganizationDnsZonesUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostOrganizationsOrganizationDnsZonesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostSecurityGroupRules.php b/src/Endpoint/PostSecurityGroupRules.php new file mode 100644 index 00000000..17e294d7 --- /dev/null +++ b/src/Endpoint/PostSecurityGroupRules.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/security_groups/:security_group/rules'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsSecurityGroupRulesPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\SecurityGroupsSecurityGroupRulesPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostSecurityGroupRulesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostSecurityGroupRulesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostSecurityGroupRulesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostSecurityGroupRulesUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostSecurityGroupRulesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostSecurityGroupRulesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostSecurityGroupRulesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostSecurityGroupRulesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostSecurityGroupRulesUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostSecurityGroupRulesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostTrashObjectRestore.php b/src/Endpoint/PostTrashObjectRestore.php new file mode 100644 index 00000000..4bc46ac4 --- /dev/null +++ b/src/Endpoint/PostTrashObjectRestore.php @@ -0,0 +1,79 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/trash_objects/:trash_object/restore'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\TrashObjectsTrashObjectRestorePostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\TrashObjectsTrashObjectRestorePostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostTrashObjectRestoreBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostTrashObjectRestoreForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostTrashObjectRestoreNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostTrashObjectRestoreTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectRestorePostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostTrashObjectRestoreBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostTrashObjectRestoreForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostTrashObjectRestoreNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTrashObjectNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostTrashObjectRestoreTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostVirtualMachineAllocateIp.php b/src/Endpoint/PostVirtualMachineAllocateIp.php new file mode 100644 index 00000000..21dd4a0f --- /dev/null +++ b/src/Endpoint/PostVirtualMachineAllocateIp.php @@ -0,0 +1,87 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/allocate_ip'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineAllocateIpPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineAllocateIpPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineAllocateIpBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineAllocateIpForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineAllocateIpNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineAllocateIpNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineAllocateIpUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineAllocateIpTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineAllocateIpPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineAllocateIpBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineAllocateIpForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineAllocateIpNotFoundException($response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineAllocateIpNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineAllocateIpUnprocessableEntityException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineAllocateIpTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostVirtualMachineConsoleSessions.php b/src/Endpoint/PostVirtualMachineConsoleSessions.php new file mode 100644 index 00000000..d7be4a71 --- /dev/null +++ b/src/Endpoint/PostVirtualMachineConsoleSessions.php @@ -0,0 +1,87 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/console_sessions'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineConsoleSessionsPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineConsoleSessionsPostResponse201|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineConsoleSessionsBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineConsoleSessionsForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineConsoleSessionsNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineConsoleSessionsNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineConsoleSessionsUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineConsoleSessionsTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineConsoleSessionsPostResponse201', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineConsoleSessionsBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineConsoleSessionsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineConsoleSessionsNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineConsoleSessionsNotAcceptableException($response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineConsoleSessionsUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineConsoleSessionsTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostVirtualMachineDiskBackupPolicies.php b/src/Endpoint/PostVirtualMachineDiskBackupPolicies.php new file mode 100644 index 00000000..0a340a5c --- /dev/null +++ b/src/Endpoint/PostVirtualMachineDiskBackupPolicies.php @@ -0,0 +1,87 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/disk_backup_policies'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineDiskBackupPoliciesPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineDiskBackupPoliciesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineDiskBackupPoliciesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineDiskBackupPoliciesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineDiskBackupPoliciesNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineDiskBackupPoliciesUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineDiskBackupPoliciesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineDiskBackupPoliciesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineDiskBackupPoliciesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineDiskBackupPoliciesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineDiskBackupPoliciesNotAcceptableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineDiskBackupPoliciesUnprocessableEntityException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineDiskBackupPoliciesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostVirtualMachineNetworkInterfaceAllocateIp.php b/src/Endpoint/PostVirtualMachineNetworkInterfaceAllocateIp.php new file mode 100644 index 00000000..8d84a712 --- /dev/null +++ b/src/Endpoint/PostVirtualMachineNetworkInterfaceAllocateIp.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/virtual_machine_network_interfaces/:virtual_machine_network_interface/allocate_ip'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateIpBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateIpForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateIpNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateIpUnprocessableEntityException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateIpTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateIpBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateIpForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateIpNotFoundException($response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateIpUnprocessableEntityException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateIpTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostVirtualMachineNetworkInterfaceAllocateNewIp.php b/src/Endpoint/PostVirtualMachineNetworkInterfaceAllocateNewIp.php new file mode 100644 index 00000000..9a9bbae0 --- /dev/null +++ b/src/Endpoint/PostVirtualMachineNetworkInterfaceAllocateNewIp.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/virtual_machine_network_interfaces/:virtual_machine_network_interface/allocate_new_ip'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpTooManyRequestsException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNetworkInterfaceNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineNetworkInterfaceAllocateNewIpServiceUnavailableException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoAvailableAddressesResponse', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostVirtualMachineReset.php b/src/Endpoint/PostVirtualMachineReset.php new file mode 100644 index 00000000..301991f6 --- /dev/null +++ b/src/Endpoint/PostVirtualMachineReset.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/reset'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineResetPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineResetPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineResetBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineResetForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineResetNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineResetNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineResetTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineResetPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineResetBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineResetForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineResetNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineResetNotAcceptableException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineResetTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostVirtualMachineShutdown.php b/src/Endpoint/PostVirtualMachineShutdown.php new file mode 100644 index 00000000..c7909a94 --- /dev/null +++ b/src/Endpoint/PostVirtualMachineShutdown.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/shutdown'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineShutdownPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineShutdownPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineShutdownBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineShutdownForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineShutdownNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineShutdownNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineShutdownTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineShutdownPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineShutdownBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineShutdownForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineShutdownNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineShutdownNotAcceptableException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineShutdownTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostVirtualMachineStart.php b/src/Endpoint/PostVirtualMachineStart.php new file mode 100644 index 00000000..26ee41c1 --- /dev/null +++ b/src/Endpoint/PostVirtualMachineStart.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/start'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineStartPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineStartPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStartBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStartForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStartNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStartNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStartTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStartPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStartBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStartForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStartNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStartNotAcceptableException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStartTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PostVirtualMachineStop.php b/src/Endpoint/PostVirtualMachineStop.php new file mode 100644 index 00000000..505dccc5 --- /dev/null +++ b/src/Endpoint/PostVirtualMachineStop.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/stop'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineStopPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineStopPostResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStopBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStopForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStopNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStopNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStopTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStopPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStopBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStopForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStopNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStopNotAcceptableException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PostVirtualMachineStopTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PutVirtualMachineFlexibleResources.php b/src/Endpoint/PutVirtualMachineFlexibleResources.php new file mode 100644 index 00000000..b9064106 --- /dev/null +++ b/src/Endpoint/PutVirtualMachineFlexibleResources.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/flexible_resources'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineFlexibleResourcesPutBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachineFlexibleResourcesBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachineFlexibleResourcesForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachineFlexibleResourcesNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachineFlexibleResourcesNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachineFlexibleResourcesTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachineFlexibleResourcesBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachineFlexibleResourcesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachineFlexibleResourcesNotFoundException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachineFlexibleResourcesNotAcceptableException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachineFlexibleResourcesTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Endpoint/PutVirtualMachinePackage.php b/src/Endpoint/PutVirtualMachinePackage.php new file mode 100644 index 00000000..f59e47b3 --- /dev/null +++ b/src/Endpoint/PutVirtualMachinePackage.php @@ -0,0 +1,83 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return '/virtual_machines/:virtual_machine/package'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachinePackagePutBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Krystal\Katapult\KatapultAPI\Model\VirtualMachinesVirtualMachinePackagePutResponse200|null + * + * @throws \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachinePackageBadRequestException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachinePackageForbiddenException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachinePackageNotFoundException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachinePackageNotAcceptableException + * @throws \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachinePackageTooManyRequestsException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePackagePutResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachinePackageBadRequestException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachinePackageForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachinePackageNotFoundException($response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachinePackageNotAcceptableException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Krystal\Katapult\KatapultAPI\Exception\PutVirtualMachinePackageTooManyRequestsException($serializer->deserialize($body, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['Authenticator']; + } +} diff --git a/src/Exception/ApiException.php b/src/Exception/ApiException.php new file mode 100644 index 00000000..85a3375d --- /dev/null +++ b/src/Exception/ApiException.php @@ -0,0 +1,15 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDiskBackupPolicyForbiddenException.php b/src/Exception/DeleteDiskBackupPolicyForbiddenException.php new file mode 100644 index 00000000..c27cef2f --- /dev/null +++ b/src/Exception/DeleteDiskBackupPolicyForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDiskBackupPolicyNotAcceptableException.php b/src/Exception/DeleteDiskBackupPolicyNotAcceptableException.php new file mode 100644 index 00000000..ed1d2b81 --- /dev/null +++ b/src/Exception/DeleteDiskBackupPolicyNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDiskBackupPolicyNotFoundException.php b/src/Exception/DeleteDiskBackupPolicyNotFoundException.php new file mode 100644 index 00000000..35c77f2e --- /dev/null +++ b/src/Exception/DeleteDiskBackupPolicyNotFoundException.php @@ -0,0 +1,40 @@ +responseDiskBackupPolicyNotFoundResponse = $responseDiskBackupPolicyNotFoundResponse; + $this->response = $response; + } + + public function getResponseDiskBackupPolicyNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDiskBackupPolicyNotFoundResponse + { + return $this->responseDiskBackupPolicyNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDiskBackupPolicyScheduleBadRequestException.php b/src/Exception/DeleteDiskBackupPolicyScheduleBadRequestException.php new file mode 100644 index 00000000..b48a46bd --- /dev/null +++ b/src/Exception/DeleteDiskBackupPolicyScheduleBadRequestException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDiskBackupPolicyScheduleForbiddenException.php b/src/Exception/DeleteDiskBackupPolicyScheduleForbiddenException.php new file mode 100644 index 00000000..48c57031 --- /dev/null +++ b/src/Exception/DeleteDiskBackupPolicyScheduleForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDiskBackupPolicyScheduleNotAcceptableException.php b/src/Exception/DeleteDiskBackupPolicyScheduleNotAcceptableException.php new file mode 100644 index 00000000..15d6e1a3 --- /dev/null +++ b/src/Exception/DeleteDiskBackupPolicyScheduleNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDiskBackupPolicyScheduleNotFoundException.php b/src/Exception/DeleteDiskBackupPolicyScheduleNotFoundException.php new file mode 100644 index 00000000..8e926b3e --- /dev/null +++ b/src/Exception/DeleteDiskBackupPolicyScheduleNotFoundException.php @@ -0,0 +1,40 @@ +responseDiskBackupPolicyNotFoundResponse = $responseDiskBackupPolicyNotFoundResponse; + $this->response = $response; + } + + public function getResponseDiskBackupPolicyNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDiskBackupPolicyNotFoundResponse + { + return $this->responseDiskBackupPolicyNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDiskBackupPolicyScheduleTooManyRequestsException.php b/src/Exception/DeleteDiskBackupPolicyScheduleTooManyRequestsException.php new file mode 100644 index 00000000..af72c5a4 --- /dev/null +++ b/src/Exception/DeleteDiskBackupPolicyScheduleTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDiskBackupPolicyTooManyRequestsException.php b/src/Exception/DeleteDiskBackupPolicyTooManyRequestsException.php new file mode 100644 index 00000000..c36e4a4a --- /dev/null +++ b/src/Exception/DeleteDiskBackupPolicyTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsRecordBadRequestException.php b/src/Exception/DeleteDnsRecordBadRequestException.php new file mode 100644 index 00000000..5a52fd39 --- /dev/null +++ b/src/Exception/DeleteDnsRecordBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsRecordForbiddenException.php b/src/Exception/DeleteDnsRecordForbiddenException.php new file mode 100644 index 00000000..03fd2953 --- /dev/null +++ b/src/Exception/DeleteDnsRecordForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsRecordNotFoundException.php b/src/Exception/DeleteDnsRecordNotFoundException.php new file mode 100644 index 00000000..66ab6f4b --- /dev/null +++ b/src/Exception/DeleteDnsRecordNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSRecordNotFoundResponse = $responseDNSRecordNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSRecordNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSRecordNotFoundResponse + { + return $this->responseDNSRecordNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsRecordTooManyRequestsException.php b/src/Exception/DeleteDnsRecordTooManyRequestsException.php new file mode 100644 index 00000000..3992aa0b --- /dev/null +++ b/src/Exception/DeleteDnsRecordTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsRecordsDnsRecordBadRequestException.php b/src/Exception/DeleteDnsRecordsDnsRecordBadRequestException.php new file mode 100644 index 00000000..55d4bef9 --- /dev/null +++ b/src/Exception/DeleteDnsRecordsDnsRecordBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsRecordsDnsRecordForbiddenException.php b/src/Exception/DeleteDnsRecordsDnsRecordForbiddenException.php new file mode 100644 index 00000000..4db4bf81 --- /dev/null +++ b/src/Exception/DeleteDnsRecordsDnsRecordForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsRecordsDnsRecordNotFoundException.php b/src/Exception/DeleteDnsRecordsDnsRecordNotFoundException.php new file mode 100644 index 00000000..2fe911ae --- /dev/null +++ b/src/Exception/DeleteDnsRecordsDnsRecordNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSRecordNotFoundResponse = $responseDNSRecordNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSRecordNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSRecordNotFoundResponse + { + return $this->responseDNSRecordNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsRecordsDnsRecordTooManyRequestsException.php b/src/Exception/DeleteDnsRecordsDnsRecordTooManyRequestsException.php new file mode 100644 index 00000000..2583ee95 --- /dev/null +++ b/src/Exception/DeleteDnsRecordsDnsRecordTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsRecordsDnsRecordUnprocessableEntityException.php b/src/Exception/DeleteDnsRecordsDnsRecordUnprocessableEntityException.php new file mode 100644 index 00000000..3a052f2a --- /dev/null +++ b/src/Exception/DeleteDnsRecordsDnsRecordUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsZoneBadRequestException.php b/src/Exception/DeleteDnsZoneBadRequestException.php new file mode 100644 index 00000000..94d1df94 --- /dev/null +++ b/src/Exception/DeleteDnsZoneBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsZoneForbiddenException.php b/src/Exception/DeleteDnsZoneForbiddenException.php new file mode 100644 index 00000000..e745d8e7 --- /dev/null +++ b/src/Exception/DeleteDnsZoneForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsZoneNotFoundException.php b/src/Exception/DeleteDnsZoneNotFoundException.php new file mode 100644 index 00000000..1a784b3b --- /dev/null +++ b/src/Exception/DeleteDnsZoneNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsZoneTooManyRequestsException.php b/src/Exception/DeleteDnsZoneTooManyRequestsException.php new file mode 100644 index 00000000..5cdd40b1 --- /dev/null +++ b/src/Exception/DeleteDnsZoneTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsZonesDnsZoneBadRequestException.php b/src/Exception/DeleteDnsZonesDnsZoneBadRequestException.php new file mode 100644 index 00000000..66b593ae --- /dev/null +++ b/src/Exception/DeleteDnsZonesDnsZoneBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsZonesDnsZoneForbiddenException.php b/src/Exception/DeleteDnsZonesDnsZoneForbiddenException.php new file mode 100644 index 00000000..bc0f865b --- /dev/null +++ b/src/Exception/DeleteDnsZonesDnsZoneForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsZonesDnsZoneNotFoundException.php b/src/Exception/DeleteDnsZonesDnsZoneNotFoundException.php new file mode 100644 index 00000000..0c9bf54d --- /dev/null +++ b/src/Exception/DeleteDnsZonesDnsZoneNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteDnsZonesDnsZoneTooManyRequestsException.php b/src/Exception/DeleteDnsZonesDnsZoneTooManyRequestsException.php new file mode 100644 index 00000000..768d118c --- /dev/null +++ b/src/Exception/DeleteDnsZonesDnsZoneTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteFileStorageVolumeBadRequestException.php b/src/Exception/DeleteFileStorageVolumeBadRequestException.php new file mode 100644 index 00000000..900d4553 --- /dev/null +++ b/src/Exception/DeleteFileStorageVolumeBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteFileStorageVolumeForbiddenException.php b/src/Exception/DeleteFileStorageVolumeForbiddenException.php new file mode 100644 index 00000000..591a50bc --- /dev/null +++ b/src/Exception/DeleteFileStorageVolumeForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteFileStorageVolumeNotAcceptableException.php b/src/Exception/DeleteFileStorageVolumeNotAcceptableException.php new file mode 100644 index 00000000..184569e5 --- /dev/null +++ b/src/Exception/DeleteFileStorageVolumeNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteFileStorageVolumeNotFoundException.php b/src/Exception/DeleteFileStorageVolumeNotFoundException.php new file mode 100644 index 00000000..6231a2e8 --- /dev/null +++ b/src/Exception/DeleteFileStorageVolumeNotFoundException.php @@ -0,0 +1,40 @@ +responseFileStorageVolumeNotFoundResponse = $responseFileStorageVolumeNotFoundResponse; + $this->response = $response; + } + + public function getResponseFileStorageVolumeNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseFileStorageVolumeNotFoundResponse + { + return $this->responseFileStorageVolumeNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteFileStorageVolumeTooManyRequestsException.php b/src/Exception/DeleteFileStorageVolumeTooManyRequestsException.php new file mode 100644 index 00000000..4075daac --- /dev/null +++ b/src/Exception/DeleteFileStorageVolumeTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteFileStorageVolumeUnprocessableEntityException.php b/src/Exception/DeleteFileStorageVolumeUnprocessableEntityException.php new file mode 100644 index 00000000..f2f426ad --- /dev/null +++ b/src/Exception/DeleteFileStorageVolumeUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteIpAddressBadRequestException.php b/src/Exception/DeleteIpAddressBadRequestException.php new file mode 100644 index 00000000..9a53528c --- /dev/null +++ b/src/Exception/DeleteIpAddressBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteIpAddressConflictException.php b/src/Exception/DeleteIpAddressConflictException.php new file mode 100644 index 00000000..2e3143bb --- /dev/null +++ b/src/Exception/DeleteIpAddressConflictException.php @@ -0,0 +1,40 @@ +responseResourceDoesNotSupportUnallocationResponse = $responseResourceDoesNotSupportUnallocationResponse; + $this->response = $response; + } + + public function getResponseResourceDoesNotSupportUnallocationResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseResourceDoesNotSupportUnallocationResponse + { + return $this->responseResourceDoesNotSupportUnallocationResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteIpAddressForbiddenException.php b/src/Exception/DeleteIpAddressForbiddenException.php new file mode 100644 index 00000000..cadd3817 --- /dev/null +++ b/src/Exception/DeleteIpAddressForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteIpAddressNotFoundException.php b/src/Exception/DeleteIpAddressNotFoundException.php new file mode 100644 index 00000000..a6911712 --- /dev/null +++ b/src/Exception/DeleteIpAddressNotFoundException.php @@ -0,0 +1,40 @@ +responseIPAddressNotFoundResponse = $responseIPAddressNotFoundResponse; + $this->response = $response; + } + + public function getResponseIPAddressNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseIPAddressNotFoundResponse + { + return $this->responseIPAddressNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteIpAddressTooManyRequestsException.php b/src/Exception/DeleteIpAddressTooManyRequestsException.php new file mode 100644 index 00000000..3d003836 --- /dev/null +++ b/src/Exception/DeleteIpAddressTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteLoadBalancerBadRequestException.php b/src/Exception/DeleteLoadBalancerBadRequestException.php new file mode 100644 index 00000000..e357b15a --- /dev/null +++ b/src/Exception/DeleteLoadBalancerBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteLoadBalancerForbiddenException.php b/src/Exception/DeleteLoadBalancerForbiddenException.php new file mode 100644 index 00000000..cc5aa14f --- /dev/null +++ b/src/Exception/DeleteLoadBalancerForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteLoadBalancerNotFoundException.php b/src/Exception/DeleteLoadBalancerNotFoundException.php new file mode 100644 index 00000000..ec89b4f1 --- /dev/null +++ b/src/Exception/DeleteLoadBalancerNotFoundException.php @@ -0,0 +1,40 @@ +responseLoadBalancerNotFoundResponse = $responseLoadBalancerNotFoundResponse; + $this->response = $response; + } + + public function getResponseLoadBalancerNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseLoadBalancerNotFoundResponse + { + return $this->responseLoadBalancerNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteLoadBalancerTooManyRequestsException.php b/src/Exception/DeleteLoadBalancerTooManyRequestsException.php new file mode 100644 index 00000000..99c66f4a --- /dev/null +++ b/src/Exception/DeleteLoadBalancerTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteLoadBalancerUnprocessableEntityException.php b/src/Exception/DeleteLoadBalancerUnprocessableEntityException.php new file mode 100644 index 00000000..e029bc66 --- /dev/null +++ b/src/Exception/DeleteLoadBalancerUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleBadRequestException.php b/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleBadRequestException.php new file mode 100644 index 00000000..8abf294a --- /dev/null +++ b/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleForbiddenException.php b/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleForbiddenException.php new file mode 100644 index 00000000..a3bff3b8 --- /dev/null +++ b/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleNotFoundException.php b/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleNotFoundException.php new file mode 100644 index 00000000..edeff1d9 --- /dev/null +++ b/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleNotFoundException.php @@ -0,0 +1,40 @@ +responseLoadBalancerRuleNotFoundResponse = $responseLoadBalancerRuleNotFoundResponse; + $this->response = $response; + } + + public function getResponseLoadBalancerRuleNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseLoadBalancerRuleNotFoundResponse + { + return $this->responseLoadBalancerRuleNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleTooManyRequestsException.php b/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleTooManyRequestsException.php new file mode 100644 index 00000000..be0d0610 --- /dev/null +++ b/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleUnprocessableEntityException.php b/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleUnprocessableEntityException.php new file mode 100644 index 00000000..cb073729 --- /dev/null +++ b/src/Exception/DeleteLoadBalancersRulesLoadBalancerRuleUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSecurityGroupBadRequestException.php b/src/Exception/DeleteSecurityGroupBadRequestException.php new file mode 100644 index 00000000..ff437288 --- /dev/null +++ b/src/Exception/DeleteSecurityGroupBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSecurityGroupConflictException.php b/src/Exception/DeleteSecurityGroupConflictException.php new file mode 100644 index 00000000..ebc7f0f3 --- /dev/null +++ b/src/Exception/DeleteSecurityGroupConflictException.php @@ -0,0 +1,40 @@ +responseDeletionRestrictedResponse = $responseDeletionRestrictedResponse; + $this->response = $response; + } + + public function getResponseDeletionRestrictedResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDeletionRestrictedResponse + { + return $this->responseDeletionRestrictedResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSecurityGroupForbiddenException.php b/src/Exception/DeleteSecurityGroupForbiddenException.php new file mode 100644 index 00000000..9751ca66 --- /dev/null +++ b/src/Exception/DeleteSecurityGroupForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSecurityGroupNotFoundException.php b/src/Exception/DeleteSecurityGroupNotFoundException.php new file mode 100644 index 00000000..f54be376 --- /dev/null +++ b/src/Exception/DeleteSecurityGroupNotFoundException.php @@ -0,0 +1,40 @@ +responseSecurityGroupNotFoundResponse = $responseSecurityGroupNotFoundResponse; + $this->response = $response; + } + + public function getResponseSecurityGroupNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseSecurityGroupNotFoundResponse + { + return $this->responseSecurityGroupNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSecurityGroupTooManyRequestsException.php b/src/Exception/DeleteSecurityGroupTooManyRequestsException.php new file mode 100644 index 00000000..9f136932 --- /dev/null +++ b/src/Exception/DeleteSecurityGroupTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSecurityGroupUnprocessableEntityException.php b/src/Exception/DeleteSecurityGroupUnprocessableEntityException.php new file mode 100644 index 00000000..51884be5 --- /dev/null +++ b/src/Exception/DeleteSecurityGroupUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleBadRequestException.php b/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleBadRequestException.php new file mode 100644 index 00000000..838c5ea9 --- /dev/null +++ b/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleForbiddenException.php b/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleForbiddenException.php new file mode 100644 index 00000000..c3ed7f42 --- /dev/null +++ b/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleNotFoundException.php b/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleNotFoundException.php new file mode 100644 index 00000000..e7d95a3f --- /dev/null +++ b/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleNotFoundException.php @@ -0,0 +1,40 @@ +responseSecurityGroupRuleNotFoundResponse = $responseSecurityGroupRuleNotFoundResponse; + $this->response = $response; + } + + public function getResponseSecurityGroupRuleNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseSecurityGroupRuleNotFoundResponse + { + return $this->responseSecurityGroupRuleNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException.php b/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException.php new file mode 100644 index 00000000..e4d6e986 --- /dev/null +++ b/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleUnprocessableEntityException.php b/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleUnprocessableEntityException.php new file mode 100644 index 00000000..d9dcebd0 --- /dev/null +++ b/src/Exception/DeleteSecurityGroupsRulesSecurityGroupRuleUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSshKeyBadRequestException.php b/src/Exception/DeleteSshKeyBadRequestException.php new file mode 100644 index 00000000..1822d65c --- /dev/null +++ b/src/Exception/DeleteSshKeyBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSshKeyConflictException.php b/src/Exception/DeleteSshKeyConflictException.php new file mode 100644 index 00000000..e6b38e9e --- /dev/null +++ b/src/Exception/DeleteSshKeyConflictException.php @@ -0,0 +1,40 @@ +responseDeletionRestrictedResponse = $responseDeletionRestrictedResponse; + $this->response = $response; + } + + public function getResponseDeletionRestrictedResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDeletionRestrictedResponse + { + return $this->responseDeletionRestrictedResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSshKeyForbiddenException.php b/src/Exception/DeleteSshKeyForbiddenException.php new file mode 100644 index 00000000..a9f3bb0a --- /dev/null +++ b/src/Exception/DeleteSshKeyForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSshKeyNotFoundException.php b/src/Exception/DeleteSshKeyNotFoundException.php new file mode 100644 index 00000000..3ad7ee6c --- /dev/null +++ b/src/Exception/DeleteSshKeyNotFoundException.php @@ -0,0 +1,40 @@ +responseSSHKeyNotFoundResponse = $responseSSHKeyNotFoundResponse; + $this->response = $response; + } + + public function getResponseSSHKeyNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseSSHKeyNotFoundResponse + { + return $this->responseSSHKeyNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteSshKeyTooManyRequestsException.php b/src/Exception/DeleteSshKeyTooManyRequestsException.php new file mode 100644 index 00000000..0243483d --- /dev/null +++ b/src/Exception/DeleteSshKeyTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteTagBadRequestException.php b/src/Exception/DeleteTagBadRequestException.php new file mode 100644 index 00000000..3952b50d --- /dev/null +++ b/src/Exception/DeleteTagBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteTagForbiddenException.php b/src/Exception/DeleteTagForbiddenException.php new file mode 100644 index 00000000..fb1acc8a --- /dev/null +++ b/src/Exception/DeleteTagForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteTagNotFoundException.php b/src/Exception/DeleteTagNotFoundException.php new file mode 100644 index 00000000..bbaf0325 --- /dev/null +++ b/src/Exception/DeleteTagNotFoundException.php @@ -0,0 +1,40 @@ +responseTagNotFoundResponse = $responseTagNotFoundResponse; + $this->response = $response; + } + + public function getResponseTagNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseTagNotFoundResponse + { + return $this->responseTagNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteTagTooManyRequestsException.php b/src/Exception/DeleteTagTooManyRequestsException.php new file mode 100644 index 00000000..92d41678 --- /dev/null +++ b/src/Exception/DeleteTagTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteTrashObjectBadRequestException.php b/src/Exception/DeleteTrashObjectBadRequestException.php new file mode 100644 index 00000000..fa7b1256 --- /dev/null +++ b/src/Exception/DeleteTrashObjectBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteTrashObjectForbiddenException.php b/src/Exception/DeleteTrashObjectForbiddenException.php new file mode 100644 index 00000000..88a8401b --- /dev/null +++ b/src/Exception/DeleteTrashObjectForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteTrashObjectNotAcceptableException.php b/src/Exception/DeleteTrashObjectNotAcceptableException.php new file mode 100644 index 00000000..212326b5 --- /dev/null +++ b/src/Exception/DeleteTrashObjectNotAcceptableException.php @@ -0,0 +1,40 @@ +responseTaskQueueingErrorResponse = $responseTaskQueueingErrorResponse; + $this->response = $response; + } + + public function getResponseTaskQueueingErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseTaskQueueingErrorResponse + { + return $this->responseTaskQueueingErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteTrashObjectNotFoundException.php b/src/Exception/DeleteTrashObjectNotFoundException.php new file mode 100644 index 00000000..c1824ca1 --- /dev/null +++ b/src/Exception/DeleteTrashObjectNotFoundException.php @@ -0,0 +1,40 @@ +responseTrashObjectNotFoundResponse = $responseTrashObjectNotFoundResponse; + $this->response = $response; + } + + public function getResponseTrashObjectNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseTrashObjectNotFoundResponse + { + return $this->responseTrashObjectNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteTrashObjectTooManyRequestsException.php b/src/Exception/DeleteTrashObjectTooManyRequestsException.php new file mode 100644 index 00000000..2831c6e8 --- /dev/null +++ b/src/Exception/DeleteTrashObjectTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteVirtualMachineBadRequestException.php b/src/Exception/DeleteVirtualMachineBadRequestException.php new file mode 100644 index 00000000..51d1289a --- /dev/null +++ b/src/Exception/DeleteVirtualMachineBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteVirtualMachineForbiddenException.php b/src/Exception/DeleteVirtualMachineForbiddenException.php new file mode 100644 index 00000000..70fdf0ba --- /dev/null +++ b/src/Exception/DeleteVirtualMachineForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteVirtualMachineGroupBadRequestException.php b/src/Exception/DeleteVirtualMachineGroupBadRequestException.php new file mode 100644 index 00000000..4c3e4c62 --- /dev/null +++ b/src/Exception/DeleteVirtualMachineGroupBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteVirtualMachineGroupConflictException.php b/src/Exception/DeleteVirtualMachineGroupConflictException.php new file mode 100644 index 00000000..cb26148c --- /dev/null +++ b/src/Exception/DeleteVirtualMachineGroupConflictException.php @@ -0,0 +1,40 @@ +responseDeletionRestrictedResponse = $responseDeletionRestrictedResponse; + $this->response = $response; + } + + public function getResponseDeletionRestrictedResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDeletionRestrictedResponse + { + return $this->responseDeletionRestrictedResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteVirtualMachineGroupForbiddenException.php b/src/Exception/DeleteVirtualMachineGroupForbiddenException.php new file mode 100644 index 00000000..c19e85e0 --- /dev/null +++ b/src/Exception/DeleteVirtualMachineGroupForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteVirtualMachineGroupNotFoundException.php b/src/Exception/DeleteVirtualMachineGroupNotFoundException.php new file mode 100644 index 00000000..48e7d7f3 --- /dev/null +++ b/src/Exception/DeleteVirtualMachineGroupNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineGroupNotFoundResponse = $responseVirtualMachineGroupNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineGroupNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineGroupNotFoundResponse + { + return $this->responseVirtualMachineGroupNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteVirtualMachineGroupTooManyRequestsException.php b/src/Exception/DeleteVirtualMachineGroupTooManyRequestsException.php new file mode 100644 index 00000000..931e5a73 --- /dev/null +++ b/src/Exception/DeleteVirtualMachineGroupTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteVirtualMachineNotAcceptableException.php b/src/Exception/DeleteVirtualMachineNotAcceptableException.php new file mode 100644 index 00000000..fa99b455 --- /dev/null +++ b/src/Exception/DeleteVirtualMachineNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteVirtualMachineNotFoundException.php b/src/Exception/DeleteVirtualMachineNotFoundException.php new file mode 100644 index 00000000..cd211b14 --- /dev/null +++ b/src/Exception/DeleteVirtualMachineNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteVirtualMachineTooManyRequestsException.php b/src/Exception/DeleteVirtualMachineTooManyRequestsException.php new file mode 100644 index 00000000..2fda468b --- /dev/null +++ b/src/Exception/DeleteVirtualMachineTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/ForbiddenException.php b/src/Exception/ForbiddenException.php new file mode 100644 index 00000000..cb748337 --- /dev/null +++ b/src/Exception/ForbiddenException.php @@ -0,0 +1,19 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCertificateForbiddenException.php b/src/Exception/GetCertificateForbiddenException.php new file mode 100644 index 00000000..91f75ce5 --- /dev/null +++ b/src/Exception/GetCertificateForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCertificateNotAcceptableException.php b/src/Exception/GetCertificateNotAcceptableException.php new file mode 100644 index 00000000..82066d82 --- /dev/null +++ b/src/Exception/GetCertificateNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCertificateNotFoundException.php b/src/Exception/GetCertificateNotFoundException.php new file mode 100644 index 00000000..06868108 --- /dev/null +++ b/src/Exception/GetCertificateNotFoundException.php @@ -0,0 +1,40 @@ +responseCertificateNotFoundResponse = $responseCertificateNotFoundResponse; + $this->response = $response; + } + + public function getResponseCertificateNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseCertificateNotFoundResponse + { + return $this->responseCertificateNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCertificateTooManyRequestsException.php b/src/Exception/GetCertificateTooManyRequestsException.php new file mode 100644 index 00000000..283e0729 --- /dev/null +++ b/src/Exception/GetCertificateTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountriesBadRequestException.php b/src/Exception/GetCountriesBadRequestException.php new file mode 100644 index 00000000..40a91036 --- /dev/null +++ b/src/Exception/GetCountriesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountriesForbiddenException.php b/src/Exception/GetCountriesForbiddenException.php new file mode 100644 index 00000000..dae1e01e --- /dev/null +++ b/src/Exception/GetCountriesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountriesTooManyRequestsException.php b/src/Exception/GetCountriesTooManyRequestsException.php new file mode 100644 index 00000000..d9781cd2 --- /dev/null +++ b/src/Exception/GetCountriesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountryBadRequestException.php b/src/Exception/GetCountryBadRequestException.php new file mode 100644 index 00000000..8774a435 --- /dev/null +++ b/src/Exception/GetCountryBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountryCountryStatesBadRequestException.php b/src/Exception/GetCountryCountryStatesBadRequestException.php new file mode 100644 index 00000000..cc4baf06 --- /dev/null +++ b/src/Exception/GetCountryCountryStatesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountryCountryStatesForbiddenException.php b/src/Exception/GetCountryCountryStatesForbiddenException.php new file mode 100644 index 00000000..6b2bf7b3 --- /dev/null +++ b/src/Exception/GetCountryCountryStatesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountryCountryStatesNotFoundException.php b/src/Exception/GetCountryCountryStatesNotFoundException.php new file mode 100644 index 00000000..1fed8664 --- /dev/null +++ b/src/Exception/GetCountryCountryStatesNotFoundException.php @@ -0,0 +1,40 @@ +responseCountryNotFoundResponse = $responseCountryNotFoundResponse; + $this->response = $response; + } + + public function getResponseCountryNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseCountryNotFoundResponse + { + return $this->responseCountryNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountryCountryStatesTooManyRequestsException.php b/src/Exception/GetCountryCountryStatesTooManyRequestsException.php new file mode 100644 index 00000000..5b174644 --- /dev/null +++ b/src/Exception/GetCountryCountryStatesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountryForbiddenException.php b/src/Exception/GetCountryForbiddenException.php new file mode 100644 index 00000000..8a31edc9 --- /dev/null +++ b/src/Exception/GetCountryForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountryNotFoundException.php b/src/Exception/GetCountryNotFoundException.php new file mode 100644 index 00000000..6de18abb --- /dev/null +++ b/src/Exception/GetCountryNotFoundException.php @@ -0,0 +1,40 @@ +responseCountryNotFoundResponse = $responseCountryNotFoundResponse; + $this->response = $response; + } + + public function getResponseCountryNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseCountryNotFoundResponse + { + return $this->responseCountryNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountryStateBadRequestException.php b/src/Exception/GetCountryStateBadRequestException.php new file mode 100644 index 00000000..57a7bd1a --- /dev/null +++ b/src/Exception/GetCountryStateBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountryStateForbiddenException.php b/src/Exception/GetCountryStateForbiddenException.php new file mode 100644 index 00000000..cd97ac08 --- /dev/null +++ b/src/Exception/GetCountryStateForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountryStateNotFoundException.php b/src/Exception/GetCountryStateNotFoundException.php new file mode 100644 index 00000000..82bb35c2 --- /dev/null +++ b/src/Exception/GetCountryStateNotFoundException.php @@ -0,0 +1,40 @@ +responseCountryStateNotFoundResponse = $responseCountryStateNotFoundResponse; + $this->response = $response; + } + + public function getResponseCountryStateNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseCountryStateNotFoundResponse + { + return $this->responseCountryStateNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountryStateTooManyRequestsException.php b/src/Exception/GetCountryStateTooManyRequestsException.php new file mode 100644 index 00000000..ab59b86a --- /dev/null +++ b/src/Exception/GetCountryStateTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCountryTooManyRequestsException.php b/src/Exception/GetCountryTooManyRequestsException.php new file mode 100644 index 00000000..df73cb59 --- /dev/null +++ b/src/Exception/GetCountryTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCurrenciesBadRequestException.php b/src/Exception/GetCurrenciesBadRequestException.php new file mode 100644 index 00000000..34bcf83b --- /dev/null +++ b/src/Exception/GetCurrenciesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCurrenciesForbiddenException.php b/src/Exception/GetCurrenciesForbiddenException.php new file mode 100644 index 00000000..92fb9d0f --- /dev/null +++ b/src/Exception/GetCurrenciesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCurrenciesTooManyRequestsException.php b/src/Exception/GetCurrenciesTooManyRequestsException.php new file mode 100644 index 00000000..9677afba --- /dev/null +++ b/src/Exception/GetCurrenciesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCurrencyBadRequestException.php b/src/Exception/GetCurrencyBadRequestException.php new file mode 100644 index 00000000..33cdb369 --- /dev/null +++ b/src/Exception/GetCurrencyBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCurrencyForbiddenException.php b/src/Exception/GetCurrencyForbiddenException.php new file mode 100644 index 00000000..f4e82728 --- /dev/null +++ b/src/Exception/GetCurrencyForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCurrencyNotFoundException.php b/src/Exception/GetCurrencyNotFoundException.php new file mode 100644 index 00000000..3f564e73 --- /dev/null +++ b/src/Exception/GetCurrencyNotFoundException.php @@ -0,0 +1,40 @@ +responseCurrencyNotFoundResponse = $responseCurrencyNotFoundResponse; + $this->response = $response; + } + + public function getResponseCurrencyNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseCurrencyNotFoundResponse + { + return $this->responseCurrencyNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetCurrencyTooManyRequestsException.php b/src/Exception/GetCurrencyTooManyRequestsException.php new file mode 100644 index 00000000..78b8efa5 --- /dev/null +++ b/src/Exception/GetCurrencyTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCenterBadRequestException.php b/src/Exception/GetDataCenterBadRequestException.php new file mode 100644 index 00000000..7b44463b --- /dev/null +++ b/src/Exception/GetDataCenterBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCenterDefaultNetworkBadRequestException.php b/src/Exception/GetDataCenterDefaultNetworkBadRequestException.php new file mode 100644 index 00000000..597a0c04 --- /dev/null +++ b/src/Exception/GetDataCenterDefaultNetworkBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCenterDefaultNetworkForbiddenException.php b/src/Exception/GetDataCenterDefaultNetworkForbiddenException.php new file mode 100644 index 00000000..edf27404 --- /dev/null +++ b/src/Exception/GetDataCenterDefaultNetworkForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCenterDefaultNetworkNotFoundException.php b/src/Exception/GetDataCenterDefaultNetworkNotFoundException.php new file mode 100644 index 00000000..8b6c71d9 --- /dev/null +++ b/src/Exception/GetDataCenterDefaultNetworkNotFoundException.php @@ -0,0 +1,40 @@ +responseDataCenterNotFoundResponse = $responseDataCenterNotFoundResponse; + $this->response = $response; + } + + public function getResponseDataCenterNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDataCenterNotFoundResponse + { + return $this->responseDataCenterNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCenterDefaultNetworkTooManyRequestsException.php b/src/Exception/GetDataCenterDefaultNetworkTooManyRequestsException.php new file mode 100644 index 00000000..988512ef --- /dev/null +++ b/src/Exception/GetDataCenterDefaultNetworkTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCenterForbiddenException.php b/src/Exception/GetDataCenterForbiddenException.php new file mode 100644 index 00000000..c6d49759 --- /dev/null +++ b/src/Exception/GetDataCenterForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCenterGpuTypesBadRequestException.php b/src/Exception/GetDataCenterGpuTypesBadRequestException.php new file mode 100644 index 00000000..6ffe8e87 --- /dev/null +++ b/src/Exception/GetDataCenterGpuTypesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCenterGpuTypesForbiddenException.php b/src/Exception/GetDataCenterGpuTypesForbiddenException.php new file mode 100644 index 00000000..b721fe09 --- /dev/null +++ b/src/Exception/GetDataCenterGpuTypesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCenterGpuTypesNotFoundException.php b/src/Exception/GetDataCenterGpuTypesNotFoundException.php new file mode 100644 index 00000000..e869992f --- /dev/null +++ b/src/Exception/GetDataCenterGpuTypesNotFoundException.php @@ -0,0 +1,40 @@ +responseDataCenterNotFoundResponse = $responseDataCenterNotFoundResponse; + $this->response = $response; + } + + public function getResponseDataCenterNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDataCenterNotFoundResponse + { + return $this->responseDataCenterNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCenterGpuTypesTooManyRequestsException.php b/src/Exception/GetDataCenterGpuTypesTooManyRequestsException.php new file mode 100644 index 00000000..7b7ae47a --- /dev/null +++ b/src/Exception/GetDataCenterGpuTypesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCenterNotFoundException.php b/src/Exception/GetDataCenterNotFoundException.php new file mode 100644 index 00000000..727dbdfa --- /dev/null +++ b/src/Exception/GetDataCenterNotFoundException.php @@ -0,0 +1,40 @@ +responseDataCenterNotFoundResponse = $responseDataCenterNotFoundResponse; + $this->response = $response; + } + + public function getResponseDataCenterNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDataCenterNotFoundResponse + { + return $this->responseDataCenterNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCenterTooManyRequestsException.php b/src/Exception/GetDataCenterTooManyRequestsException.php new file mode 100644 index 00000000..8924a5f9 --- /dev/null +++ b/src/Exception/GetDataCenterTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCentersBadRequestException.php b/src/Exception/GetDataCentersBadRequestException.php new file mode 100644 index 00000000..d7c0f5fc --- /dev/null +++ b/src/Exception/GetDataCentersBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCentersForbiddenException.php b/src/Exception/GetDataCentersForbiddenException.php new file mode 100644 index 00000000..e661d402 --- /dev/null +++ b/src/Exception/GetDataCentersForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDataCentersTooManyRequestsException.php b/src/Exception/GetDataCentersTooManyRequestsException.php new file mode 100644 index 00000000..87aa1ffb --- /dev/null +++ b/src/Exception/GetDataCentersTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskBackupPolicyBadRequestException.php b/src/Exception/GetDiskBackupPolicyBadRequestException.php new file mode 100644 index 00000000..690c5aac --- /dev/null +++ b/src/Exception/GetDiskBackupPolicyBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskBackupPolicyForbiddenException.php b/src/Exception/GetDiskBackupPolicyForbiddenException.php new file mode 100644 index 00000000..66069e08 --- /dev/null +++ b/src/Exception/GetDiskBackupPolicyForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskBackupPolicyNotAcceptableException.php b/src/Exception/GetDiskBackupPolicyNotAcceptableException.php new file mode 100644 index 00000000..9d21712b --- /dev/null +++ b/src/Exception/GetDiskBackupPolicyNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskBackupPolicyNotFoundException.php b/src/Exception/GetDiskBackupPolicyNotFoundException.php new file mode 100644 index 00000000..64ed4c01 --- /dev/null +++ b/src/Exception/GetDiskBackupPolicyNotFoundException.php @@ -0,0 +1,40 @@ +responseDiskBackupPolicyNotFoundResponse = $responseDiskBackupPolicyNotFoundResponse; + $this->response = $response; + } + + public function getResponseDiskBackupPolicyNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDiskBackupPolicyNotFoundResponse + { + return $this->responseDiskBackupPolicyNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskBackupPolicyTooManyRequestsException.php b/src/Exception/GetDiskBackupPolicyTooManyRequestsException.php new file mode 100644 index 00000000..8f24e6f2 --- /dev/null +++ b/src/Exception/GetDiskBackupPolicyTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskBadRequestException.php b/src/Exception/GetDiskBadRequestException.php new file mode 100644 index 00000000..21d0b2bf --- /dev/null +++ b/src/Exception/GetDiskBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskDiskBackupPoliciesBadRequestException.php b/src/Exception/GetDiskDiskBackupPoliciesBadRequestException.php new file mode 100644 index 00000000..0a2eec8b --- /dev/null +++ b/src/Exception/GetDiskDiskBackupPoliciesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskDiskBackupPoliciesForbiddenException.php b/src/Exception/GetDiskDiskBackupPoliciesForbiddenException.php new file mode 100644 index 00000000..b17c5035 --- /dev/null +++ b/src/Exception/GetDiskDiskBackupPoliciesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskDiskBackupPoliciesNotFoundException.php b/src/Exception/GetDiskDiskBackupPoliciesNotFoundException.php new file mode 100644 index 00000000..80559ceb --- /dev/null +++ b/src/Exception/GetDiskDiskBackupPoliciesNotFoundException.php @@ -0,0 +1,40 @@ +responseDiskNotFoundResponse = $responseDiskNotFoundResponse; + $this->response = $response; + } + + public function getResponseDiskNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDiskNotFoundResponse + { + return $this->responseDiskNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskDiskBackupPoliciesTooManyRequestsException.php b/src/Exception/GetDiskDiskBackupPoliciesTooManyRequestsException.php new file mode 100644 index 00000000..0e19b62f --- /dev/null +++ b/src/Exception/GetDiskDiskBackupPoliciesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskForbiddenException.php b/src/Exception/GetDiskForbiddenException.php new file mode 100644 index 00000000..7f2c8d10 --- /dev/null +++ b/src/Exception/GetDiskForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskNotFoundException.php b/src/Exception/GetDiskNotFoundException.php new file mode 100644 index 00000000..fefe36c7 --- /dev/null +++ b/src/Exception/GetDiskNotFoundException.php @@ -0,0 +1,40 @@ +responseDiskNotFoundResponse = $responseDiskNotFoundResponse; + $this->response = $response; + } + + public function getResponseDiskNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDiskNotFoundResponse + { + return $this->responseDiskNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateBadRequestException.php b/src/Exception/GetDiskTemplateBadRequestException.php new file mode 100644 index 00000000..a9ebdcb5 --- /dev/null +++ b/src/Exception/GetDiskTemplateBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateForbiddenException.php b/src/Exception/GetDiskTemplateForbiddenException.php new file mode 100644 index 00000000..8702d816 --- /dev/null +++ b/src/Exception/GetDiskTemplateForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateNotFoundException.php b/src/Exception/GetDiskTemplateNotFoundException.php new file mode 100644 index 00000000..1eba98aa --- /dev/null +++ b/src/Exception/GetDiskTemplateNotFoundException.php @@ -0,0 +1,40 @@ +responseDiskTemplateNotFoundResponse = $responseDiskTemplateNotFoundResponse; + $this->response = $response; + } + + public function getResponseDiskTemplateNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDiskTemplateNotFoundResponse + { + return $this->responseDiskTemplateNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateTooManyRequestsException.php b/src/Exception/GetDiskTemplateTooManyRequestsException.php new file mode 100644 index 00000000..9a82d42d --- /dev/null +++ b/src/Exception/GetDiskTemplateTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateVersionBadRequestException.php b/src/Exception/GetDiskTemplateVersionBadRequestException.php new file mode 100644 index 00000000..08915433 --- /dev/null +++ b/src/Exception/GetDiskTemplateVersionBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateVersionForbiddenException.php b/src/Exception/GetDiskTemplateVersionForbiddenException.php new file mode 100644 index 00000000..d752a22a --- /dev/null +++ b/src/Exception/GetDiskTemplateVersionForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateVersionNotFoundException.php b/src/Exception/GetDiskTemplateVersionNotFoundException.php new file mode 100644 index 00000000..480dd42e --- /dev/null +++ b/src/Exception/GetDiskTemplateVersionNotFoundException.php @@ -0,0 +1,40 @@ +responseDiskTemplateVersionNotFoundResponse = $responseDiskTemplateVersionNotFoundResponse; + $this->response = $response; + } + + public function getResponseDiskTemplateVersionNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDiskTemplateVersionNotFoundResponse + { + return $this->responseDiskTemplateVersionNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateVersionSpecBadRequestException.php b/src/Exception/GetDiskTemplateVersionSpecBadRequestException.php new file mode 100644 index 00000000..fa7c5004 --- /dev/null +++ b/src/Exception/GetDiskTemplateVersionSpecBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateVersionSpecForbiddenException.php b/src/Exception/GetDiskTemplateVersionSpecForbiddenException.php new file mode 100644 index 00000000..3cc0d03c --- /dev/null +++ b/src/Exception/GetDiskTemplateVersionSpecForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateVersionSpecNotFoundException.php b/src/Exception/GetDiskTemplateVersionSpecNotFoundException.php new file mode 100644 index 00000000..ce91dfbf --- /dev/null +++ b/src/Exception/GetDiskTemplateVersionSpecNotFoundException.php @@ -0,0 +1,40 @@ +responseDiskTemplateVersionNotFoundResponse = $responseDiskTemplateVersionNotFoundResponse; + $this->response = $response; + } + + public function getResponseDiskTemplateVersionNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDiskTemplateVersionNotFoundResponse + { + return $this->responseDiskTemplateVersionNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateVersionSpecTooManyRequestsException.php b/src/Exception/GetDiskTemplateVersionSpecTooManyRequestsException.php new file mode 100644 index 00000000..693f6f34 --- /dev/null +++ b/src/Exception/GetDiskTemplateVersionSpecTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateVersionTooManyRequestsException.php b/src/Exception/GetDiskTemplateVersionTooManyRequestsException.php new file mode 100644 index 00000000..3d17c60a --- /dev/null +++ b/src/Exception/GetDiskTemplateVersionTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateVersionsBadRequestException.php b/src/Exception/GetDiskTemplateVersionsBadRequestException.php new file mode 100644 index 00000000..ee664b68 --- /dev/null +++ b/src/Exception/GetDiskTemplateVersionsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateVersionsForbiddenException.php b/src/Exception/GetDiskTemplateVersionsForbiddenException.php new file mode 100644 index 00000000..5331cdb2 --- /dev/null +++ b/src/Exception/GetDiskTemplateVersionsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateVersionsNotFoundException.php b/src/Exception/GetDiskTemplateVersionsNotFoundException.php new file mode 100644 index 00000000..e61e87e8 --- /dev/null +++ b/src/Exception/GetDiskTemplateVersionsNotFoundException.php @@ -0,0 +1,40 @@ +responseDiskTemplateNotFoundResponse = $responseDiskTemplateNotFoundResponse; + $this->response = $response; + } + + public function getResponseDiskTemplateNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDiskTemplateNotFoundResponse + { + return $this->responseDiskTemplateNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTemplateVersionsTooManyRequestsException.php b/src/Exception/GetDiskTemplateVersionsTooManyRequestsException.php new file mode 100644 index 00000000..3f6ef451 --- /dev/null +++ b/src/Exception/GetDiskTemplateVersionsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDiskTooManyRequestsException.php b/src/Exception/GetDiskTooManyRequestsException.php new file mode 100644 index 00000000..40e67a97 --- /dev/null +++ b/src/Exception/GetDiskTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsRecordBadRequestException.php b/src/Exception/GetDnsRecordBadRequestException.php new file mode 100644 index 00000000..7567cfb2 --- /dev/null +++ b/src/Exception/GetDnsRecordBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsRecordForbiddenException.php b/src/Exception/GetDnsRecordForbiddenException.php new file mode 100644 index 00000000..c7d27a23 --- /dev/null +++ b/src/Exception/GetDnsRecordForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsRecordNotFoundException.php b/src/Exception/GetDnsRecordNotFoundException.php new file mode 100644 index 00000000..ce73ba27 --- /dev/null +++ b/src/Exception/GetDnsRecordNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSRecordNotFoundResponse = $responseDNSRecordNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSRecordNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSRecordNotFoundResponse + { + return $this->responseDNSRecordNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsRecordTooManyRequestsException.php b/src/Exception/GetDnsRecordTooManyRequestsException.php new file mode 100644 index 00000000..09b71359 --- /dev/null +++ b/src/Exception/GetDnsRecordTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsRecordsDnsRecordBadRequestException.php b/src/Exception/GetDnsRecordsDnsRecordBadRequestException.php new file mode 100644 index 00000000..5007ff9e --- /dev/null +++ b/src/Exception/GetDnsRecordsDnsRecordBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsRecordsDnsRecordForbiddenException.php b/src/Exception/GetDnsRecordsDnsRecordForbiddenException.php new file mode 100644 index 00000000..31429875 --- /dev/null +++ b/src/Exception/GetDnsRecordsDnsRecordForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsRecordsDnsRecordNotFoundException.php b/src/Exception/GetDnsRecordsDnsRecordNotFoundException.php new file mode 100644 index 00000000..48b36b33 --- /dev/null +++ b/src/Exception/GetDnsRecordsDnsRecordNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSRecordNotFoundResponse = $responseDNSRecordNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSRecordNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSRecordNotFoundResponse + { + return $this->responseDNSRecordNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsRecordsDnsRecordTooManyRequestsException.php b/src/Exception/GetDnsRecordsDnsRecordTooManyRequestsException.php new file mode 100644 index 00000000..c2615812 --- /dev/null +++ b/src/Exception/GetDnsRecordsDnsRecordTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZoneBadRequestException.php b/src/Exception/GetDnsZoneBadRequestException.php new file mode 100644 index 00000000..a60f1a96 --- /dev/null +++ b/src/Exception/GetDnsZoneBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZoneForbiddenException.php b/src/Exception/GetDnsZoneForbiddenException.php new file mode 100644 index 00000000..d2adbb64 --- /dev/null +++ b/src/Exception/GetDnsZoneForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZoneNotFoundException.php b/src/Exception/GetDnsZoneNotFoundException.php new file mode 100644 index 00000000..73c6b173 --- /dev/null +++ b/src/Exception/GetDnsZoneNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZoneRecordsBadRequestException.php b/src/Exception/GetDnsZoneRecordsBadRequestException.php new file mode 100644 index 00000000..819decba --- /dev/null +++ b/src/Exception/GetDnsZoneRecordsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZoneRecordsForbiddenException.php b/src/Exception/GetDnsZoneRecordsForbiddenException.php new file mode 100644 index 00000000..eb18ad4b --- /dev/null +++ b/src/Exception/GetDnsZoneRecordsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZoneRecordsNotFoundException.php b/src/Exception/GetDnsZoneRecordsNotFoundException.php new file mode 100644 index 00000000..421a51da --- /dev/null +++ b/src/Exception/GetDnsZoneRecordsNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZoneRecordsTooManyRequestsException.php b/src/Exception/GetDnsZoneRecordsTooManyRequestsException.php new file mode 100644 index 00000000..1c100e16 --- /dev/null +++ b/src/Exception/GetDnsZoneRecordsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZoneTooManyRequestsException.php b/src/Exception/GetDnsZoneTooManyRequestsException.php new file mode 100644 index 00000000..c0938a12 --- /dev/null +++ b/src/Exception/GetDnsZoneTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneBadRequestException.php b/src/Exception/GetDnsZonesDnsZoneBadRequestException.php new file mode 100644 index 00000000..98e3597d --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneForbiddenException.php b/src/Exception/GetDnsZonesDnsZoneForbiddenException.php new file mode 100644 index 00000000..162ee4a9 --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneNotFoundException.php b/src/Exception/GetDnsZonesDnsZoneNotFoundException.php new file mode 100644 index 00000000..83abb98f --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneRecordsBadRequestException.php b/src/Exception/GetDnsZonesDnsZoneRecordsBadRequestException.php new file mode 100644 index 00000000..a11cb12c --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneRecordsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneRecordsForbiddenException.php b/src/Exception/GetDnsZonesDnsZoneRecordsForbiddenException.php new file mode 100644 index 00000000..abbf188e --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneRecordsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneRecordsNotFoundException.php b/src/Exception/GetDnsZonesDnsZoneRecordsNotFoundException.php new file mode 100644 index 00000000..63cfc42c --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneRecordsNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneRecordsTooManyRequestsException.php b/src/Exception/GetDnsZonesDnsZoneRecordsTooManyRequestsException.php new file mode 100644 index 00000000..c697321b --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneRecordsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneTooManyRequestsException.php b/src/Exception/GetDnsZonesDnsZoneTooManyRequestsException.php new file mode 100644 index 00000000..6dcb37b5 --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneVerificationDetailsBadRequestException.php b/src/Exception/GetDnsZonesDnsZoneVerificationDetailsBadRequestException.php new file mode 100644 index 00000000..5f79fb9b --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneVerificationDetailsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneVerificationDetailsForbiddenException.php b/src/Exception/GetDnsZonesDnsZoneVerificationDetailsForbiddenException.php new file mode 100644 index 00000000..67b99fde --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneVerificationDetailsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneVerificationDetailsNotFoundException.php b/src/Exception/GetDnsZonesDnsZoneVerificationDetailsNotFoundException.php new file mode 100644 index 00000000..b4b9b135 --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneVerificationDetailsNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneVerificationDetailsTooManyRequestsException.php b/src/Exception/GetDnsZonesDnsZoneVerificationDetailsTooManyRequestsException.php new file mode 100644 index 00000000..7d9c16f3 --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneVerificationDetailsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetDnsZonesDnsZoneVerificationDetailsUnprocessableEntityException.php b/src/Exception/GetDnsZonesDnsZoneVerificationDetailsUnprocessableEntityException.php new file mode 100644 index 00000000..5cbd04e6 --- /dev/null +++ b/src/Exception/GetDnsZonesDnsZoneVerificationDetailsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseDNSZoneAlreadyVerifiedResponse = $responseDNSZoneAlreadyVerifiedResponse; + $this->response = $response; + } + + public function getResponseDNSZoneAlreadyVerifiedResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneAlreadyVerifiedResponse + { + return $this->responseDNSZoneAlreadyVerifiedResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetFileStorageVolumeBadRequestException.php b/src/Exception/GetFileStorageVolumeBadRequestException.php new file mode 100644 index 00000000..e6b98112 --- /dev/null +++ b/src/Exception/GetFileStorageVolumeBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetFileStorageVolumeForbiddenException.php b/src/Exception/GetFileStorageVolumeForbiddenException.php new file mode 100644 index 00000000..48e1faa9 --- /dev/null +++ b/src/Exception/GetFileStorageVolumeForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetFileStorageVolumeNotAcceptableException.php b/src/Exception/GetFileStorageVolumeNotAcceptableException.php new file mode 100644 index 00000000..daee59ce --- /dev/null +++ b/src/Exception/GetFileStorageVolumeNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetFileStorageVolumeNotFoundException.php b/src/Exception/GetFileStorageVolumeNotFoundException.php new file mode 100644 index 00000000..c7453e46 --- /dev/null +++ b/src/Exception/GetFileStorageVolumeNotFoundException.php @@ -0,0 +1,40 @@ +responseFileStorageVolumeNotFoundResponse = $responseFileStorageVolumeNotFoundResponse; + $this->response = $response; + } + + public function getResponseFileStorageVolumeNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseFileStorageVolumeNotFoundResponse + { + return $this->responseFileStorageVolumeNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetFileStorageVolumeTooManyRequestsException.php b/src/Exception/GetFileStorageVolumeTooManyRequestsException.php new file mode 100644 index 00000000..346cc082 --- /dev/null +++ b/src/Exception/GetFileStorageVolumeTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetGpuTypeBadRequestException.php b/src/Exception/GetGpuTypeBadRequestException.php new file mode 100644 index 00000000..eb1d45b9 --- /dev/null +++ b/src/Exception/GetGpuTypeBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetGpuTypeForbiddenException.php b/src/Exception/GetGpuTypeForbiddenException.php new file mode 100644 index 00000000..c25fc191 --- /dev/null +++ b/src/Exception/GetGpuTypeForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetGpuTypeNotFoundException.php b/src/Exception/GetGpuTypeNotFoundException.php new file mode 100644 index 00000000..9e9e7d53 --- /dev/null +++ b/src/Exception/GetGpuTypeNotFoundException.php @@ -0,0 +1,40 @@ +responseGPUTypeNotFoundResponse = $responseGPUTypeNotFoundResponse; + $this->response = $response; + } + + public function getResponseGPUTypeNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseGPUTypeNotFoundResponse + { + return $this->responseGPUTypeNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetGpuTypeTooManyRequestsException.php b/src/Exception/GetGpuTypeTooManyRequestsException.php new file mode 100644 index 00000000..b362dcf3 --- /dev/null +++ b/src/Exception/GetGpuTypeTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetGpuTypesBadRequestException.php b/src/Exception/GetGpuTypesBadRequestException.php new file mode 100644 index 00000000..4b193070 --- /dev/null +++ b/src/Exception/GetGpuTypesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetGpuTypesForbiddenException.php b/src/Exception/GetGpuTypesForbiddenException.php new file mode 100644 index 00000000..1ee793d1 --- /dev/null +++ b/src/Exception/GetGpuTypesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetGpuTypesTooManyRequestsException.php b/src/Exception/GetGpuTypesTooManyRequestsException.php new file mode 100644 index 00000000..ad5647fd --- /dev/null +++ b/src/Exception/GetGpuTypesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetIpAddressBadRequestException.php b/src/Exception/GetIpAddressBadRequestException.php new file mode 100644 index 00000000..f801200c --- /dev/null +++ b/src/Exception/GetIpAddressBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetIpAddressForbiddenException.php b/src/Exception/GetIpAddressForbiddenException.php new file mode 100644 index 00000000..33d19214 --- /dev/null +++ b/src/Exception/GetIpAddressForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetIpAddressNotFoundException.php b/src/Exception/GetIpAddressNotFoundException.php new file mode 100644 index 00000000..60e2fdd9 --- /dev/null +++ b/src/Exception/GetIpAddressNotFoundException.php @@ -0,0 +1,40 @@ +responseIPAddressNotFoundResponse = $responseIPAddressNotFoundResponse; + $this->response = $response; + } + + public function getResponseIPAddressNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseIPAddressNotFoundResponse + { + return $this->responseIPAddressNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetIpAddressTooManyRequestsException.php b/src/Exception/GetIpAddressTooManyRequestsException.php new file mode 100644 index 00000000..b8eb4bba --- /dev/null +++ b/src/Exception/GetIpAddressTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetLoadBalancerBadRequestException.php b/src/Exception/GetLoadBalancerBadRequestException.php new file mode 100644 index 00000000..250a03df --- /dev/null +++ b/src/Exception/GetLoadBalancerBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetLoadBalancerForbiddenException.php b/src/Exception/GetLoadBalancerForbiddenException.php new file mode 100644 index 00000000..e23d0df3 --- /dev/null +++ b/src/Exception/GetLoadBalancerForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetLoadBalancerNotFoundException.php b/src/Exception/GetLoadBalancerNotFoundException.php new file mode 100644 index 00000000..cfe52693 --- /dev/null +++ b/src/Exception/GetLoadBalancerNotFoundException.php @@ -0,0 +1,40 @@ +responseLoadBalancerNotFoundResponse = $responseLoadBalancerNotFoundResponse; + $this->response = $response; + } + + public function getResponseLoadBalancerNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseLoadBalancerNotFoundResponse + { + return $this->responseLoadBalancerNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetLoadBalancerRulesBadRequestException.php b/src/Exception/GetLoadBalancerRulesBadRequestException.php new file mode 100644 index 00000000..93afdbcc --- /dev/null +++ b/src/Exception/GetLoadBalancerRulesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetLoadBalancerRulesForbiddenException.php b/src/Exception/GetLoadBalancerRulesForbiddenException.php new file mode 100644 index 00000000..de8771a8 --- /dev/null +++ b/src/Exception/GetLoadBalancerRulesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetLoadBalancerRulesNotFoundException.php b/src/Exception/GetLoadBalancerRulesNotFoundException.php new file mode 100644 index 00000000..4d6a210b --- /dev/null +++ b/src/Exception/GetLoadBalancerRulesNotFoundException.php @@ -0,0 +1,40 @@ +responseLoadBalancerNotFoundResponse = $responseLoadBalancerNotFoundResponse; + $this->response = $response; + } + + public function getResponseLoadBalancerNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseLoadBalancerNotFoundResponse + { + return $this->responseLoadBalancerNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetLoadBalancerRulesTooManyRequestsException.php b/src/Exception/GetLoadBalancerRulesTooManyRequestsException.php new file mode 100644 index 00000000..a9305860 --- /dev/null +++ b/src/Exception/GetLoadBalancerRulesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetLoadBalancerTooManyRequestsException.php b/src/Exception/GetLoadBalancerTooManyRequestsException.php new file mode 100644 index 00000000..4ef2e623 --- /dev/null +++ b/src/Exception/GetLoadBalancerTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetLoadBalancersRulesLoadBalancerRuleBadRequestException.php b/src/Exception/GetLoadBalancersRulesLoadBalancerRuleBadRequestException.php new file mode 100644 index 00000000..a339b064 --- /dev/null +++ b/src/Exception/GetLoadBalancersRulesLoadBalancerRuleBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetLoadBalancersRulesLoadBalancerRuleForbiddenException.php b/src/Exception/GetLoadBalancersRulesLoadBalancerRuleForbiddenException.php new file mode 100644 index 00000000..ebeb4c58 --- /dev/null +++ b/src/Exception/GetLoadBalancersRulesLoadBalancerRuleForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetLoadBalancersRulesLoadBalancerRuleNotFoundException.php b/src/Exception/GetLoadBalancersRulesLoadBalancerRuleNotFoundException.php new file mode 100644 index 00000000..80cab6d3 --- /dev/null +++ b/src/Exception/GetLoadBalancersRulesLoadBalancerRuleNotFoundException.php @@ -0,0 +1,40 @@ +responseLoadBalancerRuleNotFoundResponse = $responseLoadBalancerRuleNotFoundResponse; + $this->response = $response; + } + + public function getResponseLoadBalancerRuleNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseLoadBalancerRuleNotFoundResponse + { + return $this->responseLoadBalancerRuleNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetLoadBalancersRulesLoadBalancerRuleTooManyRequestsException.php b/src/Exception/GetLoadBalancersRulesLoadBalancerRuleTooManyRequestsException.php new file mode 100644 index 00000000..db0a4a31 --- /dev/null +++ b/src/Exception/GetLoadBalancersRulesLoadBalancerRuleTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetNetworkBadRequestException.php b/src/Exception/GetNetworkBadRequestException.php new file mode 100644 index 00000000..1a56d4d5 --- /dev/null +++ b/src/Exception/GetNetworkBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetNetworkForbiddenException.php b/src/Exception/GetNetworkForbiddenException.php new file mode 100644 index 00000000..634fa14d --- /dev/null +++ b/src/Exception/GetNetworkForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetNetworkNotFoundException.php b/src/Exception/GetNetworkNotFoundException.php new file mode 100644 index 00000000..e3a62818 --- /dev/null +++ b/src/Exception/GetNetworkNotFoundException.php @@ -0,0 +1,40 @@ +responseNetworkNotFoundResponse = $responseNetworkNotFoundResponse; + $this->response = $response; + } + + public function getResponseNetworkNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseNetworkNotFoundResponse + { + return $this->responseNetworkNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetNetworkTooManyRequestsException.php b/src/Exception/GetNetworkTooManyRequestsException.php new file mode 100644 index 00000000..9b333e7b --- /dev/null +++ b/src/Exception/GetNetworkTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOperatingSystemBadRequestException.php b/src/Exception/GetOperatingSystemBadRequestException.php new file mode 100644 index 00000000..a4f37dfa --- /dev/null +++ b/src/Exception/GetOperatingSystemBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOperatingSystemForbiddenException.php b/src/Exception/GetOperatingSystemForbiddenException.php new file mode 100644 index 00000000..001bd096 --- /dev/null +++ b/src/Exception/GetOperatingSystemForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOperatingSystemNotFoundException.php b/src/Exception/GetOperatingSystemNotFoundException.php new file mode 100644 index 00000000..d3526c3c --- /dev/null +++ b/src/Exception/GetOperatingSystemNotFoundException.php @@ -0,0 +1,40 @@ +responseOperatingSystemNotFoundResponse = $responseOperatingSystemNotFoundResponse; + $this->response = $response; + } + + public function getResponseOperatingSystemNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOperatingSystemNotFoundResponse + { + return $this->responseOperatingSystemNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOperatingSystemTooManyRequestsException.php b/src/Exception/GetOperatingSystemTooManyRequestsException.php new file mode 100644 index 00000000..28fb56d4 --- /dev/null +++ b/src/Exception/GetOperatingSystemTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOperatingSystemsBadRequestException.php b/src/Exception/GetOperatingSystemsBadRequestException.php new file mode 100644 index 00000000..1a8c44a0 --- /dev/null +++ b/src/Exception/GetOperatingSystemsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOperatingSystemsForbiddenException.php b/src/Exception/GetOperatingSystemsForbiddenException.php new file mode 100644 index 00000000..69b00086 --- /dev/null +++ b/src/Exception/GetOperatingSystemsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOperatingSystemsTooManyRequestsException.php b/src/Exception/GetOperatingSystemsTooManyRequestsException.php new file mode 100644 index 00000000..ed042734 --- /dev/null +++ b/src/Exception/GetOperatingSystemsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationAvailableNetworksBadRequestException.php b/src/Exception/GetOrganizationAvailableNetworksBadRequestException.php new file mode 100644 index 00000000..53c62747 --- /dev/null +++ b/src/Exception/GetOrganizationAvailableNetworksBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationAvailableNetworksForbiddenException.php b/src/Exception/GetOrganizationAvailableNetworksForbiddenException.php new file mode 100644 index 00000000..3c081fc7 --- /dev/null +++ b/src/Exception/GetOrganizationAvailableNetworksForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationAvailableNetworksNotFoundException.php b/src/Exception/GetOrganizationAvailableNetworksNotFoundException.php new file mode 100644 index 00000000..a3b591f3 --- /dev/null +++ b/src/Exception/GetOrganizationAvailableNetworksNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationAvailableNetworksTooManyRequestsException.php b/src/Exception/GetOrganizationAvailableNetworksTooManyRequestsException.php new file mode 100644 index 00000000..56fe6f54 --- /dev/null +++ b/src/Exception/GetOrganizationAvailableNetworksTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationBadRequestException.php b/src/Exception/GetOrganizationBadRequestException.php new file mode 100644 index 00000000..b73120e9 --- /dev/null +++ b/src/Exception/GetOrganizationBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationCertificatesBadRequestException.php b/src/Exception/GetOrganizationCertificatesBadRequestException.php new file mode 100644 index 00000000..072f2766 --- /dev/null +++ b/src/Exception/GetOrganizationCertificatesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationCertificatesForbiddenException.php b/src/Exception/GetOrganizationCertificatesForbiddenException.php new file mode 100644 index 00000000..5f4acdbd --- /dev/null +++ b/src/Exception/GetOrganizationCertificatesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationCertificatesNotFoundException.php b/src/Exception/GetOrganizationCertificatesNotFoundException.php new file mode 100644 index 00000000..d72e1691 --- /dev/null +++ b/src/Exception/GetOrganizationCertificatesNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationCertificatesTooManyRequestsException.php b/src/Exception/GetOrganizationCertificatesTooManyRequestsException.php new file mode 100644 index 00000000..95478d38 --- /dev/null +++ b/src/Exception/GetOrganizationCertificatesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDiskBackupPoliciesBadRequestException.php b/src/Exception/GetOrganizationDiskBackupPoliciesBadRequestException.php new file mode 100644 index 00000000..e9f84b6b --- /dev/null +++ b/src/Exception/GetOrganizationDiskBackupPoliciesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDiskBackupPoliciesForbiddenException.php b/src/Exception/GetOrganizationDiskBackupPoliciesForbiddenException.php new file mode 100644 index 00000000..efa41f29 --- /dev/null +++ b/src/Exception/GetOrganizationDiskBackupPoliciesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDiskBackupPoliciesNotFoundException.php b/src/Exception/GetOrganizationDiskBackupPoliciesNotFoundException.php new file mode 100644 index 00000000..694243c9 --- /dev/null +++ b/src/Exception/GetOrganizationDiskBackupPoliciesNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDiskBackupPoliciesTooManyRequestsException.php b/src/Exception/GetOrganizationDiskBackupPoliciesTooManyRequestsException.php new file mode 100644 index 00000000..c527ea60 --- /dev/null +++ b/src/Exception/GetOrganizationDiskBackupPoliciesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDiskTemplatesBadRequestException.php b/src/Exception/GetOrganizationDiskTemplatesBadRequestException.php new file mode 100644 index 00000000..d4920120 --- /dev/null +++ b/src/Exception/GetOrganizationDiskTemplatesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDiskTemplatesForbiddenException.php b/src/Exception/GetOrganizationDiskTemplatesForbiddenException.php new file mode 100644 index 00000000..8f6155d5 --- /dev/null +++ b/src/Exception/GetOrganizationDiskTemplatesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDiskTemplatesNotFoundException.php b/src/Exception/GetOrganizationDiskTemplatesNotFoundException.php new file mode 100644 index 00000000..f95b387e --- /dev/null +++ b/src/Exception/GetOrganizationDiskTemplatesNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDiskTemplatesTooManyRequestsException.php b/src/Exception/GetOrganizationDiskTemplatesTooManyRequestsException.php new file mode 100644 index 00000000..39c3b749 --- /dev/null +++ b/src/Exception/GetOrganizationDiskTemplatesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDisksBadRequestException.php b/src/Exception/GetOrganizationDisksBadRequestException.php new file mode 100644 index 00000000..5afd65f6 --- /dev/null +++ b/src/Exception/GetOrganizationDisksBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDisksForbiddenException.php b/src/Exception/GetOrganizationDisksForbiddenException.php new file mode 100644 index 00000000..4de1a339 --- /dev/null +++ b/src/Exception/GetOrganizationDisksForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDisksNotFoundException.php b/src/Exception/GetOrganizationDisksNotFoundException.php new file mode 100644 index 00000000..65ff42c6 --- /dev/null +++ b/src/Exception/GetOrganizationDisksNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDisksTooManyRequestsException.php b/src/Exception/GetOrganizationDisksTooManyRequestsException.php new file mode 100644 index 00000000..947a42c7 --- /dev/null +++ b/src/Exception/GetOrganizationDisksTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDnsZonesBadRequestException.php b/src/Exception/GetOrganizationDnsZonesBadRequestException.php new file mode 100644 index 00000000..04ae3507 --- /dev/null +++ b/src/Exception/GetOrganizationDnsZonesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDnsZonesForbiddenException.php b/src/Exception/GetOrganizationDnsZonesForbiddenException.php new file mode 100644 index 00000000..8ee42978 --- /dev/null +++ b/src/Exception/GetOrganizationDnsZonesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDnsZonesNameserversBadRequestException.php b/src/Exception/GetOrganizationDnsZonesNameserversBadRequestException.php new file mode 100644 index 00000000..7e314e56 --- /dev/null +++ b/src/Exception/GetOrganizationDnsZonesNameserversBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDnsZonesNameserversForbiddenException.php b/src/Exception/GetOrganizationDnsZonesNameserversForbiddenException.php new file mode 100644 index 00000000..796dbfd8 --- /dev/null +++ b/src/Exception/GetOrganizationDnsZonesNameserversForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDnsZonesNameserversNotFoundException.php b/src/Exception/GetOrganizationDnsZonesNameserversNotFoundException.php new file mode 100644 index 00000000..3a7e2f3e --- /dev/null +++ b/src/Exception/GetOrganizationDnsZonesNameserversNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDnsZonesNameserversTooManyRequestsException.php b/src/Exception/GetOrganizationDnsZonesNameserversTooManyRequestsException.php new file mode 100644 index 00000000..2821861c --- /dev/null +++ b/src/Exception/GetOrganizationDnsZonesNameserversTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDnsZonesNotFoundException.php b/src/Exception/GetOrganizationDnsZonesNotFoundException.php new file mode 100644 index 00000000..d08a6a86 --- /dev/null +++ b/src/Exception/GetOrganizationDnsZonesNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationDnsZonesTooManyRequestsException.php b/src/Exception/GetOrganizationDnsZonesTooManyRequestsException.php new file mode 100644 index 00000000..3a48bc7f --- /dev/null +++ b/src/Exception/GetOrganizationDnsZonesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationFileStorageVolumesBadRequestException.php b/src/Exception/GetOrganizationFileStorageVolumesBadRequestException.php new file mode 100644 index 00000000..929ea53f --- /dev/null +++ b/src/Exception/GetOrganizationFileStorageVolumesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationFileStorageVolumesForbiddenException.php b/src/Exception/GetOrganizationFileStorageVolumesForbiddenException.php new file mode 100644 index 00000000..abc16dfa --- /dev/null +++ b/src/Exception/GetOrganizationFileStorageVolumesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationFileStorageVolumesNotFoundException.php b/src/Exception/GetOrganizationFileStorageVolumesNotFoundException.php new file mode 100644 index 00000000..3e4d6381 --- /dev/null +++ b/src/Exception/GetOrganizationFileStorageVolumesNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationFileStorageVolumesTooManyRequestsException.php b/src/Exception/GetOrganizationFileStorageVolumesTooManyRequestsException.php new file mode 100644 index 00000000..fb2789bf --- /dev/null +++ b/src/Exception/GetOrganizationFileStorageVolumesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationForbiddenException.php b/src/Exception/GetOrganizationForbiddenException.php new file mode 100644 index 00000000..d64ae47b --- /dev/null +++ b/src/Exception/GetOrganizationForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationIpAddressesBadRequestException.php b/src/Exception/GetOrganizationIpAddressesBadRequestException.php new file mode 100644 index 00000000..0f95e6b5 --- /dev/null +++ b/src/Exception/GetOrganizationIpAddressesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationIpAddressesForbiddenException.php b/src/Exception/GetOrganizationIpAddressesForbiddenException.php new file mode 100644 index 00000000..51ea7602 --- /dev/null +++ b/src/Exception/GetOrganizationIpAddressesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationIpAddressesNotFoundException.php b/src/Exception/GetOrganizationIpAddressesNotFoundException.php new file mode 100644 index 00000000..08e6ba53 --- /dev/null +++ b/src/Exception/GetOrganizationIpAddressesNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationIpAddressesTooManyRequestsException.php b/src/Exception/GetOrganizationIpAddressesTooManyRequestsException.php new file mode 100644 index 00000000..9b220814 --- /dev/null +++ b/src/Exception/GetOrganizationIpAddressesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationLoadBalancersBadRequestException.php b/src/Exception/GetOrganizationLoadBalancersBadRequestException.php new file mode 100644 index 00000000..3c7aeac7 --- /dev/null +++ b/src/Exception/GetOrganizationLoadBalancersBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationLoadBalancersForbiddenException.php b/src/Exception/GetOrganizationLoadBalancersForbiddenException.php new file mode 100644 index 00000000..8388b02c --- /dev/null +++ b/src/Exception/GetOrganizationLoadBalancersForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationLoadBalancersNotFoundException.php b/src/Exception/GetOrganizationLoadBalancersNotFoundException.php new file mode 100644 index 00000000..18a688af --- /dev/null +++ b/src/Exception/GetOrganizationLoadBalancersNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationLoadBalancersTooManyRequestsException.php b/src/Exception/GetOrganizationLoadBalancersTooManyRequestsException.php new file mode 100644 index 00000000..01b3511d --- /dev/null +++ b/src/Exception/GetOrganizationLoadBalancersTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationManagedBadRequestException.php b/src/Exception/GetOrganizationManagedBadRequestException.php new file mode 100644 index 00000000..4f4a5334 --- /dev/null +++ b/src/Exception/GetOrganizationManagedBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationManagedForbiddenException.php b/src/Exception/GetOrganizationManagedForbiddenException.php new file mode 100644 index 00000000..8e2e9a73 --- /dev/null +++ b/src/Exception/GetOrganizationManagedForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationManagedNotFoundException.php b/src/Exception/GetOrganizationManagedNotFoundException.php new file mode 100644 index 00000000..369d0486 --- /dev/null +++ b/src/Exception/GetOrganizationManagedNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationManagedTooManyRequestsException.php b/src/Exception/GetOrganizationManagedTooManyRequestsException.php new file mode 100644 index 00000000..e118c250 --- /dev/null +++ b/src/Exception/GetOrganizationManagedTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationNetworkSpeedProfilesBadRequestException.php b/src/Exception/GetOrganizationNetworkSpeedProfilesBadRequestException.php new file mode 100644 index 00000000..3edca9ad --- /dev/null +++ b/src/Exception/GetOrganizationNetworkSpeedProfilesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationNetworkSpeedProfilesForbiddenException.php b/src/Exception/GetOrganizationNetworkSpeedProfilesForbiddenException.php new file mode 100644 index 00000000..239ac01b --- /dev/null +++ b/src/Exception/GetOrganizationNetworkSpeedProfilesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationNetworkSpeedProfilesNotFoundException.php b/src/Exception/GetOrganizationNetworkSpeedProfilesNotFoundException.php new file mode 100644 index 00000000..8773999a --- /dev/null +++ b/src/Exception/GetOrganizationNetworkSpeedProfilesNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationNetworkSpeedProfilesTooManyRequestsException.php b/src/Exception/GetOrganizationNetworkSpeedProfilesTooManyRequestsException.php new file mode 100644 index 00000000..82b01fcd --- /dev/null +++ b/src/Exception/GetOrganizationNetworkSpeedProfilesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationNotFoundException.php b/src/Exception/GetOrganizationNotFoundException.php new file mode 100644 index 00000000..ca0830b7 --- /dev/null +++ b/src/Exception/GetOrganizationNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationSecurityGroupsBadRequestException.php b/src/Exception/GetOrganizationSecurityGroupsBadRequestException.php new file mode 100644 index 00000000..2322ffb8 --- /dev/null +++ b/src/Exception/GetOrganizationSecurityGroupsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationSecurityGroupsForbiddenException.php b/src/Exception/GetOrganizationSecurityGroupsForbiddenException.php new file mode 100644 index 00000000..efe176c5 --- /dev/null +++ b/src/Exception/GetOrganizationSecurityGroupsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationSecurityGroupsNotFoundException.php b/src/Exception/GetOrganizationSecurityGroupsNotFoundException.php new file mode 100644 index 00000000..9c2ec6dc --- /dev/null +++ b/src/Exception/GetOrganizationSecurityGroupsNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationSecurityGroupsTooManyRequestsException.php b/src/Exception/GetOrganizationSecurityGroupsTooManyRequestsException.php new file mode 100644 index 00000000..0a53227a --- /dev/null +++ b/src/Exception/GetOrganizationSecurityGroupsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationSshKeysBadRequestException.php b/src/Exception/GetOrganizationSshKeysBadRequestException.php new file mode 100644 index 00000000..4137e2c2 --- /dev/null +++ b/src/Exception/GetOrganizationSshKeysBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationSshKeysForbiddenException.php b/src/Exception/GetOrganizationSshKeysForbiddenException.php new file mode 100644 index 00000000..9713e189 --- /dev/null +++ b/src/Exception/GetOrganizationSshKeysForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationSshKeysNotFoundException.php b/src/Exception/GetOrganizationSshKeysNotFoundException.php new file mode 100644 index 00000000..b5f2559b --- /dev/null +++ b/src/Exception/GetOrganizationSshKeysNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationSshKeysTooManyRequestsException.php b/src/Exception/GetOrganizationSshKeysTooManyRequestsException.php new file mode 100644 index 00000000..a23b0f1d --- /dev/null +++ b/src/Exception/GetOrganizationSshKeysTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationTagsBadRequestException.php b/src/Exception/GetOrganizationTagsBadRequestException.php new file mode 100644 index 00000000..ce4632cb --- /dev/null +++ b/src/Exception/GetOrganizationTagsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationTagsForbiddenException.php b/src/Exception/GetOrganizationTagsForbiddenException.php new file mode 100644 index 00000000..455d3ac7 --- /dev/null +++ b/src/Exception/GetOrganizationTagsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationTagsNotFoundException.php b/src/Exception/GetOrganizationTagsNotFoundException.php new file mode 100644 index 00000000..505a9698 --- /dev/null +++ b/src/Exception/GetOrganizationTagsNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationTagsTooManyRequestsException.php b/src/Exception/GetOrganizationTagsTooManyRequestsException.php new file mode 100644 index 00000000..c18131fd --- /dev/null +++ b/src/Exception/GetOrganizationTagsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationTooManyRequestsException.php b/src/Exception/GetOrganizationTooManyRequestsException.php new file mode 100644 index 00000000..7d106a36 --- /dev/null +++ b/src/Exception/GetOrganizationTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationTrashObjectsBadRequestException.php b/src/Exception/GetOrganizationTrashObjectsBadRequestException.php new file mode 100644 index 00000000..5cb52f92 --- /dev/null +++ b/src/Exception/GetOrganizationTrashObjectsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationTrashObjectsForbiddenException.php b/src/Exception/GetOrganizationTrashObjectsForbiddenException.php new file mode 100644 index 00000000..10fc3cfa --- /dev/null +++ b/src/Exception/GetOrganizationTrashObjectsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationTrashObjectsNotFoundException.php b/src/Exception/GetOrganizationTrashObjectsNotFoundException.php new file mode 100644 index 00000000..d0948e9b --- /dev/null +++ b/src/Exception/GetOrganizationTrashObjectsNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationTrashObjectsTooManyRequestsException.php b/src/Exception/GetOrganizationTrashObjectsTooManyRequestsException.php new file mode 100644 index 00000000..f756fca7 --- /dev/null +++ b/src/Exception/GetOrganizationTrashObjectsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationUsersWithAccessBadRequestException.php b/src/Exception/GetOrganizationUsersWithAccessBadRequestException.php new file mode 100644 index 00000000..1512c6ea --- /dev/null +++ b/src/Exception/GetOrganizationUsersWithAccessBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationUsersWithAccessForbiddenException.php b/src/Exception/GetOrganizationUsersWithAccessForbiddenException.php new file mode 100644 index 00000000..553af6b4 --- /dev/null +++ b/src/Exception/GetOrganizationUsersWithAccessForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationUsersWithAccessNotFoundException.php b/src/Exception/GetOrganizationUsersWithAccessNotFoundException.php new file mode 100644 index 00000000..01dd8737 --- /dev/null +++ b/src/Exception/GetOrganizationUsersWithAccessNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationUsersWithAccessTooManyRequestsException.php b/src/Exception/GetOrganizationUsersWithAccessTooManyRequestsException.php new file mode 100644 index 00000000..d7eee05d --- /dev/null +++ b/src/Exception/GetOrganizationUsersWithAccessTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationVirtualMachineGroupsBadRequestException.php b/src/Exception/GetOrganizationVirtualMachineGroupsBadRequestException.php new file mode 100644 index 00000000..e34d1b64 --- /dev/null +++ b/src/Exception/GetOrganizationVirtualMachineGroupsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationVirtualMachineGroupsForbiddenException.php b/src/Exception/GetOrganizationVirtualMachineGroupsForbiddenException.php new file mode 100644 index 00000000..cc3a0ab5 --- /dev/null +++ b/src/Exception/GetOrganizationVirtualMachineGroupsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationVirtualMachineGroupsNotFoundException.php b/src/Exception/GetOrganizationVirtualMachineGroupsNotFoundException.php new file mode 100644 index 00000000..c86bc86c --- /dev/null +++ b/src/Exception/GetOrganizationVirtualMachineGroupsNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationVirtualMachineGroupsTooManyRequestsException.php b/src/Exception/GetOrganizationVirtualMachineGroupsTooManyRequestsException.php new file mode 100644 index 00000000..8e02b81e --- /dev/null +++ b/src/Exception/GetOrganizationVirtualMachineGroupsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationVirtualMachinesBadRequestException.php b/src/Exception/GetOrganizationVirtualMachinesBadRequestException.php new file mode 100644 index 00000000..a4949b73 --- /dev/null +++ b/src/Exception/GetOrganizationVirtualMachinesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationVirtualMachinesForbiddenException.php b/src/Exception/GetOrganizationVirtualMachinesForbiddenException.php new file mode 100644 index 00000000..4f07d31d --- /dev/null +++ b/src/Exception/GetOrganizationVirtualMachinesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationVirtualMachinesNotFoundException.php b/src/Exception/GetOrganizationVirtualMachinesNotFoundException.php new file mode 100644 index 00000000..be093340 --- /dev/null +++ b/src/Exception/GetOrganizationVirtualMachinesNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationVirtualMachinesTooManyRequestsException.php b/src/Exception/GetOrganizationVirtualMachinesTooManyRequestsException.php new file mode 100644 index 00000000..52e3617d --- /dev/null +++ b/src/Exception/GetOrganizationVirtualMachinesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationsBadRequestException.php b/src/Exception/GetOrganizationsBadRequestException.php new file mode 100644 index 00000000..99521953 --- /dev/null +++ b/src/Exception/GetOrganizationsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationsForbiddenException.php b/src/Exception/GetOrganizationsForbiddenException.php new file mode 100644 index 00000000..180e09d0 --- /dev/null +++ b/src/Exception/GetOrganizationsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationsOrganizationDnsZonesBadRequestException.php b/src/Exception/GetOrganizationsOrganizationDnsZonesBadRequestException.php new file mode 100644 index 00000000..99171c2a --- /dev/null +++ b/src/Exception/GetOrganizationsOrganizationDnsZonesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationsOrganizationDnsZonesForbiddenException.php b/src/Exception/GetOrganizationsOrganizationDnsZonesForbiddenException.php new file mode 100644 index 00000000..3d53c9d7 --- /dev/null +++ b/src/Exception/GetOrganizationsOrganizationDnsZonesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationsOrganizationDnsZonesNotFoundException.php b/src/Exception/GetOrganizationsOrganizationDnsZonesNotFoundException.php new file mode 100644 index 00000000..26f8787b --- /dev/null +++ b/src/Exception/GetOrganizationsOrganizationDnsZonesNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationsOrganizationDnsZonesTooManyRequestsException.php b/src/Exception/GetOrganizationsOrganizationDnsZonesTooManyRequestsException.php new file mode 100644 index 00000000..ad453f70 --- /dev/null +++ b/src/Exception/GetOrganizationsOrganizationDnsZonesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetOrganizationsTooManyRequestsException.php b/src/Exception/GetOrganizationsTooManyRequestsException.php new file mode 100644 index 00000000..b71a8427 --- /dev/null +++ b/src/Exception/GetOrganizationsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetSecurityGroupBadRequestException.php b/src/Exception/GetSecurityGroupBadRequestException.php new file mode 100644 index 00000000..191fd133 --- /dev/null +++ b/src/Exception/GetSecurityGroupBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetSecurityGroupForbiddenException.php b/src/Exception/GetSecurityGroupForbiddenException.php new file mode 100644 index 00000000..a3bd99b3 --- /dev/null +++ b/src/Exception/GetSecurityGroupForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetSecurityGroupNotFoundException.php b/src/Exception/GetSecurityGroupNotFoundException.php new file mode 100644 index 00000000..791607aa --- /dev/null +++ b/src/Exception/GetSecurityGroupNotFoundException.php @@ -0,0 +1,40 @@ +responseSecurityGroupNotFoundResponse = $responseSecurityGroupNotFoundResponse; + $this->response = $response; + } + + public function getResponseSecurityGroupNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseSecurityGroupNotFoundResponse + { + return $this->responseSecurityGroupNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetSecurityGroupRulesBadRequestException.php b/src/Exception/GetSecurityGroupRulesBadRequestException.php new file mode 100644 index 00000000..07563130 --- /dev/null +++ b/src/Exception/GetSecurityGroupRulesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetSecurityGroupRulesForbiddenException.php b/src/Exception/GetSecurityGroupRulesForbiddenException.php new file mode 100644 index 00000000..364823b9 --- /dev/null +++ b/src/Exception/GetSecurityGroupRulesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetSecurityGroupRulesNotFoundException.php b/src/Exception/GetSecurityGroupRulesNotFoundException.php new file mode 100644 index 00000000..66581a79 --- /dev/null +++ b/src/Exception/GetSecurityGroupRulesNotFoundException.php @@ -0,0 +1,40 @@ +responseSecurityGroupNotFoundResponse = $responseSecurityGroupNotFoundResponse; + $this->response = $response; + } + + public function getResponseSecurityGroupNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseSecurityGroupNotFoundResponse + { + return $this->responseSecurityGroupNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetSecurityGroupRulesTooManyRequestsException.php b/src/Exception/GetSecurityGroupRulesTooManyRequestsException.php new file mode 100644 index 00000000..9301d0f3 --- /dev/null +++ b/src/Exception/GetSecurityGroupRulesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetSecurityGroupTooManyRequestsException.php b/src/Exception/GetSecurityGroupTooManyRequestsException.php new file mode 100644 index 00000000..3e63f03a --- /dev/null +++ b/src/Exception/GetSecurityGroupTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetSecurityGroupsRulesSecurityGroupRuleBadRequestException.php b/src/Exception/GetSecurityGroupsRulesSecurityGroupRuleBadRequestException.php new file mode 100644 index 00000000..fe597440 --- /dev/null +++ b/src/Exception/GetSecurityGroupsRulesSecurityGroupRuleBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetSecurityGroupsRulesSecurityGroupRuleForbiddenException.php b/src/Exception/GetSecurityGroupsRulesSecurityGroupRuleForbiddenException.php new file mode 100644 index 00000000..409bd3c2 --- /dev/null +++ b/src/Exception/GetSecurityGroupsRulesSecurityGroupRuleForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetSecurityGroupsRulesSecurityGroupRuleNotFoundException.php b/src/Exception/GetSecurityGroupsRulesSecurityGroupRuleNotFoundException.php new file mode 100644 index 00000000..7fe217fc --- /dev/null +++ b/src/Exception/GetSecurityGroupsRulesSecurityGroupRuleNotFoundException.php @@ -0,0 +1,40 @@ +responseSecurityGroupRuleNotFoundResponse = $responseSecurityGroupRuleNotFoundResponse; + $this->response = $response; + } + + public function getResponseSecurityGroupRuleNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseSecurityGroupRuleNotFoundResponse + { + return $this->responseSecurityGroupRuleNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException.php b/src/Exception/GetSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException.php new file mode 100644 index 00000000..6c1e4d40 --- /dev/null +++ b/src/Exception/GetSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetTagBadRequestException.php b/src/Exception/GetTagBadRequestException.php new file mode 100644 index 00000000..fce7e889 --- /dev/null +++ b/src/Exception/GetTagBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetTagForbiddenException.php b/src/Exception/GetTagForbiddenException.php new file mode 100644 index 00000000..39324e79 --- /dev/null +++ b/src/Exception/GetTagForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetTagNotFoundException.php b/src/Exception/GetTagNotFoundException.php new file mode 100644 index 00000000..2f9b6884 --- /dev/null +++ b/src/Exception/GetTagNotFoundException.php @@ -0,0 +1,40 @@ +responseTagNotFoundResponse = $responseTagNotFoundResponse; + $this->response = $response; + } + + public function getResponseTagNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseTagNotFoundResponse + { + return $this->responseTagNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetTagTooManyRequestsException.php b/src/Exception/GetTagTooManyRequestsException.php new file mode 100644 index 00000000..474f3a5e --- /dev/null +++ b/src/Exception/GetTagTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetTaskBadRequestException.php b/src/Exception/GetTaskBadRequestException.php new file mode 100644 index 00000000..a6acf224 --- /dev/null +++ b/src/Exception/GetTaskBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetTaskForbiddenException.php b/src/Exception/GetTaskForbiddenException.php new file mode 100644 index 00000000..9f3e2596 --- /dev/null +++ b/src/Exception/GetTaskForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetTaskNotFoundException.php b/src/Exception/GetTaskNotFoundException.php new file mode 100644 index 00000000..197e006e --- /dev/null +++ b/src/Exception/GetTaskNotFoundException.php @@ -0,0 +1,40 @@ +responseTaskNotFoundResponse = $responseTaskNotFoundResponse; + $this->response = $response; + } + + public function getResponseTaskNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseTaskNotFoundResponse + { + return $this->responseTaskNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetTaskTooManyRequestsException.php b/src/Exception/GetTaskTooManyRequestsException.php new file mode 100644 index 00000000..66fbb722 --- /dev/null +++ b/src/Exception/GetTaskTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetTrashObjectBadRequestException.php b/src/Exception/GetTrashObjectBadRequestException.php new file mode 100644 index 00000000..0bb662af --- /dev/null +++ b/src/Exception/GetTrashObjectBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetTrashObjectForbiddenException.php b/src/Exception/GetTrashObjectForbiddenException.php new file mode 100644 index 00000000..4e65a4ed --- /dev/null +++ b/src/Exception/GetTrashObjectForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetTrashObjectNotFoundException.php b/src/Exception/GetTrashObjectNotFoundException.php new file mode 100644 index 00000000..78243a21 --- /dev/null +++ b/src/Exception/GetTrashObjectNotFoundException.php @@ -0,0 +1,40 @@ +responseTrashObjectNotFoundResponse = $responseTrashObjectNotFoundResponse; + $this->response = $response; + } + + public function getResponseTrashObjectNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseTrashObjectNotFoundResponse + { + return $this->responseTrashObjectNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetTrashObjectTooManyRequestsException.php b/src/Exception/GetTrashObjectTooManyRequestsException.php new file mode 100644 index 00000000..28846309 --- /dev/null +++ b/src/Exception/GetTrashObjectTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetUsersCurrentBadRequestException.php b/src/Exception/GetUsersCurrentBadRequestException.php new file mode 100644 index 00000000..4b3759f9 --- /dev/null +++ b/src/Exception/GetUsersCurrentBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetUsersCurrentForbiddenException.php b/src/Exception/GetUsersCurrentForbiddenException.php new file mode 100644 index 00000000..6e345483 --- /dev/null +++ b/src/Exception/GetUsersCurrentForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetUsersCurrentNotFoundException.php b/src/Exception/GetUsersCurrentNotFoundException.php new file mode 100644 index 00000000..cc4c9bf2 --- /dev/null +++ b/src/Exception/GetUsersCurrentNotFoundException.php @@ -0,0 +1,40 @@ +responseNoUserAssociatedWithIdentityResponse = $responseNoUserAssociatedWithIdentityResponse; + $this->response = $response; + } + + public function getResponseNoUserAssociatedWithIdentityResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseNoUserAssociatedWithIdentityResponse + { + return $this->responseNoUserAssociatedWithIdentityResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetUsersCurrentTooManyRequestsException.php b/src/Exception/GetUsersCurrentTooManyRequestsException.php new file mode 100644 index 00000000..3b98821b --- /dev/null +++ b/src/Exception/GetUsersCurrentTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVMNIVMNIBadRequestException.php b/src/Exception/GetVMNIVMNIBadRequestException.php new file mode 100644 index 00000000..b3300bb2 --- /dev/null +++ b/src/Exception/GetVMNIVMNIBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVMNIVMNIForbiddenException.php b/src/Exception/GetVMNIVMNIForbiddenException.php new file mode 100644 index 00000000..ffda2174 --- /dev/null +++ b/src/Exception/GetVMNIVMNIForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVMNIVMNINotFoundException.php b/src/Exception/GetVMNIVMNINotFoundException.php new file mode 100644 index 00000000..6865a91c --- /dev/null +++ b/src/Exception/GetVMNIVMNINotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNetworkInterfaceNotFoundResponse = $responseVirtualMachineNetworkInterfaceNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNetworkInterfaceNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNetworkInterfaceNotFoundResponse + { + return $this->responseVirtualMachineNetworkInterfaceNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVMNIVMNITooManyRequestsException.php b/src/Exception/GetVMNIVMNITooManyRequestsException.php new file mode 100644 index 00000000..6620ff70 --- /dev/null +++ b/src/Exception/GetVMNIVMNITooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineBadRequestException.php b/src/Exception/GetVirtualMachineBadRequestException.php new file mode 100644 index 00000000..fcd94782 --- /dev/null +++ b/src/Exception/GetVirtualMachineBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineDiskBackupPoliciesBadRequestException.php b/src/Exception/GetVirtualMachineDiskBackupPoliciesBadRequestException.php new file mode 100644 index 00000000..b5d22906 --- /dev/null +++ b/src/Exception/GetVirtualMachineDiskBackupPoliciesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineDiskBackupPoliciesForbiddenException.php b/src/Exception/GetVirtualMachineDiskBackupPoliciesForbiddenException.php new file mode 100644 index 00000000..b45a66e3 --- /dev/null +++ b/src/Exception/GetVirtualMachineDiskBackupPoliciesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineDiskBackupPoliciesNotAcceptableException.php b/src/Exception/GetVirtualMachineDiskBackupPoliciesNotAcceptableException.php new file mode 100644 index 00000000..946fb2f7 --- /dev/null +++ b/src/Exception/GetVirtualMachineDiskBackupPoliciesNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineDiskBackupPoliciesNotFoundException.php b/src/Exception/GetVirtualMachineDiskBackupPoliciesNotFoundException.php new file mode 100644 index 00000000..7b58cebd --- /dev/null +++ b/src/Exception/GetVirtualMachineDiskBackupPoliciesNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineDiskBackupPoliciesTooManyRequestsException.php b/src/Exception/GetVirtualMachineDiskBackupPoliciesTooManyRequestsException.php new file mode 100644 index 00000000..4f16e361 --- /dev/null +++ b/src/Exception/GetVirtualMachineDiskBackupPoliciesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineDisksBadRequestException.php b/src/Exception/GetVirtualMachineDisksBadRequestException.php new file mode 100644 index 00000000..b86481c8 --- /dev/null +++ b/src/Exception/GetVirtualMachineDisksBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineDisksForbiddenException.php b/src/Exception/GetVirtualMachineDisksForbiddenException.php new file mode 100644 index 00000000..a0a1b69f --- /dev/null +++ b/src/Exception/GetVirtualMachineDisksForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineDisksNotAcceptableException.php b/src/Exception/GetVirtualMachineDisksNotAcceptableException.php new file mode 100644 index 00000000..43e4c107 --- /dev/null +++ b/src/Exception/GetVirtualMachineDisksNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineDisksNotFoundException.php b/src/Exception/GetVirtualMachineDisksNotFoundException.php new file mode 100644 index 00000000..dbdd4a85 --- /dev/null +++ b/src/Exception/GetVirtualMachineDisksNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineDisksTooManyRequestsException.php b/src/Exception/GetVirtualMachineDisksTooManyRequestsException.php new file mode 100644 index 00000000..0fc5368e --- /dev/null +++ b/src/Exception/GetVirtualMachineDisksTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineForbiddenException.php b/src/Exception/GetVirtualMachineForbiddenException.php new file mode 100644 index 00000000..72c5384f --- /dev/null +++ b/src/Exception/GetVirtualMachineForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineGroupBadRequestException.php b/src/Exception/GetVirtualMachineGroupBadRequestException.php new file mode 100644 index 00000000..361969c3 --- /dev/null +++ b/src/Exception/GetVirtualMachineGroupBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineGroupForbiddenException.php b/src/Exception/GetVirtualMachineGroupForbiddenException.php new file mode 100644 index 00000000..21b46c21 --- /dev/null +++ b/src/Exception/GetVirtualMachineGroupForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineGroupNotFoundException.php b/src/Exception/GetVirtualMachineGroupNotFoundException.php new file mode 100644 index 00000000..e0c38f73 --- /dev/null +++ b/src/Exception/GetVirtualMachineGroupNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineGroupNotFoundResponse = $responseVirtualMachineGroupNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineGroupNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineGroupNotFoundResponse + { + return $this->responseVirtualMachineGroupNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineGroupTooManyRequestsException.php b/src/Exception/GetVirtualMachineGroupTooManyRequestsException.php new file mode 100644 index 00000000..9bf4666e --- /dev/null +++ b/src/Exception/GetVirtualMachineGroupTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionBadRequestException.php b/src/Exception/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionBadRequestException.php new file mode 100644 index 00000000..dcc2a7ca --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionForbiddenException.php b/src/Exception/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionForbiddenException.php new file mode 100644 index 00000000..28d03716 --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionNotFoundException.php b/src/Exception/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionNotFoundException.php new file mode 100644 index 00000000..fc0673dd --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNetworkInterfaceNotFoundResponse = $responseVirtualMachineNetworkInterfaceNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNetworkInterfaceNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNetworkInterfaceNotFoundResponse + { + return $this->responseVirtualMachineNetworkInterfaceNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionTooManyRequestsException.php b/src/Exception/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionTooManyRequestsException.php new file mode 100644 index 00000000..543d2dc3 --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfaceBadRequestException.php b/src/Exception/GetVirtualMachineNetworkInterfaceBadRequestException.php new file mode 100644 index 00000000..16fa4859 --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfaceBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfaceForbiddenException.php b/src/Exception/GetVirtualMachineNetworkInterfaceForbiddenException.php new file mode 100644 index 00000000..364d705c --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfaceForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfaceNotAcceptableException.php b/src/Exception/GetVirtualMachineNetworkInterfaceNotAcceptableException.php new file mode 100644 index 00000000..f857a8ee --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfaceNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfaceNotFoundException.php b/src/Exception/GetVirtualMachineNetworkInterfaceNotFoundException.php new file mode 100644 index 00000000..58b58b99 --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfaceNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfaceTooManyRequestsException.php b/src/Exception/GetVirtualMachineNetworkInterfaceTooManyRequestsException.php new file mode 100644 index 00000000..50827adb --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfaceTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfacesBadRequestException.php b/src/Exception/GetVirtualMachineNetworkInterfacesBadRequestException.php new file mode 100644 index 00000000..ea4e5a71 --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfacesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfacesForbiddenException.php b/src/Exception/GetVirtualMachineNetworkInterfacesForbiddenException.php new file mode 100644 index 00000000..f3dff32c --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfacesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfacesNotAcceptableException.php b/src/Exception/GetVirtualMachineNetworkInterfacesNotAcceptableException.php new file mode 100644 index 00000000..ce216fb8 --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfacesNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfacesNotFoundException.php b/src/Exception/GetVirtualMachineNetworkInterfacesNotFoundException.php new file mode 100644 index 00000000..a96da95b --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfacesNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNetworkInterfacesTooManyRequestsException.php b/src/Exception/GetVirtualMachineNetworkInterfacesTooManyRequestsException.php new file mode 100644 index 00000000..d21284f7 --- /dev/null +++ b/src/Exception/GetVirtualMachineNetworkInterfacesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNotAcceptableException.php b/src/Exception/GetVirtualMachineNotAcceptableException.php new file mode 100644 index 00000000..fe4456f2 --- /dev/null +++ b/src/Exception/GetVirtualMachineNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineNotFoundException.php b/src/Exception/GetVirtualMachineNotFoundException.php new file mode 100644 index 00000000..1bf8c22c --- /dev/null +++ b/src/Exception/GetVirtualMachineNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachinePackageBadRequestException.php b/src/Exception/GetVirtualMachinePackageBadRequestException.php new file mode 100644 index 00000000..375e80df --- /dev/null +++ b/src/Exception/GetVirtualMachinePackageBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachinePackageForbiddenException.php b/src/Exception/GetVirtualMachinePackageForbiddenException.php new file mode 100644 index 00000000..0e538c20 --- /dev/null +++ b/src/Exception/GetVirtualMachinePackageForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachinePackageNotFoundException.php b/src/Exception/GetVirtualMachinePackageNotFoundException.php new file mode 100644 index 00000000..e25b1678 --- /dev/null +++ b/src/Exception/GetVirtualMachinePackageNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachinePackageNotFoundResponse = $responseVirtualMachinePackageNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachinePackageNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachinePackageNotFoundResponse + { + return $this->responseVirtualMachinePackageNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachinePackageTooManyRequestsException.php b/src/Exception/GetVirtualMachinePackageTooManyRequestsException.php new file mode 100644 index 00000000..e1e36ad2 --- /dev/null +++ b/src/Exception/GetVirtualMachinePackageTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachinePackagesBadRequestException.php b/src/Exception/GetVirtualMachinePackagesBadRequestException.php new file mode 100644 index 00000000..132d32fa --- /dev/null +++ b/src/Exception/GetVirtualMachinePackagesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachinePackagesForbiddenException.php b/src/Exception/GetVirtualMachinePackagesForbiddenException.php new file mode 100644 index 00000000..997ea5f8 --- /dev/null +++ b/src/Exception/GetVirtualMachinePackagesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachinePackagesNotFoundException.php b/src/Exception/GetVirtualMachinePackagesNotFoundException.php new file mode 100644 index 00000000..c2776429 --- /dev/null +++ b/src/Exception/GetVirtualMachinePackagesNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachinePackagesTooManyRequestsException.php b/src/Exception/GetVirtualMachinePackagesTooManyRequestsException.php new file mode 100644 index 00000000..7126f7a0 --- /dev/null +++ b/src/Exception/GetVirtualMachinePackagesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachineTooManyRequestsException.php b/src/Exception/GetVirtualMachineTooManyRequestsException.php new file mode 100644 index 00000000..87a8a667 --- /dev/null +++ b/src/Exception/GetVirtualMachineTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachinesBuildsVirtualMachineBuildBadRequestException.php b/src/Exception/GetVirtualMachinesBuildsVirtualMachineBuildBadRequestException.php new file mode 100644 index 00000000..90d0124d --- /dev/null +++ b/src/Exception/GetVirtualMachinesBuildsVirtualMachineBuildBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachinesBuildsVirtualMachineBuildForbiddenException.php b/src/Exception/GetVirtualMachinesBuildsVirtualMachineBuildForbiddenException.php new file mode 100644 index 00000000..779e46fc --- /dev/null +++ b/src/Exception/GetVirtualMachinesBuildsVirtualMachineBuildForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachinesBuildsVirtualMachineBuildNotFoundException.php b/src/Exception/GetVirtualMachinesBuildsVirtualMachineBuildNotFoundException.php new file mode 100644 index 00000000..293f8836 --- /dev/null +++ b/src/Exception/GetVirtualMachinesBuildsVirtualMachineBuildNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineBuildNotFoundResponse = $responseVirtualMachineBuildNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineBuildNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineBuildNotFoundResponse + { + return $this->responseVirtualMachineBuildNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetVirtualMachinesBuildsVirtualMachineBuildTooManyRequestsException.php b/src/Exception/GetVirtualMachinesBuildsVirtualMachineBuildTooManyRequestsException.php new file mode 100644 index 00000000..a2ab833e --- /dev/null +++ b/src/Exception/GetVirtualMachinesBuildsVirtualMachineBuildTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetZoneBadRequestException.php b/src/Exception/GetZoneBadRequestException.php new file mode 100644 index 00000000..71ceaf5f --- /dev/null +++ b/src/Exception/GetZoneBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetZoneForbiddenException.php b/src/Exception/GetZoneForbiddenException.php new file mode 100644 index 00000000..d6f77f08 --- /dev/null +++ b/src/Exception/GetZoneForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetZoneNotFoundException.php b/src/Exception/GetZoneNotFoundException.php new file mode 100644 index 00000000..888308b2 --- /dev/null +++ b/src/Exception/GetZoneNotFoundException.php @@ -0,0 +1,40 @@ +responseZoneNotFoundResponse = $responseZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseZoneNotFoundResponse + { + return $this->responseZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetZoneTooManyRequestsException.php b/src/Exception/GetZoneTooManyRequestsException.php new file mode 100644 index 00000000..20169d40 --- /dev/null +++ b/src/Exception/GetZoneTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetZonesBadRequestException.php b/src/Exception/GetZonesBadRequestException.php new file mode 100644 index 00000000..f2813a53 --- /dev/null +++ b/src/Exception/GetZonesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetZonesForbiddenException.php b/src/Exception/GetZonesForbiddenException.php new file mode 100644 index 00000000..17e7d222 --- /dev/null +++ b/src/Exception/GetZonesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetZonesTooManyRequestsException.php b/src/Exception/GetZonesTooManyRequestsException.php new file mode 100644 index 00000000..6a78b845 --- /dev/null +++ b/src/Exception/GetZonesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/NotAcceptableException.php b/src/Exception/NotAcceptableException.php new file mode 100644 index 00000000..76ad935b --- /dev/null +++ b/src/Exception/NotAcceptableException.php @@ -0,0 +1,19 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDiskBackupPolicyForbiddenException.php b/src/Exception/PatchDiskBackupPolicyForbiddenException.php new file mode 100644 index 00000000..06fbd200 --- /dev/null +++ b/src/Exception/PatchDiskBackupPolicyForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDiskBackupPolicyNotAcceptableException.php b/src/Exception/PatchDiskBackupPolicyNotAcceptableException.php new file mode 100644 index 00000000..28513c16 --- /dev/null +++ b/src/Exception/PatchDiskBackupPolicyNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDiskBackupPolicyNotFoundException.php b/src/Exception/PatchDiskBackupPolicyNotFoundException.php new file mode 100644 index 00000000..79831a87 --- /dev/null +++ b/src/Exception/PatchDiskBackupPolicyNotFoundException.php @@ -0,0 +1,40 @@ +responseDiskBackupPolicyNotFoundResponse = $responseDiskBackupPolicyNotFoundResponse; + $this->response = $response; + } + + public function getResponseDiskBackupPolicyNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDiskBackupPolicyNotFoundResponse + { + return $this->responseDiskBackupPolicyNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDiskBackupPolicyTooManyRequestsException.php b/src/Exception/PatchDiskBackupPolicyTooManyRequestsException.php new file mode 100644 index 00000000..7fa96052 --- /dev/null +++ b/src/Exception/PatchDiskBackupPolicyTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDiskBackupPolicyUnprocessableEntityException.php b/src/Exception/PatchDiskBackupPolicyUnprocessableEntityException.php new file mode 100644 index 00000000..6004c466 --- /dev/null +++ b/src/Exception/PatchDiskBackupPolicyUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsRecordBadRequestException.php b/src/Exception/PatchDnsRecordBadRequestException.php new file mode 100644 index 00000000..7c76bafc --- /dev/null +++ b/src/Exception/PatchDnsRecordBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsRecordForbiddenException.php b/src/Exception/PatchDnsRecordForbiddenException.php new file mode 100644 index 00000000..93b14a12 --- /dev/null +++ b/src/Exception/PatchDnsRecordForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsRecordNotFoundException.php b/src/Exception/PatchDnsRecordNotFoundException.php new file mode 100644 index 00000000..a6a545a8 --- /dev/null +++ b/src/Exception/PatchDnsRecordNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSRecordNotFoundResponse = $responseDNSRecordNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSRecordNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSRecordNotFoundResponse + { + return $this->responseDNSRecordNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsRecordTooManyRequestsException.php b/src/Exception/PatchDnsRecordTooManyRequestsException.php new file mode 100644 index 00000000..3fae71e3 --- /dev/null +++ b/src/Exception/PatchDnsRecordTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsRecordUnprocessableEntityException.php b/src/Exception/PatchDnsRecordUnprocessableEntityException.php new file mode 100644 index 00000000..83a1e395 --- /dev/null +++ b/src/Exception/PatchDnsRecordUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsRecordsDnsRecordBadRequestException.php b/src/Exception/PatchDnsRecordsDnsRecordBadRequestException.php new file mode 100644 index 00000000..1146b984 --- /dev/null +++ b/src/Exception/PatchDnsRecordsDnsRecordBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsRecordsDnsRecordForbiddenException.php b/src/Exception/PatchDnsRecordsDnsRecordForbiddenException.php new file mode 100644 index 00000000..b463e2ea --- /dev/null +++ b/src/Exception/PatchDnsRecordsDnsRecordForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsRecordsDnsRecordNotFoundException.php b/src/Exception/PatchDnsRecordsDnsRecordNotFoundException.php new file mode 100644 index 00000000..ae2aa5ab --- /dev/null +++ b/src/Exception/PatchDnsRecordsDnsRecordNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSRecordNotFoundResponse = $responseDNSRecordNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSRecordNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSRecordNotFoundResponse + { + return $this->responseDNSRecordNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsRecordsDnsRecordTooManyRequestsException.php b/src/Exception/PatchDnsRecordsDnsRecordTooManyRequestsException.php new file mode 100644 index 00000000..2fc6721d --- /dev/null +++ b/src/Exception/PatchDnsRecordsDnsRecordTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsRecordsDnsRecordUnprocessableEntityException.php b/src/Exception/PatchDnsRecordsDnsRecordUnprocessableEntityException.php new file mode 100644 index 00000000..ef9b4933 --- /dev/null +++ b/src/Exception/PatchDnsRecordsDnsRecordUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsZoneBadRequestException.php b/src/Exception/PatchDnsZoneBadRequestException.php new file mode 100644 index 00000000..41a4cdbb --- /dev/null +++ b/src/Exception/PatchDnsZoneBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsZoneForbiddenException.php b/src/Exception/PatchDnsZoneForbiddenException.php new file mode 100644 index 00000000..8709ae95 --- /dev/null +++ b/src/Exception/PatchDnsZoneForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsZoneNotFoundException.php b/src/Exception/PatchDnsZoneNotFoundException.php new file mode 100644 index 00000000..8b3b40e1 --- /dev/null +++ b/src/Exception/PatchDnsZoneNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsZoneTooManyRequestsException.php b/src/Exception/PatchDnsZoneTooManyRequestsException.php new file mode 100644 index 00000000..0faaf7ae --- /dev/null +++ b/src/Exception/PatchDnsZoneTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchDnsZoneUnprocessableEntityException.php b/src/Exception/PatchDnsZoneUnprocessableEntityException.php new file mode 100644 index 00000000..d750e279 --- /dev/null +++ b/src/Exception/PatchDnsZoneUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchFileStorageVolumeBadRequestException.php b/src/Exception/PatchFileStorageVolumeBadRequestException.php new file mode 100644 index 00000000..37870c2e --- /dev/null +++ b/src/Exception/PatchFileStorageVolumeBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchFileStorageVolumeForbiddenException.php b/src/Exception/PatchFileStorageVolumeForbiddenException.php new file mode 100644 index 00000000..35f418fc --- /dev/null +++ b/src/Exception/PatchFileStorageVolumeForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchFileStorageVolumeNotAcceptableException.php b/src/Exception/PatchFileStorageVolumeNotAcceptableException.php new file mode 100644 index 00000000..975bcb92 --- /dev/null +++ b/src/Exception/PatchFileStorageVolumeNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchFileStorageVolumeNotFoundException.php b/src/Exception/PatchFileStorageVolumeNotFoundException.php new file mode 100644 index 00000000..6a97eaaf --- /dev/null +++ b/src/Exception/PatchFileStorageVolumeNotFoundException.php @@ -0,0 +1,40 @@ +responseFileStorageVolumeNotFoundResponse = $responseFileStorageVolumeNotFoundResponse; + $this->response = $response; + } + + public function getResponseFileStorageVolumeNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseFileStorageVolumeNotFoundResponse + { + return $this->responseFileStorageVolumeNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchFileStorageVolumeTooManyRequestsException.php b/src/Exception/PatchFileStorageVolumeTooManyRequestsException.php new file mode 100644 index 00000000..6d98786e --- /dev/null +++ b/src/Exception/PatchFileStorageVolumeTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchFileStorageVolumeUnprocessableEntityException.php b/src/Exception/PatchFileStorageVolumeUnprocessableEntityException.php new file mode 100644 index 00000000..6470bde6 --- /dev/null +++ b/src/Exception/PatchFileStorageVolumeUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchIpAddressBadRequestException.php b/src/Exception/PatchIpAddressBadRequestException.php new file mode 100644 index 00000000..4ad8810c --- /dev/null +++ b/src/Exception/PatchIpAddressBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchIpAddressForbiddenException.php b/src/Exception/PatchIpAddressForbiddenException.php new file mode 100644 index 00000000..fa1b344e --- /dev/null +++ b/src/Exception/PatchIpAddressForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchIpAddressNotFoundException.php b/src/Exception/PatchIpAddressNotFoundException.php new file mode 100644 index 00000000..ed9726f0 --- /dev/null +++ b/src/Exception/PatchIpAddressNotFoundException.php @@ -0,0 +1,40 @@ +responseIPAddressNotFoundResponse = $responseIPAddressNotFoundResponse; + $this->response = $response; + } + + public function getResponseIPAddressNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseIPAddressNotFoundResponse + { + return $this->responseIPAddressNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchIpAddressTooManyRequestsException.php b/src/Exception/PatchIpAddressTooManyRequestsException.php new file mode 100644 index 00000000..17a1f655 --- /dev/null +++ b/src/Exception/PatchIpAddressTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchIpAddressUnprocessableEntityException.php b/src/Exception/PatchIpAddressUnprocessableEntityException.php new file mode 100644 index 00000000..db867754 --- /dev/null +++ b/src/Exception/PatchIpAddressUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchLoadBalancerBadRequestException.php b/src/Exception/PatchLoadBalancerBadRequestException.php new file mode 100644 index 00000000..f2b55d14 --- /dev/null +++ b/src/Exception/PatchLoadBalancerBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchLoadBalancerForbiddenException.php b/src/Exception/PatchLoadBalancerForbiddenException.php new file mode 100644 index 00000000..03183d09 --- /dev/null +++ b/src/Exception/PatchLoadBalancerForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchLoadBalancerNotFoundException.php b/src/Exception/PatchLoadBalancerNotFoundException.php new file mode 100644 index 00000000..72b07fe6 --- /dev/null +++ b/src/Exception/PatchLoadBalancerNotFoundException.php @@ -0,0 +1,40 @@ +responseLoadBalancerNotFoundResponse = $responseLoadBalancerNotFoundResponse; + $this->response = $response; + } + + public function getResponseLoadBalancerNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseLoadBalancerNotFoundResponse + { + return $this->responseLoadBalancerNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchLoadBalancerTooManyRequestsException.php b/src/Exception/PatchLoadBalancerTooManyRequestsException.php new file mode 100644 index 00000000..2e8040e4 --- /dev/null +++ b/src/Exception/PatchLoadBalancerTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchLoadBalancerUnprocessableEntityException.php b/src/Exception/PatchLoadBalancerUnprocessableEntityException.php new file mode 100644 index 00000000..9e40874f --- /dev/null +++ b/src/Exception/PatchLoadBalancerUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleBadRequestException.php b/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleBadRequestException.php new file mode 100644 index 00000000..e680d887 --- /dev/null +++ b/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleForbiddenException.php b/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleForbiddenException.php new file mode 100644 index 00000000..0ff1e00c --- /dev/null +++ b/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleNotFoundException.php b/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleNotFoundException.php new file mode 100644 index 00000000..15e0712a --- /dev/null +++ b/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleNotFoundException.php @@ -0,0 +1,40 @@ +responseLoadBalancerRuleNotFoundResponse = $responseLoadBalancerRuleNotFoundResponse; + $this->response = $response; + } + + public function getResponseLoadBalancerRuleNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseLoadBalancerRuleNotFoundResponse + { + return $this->responseLoadBalancerRuleNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleTooManyRequestsException.php b/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleTooManyRequestsException.php new file mode 100644 index 00000000..e5af114e --- /dev/null +++ b/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleUnprocessableEntityException.php b/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleUnprocessableEntityException.php new file mode 100644 index 00000000..672d8207 --- /dev/null +++ b/src/Exception/PatchLoadBalancersRulesLoadBalancerRuleUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchSecurityGroupBadRequestException.php b/src/Exception/PatchSecurityGroupBadRequestException.php new file mode 100644 index 00000000..e151dea9 --- /dev/null +++ b/src/Exception/PatchSecurityGroupBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchSecurityGroupForbiddenException.php b/src/Exception/PatchSecurityGroupForbiddenException.php new file mode 100644 index 00000000..509f0a9d --- /dev/null +++ b/src/Exception/PatchSecurityGroupForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchSecurityGroupNotFoundException.php b/src/Exception/PatchSecurityGroupNotFoundException.php new file mode 100644 index 00000000..4486fb92 --- /dev/null +++ b/src/Exception/PatchSecurityGroupNotFoundException.php @@ -0,0 +1,40 @@ +responseSecurityGroupNotFoundResponse = $responseSecurityGroupNotFoundResponse; + $this->response = $response; + } + + public function getResponseSecurityGroupNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseSecurityGroupNotFoundResponse + { + return $this->responseSecurityGroupNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchSecurityGroupTooManyRequestsException.php b/src/Exception/PatchSecurityGroupTooManyRequestsException.php new file mode 100644 index 00000000..fac19347 --- /dev/null +++ b/src/Exception/PatchSecurityGroupTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchSecurityGroupUnprocessableEntityException.php b/src/Exception/PatchSecurityGroupUnprocessableEntityException.php new file mode 100644 index 00000000..6492043e --- /dev/null +++ b/src/Exception/PatchSecurityGroupUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleBadRequestException.php b/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleBadRequestException.php new file mode 100644 index 00000000..108cd448 --- /dev/null +++ b/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleForbiddenException.php b/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleForbiddenException.php new file mode 100644 index 00000000..ceeff896 --- /dev/null +++ b/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleNotFoundException.php b/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleNotFoundException.php new file mode 100644 index 00000000..521cf23f --- /dev/null +++ b/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleNotFoundException.php @@ -0,0 +1,40 @@ +responseSecurityGroupRuleNotFoundResponse = $responseSecurityGroupRuleNotFoundResponse; + $this->response = $response; + } + + public function getResponseSecurityGroupRuleNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseSecurityGroupRuleNotFoundResponse + { + return $this->responseSecurityGroupRuleNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException.php b/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException.php new file mode 100644 index 00000000..fb0b2711 --- /dev/null +++ b/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleUnprocessableEntityException.php b/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleUnprocessableEntityException.php new file mode 100644 index 00000000..fbacafa2 --- /dev/null +++ b/src/Exception/PatchSecurityGroupsRulesSecurityGroupRuleUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchTagBadRequestException.php b/src/Exception/PatchTagBadRequestException.php new file mode 100644 index 00000000..f77f98a4 --- /dev/null +++ b/src/Exception/PatchTagBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchTagForbiddenException.php b/src/Exception/PatchTagForbiddenException.php new file mode 100644 index 00000000..1a8544a0 --- /dev/null +++ b/src/Exception/PatchTagForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchTagNotFoundException.php b/src/Exception/PatchTagNotFoundException.php new file mode 100644 index 00000000..27fceaed --- /dev/null +++ b/src/Exception/PatchTagNotFoundException.php @@ -0,0 +1,40 @@ +responseTagNotFoundResponse = $responseTagNotFoundResponse; + $this->response = $response; + } + + public function getResponseTagNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseTagNotFoundResponse + { + return $this->responseTagNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchTagTooManyRequestsException.php b/src/Exception/PatchTagTooManyRequestsException.php new file mode 100644 index 00000000..7459da91 --- /dev/null +++ b/src/Exception/PatchTagTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchTagUnprocessableEntityException.php b/src/Exception/PatchTagUnprocessableEntityException.php new file mode 100644 index 00000000..94d3e434 --- /dev/null +++ b/src/Exception/PatchTagUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineBadRequestException.php b/src/Exception/PatchVirtualMachineBadRequestException.php new file mode 100644 index 00000000..a5bc5516 --- /dev/null +++ b/src/Exception/PatchVirtualMachineBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineForbiddenException.php b/src/Exception/PatchVirtualMachineForbiddenException.php new file mode 100644 index 00000000..3072c86e --- /dev/null +++ b/src/Exception/PatchVirtualMachineForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineGroupBadRequestException.php b/src/Exception/PatchVirtualMachineGroupBadRequestException.php new file mode 100644 index 00000000..27fd8bbb --- /dev/null +++ b/src/Exception/PatchVirtualMachineGroupBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineGroupForbiddenException.php b/src/Exception/PatchVirtualMachineGroupForbiddenException.php new file mode 100644 index 00000000..6a347ecf --- /dev/null +++ b/src/Exception/PatchVirtualMachineGroupForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineGroupNotFoundException.php b/src/Exception/PatchVirtualMachineGroupNotFoundException.php new file mode 100644 index 00000000..4916d7ab --- /dev/null +++ b/src/Exception/PatchVirtualMachineGroupNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineGroupNotFoundResponse = $responseVirtualMachineGroupNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineGroupNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineGroupNotFoundResponse + { + return $this->responseVirtualMachineGroupNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineGroupTooManyRequestsException.php b/src/Exception/PatchVirtualMachineGroupTooManyRequestsException.php new file mode 100644 index 00000000..cf2baaf9 --- /dev/null +++ b/src/Exception/PatchVirtualMachineGroupTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineGroupUnprocessableEntityException.php b/src/Exception/PatchVirtualMachineGroupUnprocessableEntityException.php new file mode 100644 index 00000000..97eaa9ee --- /dev/null +++ b/src/Exception/PatchVirtualMachineGroupUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileBadRequestException.php b/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileBadRequestException.php new file mode 100644 index 00000000..34f06e9f --- /dev/null +++ b/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileForbiddenException.php b/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileForbiddenException.php new file mode 100644 index 00000000..42059d4c --- /dev/null +++ b/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileNotAcceptableException.php b/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileNotAcceptableException.php new file mode 100644 index 00000000..7b20d949 --- /dev/null +++ b/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileNotAcceptableException.php @@ -0,0 +1,40 @@ +responseTaskQueueingErrorResponse = $responseTaskQueueingErrorResponse; + $this->response = $response; + } + + public function getResponseTaskQueueingErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseTaskQueueingErrorResponse + { + return $this->responseTaskQueueingErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileNotFoundException.php b/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileNotFoundException.php new file mode 100644 index 00000000..7398d6c1 --- /dev/null +++ b/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileTooManyRequestsException.php b/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileTooManyRequestsException.php new file mode 100644 index 00000000..f5cf078f --- /dev/null +++ b/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileUnprocessableEntityException.php b/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileUnprocessableEntityException.php new file mode 100644 index 00000000..407b1ff8 --- /dev/null +++ b/src/Exception/PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseSpeedProfileAlreadyAssignedResponse = $responseSpeedProfileAlreadyAssignedResponse; + $this->response = $response; + } + + public function getResponseSpeedProfileAlreadyAssignedResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseSpeedProfileAlreadyAssignedResponse + { + return $this->responseSpeedProfileAlreadyAssignedResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineNotAcceptableException.php b/src/Exception/PatchVirtualMachineNotAcceptableException.php new file mode 100644 index 00000000..0fb18874 --- /dev/null +++ b/src/Exception/PatchVirtualMachineNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineNotFoundException.php b/src/Exception/PatchVirtualMachineNotFoundException.php new file mode 100644 index 00000000..d80407ed --- /dev/null +++ b/src/Exception/PatchVirtualMachineNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchVirtualMachineTooManyRequestsException.php b/src/Exception/PatchVirtualMachineTooManyRequestsException.php new file mode 100644 index 00000000..f5fec317 --- /dev/null +++ b/src/Exception/PatchVirtualMachineTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDiskDiskBackupPoliciesBadRequestException.php b/src/Exception/PostDiskDiskBackupPoliciesBadRequestException.php new file mode 100644 index 00000000..bf05f4e9 --- /dev/null +++ b/src/Exception/PostDiskDiskBackupPoliciesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDiskDiskBackupPoliciesForbiddenException.php b/src/Exception/PostDiskDiskBackupPoliciesForbiddenException.php new file mode 100644 index 00000000..69758297 --- /dev/null +++ b/src/Exception/PostDiskDiskBackupPoliciesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDiskDiskBackupPoliciesNotFoundException.php b/src/Exception/PostDiskDiskBackupPoliciesNotFoundException.php new file mode 100644 index 00000000..73512914 --- /dev/null +++ b/src/Exception/PostDiskDiskBackupPoliciesNotFoundException.php @@ -0,0 +1,40 @@ +responseDiskNotFoundResponse = $responseDiskNotFoundResponse; + $this->response = $response; + } + + public function getResponseDiskNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDiskNotFoundResponse + { + return $this->responseDiskNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDiskDiskBackupPoliciesTooManyRequestsException.php b/src/Exception/PostDiskDiskBackupPoliciesTooManyRequestsException.php new file mode 100644 index 00000000..a3dde1b2 --- /dev/null +++ b/src/Exception/PostDiskDiskBackupPoliciesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDiskDiskBackupPoliciesUnprocessableEntityException.php b/src/Exception/PostDiskDiskBackupPoliciesUnprocessableEntityException.php new file mode 100644 index 00000000..ead235be --- /dev/null +++ b/src/Exception/PostDiskDiskBackupPoliciesUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZoneRecordsBadRequestException.php b/src/Exception/PostDnsZoneRecordsBadRequestException.php new file mode 100644 index 00000000..f81bfd5b --- /dev/null +++ b/src/Exception/PostDnsZoneRecordsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZoneRecordsForbiddenException.php b/src/Exception/PostDnsZoneRecordsForbiddenException.php new file mode 100644 index 00000000..f015a0c6 --- /dev/null +++ b/src/Exception/PostDnsZoneRecordsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZoneRecordsNotFoundException.php b/src/Exception/PostDnsZoneRecordsNotFoundException.php new file mode 100644 index 00000000..95ca10a0 --- /dev/null +++ b/src/Exception/PostDnsZoneRecordsNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZoneRecordsTooManyRequestsException.php b/src/Exception/PostDnsZoneRecordsTooManyRequestsException.php new file mode 100644 index 00000000..5943acdc --- /dev/null +++ b/src/Exception/PostDnsZoneRecordsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZoneRecordsUnprocessableEntityException.php b/src/Exception/PostDnsZoneRecordsUnprocessableEntityException.php new file mode 100644 index 00000000..facaccef --- /dev/null +++ b/src/Exception/PostDnsZoneRecordsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZoneVerifyBadRequestException.php b/src/Exception/PostDnsZoneVerifyBadRequestException.php new file mode 100644 index 00000000..c7cf205b --- /dev/null +++ b/src/Exception/PostDnsZoneVerifyBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZoneVerifyForbiddenException.php b/src/Exception/PostDnsZoneVerifyForbiddenException.php new file mode 100644 index 00000000..f5690121 --- /dev/null +++ b/src/Exception/PostDnsZoneVerifyForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZoneVerifyNotFoundException.php b/src/Exception/PostDnsZoneVerifyNotFoundException.php new file mode 100644 index 00000000..8dfd429f --- /dev/null +++ b/src/Exception/PostDnsZoneVerifyNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZoneVerifyTooManyRequestsException.php b/src/Exception/PostDnsZoneVerifyTooManyRequestsException.php new file mode 100644 index 00000000..1bf887e9 --- /dev/null +++ b/src/Exception/PostDnsZoneVerifyTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZoneVerifyUnprocessableEntityException.php b/src/Exception/PostDnsZoneVerifyUnprocessableEntityException.php new file mode 100644 index 00000000..11c49469 --- /dev/null +++ b/src/Exception/PostDnsZoneVerifyUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotVerifiedResponse = $responseDNSZoneNotVerifiedResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotVerifiedResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotVerifiedResponse + { + return $this->responseDNSZoneNotVerifiedResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneRecordsBadRequestException.php b/src/Exception/PostDnsZonesDnsZoneRecordsBadRequestException.php new file mode 100644 index 00000000..e9cdadcb --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneRecordsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneRecordsForbiddenException.php b/src/Exception/PostDnsZonesDnsZoneRecordsForbiddenException.php new file mode 100644 index 00000000..8da7cf7a --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneRecordsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneRecordsNotFoundException.php b/src/Exception/PostDnsZonesDnsZoneRecordsNotFoundException.php new file mode 100644 index 00000000..c38ce7f8 --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneRecordsNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneRecordsTooManyRequestsException.php b/src/Exception/PostDnsZonesDnsZoneRecordsTooManyRequestsException.php new file mode 100644 index 00000000..2ef954d9 --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneRecordsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneRecordsUnprocessableEntityException.php b/src/Exception/PostDnsZonesDnsZoneRecordsUnprocessableEntityException.php new file mode 100644 index 00000000..005f25be --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneRecordsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneUpdateTtlBadRequestException.php b/src/Exception/PostDnsZonesDnsZoneUpdateTtlBadRequestException.php new file mode 100644 index 00000000..ada3af79 --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneUpdateTtlBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneUpdateTtlForbiddenException.php b/src/Exception/PostDnsZonesDnsZoneUpdateTtlForbiddenException.php new file mode 100644 index 00000000..7f88fb34 --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneUpdateTtlForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneUpdateTtlNotFoundException.php b/src/Exception/PostDnsZonesDnsZoneUpdateTtlNotFoundException.php new file mode 100644 index 00000000..17c006fb --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneUpdateTtlNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneUpdateTtlTooManyRequestsException.php b/src/Exception/PostDnsZonesDnsZoneUpdateTtlTooManyRequestsException.php new file mode 100644 index 00000000..9c4bf7a6 --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneUpdateTtlTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneUpdateTtlUnprocessableEntityException.php b/src/Exception/PostDnsZonesDnsZoneUpdateTtlUnprocessableEntityException.php new file mode 100644 index 00000000..272ae560 --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneUpdateTtlUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneVerifyBadRequestException.php b/src/Exception/PostDnsZonesDnsZoneVerifyBadRequestException.php new file mode 100644 index 00000000..b9133884 --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneVerifyBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneVerifyForbiddenException.php b/src/Exception/PostDnsZonesDnsZoneVerifyForbiddenException.php new file mode 100644 index 00000000..cce6c57a --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneVerifyForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneVerifyNotFoundException.php b/src/Exception/PostDnsZonesDnsZoneVerifyNotFoundException.php new file mode 100644 index 00000000..6636a750 --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneVerifyNotFoundException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotFoundResponse = $responseDNSZoneNotFoundResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotFoundResponse + { + return $this->responseDNSZoneNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneVerifyTooManyRequestsException.php b/src/Exception/PostDnsZonesDnsZoneVerifyTooManyRequestsException.php new file mode 100644 index 00000000..601ee66d --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneVerifyTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostDnsZonesDnsZoneVerifyUnprocessableEntityException.php b/src/Exception/PostDnsZonesDnsZoneVerifyUnprocessableEntityException.php new file mode 100644 index 00000000..44c8888e --- /dev/null +++ b/src/Exception/PostDnsZonesDnsZoneVerifyUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseDNSZoneNotVerifiedResponse = $responseDNSZoneNotVerifiedResponse; + $this->response = $response; + } + + public function getResponseDNSZoneNotVerifiedResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseDNSZoneNotVerifiedResponse + { + return $this->responseDNSZoneNotVerifiedResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostInvalidateLinkedWebSessionBadRequestException.php b/src/Exception/PostInvalidateLinkedWebSessionBadRequestException.php new file mode 100644 index 00000000..24f2da15 --- /dev/null +++ b/src/Exception/PostInvalidateLinkedWebSessionBadRequestException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostInvalidateLinkedWebSessionForbiddenException.php b/src/Exception/PostInvalidateLinkedWebSessionForbiddenException.php new file mode 100644 index 00000000..f6759338 --- /dev/null +++ b/src/Exception/PostInvalidateLinkedWebSessionForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostInvalidateLinkedWebSessionTooManyRequestsException.php b/src/Exception/PostInvalidateLinkedWebSessionTooManyRequestsException.php new file mode 100644 index 00000000..9b7e90a3 --- /dev/null +++ b/src/Exception/PostInvalidateLinkedWebSessionTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostIpAddressUnallocateBadRequestException.php b/src/Exception/PostIpAddressUnallocateBadRequestException.php new file mode 100644 index 00000000..ba6872b0 --- /dev/null +++ b/src/Exception/PostIpAddressUnallocateBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostIpAddressUnallocateConflictException.php b/src/Exception/PostIpAddressUnallocateConflictException.php new file mode 100644 index 00000000..9299ff30 --- /dev/null +++ b/src/Exception/PostIpAddressUnallocateConflictException.php @@ -0,0 +1,40 @@ +responseResourceDoesNotSupportUnallocationResponse = $responseResourceDoesNotSupportUnallocationResponse; + $this->response = $response; + } + + public function getResponseResourceDoesNotSupportUnallocationResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseResourceDoesNotSupportUnallocationResponse + { + return $this->responseResourceDoesNotSupportUnallocationResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostIpAddressUnallocateForbiddenException.php b/src/Exception/PostIpAddressUnallocateForbiddenException.php new file mode 100644 index 00000000..c73e1732 --- /dev/null +++ b/src/Exception/PostIpAddressUnallocateForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostIpAddressUnallocateNotFoundException.php b/src/Exception/PostIpAddressUnallocateNotFoundException.php new file mode 100644 index 00000000..cb142248 --- /dev/null +++ b/src/Exception/PostIpAddressUnallocateNotFoundException.php @@ -0,0 +1,40 @@ +responseIPAddressNotFoundResponse = $responseIPAddressNotFoundResponse; + $this->response = $response; + } + + public function getResponseIPAddressNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseIPAddressNotFoundResponse + { + return $this->responseIPAddressNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostIpAddressUnallocateTooManyRequestsException.php b/src/Exception/PostIpAddressUnallocateTooManyRequestsException.php new file mode 100644 index 00000000..01e97bff --- /dev/null +++ b/src/Exception/PostIpAddressUnallocateTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostIpAddressUnallocateUnprocessableEntityException.php b/src/Exception/PostIpAddressUnallocateUnprocessableEntityException.php new file mode 100644 index 00000000..f15d77d4 --- /dev/null +++ b/src/Exception/PostIpAddressUnallocateUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseNoAllocationResponse = $responseNoAllocationResponse; + $this->response = $response; + } + + public function getResponseNoAllocationResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseNoAllocationResponse + { + return $this->responseNoAllocationResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostLoadBalancerRulesBadRequestException.php b/src/Exception/PostLoadBalancerRulesBadRequestException.php new file mode 100644 index 00000000..20c8c016 --- /dev/null +++ b/src/Exception/PostLoadBalancerRulesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostLoadBalancerRulesForbiddenException.php b/src/Exception/PostLoadBalancerRulesForbiddenException.php new file mode 100644 index 00000000..f5217ac2 --- /dev/null +++ b/src/Exception/PostLoadBalancerRulesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostLoadBalancerRulesNotFoundException.php b/src/Exception/PostLoadBalancerRulesNotFoundException.php new file mode 100644 index 00000000..7b4bd844 --- /dev/null +++ b/src/Exception/PostLoadBalancerRulesNotFoundException.php @@ -0,0 +1,40 @@ +responseLoadBalancerNotFoundResponse = $responseLoadBalancerNotFoundResponse; + $this->response = $response; + } + + public function getResponseLoadBalancerNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseLoadBalancerNotFoundResponse + { + return $this->responseLoadBalancerNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostLoadBalancerRulesTooManyRequestsException.php b/src/Exception/PostLoadBalancerRulesTooManyRequestsException.php new file mode 100644 index 00000000..43d5df1d --- /dev/null +++ b/src/Exception/PostLoadBalancerRulesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostLoadBalancerRulesUnprocessableEntityException.php b/src/Exception/PostLoadBalancerRulesUnprocessableEntityException.php new file mode 100644 index 00000000..30d9831a --- /dev/null +++ b/src/Exception/PostLoadBalancerRulesUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationDnsZonesBadRequestException.php b/src/Exception/PostOrganizationDnsZonesBadRequestException.php new file mode 100644 index 00000000..a702999b --- /dev/null +++ b/src/Exception/PostOrganizationDnsZonesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationDnsZonesForbiddenException.php b/src/Exception/PostOrganizationDnsZonesForbiddenException.php new file mode 100644 index 00000000..bec068fc --- /dev/null +++ b/src/Exception/PostOrganizationDnsZonesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationDnsZonesNotFoundException.php b/src/Exception/PostOrganizationDnsZonesNotFoundException.php new file mode 100644 index 00000000..d5f3c91c --- /dev/null +++ b/src/Exception/PostOrganizationDnsZonesNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationDnsZonesTooManyRequestsException.php b/src/Exception/PostOrganizationDnsZonesTooManyRequestsException.php new file mode 100644 index 00000000..1df3a1a8 --- /dev/null +++ b/src/Exception/PostOrganizationDnsZonesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationDnsZonesUnprocessableEntityException.php b/src/Exception/PostOrganizationDnsZonesUnprocessableEntityException.php new file mode 100644 index 00000000..ad6ba0cb --- /dev/null +++ b/src/Exception/PostOrganizationDnsZonesUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationFileStorageVolumesBadRequestException.php b/src/Exception/PostOrganizationFileStorageVolumesBadRequestException.php new file mode 100644 index 00000000..3173337d --- /dev/null +++ b/src/Exception/PostOrganizationFileStorageVolumesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationFileStorageVolumesForbiddenException.php b/src/Exception/PostOrganizationFileStorageVolumesForbiddenException.php new file mode 100644 index 00000000..a54b8cef --- /dev/null +++ b/src/Exception/PostOrganizationFileStorageVolumesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationFileStorageVolumesNotFoundException.php b/src/Exception/PostOrganizationFileStorageVolumesNotFoundException.php new file mode 100644 index 00000000..0ec966f0 --- /dev/null +++ b/src/Exception/PostOrganizationFileStorageVolumesNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationFileStorageVolumesTooManyRequestsException.php b/src/Exception/PostOrganizationFileStorageVolumesTooManyRequestsException.php new file mode 100644 index 00000000..cd55dbf4 --- /dev/null +++ b/src/Exception/PostOrganizationFileStorageVolumesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationFileStorageVolumesUnprocessableEntityException.php b/src/Exception/PostOrganizationFileStorageVolumesUnprocessableEntityException.php new file mode 100644 index 00000000..802824e1 --- /dev/null +++ b/src/Exception/PostOrganizationFileStorageVolumesUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationIpAddressesBadRequestException.php b/src/Exception/PostOrganizationIpAddressesBadRequestException.php new file mode 100644 index 00000000..853f8c6d --- /dev/null +++ b/src/Exception/PostOrganizationIpAddressesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationIpAddressesForbiddenException.php b/src/Exception/PostOrganizationIpAddressesForbiddenException.php new file mode 100644 index 00000000..07a16dd0 --- /dev/null +++ b/src/Exception/PostOrganizationIpAddressesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationIpAddressesNotFoundException.php b/src/Exception/PostOrganizationIpAddressesNotFoundException.php new file mode 100644 index 00000000..40d16f8c --- /dev/null +++ b/src/Exception/PostOrganizationIpAddressesNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationIpAddressesServiceUnavailableException.php b/src/Exception/PostOrganizationIpAddressesServiceUnavailableException.php new file mode 100644 index 00000000..bdae21f5 --- /dev/null +++ b/src/Exception/PostOrganizationIpAddressesServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseNoAvailableAddressesResponse = $responseNoAvailableAddressesResponse; + $this->response = $response; + } + + public function getResponseNoAvailableAddressesResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseNoAvailableAddressesResponse + { + return $this->responseNoAvailableAddressesResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationIpAddressesTooManyRequestsException.php b/src/Exception/PostOrganizationIpAddressesTooManyRequestsException.php new file mode 100644 index 00000000..84e3e832 --- /dev/null +++ b/src/Exception/PostOrganizationIpAddressesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationIpAddressesUnprocessableEntityException.php b/src/Exception/PostOrganizationIpAddressesUnprocessableEntityException.php new file mode 100644 index 00000000..4b45fda5 --- /dev/null +++ b/src/Exception/PostOrganizationIpAddressesUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationLoadBalancersBadRequestException.php b/src/Exception/PostOrganizationLoadBalancersBadRequestException.php new file mode 100644 index 00000000..8abc4408 --- /dev/null +++ b/src/Exception/PostOrganizationLoadBalancersBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationLoadBalancersForbiddenException.php b/src/Exception/PostOrganizationLoadBalancersForbiddenException.php new file mode 100644 index 00000000..7b545ccc --- /dev/null +++ b/src/Exception/PostOrganizationLoadBalancersForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationLoadBalancersNotFoundException.php b/src/Exception/PostOrganizationLoadBalancersNotFoundException.php new file mode 100644 index 00000000..ac16a4c0 --- /dev/null +++ b/src/Exception/PostOrganizationLoadBalancersNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationLoadBalancersTooManyRequestsException.php b/src/Exception/PostOrganizationLoadBalancersTooManyRequestsException.php new file mode 100644 index 00000000..fbaacfe3 --- /dev/null +++ b/src/Exception/PostOrganizationLoadBalancersTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationLoadBalancersUnprocessableEntityException.php b/src/Exception/PostOrganizationLoadBalancersUnprocessableEntityException.php new file mode 100644 index 00000000..2cbf06c5 --- /dev/null +++ b/src/Exception/PostOrganizationLoadBalancersUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationManagedBadRequestException.php b/src/Exception/PostOrganizationManagedBadRequestException.php new file mode 100644 index 00000000..61d4966a --- /dev/null +++ b/src/Exception/PostOrganizationManagedBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationManagedForbiddenException.php b/src/Exception/PostOrganizationManagedForbiddenException.php new file mode 100644 index 00000000..72a55158 --- /dev/null +++ b/src/Exception/PostOrganizationManagedForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationManagedNotFoundException.php b/src/Exception/PostOrganizationManagedNotFoundException.php new file mode 100644 index 00000000..6cecb5e6 --- /dev/null +++ b/src/Exception/PostOrganizationManagedNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationManagedTooManyRequestsException.php b/src/Exception/PostOrganizationManagedTooManyRequestsException.php new file mode 100644 index 00000000..d1643999 --- /dev/null +++ b/src/Exception/PostOrganizationManagedTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationManagedUnprocessableEntityException.php b/src/Exception/PostOrganizationManagedUnprocessableEntityException.php new file mode 100644 index 00000000..67e7d33d --- /dev/null +++ b/src/Exception/PostOrganizationManagedUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationSecurityGroupsBadRequestException.php b/src/Exception/PostOrganizationSecurityGroupsBadRequestException.php new file mode 100644 index 00000000..4b4b3e26 --- /dev/null +++ b/src/Exception/PostOrganizationSecurityGroupsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationSecurityGroupsForbiddenException.php b/src/Exception/PostOrganizationSecurityGroupsForbiddenException.php new file mode 100644 index 00000000..e33d7ad5 --- /dev/null +++ b/src/Exception/PostOrganizationSecurityGroupsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationSecurityGroupsNotFoundException.php b/src/Exception/PostOrganizationSecurityGroupsNotFoundException.php new file mode 100644 index 00000000..f03b545d --- /dev/null +++ b/src/Exception/PostOrganizationSecurityGroupsNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationSecurityGroupsTooManyRequestsException.php b/src/Exception/PostOrganizationSecurityGroupsTooManyRequestsException.php new file mode 100644 index 00000000..e8a332b2 --- /dev/null +++ b/src/Exception/PostOrganizationSecurityGroupsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationSecurityGroupsUnprocessableEntityException.php b/src/Exception/PostOrganizationSecurityGroupsUnprocessableEntityException.php new file mode 100644 index 00000000..7470568f --- /dev/null +++ b/src/Exception/PostOrganizationSecurityGroupsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationSshKeysBadRequestException.php b/src/Exception/PostOrganizationSshKeysBadRequestException.php new file mode 100644 index 00000000..292d2508 --- /dev/null +++ b/src/Exception/PostOrganizationSshKeysBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationSshKeysForbiddenException.php b/src/Exception/PostOrganizationSshKeysForbiddenException.php new file mode 100644 index 00000000..60ac40e1 --- /dev/null +++ b/src/Exception/PostOrganizationSshKeysForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationSshKeysNotFoundException.php b/src/Exception/PostOrganizationSshKeysNotFoundException.php new file mode 100644 index 00000000..3bb1414d --- /dev/null +++ b/src/Exception/PostOrganizationSshKeysNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationSshKeysTooManyRequestsException.php b/src/Exception/PostOrganizationSshKeysTooManyRequestsException.php new file mode 100644 index 00000000..f5950390 --- /dev/null +++ b/src/Exception/PostOrganizationSshKeysTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationSshKeysUnprocessableEntityException.php b/src/Exception/PostOrganizationSshKeysUnprocessableEntityException.php new file mode 100644 index 00000000..ceed6136 --- /dev/null +++ b/src/Exception/PostOrganizationSshKeysUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationTagsBadRequestException.php b/src/Exception/PostOrganizationTagsBadRequestException.php new file mode 100644 index 00000000..fb9d783b --- /dev/null +++ b/src/Exception/PostOrganizationTagsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationTagsForbiddenException.php b/src/Exception/PostOrganizationTagsForbiddenException.php new file mode 100644 index 00000000..3be6a9ea --- /dev/null +++ b/src/Exception/PostOrganizationTagsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationTagsNotFoundException.php b/src/Exception/PostOrganizationTagsNotFoundException.php new file mode 100644 index 00000000..9fd8c54a --- /dev/null +++ b/src/Exception/PostOrganizationTagsNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationTagsTooManyRequestsException.php b/src/Exception/PostOrganizationTagsTooManyRequestsException.php new file mode 100644 index 00000000..93fd1a8a --- /dev/null +++ b/src/Exception/PostOrganizationTagsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationTagsUnprocessableEntityException.php b/src/Exception/PostOrganizationTagsUnprocessableEntityException.php new file mode 100644 index 00000000..b9d9619e --- /dev/null +++ b/src/Exception/PostOrganizationTagsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationTrashObjectsPurgeAllBadRequestException.php b/src/Exception/PostOrganizationTrashObjectsPurgeAllBadRequestException.php new file mode 100644 index 00000000..05fef0ed --- /dev/null +++ b/src/Exception/PostOrganizationTrashObjectsPurgeAllBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationTrashObjectsPurgeAllForbiddenException.php b/src/Exception/PostOrganizationTrashObjectsPurgeAllForbiddenException.php new file mode 100644 index 00000000..83cb68ac --- /dev/null +++ b/src/Exception/PostOrganizationTrashObjectsPurgeAllForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationTrashObjectsPurgeAllNotAcceptableException.php b/src/Exception/PostOrganizationTrashObjectsPurgeAllNotAcceptableException.php new file mode 100644 index 00000000..ee36f3f3 --- /dev/null +++ b/src/Exception/PostOrganizationTrashObjectsPurgeAllNotAcceptableException.php @@ -0,0 +1,40 @@ +responseTaskQueueingErrorResponse = $responseTaskQueueingErrorResponse; + $this->response = $response; + } + + public function getResponseTaskQueueingErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseTaskQueueingErrorResponse + { + return $this->responseTaskQueueingErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationTrashObjectsPurgeAllNotFoundException.php b/src/Exception/PostOrganizationTrashObjectsPurgeAllNotFoundException.php new file mode 100644 index 00000000..0165ab44 --- /dev/null +++ b/src/Exception/PostOrganizationTrashObjectsPurgeAllNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationTrashObjectsPurgeAllTooManyRequestsException.php b/src/Exception/PostOrganizationTrashObjectsPurgeAllTooManyRequestsException.php new file mode 100644 index 00000000..b0e93da5 --- /dev/null +++ b/src/Exception/PostOrganizationTrashObjectsPurgeAllTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachineGroupsBadRequestException.php b/src/Exception/PostOrganizationVirtualMachineGroupsBadRequestException.php new file mode 100644 index 00000000..13ffe076 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachineGroupsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachineGroupsForbiddenException.php b/src/Exception/PostOrganizationVirtualMachineGroupsForbiddenException.php new file mode 100644 index 00000000..5ba18086 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachineGroupsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachineGroupsNotFoundException.php b/src/Exception/PostOrganizationVirtualMachineGroupsNotFoundException.php new file mode 100644 index 00000000..934d6589 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachineGroupsNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachineGroupsTooManyRequestsException.php b/src/Exception/PostOrganizationVirtualMachineGroupsTooManyRequestsException.php new file mode 100644 index 00000000..51794924 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachineGroupsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachineGroupsUnprocessableEntityException.php b/src/Exception/PostOrganizationVirtualMachineGroupsUnprocessableEntityException.php new file mode 100644 index 00000000..0941c9ea --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachineGroupsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachinesBuildBadRequestException.php b/src/Exception/PostOrganizationVirtualMachinesBuildBadRequestException.php new file mode 100644 index 00000000..b2d42fa2 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachinesBuildBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachinesBuildForbiddenException.php b/src/Exception/PostOrganizationVirtualMachinesBuildForbiddenException.php new file mode 100644 index 00000000..8b2a8981 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachinesBuildForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecBadRequestException.php b/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecBadRequestException.php new file mode 100644 index 00000000..aca2a2d1 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecBadRequestException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecForbiddenException.php b/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecForbiddenException.php new file mode 100644 index 00000000..09c08849 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecNotFoundException.php b/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecNotFoundException.php new file mode 100644 index 00000000..8af03011 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecTooManyRequestsException.php b/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecTooManyRequestsException.php new file mode 100644 index 00000000..942f8cd8 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecUnprocessableEntityException.php b/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecUnprocessableEntityException.php new file mode 100644 index 00000000..d30c2c0e --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachinesBuildFromSpecUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachinesBuildNotFoundException.php b/src/Exception/PostOrganizationVirtualMachinesBuildNotFoundException.php new file mode 100644 index 00000000..df6d41e1 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachinesBuildNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachinesBuildTooManyRequestsException.php b/src/Exception/PostOrganizationVirtualMachinesBuildTooManyRequestsException.php new file mode 100644 index 00000000..97f128a3 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachinesBuildTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationVirtualMachinesBuildUnprocessableEntityException.php b/src/Exception/PostOrganizationVirtualMachinesBuildUnprocessableEntityException.php new file mode 100644 index 00000000..2c592861 --- /dev/null +++ b/src/Exception/PostOrganizationVirtualMachinesBuildUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationsOrganizationDnsZonesBadRequestException.php b/src/Exception/PostOrganizationsOrganizationDnsZonesBadRequestException.php new file mode 100644 index 00000000..9757b023 --- /dev/null +++ b/src/Exception/PostOrganizationsOrganizationDnsZonesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationsOrganizationDnsZonesForbiddenException.php b/src/Exception/PostOrganizationsOrganizationDnsZonesForbiddenException.php new file mode 100644 index 00000000..86d535f7 --- /dev/null +++ b/src/Exception/PostOrganizationsOrganizationDnsZonesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationsOrganizationDnsZonesNotFoundException.php b/src/Exception/PostOrganizationsOrganizationDnsZonesNotFoundException.php new file mode 100644 index 00000000..9c2502bc --- /dev/null +++ b/src/Exception/PostOrganizationsOrganizationDnsZonesNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationsOrganizationDnsZonesTooManyRequestsException.php b/src/Exception/PostOrganizationsOrganizationDnsZonesTooManyRequestsException.php new file mode 100644 index 00000000..be4b0dc6 --- /dev/null +++ b/src/Exception/PostOrganizationsOrganizationDnsZonesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostOrganizationsOrganizationDnsZonesUnprocessableEntityException.php b/src/Exception/PostOrganizationsOrganizationDnsZonesUnprocessableEntityException.php new file mode 100644 index 00000000..ae893ca7 --- /dev/null +++ b/src/Exception/PostOrganizationsOrganizationDnsZonesUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostSecurityGroupRulesBadRequestException.php b/src/Exception/PostSecurityGroupRulesBadRequestException.php new file mode 100644 index 00000000..dcb54b01 --- /dev/null +++ b/src/Exception/PostSecurityGroupRulesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostSecurityGroupRulesForbiddenException.php b/src/Exception/PostSecurityGroupRulesForbiddenException.php new file mode 100644 index 00000000..a073980e --- /dev/null +++ b/src/Exception/PostSecurityGroupRulesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostSecurityGroupRulesNotFoundException.php b/src/Exception/PostSecurityGroupRulesNotFoundException.php new file mode 100644 index 00000000..c416551a --- /dev/null +++ b/src/Exception/PostSecurityGroupRulesNotFoundException.php @@ -0,0 +1,40 @@ +responseSecurityGroupNotFoundResponse = $responseSecurityGroupNotFoundResponse; + $this->response = $response; + } + + public function getResponseSecurityGroupNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseSecurityGroupNotFoundResponse + { + return $this->responseSecurityGroupNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostSecurityGroupRulesTooManyRequestsException.php b/src/Exception/PostSecurityGroupRulesTooManyRequestsException.php new file mode 100644 index 00000000..71fd0d87 --- /dev/null +++ b/src/Exception/PostSecurityGroupRulesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostSecurityGroupRulesUnprocessableEntityException.php b/src/Exception/PostSecurityGroupRulesUnprocessableEntityException.php new file mode 100644 index 00000000..8013e43b --- /dev/null +++ b/src/Exception/PostSecurityGroupRulesUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostTrashObjectRestoreBadRequestException.php b/src/Exception/PostTrashObjectRestoreBadRequestException.php new file mode 100644 index 00000000..d9f86caa --- /dev/null +++ b/src/Exception/PostTrashObjectRestoreBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostTrashObjectRestoreForbiddenException.php b/src/Exception/PostTrashObjectRestoreForbiddenException.php new file mode 100644 index 00000000..56a6c9f2 --- /dev/null +++ b/src/Exception/PostTrashObjectRestoreForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostTrashObjectRestoreNotFoundException.php b/src/Exception/PostTrashObjectRestoreNotFoundException.php new file mode 100644 index 00000000..49dcb3ed --- /dev/null +++ b/src/Exception/PostTrashObjectRestoreNotFoundException.php @@ -0,0 +1,40 @@ +responseTrashObjectNotFoundResponse = $responseTrashObjectNotFoundResponse; + $this->response = $response; + } + + public function getResponseTrashObjectNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseTrashObjectNotFoundResponse + { + return $this->responseTrashObjectNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostTrashObjectRestoreTooManyRequestsException.php b/src/Exception/PostTrashObjectRestoreTooManyRequestsException.php new file mode 100644 index 00000000..e1a02196 --- /dev/null +++ b/src/Exception/PostTrashObjectRestoreTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineAllocateIpBadRequestException.php b/src/Exception/PostVirtualMachineAllocateIpBadRequestException.php new file mode 100644 index 00000000..ef1a6fe4 --- /dev/null +++ b/src/Exception/PostVirtualMachineAllocateIpBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineAllocateIpForbiddenException.php b/src/Exception/PostVirtualMachineAllocateIpForbiddenException.php new file mode 100644 index 00000000..5bdfc918 --- /dev/null +++ b/src/Exception/PostVirtualMachineAllocateIpForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineAllocateIpNotAcceptableException.php b/src/Exception/PostVirtualMachineAllocateIpNotAcceptableException.php new file mode 100644 index 00000000..111ae60f --- /dev/null +++ b/src/Exception/PostVirtualMachineAllocateIpNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineAllocateIpNotFoundException.php b/src/Exception/PostVirtualMachineAllocateIpNotFoundException.php new file mode 100644 index 00000000..ec72b7f3 --- /dev/null +++ b/src/Exception/PostVirtualMachineAllocateIpNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineAllocateIpTooManyRequestsException.php b/src/Exception/PostVirtualMachineAllocateIpTooManyRequestsException.php new file mode 100644 index 00000000..5d6502b2 --- /dev/null +++ b/src/Exception/PostVirtualMachineAllocateIpTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineAllocateIpUnprocessableEntityException.php b/src/Exception/PostVirtualMachineAllocateIpUnprocessableEntityException.php new file mode 100644 index 00000000..7bbd00dd --- /dev/null +++ b/src/Exception/PostVirtualMachineAllocateIpUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineConsoleSessionsBadRequestException.php b/src/Exception/PostVirtualMachineConsoleSessionsBadRequestException.php new file mode 100644 index 00000000..9ee5aa1e --- /dev/null +++ b/src/Exception/PostVirtualMachineConsoleSessionsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineConsoleSessionsForbiddenException.php b/src/Exception/PostVirtualMachineConsoleSessionsForbiddenException.php new file mode 100644 index 00000000..4c6eb13e --- /dev/null +++ b/src/Exception/PostVirtualMachineConsoleSessionsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineConsoleSessionsNotAcceptableException.php b/src/Exception/PostVirtualMachineConsoleSessionsNotAcceptableException.php new file mode 100644 index 00000000..de7d5cb4 --- /dev/null +++ b/src/Exception/PostVirtualMachineConsoleSessionsNotAcceptableException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineConsoleSessionsNotFoundException.php b/src/Exception/PostVirtualMachineConsoleSessionsNotFoundException.php new file mode 100644 index 00000000..9ab6d02c --- /dev/null +++ b/src/Exception/PostVirtualMachineConsoleSessionsNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineConsoleSessionsTooManyRequestsException.php b/src/Exception/PostVirtualMachineConsoleSessionsTooManyRequestsException.php new file mode 100644 index 00000000..f427232a --- /dev/null +++ b/src/Exception/PostVirtualMachineConsoleSessionsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineConsoleSessionsUnprocessableEntityException.php b/src/Exception/PostVirtualMachineConsoleSessionsUnprocessableEntityException.php new file mode 100644 index 00000000..d26121ac --- /dev/null +++ b/src/Exception/PostVirtualMachineConsoleSessionsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineDiskBackupPoliciesBadRequestException.php b/src/Exception/PostVirtualMachineDiskBackupPoliciesBadRequestException.php new file mode 100644 index 00000000..0035699f --- /dev/null +++ b/src/Exception/PostVirtualMachineDiskBackupPoliciesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineDiskBackupPoliciesForbiddenException.php b/src/Exception/PostVirtualMachineDiskBackupPoliciesForbiddenException.php new file mode 100644 index 00000000..3b8b54e5 --- /dev/null +++ b/src/Exception/PostVirtualMachineDiskBackupPoliciesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineDiskBackupPoliciesNotAcceptableException.php b/src/Exception/PostVirtualMachineDiskBackupPoliciesNotAcceptableException.php new file mode 100644 index 00000000..26f43c35 --- /dev/null +++ b/src/Exception/PostVirtualMachineDiskBackupPoliciesNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineDiskBackupPoliciesNotFoundException.php b/src/Exception/PostVirtualMachineDiskBackupPoliciesNotFoundException.php new file mode 100644 index 00000000..1cc489e4 --- /dev/null +++ b/src/Exception/PostVirtualMachineDiskBackupPoliciesNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineDiskBackupPoliciesTooManyRequestsException.php b/src/Exception/PostVirtualMachineDiskBackupPoliciesTooManyRequestsException.php new file mode 100644 index 00000000..dd5144ca --- /dev/null +++ b/src/Exception/PostVirtualMachineDiskBackupPoliciesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineDiskBackupPoliciesUnprocessableEntityException.php b/src/Exception/PostVirtualMachineDiskBackupPoliciesUnprocessableEntityException.php new file mode 100644 index 00000000..6e062fb4 --- /dev/null +++ b/src/Exception/PostVirtualMachineDiskBackupPoliciesUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpBadRequestException.php b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpBadRequestException.php new file mode 100644 index 00000000..4d2db743 --- /dev/null +++ b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpForbiddenException.php b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpForbiddenException.php new file mode 100644 index 00000000..57464649 --- /dev/null +++ b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpNotFoundException.php b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpNotFoundException.php new file mode 100644 index 00000000..e1cf9150 --- /dev/null +++ b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpTooManyRequestsException.php b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpTooManyRequestsException.php new file mode 100644 index 00000000..aa96182d --- /dev/null +++ b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpUnprocessableEntityException.php b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpUnprocessableEntityException.php new file mode 100644 index 00000000..92f6dc2e --- /dev/null +++ b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateIpUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpBadRequestException.php b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpBadRequestException.php new file mode 100644 index 00000000..43233890 --- /dev/null +++ b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpForbiddenException.php b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpForbiddenException.php new file mode 100644 index 00000000..ee978de9 --- /dev/null +++ b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpNotFoundException.php b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpNotFoundException.php new file mode 100644 index 00000000..ada96353 --- /dev/null +++ b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNetworkInterfaceNotFoundResponse = $responseVirtualMachineNetworkInterfaceNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNetworkInterfaceNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNetworkInterfaceNotFoundResponse + { + return $this->responseVirtualMachineNetworkInterfaceNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpServiceUnavailableException.php b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpServiceUnavailableException.php new file mode 100644 index 00000000..1cc46ed5 --- /dev/null +++ b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseNoAvailableAddressesResponse = $responseNoAvailableAddressesResponse; + $this->response = $response; + } + + public function getResponseNoAvailableAddressesResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseNoAvailableAddressesResponse + { + return $this->responseNoAvailableAddressesResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpTooManyRequestsException.php b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpTooManyRequestsException.php new file mode 100644 index 00000000..feeec010 --- /dev/null +++ b/src/Exception/PostVirtualMachineNetworkInterfaceAllocateNewIpTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineResetBadRequestException.php b/src/Exception/PostVirtualMachineResetBadRequestException.php new file mode 100644 index 00000000..e4ceb65a --- /dev/null +++ b/src/Exception/PostVirtualMachineResetBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineResetForbiddenException.php b/src/Exception/PostVirtualMachineResetForbiddenException.php new file mode 100644 index 00000000..9d2856d1 --- /dev/null +++ b/src/Exception/PostVirtualMachineResetForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineResetNotAcceptableException.php b/src/Exception/PostVirtualMachineResetNotAcceptableException.php new file mode 100644 index 00000000..47d83c2b --- /dev/null +++ b/src/Exception/PostVirtualMachineResetNotAcceptableException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineResetNotFoundException.php b/src/Exception/PostVirtualMachineResetNotFoundException.php new file mode 100644 index 00000000..db489dd8 --- /dev/null +++ b/src/Exception/PostVirtualMachineResetNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineResetTooManyRequestsException.php b/src/Exception/PostVirtualMachineResetTooManyRequestsException.php new file mode 100644 index 00000000..d9b80f36 --- /dev/null +++ b/src/Exception/PostVirtualMachineResetTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineShutdownBadRequestException.php b/src/Exception/PostVirtualMachineShutdownBadRequestException.php new file mode 100644 index 00000000..3c279ae2 --- /dev/null +++ b/src/Exception/PostVirtualMachineShutdownBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineShutdownForbiddenException.php b/src/Exception/PostVirtualMachineShutdownForbiddenException.php new file mode 100644 index 00000000..518c59ba --- /dev/null +++ b/src/Exception/PostVirtualMachineShutdownForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineShutdownNotAcceptableException.php b/src/Exception/PostVirtualMachineShutdownNotAcceptableException.php new file mode 100644 index 00000000..3231f8db --- /dev/null +++ b/src/Exception/PostVirtualMachineShutdownNotAcceptableException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineShutdownNotFoundException.php b/src/Exception/PostVirtualMachineShutdownNotFoundException.php new file mode 100644 index 00000000..e86d0e59 --- /dev/null +++ b/src/Exception/PostVirtualMachineShutdownNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineShutdownTooManyRequestsException.php b/src/Exception/PostVirtualMachineShutdownTooManyRequestsException.php new file mode 100644 index 00000000..b9522dc6 --- /dev/null +++ b/src/Exception/PostVirtualMachineShutdownTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineStartBadRequestException.php b/src/Exception/PostVirtualMachineStartBadRequestException.php new file mode 100644 index 00000000..10acf2c7 --- /dev/null +++ b/src/Exception/PostVirtualMachineStartBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineStartForbiddenException.php b/src/Exception/PostVirtualMachineStartForbiddenException.php new file mode 100644 index 00000000..24a152c8 --- /dev/null +++ b/src/Exception/PostVirtualMachineStartForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineStartNotAcceptableException.php b/src/Exception/PostVirtualMachineStartNotAcceptableException.php new file mode 100644 index 00000000..6822f3a1 --- /dev/null +++ b/src/Exception/PostVirtualMachineStartNotAcceptableException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineStartNotFoundException.php b/src/Exception/PostVirtualMachineStartNotFoundException.php new file mode 100644 index 00000000..ea573fda --- /dev/null +++ b/src/Exception/PostVirtualMachineStartNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineStartTooManyRequestsException.php b/src/Exception/PostVirtualMachineStartTooManyRequestsException.php new file mode 100644 index 00000000..e910e6cf --- /dev/null +++ b/src/Exception/PostVirtualMachineStartTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineStopBadRequestException.php b/src/Exception/PostVirtualMachineStopBadRequestException.php new file mode 100644 index 00000000..d07ef6c0 --- /dev/null +++ b/src/Exception/PostVirtualMachineStopBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineStopForbiddenException.php b/src/Exception/PostVirtualMachineStopForbiddenException.php new file mode 100644 index 00000000..723e0544 --- /dev/null +++ b/src/Exception/PostVirtualMachineStopForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineStopNotAcceptableException.php b/src/Exception/PostVirtualMachineStopNotAcceptableException.php new file mode 100644 index 00000000..1f3d9ad6 --- /dev/null +++ b/src/Exception/PostVirtualMachineStopNotAcceptableException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineStopNotFoundException.php b/src/Exception/PostVirtualMachineStopNotFoundException.php new file mode 100644 index 00000000..5c365cbd --- /dev/null +++ b/src/Exception/PostVirtualMachineStopNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostVirtualMachineStopTooManyRequestsException.php b/src/Exception/PostVirtualMachineStopTooManyRequestsException.php new file mode 100644 index 00000000..aafcdd25 --- /dev/null +++ b/src/Exception/PostVirtualMachineStopTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutVirtualMachineFlexibleResourcesBadRequestException.php b/src/Exception/PutVirtualMachineFlexibleResourcesBadRequestException.php new file mode 100644 index 00000000..fe4f68e7 --- /dev/null +++ b/src/Exception/PutVirtualMachineFlexibleResourcesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutVirtualMachineFlexibleResourcesForbiddenException.php b/src/Exception/PutVirtualMachineFlexibleResourcesForbiddenException.php new file mode 100644 index 00000000..df8478f4 --- /dev/null +++ b/src/Exception/PutVirtualMachineFlexibleResourcesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutVirtualMachineFlexibleResourcesNotAcceptableException.php b/src/Exception/PutVirtualMachineFlexibleResourcesNotAcceptableException.php new file mode 100644 index 00000000..e467d2db --- /dev/null +++ b/src/Exception/PutVirtualMachineFlexibleResourcesNotAcceptableException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutVirtualMachineFlexibleResourcesNotFoundException.php b/src/Exception/PutVirtualMachineFlexibleResourcesNotFoundException.php new file mode 100644 index 00000000..88b13ae4 --- /dev/null +++ b/src/Exception/PutVirtualMachineFlexibleResourcesNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNotFoundResponse = $responseVirtualMachineNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNotFoundResponse(): \Krystal\Katapult\KatapultAPI\Model\ResponseVirtualMachineNotFoundResponse + { + return $this->responseVirtualMachineNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutVirtualMachineFlexibleResourcesTooManyRequestsException.php b/src/Exception/PutVirtualMachineFlexibleResourcesTooManyRequestsException.php new file mode 100644 index 00000000..8b3487ee --- /dev/null +++ b/src/Exception/PutVirtualMachineFlexibleResourcesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutVirtualMachinePackageBadRequestException.php b/src/Exception/PutVirtualMachinePackageBadRequestException.php new file mode 100644 index 00000000..e71e5963 --- /dev/null +++ b/src/Exception/PutVirtualMachinePackageBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutVirtualMachinePackageForbiddenException.php b/src/Exception/PutVirtualMachinePackageForbiddenException.php new file mode 100644 index 00000000..f38697ab --- /dev/null +++ b/src/Exception/PutVirtualMachinePackageForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutVirtualMachinePackageNotAcceptableException.php b/src/Exception/PutVirtualMachinePackageNotAcceptableException.php new file mode 100644 index 00000000..eafb89fe --- /dev/null +++ b/src/Exception/PutVirtualMachinePackageNotAcceptableException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutVirtualMachinePackageNotFoundException.php b/src/Exception/PutVirtualMachinePackageNotFoundException.php new file mode 100644 index 00000000..2545a054 --- /dev/null +++ b/src/Exception/PutVirtualMachinePackageNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutVirtualMachinePackageTooManyRequestsException.php b/src/Exception/PutVirtualMachinePackageTooManyRequestsException.php new file mode 100644 index 00000000..677c5c9f --- /dev/null +++ b/src/Exception/PutVirtualMachinePackageTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \Krystal\Katapult\KatapultAPI\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/ServerException.php b/src/Exception/ServerException.php new file mode 100644 index 00000000..2c1675cf --- /dev/null +++ b/src/Exception/ServerException.php @@ -0,0 +1,15 @@ +api = $api; - } - - public function resource(string $resourceClass, ...$args): ResourceControllerInterface - { - return $this->api->getResourceController($resourceClass, ...$args); - } -} diff --git a/src/Model/A.php b/src/Model/A.php new file mode 100644 index 00000000..ec237985 --- /dev/null +++ b/src/Model/A.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $ip; + + public function getIp(): string + { + return $this->ip; + } + + public function setIp(string $ip): self + { + $this->initialized['ip'] = true; + $this->ip = $ip; + + return $this; + } +} diff --git a/src/Model/AAAA.php b/src/Model/AAAA.php new file mode 100644 index 00000000..6744fff9 --- /dev/null +++ b/src/Model/AAAA.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $ip; + + public function getIp(): string + { + return $this->ip; + } + + public function setIp(string $ip): self + { + $this->initialized['ip'] = true; + $this->ip = $ip; + + return $this; + } +} diff --git a/src/Model/ALIAS.php b/src/Model/ALIAS.php new file mode 100644 index 00000000..e88ecc4f --- /dev/null +++ b/src/Model/ALIAS.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $name; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/APIAuthenticator400Schema.php b/src/Model/APIAuthenticator400Schema.php new file mode 100644 index 00000000..f3ab1aae --- /dev/null +++ b/src/Model/APIAuthenticator400Schema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/Attachment.php b/src/Model/Attachment.php new file mode 100644 index 00000000..5f1a1bdf --- /dev/null +++ b/src/Model/Attachment.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $url; + /** + * @var string + */ + protected $fileName; + /** + * @var string + */ + protected $fileType; + /** + * @var int + */ + protected $fileSize; + /** + * @var string + */ + protected $digest; + /** + * @var string + */ + protected $token; + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } + + public function getFileName(): string + { + return $this->fileName; + } + + public function setFileName(string $fileName): self + { + $this->initialized['fileName'] = true; + $this->fileName = $fileName; + + return $this; + } + + public function getFileType(): string + { + return $this->fileType; + } + + public function setFileType(string $fileType): self + { + $this->initialized['fileType'] = true; + $this->fileType = $fileType; + + return $this; + } + + public function getFileSize(): int + { + return $this->fileSize; + } + + public function setFileSize(int $fileSize): self + { + $this->initialized['fileSize'] = true; + $this->fileSize = $fileSize; + + return $this; + } + + public function getDigest(): string + { + return $this->digest; + } + + public function setDigest(string $digest): self + { + $this->initialized['digest'] = true; + $this->digest = $digest; + + return $this; + } + + public function getToken(): string + { + return $this->token; + } + + public function setToken(string $token): self + { + $this->initialized['token'] = true; + $this->token = $token; + + return $this; + } +} diff --git a/src/Model/AuthSSHKey.php b/src/Model/AuthSSHKey.php new file mode 100644 index 00000000..8ed7fe83 --- /dev/null +++ b/src/Model/AuthSSHKey.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $fingerprint; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getFingerprint(): string + { + return $this->fingerprint; + } + + public function setFingerprint(string $fingerprint): self + { + $this->initialized['fingerprint'] = true; + $this->fingerprint = $fingerprint; + + return $this; + } +} diff --git a/src/Model/AuthSSHKeyLookup.php b/src/Model/AuthSSHKeyLookup.php new file mode 100644 index 00000000..30b2a112 --- /dev/null +++ b/src/Model/AuthSSHKeyLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/AuthSSHKeyProperties.php b/src/Model/AuthSSHKeyProperties.php new file mode 100644 index 00000000..732d29a5 --- /dev/null +++ b/src/Model/AuthSSHKeyProperties.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $key; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getKey(): string + { + return $this->key; + } + + public function setKey(string $key): self + { + $this->initialized['key'] = true; + $this->key = $key; + + return $this; + } +} diff --git a/src/Model/CAA.php b/src/Model/CAA.php new file mode 100644 index 00000000..77020634 --- /dev/null +++ b/src/Model/CAA.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $flags; + /** + * @var string + */ + protected $propertyType; + /** + * @var string + */ + protected $propertyValue; + + public function getFlags(): string + { + return $this->flags; + } + + public function setFlags(string $flags): self + { + $this->initialized['flags'] = true; + $this->flags = $flags; + + return $this; + } + + public function getPropertyType(): string + { + return $this->propertyType; + } + + public function setPropertyType(string $propertyType): self + { + $this->initialized['propertyType'] = true; + $this->propertyType = $propertyType; + + return $this; + } + + public function getPropertyValue(): string + { + return $this->propertyValue; + } + + public function setPropertyValue(string $propertyValue): self + { + $this->initialized['propertyValue'] = true; + $this->propertyValue = $propertyValue; + + return $this; + } +} diff --git a/src/Model/CNAME.php b/src/Model/CNAME.php new file mode 100644 index 00000000..c6955427 --- /dev/null +++ b/src/Model/CNAME.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $name; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/Certificate.php b/src/Model/Certificate.php new file mode 100644 index 00000000..0f63223e --- /dev/null +++ b/src/Model/Certificate.php @@ -0,0 +1,276 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string[] + */ + protected $additionalNames; + /** + * @var string + */ + protected $issuer; + /** + * @var string + */ + protected $state; + /** + * @var int + */ + protected $createdAt; + /** + * @var int + */ + protected $expiresAt; + /** + * @var int + */ + protected $lastIssuedAt; + /** + * @var string + */ + protected $issueError; + /** + * @var string + */ + protected $authorizationMethod; + /** + * This is the URL that can be used to access this certificate's details. through the certificate API (a different API to this one). If null, this means that it is no longer available. If that is the case, you can get a new URL by resetting the API token for this certificate. + * + * @var string + */ + protected $certificateApiUrl; + /** + * @var string + */ + protected $certificate; + /** + * @var string + */ + protected $chain; + /** + * @var string + */ + protected $privateKey; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * @return string[] + */ + public function getAdditionalNames(): array + { + return $this->additionalNames; + } + + /** + * @param string[] $additionalNames + */ + public function setAdditionalNames(array $additionalNames): self + { + $this->initialized['additionalNames'] = true; + $this->additionalNames = $additionalNames; + + return $this; + } + + public function getIssuer(): string + { + return $this->issuer; + } + + public function setIssuer(string $issuer): self + { + $this->initialized['issuer'] = true; + $this->issuer = $issuer; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getExpiresAt(): int + { + return $this->expiresAt; + } + + public function setExpiresAt(int $expiresAt): self + { + $this->initialized['expiresAt'] = true; + $this->expiresAt = $expiresAt; + + return $this; + } + + public function getLastIssuedAt(): int + { + return $this->lastIssuedAt; + } + + public function setLastIssuedAt(int $lastIssuedAt): self + { + $this->initialized['lastIssuedAt'] = true; + $this->lastIssuedAt = $lastIssuedAt; + + return $this; + } + + public function getIssueError(): string + { + return $this->issueError; + } + + public function setIssueError(string $issueError): self + { + $this->initialized['issueError'] = true; + $this->issueError = $issueError; + + return $this; + } + + public function getAuthorizationMethod(): string + { + return $this->authorizationMethod; + } + + public function setAuthorizationMethod(string $authorizationMethod): self + { + $this->initialized['authorizationMethod'] = true; + $this->authorizationMethod = $authorizationMethod; + + return $this; + } + + /** + * This is the URL that can be used to access this certificate's details. through the certificate API (a different API to this one). If null, this means that it is no longer available. If that is the case, you can get a new URL by resetting the API token for this certificate. + */ + public function getCertificateApiUrl(): string + { + return $this->certificateApiUrl; + } + + /** + * This is the URL that can be used to access this certificate's details. through the certificate API (a different API to this one). If null, this means that it is no longer available. If that is the case, you can get a new URL by resetting the API token for this certificate. + */ + public function setCertificateApiUrl(string $certificateApiUrl): self + { + $this->initialized['certificateApiUrl'] = true; + $this->certificateApiUrl = $certificateApiUrl; + + return $this; + } + + public function getCertificate(): string + { + return $this->certificate; + } + + public function setCertificate(string $certificate): self + { + $this->initialized['certificate'] = true; + $this->certificate = $certificate; + + return $this; + } + + public function getChain(): string + { + return $this->chain; + } + + public function setChain(string $chain): self + { + $this->initialized['chain'] = true; + $this->chain = $chain; + + return $this; + } + + public function getPrivateKey(): string + { + return $this->privateKey; + } + + public function setPrivateKey(string $privateKey): self + { + $this->initialized['privateKey'] = true; + $this->privateKey = $privateKey; + + return $this; + } +} diff --git a/src/Model/CertificateLookup.php b/src/Model/CertificateLookup.php new file mode 100644 index 00000000..006fa52b --- /dev/null +++ b/src/Model/CertificateLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/CertificatesCertificateGetResponse200.php b/src/Model/CertificatesCertificateGetResponse200.php new file mode 100644 index 00000000..48c6db83 --- /dev/null +++ b/src/Model/CertificatesCertificateGetResponse200.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var Certificate[] + */ + protected $certificate; + + /** + * @return Certificate[] + */ + public function getCertificate(): array + { + return $this->certificate; + } + + /** + * @param Certificate[] $certificate + */ + public function setCertificate(array $certificate): self + { + $this->initialized['certificate'] = true; + $this->certificate = $certificate; + + return $this; + } +} diff --git a/src/Model/CountriesCountryCountryStatesGetResponse200.php b/src/Model/CountriesCountryCountryStatesGetResponse200.php new file mode 100644 index 00000000..55a1a9e5 --- /dev/null +++ b/src/Model/CountriesCountryCountryStatesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var CountriesCountryCountryStatesGetResponse200Pagination + */ + protected $pagination; + /** + * The list of country states for the given country. + * + * @var GetCountryCountryStates200ResponseCountryStates[] + */ + protected $countryStates; + + public function getPagination(): CountriesCountryCountryStatesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(CountriesCountryCountryStatesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The list of country states for the given country. + * + * @return GetCountryCountryStates200ResponseCountryStates[] + */ + public function getCountryStates(): array + { + return $this->countryStates; + } + + /** + * The list of country states for the given country. + * + * @param GetCountryCountryStates200ResponseCountryStates[] $countryStates + */ + public function setCountryStates(array $countryStates): self + { + $this->initialized['countryStates'] = true; + $this->countryStates = $countryStates; + + return $this; + } +} diff --git a/src/Model/CountriesCountryCountryStatesGetResponse200Pagination.php b/src/Model/CountriesCountryCountryStatesGetResponse200Pagination.php new file mode 100644 index 00000000..07c436af --- /dev/null +++ b/src/Model/CountriesCountryCountryStatesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/CountriesCountryGetResponse200.php b/src/Model/CountriesCountryGetResponse200.php new file mode 100644 index 00000000..0a1017a4 --- /dev/null +++ b/src/Model/CountriesCountryGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The country details. + * + * @var CountriesCountryGetResponse200Country + */ + protected $country; + + /** + * The country details. + */ + public function getCountry(): CountriesCountryGetResponse200Country + { + return $this->country; + } + + /** + * The country details. + */ + public function setCountry(CountriesCountryGetResponse200Country $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/CountriesCountryGetResponse200Country.php b/src/Model/CountriesCountryGetResponse200Country.php new file mode 100644 index 00000000..54c18294 --- /dev/null +++ b/src/Model/CountriesCountryGetResponse200Country.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $isoCode2; + /** + * @var string + */ + protected $isoCode3; + /** + * @var string + */ + protected $timeZone; + /** + * @var bool + */ + protected $eu; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIsoCode2(): string + { + return $this->isoCode2; + } + + public function setIsoCode2(string $isoCode2): self + { + $this->initialized['isoCode2'] = true; + $this->isoCode2 = $isoCode2; + + return $this; + } + + public function getIsoCode3(): string + { + return $this->isoCode3; + } + + public function setIsoCode3(string $isoCode3): self + { + $this->initialized['isoCode3'] = true; + $this->isoCode3 = $isoCode3; + + return $this; + } + + public function getTimeZone(): string + { + return $this->timeZone; + } + + public function setTimeZone(string $timeZone): self + { + $this->initialized['timeZone'] = true; + $this->timeZone = $timeZone; + + return $this; + } + + public function getEu(): bool + { + return $this->eu; + } + + public function setEu(bool $eu): self + { + $this->initialized['eu'] = true; + $this->eu = $eu; + + return $this; + } +} diff --git a/src/Model/CountriesGetResponse200.php b/src/Model/CountriesGetResponse200.php new file mode 100644 index 00000000..19db01b1 --- /dev/null +++ b/src/Model/CountriesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var CountriesGetResponse200Pagination + */ + protected $pagination; + /** + * The list of countries. + * + * @var GetCountries200ResponseCountries[] + */ + protected $countries; + + public function getPagination(): CountriesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(CountriesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The list of countries. + * + * @return GetCountries200ResponseCountries[] + */ + public function getCountries(): array + { + return $this->countries; + } + + /** + * The list of countries. + * + * @param GetCountries200ResponseCountries[] $countries + */ + public function setCountries(array $countries): self + { + $this->initialized['countries'] = true; + $this->countries = $countries; + + return $this; + } +} diff --git a/src/Model/CountriesGetResponse200Pagination.php b/src/Model/CountriesGetResponse200Pagination.php new file mode 100644 index 00000000..c19dd5fc --- /dev/null +++ b/src/Model/CountriesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/Country.php b/src/Model/Country.php new file mode 100644 index 00000000..3c8850ed --- /dev/null +++ b/src/Model/Country.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $isoCode2; + /** + * @var string + */ + protected $isoCode3; + /** + * @var string + */ + protected $timeZone; + /** + * @var bool + */ + protected $eu; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIsoCode2(): string + { + return $this->isoCode2; + } + + public function setIsoCode2(string $isoCode2): self + { + $this->initialized['isoCode2'] = true; + $this->isoCode2 = $isoCode2; + + return $this; + } + + public function getIsoCode3(): string + { + return $this->isoCode3; + } + + public function setIsoCode3(string $isoCode3): self + { + $this->initialized['isoCode3'] = true; + $this->isoCode3 = $isoCode3; + + return $this; + } + + public function getTimeZone(): string + { + return $this->timeZone; + } + + public function setTimeZone(string $timeZone): self + { + $this->initialized['timeZone'] = true; + $this->timeZone = $timeZone; + + return $this; + } + + public function getEu(): bool + { + return $this->eu; + } + + public function setEu(bool $eu): self + { + $this->initialized['eu'] = true; + $this->eu = $eu; + + return $this; + } +} diff --git a/src/Model/CountryState.php b/src/Model/CountryState.php new file mode 100644 index 00000000..d07f5863 --- /dev/null +++ b/src/Model/CountryState.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $code; + /** + * @var Country + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getCountry(): Country + { + return $this->country; + } + + public function setCountry(Country $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/CountryStatesCountryStateGetResponse200.php b/src/Model/CountryStatesCountryStateGetResponse200.php new file mode 100644 index 00000000..4d44f6be --- /dev/null +++ b/src/Model/CountryStatesCountryStateGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The country state details. + * + * @var CountryStatesCountryStateGetResponse200CountryState + */ + protected $countryState; + + /** + * The country state details. + */ + public function getCountryState(): CountryStatesCountryStateGetResponse200CountryState + { + return $this->countryState; + } + + /** + * The country state details. + */ + public function setCountryState(CountryStatesCountryStateGetResponse200CountryState $countryState): self + { + $this->initialized['countryState'] = true; + $this->countryState = $countryState; + + return $this; + } +} diff --git a/src/Model/CountryStatesCountryStateGetResponse200CountryState.php b/src/Model/CountryStatesCountryStateGetResponse200CountryState.php new file mode 100644 index 00000000..a59238a4 --- /dev/null +++ b/src/Model/CountryStatesCountryStateGetResponse200CountryState.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $code; + /** + * @var Country + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getCountry(): Country + { + return $this->country; + } + + public function setCountry(Country $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/CurrenciesCurrencyGetResponse200.php b/src/Model/CurrenciesCurrencyGetResponse200.php new file mode 100644 index 00000000..2d00391a --- /dev/null +++ b/src/Model/CurrenciesCurrencyGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The currency details. + * + * @var CurrenciesCurrencyGetResponse200Currency + */ + protected $currency; + + /** + * The currency details. + */ + public function getCurrency(): CurrenciesCurrencyGetResponse200Currency + { + return $this->currency; + } + + /** + * The currency details. + */ + public function setCurrency(CurrenciesCurrencyGetResponse200Currency $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } +} diff --git a/src/Model/CurrenciesCurrencyGetResponse200Currency.php b/src/Model/CurrenciesCurrencyGetResponse200Currency.php new file mode 100644 index 00000000..98396f02 --- /dev/null +++ b/src/Model/CurrenciesCurrencyGetResponse200Currency.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $isoCode; + /** + * @var string + */ + protected $symbol; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIsoCode(): string + { + return $this->isoCode; + } + + public function setIsoCode(string $isoCode): self + { + $this->initialized['isoCode'] = true; + $this->isoCode = $isoCode; + + return $this; + } + + public function getSymbol(): string + { + return $this->symbol; + } + + public function setSymbol(string $symbol): self + { + $this->initialized['symbol'] = true; + $this->symbol = $symbol; + + return $this; + } +} diff --git a/src/Model/CurrenciesGetResponse200.php b/src/Model/CurrenciesGetResponse200.php new file mode 100644 index 00000000..fb4d8f5c --- /dev/null +++ b/src/Model/CurrenciesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var CurrenciesGetResponse200Pagination + */ + protected $pagination; + /** + * The list of currencies. + * + * @var GetCurrencies200ResponseCurrencies[] + */ + protected $currencies; + + public function getPagination(): CurrenciesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(CurrenciesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The list of currencies. + * + * @return GetCurrencies200ResponseCurrencies[] + */ + public function getCurrencies(): array + { + return $this->currencies; + } + + /** + * The list of currencies. + * + * @param GetCurrencies200ResponseCurrencies[] $currencies + */ + public function setCurrencies(array $currencies): self + { + $this->initialized['currencies'] = true; + $this->currencies = $currencies; + + return $this; + } +} diff --git a/src/Model/CurrenciesGetResponse200Pagination.php b/src/Model/CurrenciesGetResponse200Pagination.php new file mode 100644 index 00000000..906d6e9a --- /dev/null +++ b/src/Model/CurrenciesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/Currency.php b/src/Model/Currency.php new file mode 100644 index 00000000..344be498 --- /dev/null +++ b/src/Model/Currency.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $isoCode; + /** + * @var string + */ + protected $symbol; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIsoCode(): string + { + return $this->isoCode; + } + + public function setIsoCode(string $isoCode): self + { + $this->initialized['isoCode'] = true; + $this->isoCode = $isoCode; + + return $this; + } + + public function getSymbol(): string + { + return $this->symbol; + } + + public function setSymbol(string $symbol): self + { + $this->initialized['symbol'] = true; + $this->symbol = $symbol; + + return $this; + } +} diff --git a/src/Model/DNSRecord.php b/src/Model/DNSRecord.php new file mode 100644 index 00000000..36522195 --- /dev/null +++ b/src/Model/DNSRecord.php @@ -0,0 +1,160 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $fullName; + /** + * @var int + */ + protected $ttl; + /** + * @var string + */ + protected $type; + /** + * @var int + */ + protected $priority; + /** + * @var string + */ + protected $content; + /** + * @var DNSRecordContentAttributes + */ + protected $contentAttributes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getFullName(): string + { + return $this->fullName; + } + + public function setFullName(string $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getType(): string + { + return $this->type; + } + + public function setType(string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getPriority(): int + { + return $this->priority; + } + + public function setPriority(int $priority): self + { + $this->initialized['priority'] = true; + $this->priority = $priority; + + return $this; + } + + public function getContent(): string + { + return $this->content; + } + + public function setContent(string $content): self + { + $this->initialized['content'] = true; + $this->content = $content; + + return $this; + } + + public function getContentAttributes(): DNSRecordContentAttributes + { + return $this->contentAttributes; + } + + public function setContentAttributes(DNSRecordContentAttributes $contentAttributes): self + { + $this->initialized['contentAttributes'] = true; + $this->contentAttributes = $contentAttributes; + + return $this; + } +} diff --git a/src/Model/DNSRecordArguments.php b/src/Model/DNSRecordArguments.php new file mode 100644 index 00000000..2ebff6b8 --- /dev/null +++ b/src/Model/DNSRecordArguments.php @@ -0,0 +1,100 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var string + */ + protected $recordType; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var DNSRecordPropertiesArguments + */ + protected $properties; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getRecordType(): string + { + return $this->recordType; + } + + public function setRecordType(string $recordType): self + { + $this->initialized['recordType'] = true; + $this->recordType = $recordType; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): DNSRecordPropertiesArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(DNSRecordPropertiesArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/DNSRecordContentAttributes.php b/src/Model/DNSRecordContentAttributes.php new file mode 100644 index 00000000..3cfd8420 --- /dev/null +++ b/src/Model/DNSRecordContentAttributes.php @@ -0,0 +1,268 @@ +initialized); + } + /** + * @var RecordContentAttributesForA + */ + protected $a; + /** + * @var RecordContentAttributesForAAAA + */ + protected $aAAA; + /** + * @var RecordContentAttributesForALIAS + */ + protected $aLIAS; + /** + * @var RecordContentAttributesForCAA + */ + protected $cAA; + /** + * @var RecordContentAttributesForCNAME + */ + protected $cNAME; + /** + * @var RecordContentAttributesForIPS + */ + protected $iPS; + /** + * @var RecordContentAttributesForMX + */ + protected $mX; + /** + * @var RecordContentAttributesForNS + */ + protected $nS; + /** + * @var RecordContentAttributesForPTR + */ + protected $pTR; + /** + * @var array + */ + protected $sOA; + /** + * @var RecordContentAttributesForSRV + */ + protected $sRV; + /** + * @var RecordContentAttributesForSSHFP + */ + protected $sSHFP; + /** + * @var RecordContentAttributesForTXT + */ + protected $tXT; + /** + * @var RecordContentAttributesForVirtualMachine + */ + protected $virtualMachine; + + public function getA(): RecordContentAttributesForA + { + return $this->a; + } + + public function setA(RecordContentAttributesForA $a): self + { + $this->initialized['a'] = true; + $this->a = $a; + + return $this; + } + + public function getAAAA(): RecordContentAttributesForAAAA + { + return $this->aAAA; + } + + public function setAAAA(RecordContentAttributesForAAAA $aAAA): self + { + $this->initialized['aAAA'] = true; + $this->aAAA = $aAAA; + + return $this; + } + + public function getALIAS(): RecordContentAttributesForALIAS + { + return $this->aLIAS; + } + + public function setALIAS(RecordContentAttributesForALIAS $aLIAS): self + { + $this->initialized['aLIAS'] = true; + $this->aLIAS = $aLIAS; + + return $this; + } + + public function getCAA(): RecordContentAttributesForCAA + { + return $this->cAA; + } + + public function setCAA(RecordContentAttributesForCAA $cAA): self + { + $this->initialized['cAA'] = true; + $this->cAA = $cAA; + + return $this; + } + + public function getCNAME(): RecordContentAttributesForCNAME + { + return $this->cNAME; + } + + public function setCNAME(RecordContentAttributesForCNAME $cNAME): self + { + $this->initialized['cNAME'] = true; + $this->cNAME = $cNAME; + + return $this; + } + + public function getIPS(): RecordContentAttributesForIPS + { + return $this->iPS; + } + + public function setIPS(RecordContentAttributesForIPS $iPS): self + { + $this->initialized['iPS'] = true; + $this->iPS = $iPS; + + return $this; + } + + public function getMX(): RecordContentAttributesForMX + { + return $this->mX; + } + + public function setMX(RecordContentAttributesForMX $mX): self + { + $this->initialized['mX'] = true; + $this->mX = $mX; + + return $this; + } + + public function getNS(): RecordContentAttributesForNS + { + return $this->nS; + } + + public function setNS(RecordContentAttributesForNS $nS): self + { + $this->initialized['nS'] = true; + $this->nS = $nS; + + return $this; + } + + public function getPTR(): RecordContentAttributesForPTR + { + return $this->pTR; + } + + public function setPTR(RecordContentAttributesForPTR $pTR): self + { + $this->initialized['pTR'] = true; + $this->pTR = $pTR; + + return $this; + } + + /** + * @return array + */ + public function getSOA(): iterable + { + return $this->sOA; + } + + /** + * @param array $sOA + */ + public function setSOA(iterable $sOA): self + { + $this->initialized['sOA'] = true; + $this->sOA = $sOA; + + return $this; + } + + public function getSRV(): RecordContentAttributesForSRV + { + return $this->sRV; + } + + public function setSRV(RecordContentAttributesForSRV $sRV): self + { + $this->initialized['sRV'] = true; + $this->sRV = $sRV; + + return $this; + } + + public function getSSHFP(): RecordContentAttributesForSSHFP + { + return $this->sSHFP; + } + + public function setSSHFP(RecordContentAttributesForSSHFP $sSHFP): self + { + $this->initialized['sSHFP'] = true; + $this->sSHFP = $sSHFP; + + return $this; + } + + public function getTXT(): RecordContentAttributesForTXT + { + return $this->tXT; + } + + public function setTXT(RecordContentAttributesForTXT $tXT): self + { + $this->initialized['tXT'] = true; + $this->tXT = $tXT; + + return $this; + } + + public function getVirtualMachine(): RecordContentAttributesForVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(RecordContentAttributesForVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/DNSRecordLookup.php b/src/Model/DNSRecordLookup.php new file mode 100644 index 00000000..2c5273d4 --- /dev/null +++ b/src/Model/DNSRecordLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/DNSRecordProperties.php b/src/Model/DNSRecordProperties.php new file mode 100644 index 00000000..8e1d1334 --- /dev/null +++ b/src/Model/DNSRecordProperties.php @@ -0,0 +1,39 @@ +initialized); + } + + protected $properties; + + public function getProperties() + { + return $this->properties; + } + + public function setProperties($properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/DNSRecordPropertiesArguments.php b/src/Model/DNSRecordPropertiesArguments.php new file mode 100644 index 00000000..b32ece26 --- /dev/null +++ b/src/Model/DNSRecordPropertiesArguments.php @@ -0,0 +1,287 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $ip; + /** + * @var string + */ + protected $flags; + /** + * @var string + */ + protected $propertyType; + /** + * @var string + */ + protected $propertyValue; + /** + * @var string + */ + protected $host; + /** + * @var string + */ + protected $priority; + /** + * @var string + */ + protected $weight; + /** + * @var string + */ + protected $port; + /** + * @var string + */ + protected $target; + /** + * @var string + */ + protected $algorithm; + /** + * @var string + */ + protected $fingerprintType; + /** + * @var string + */ + protected $fingerprint; + /** + * @var string + */ + protected $data; + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIp(): string + { + return $this->ip; + } + + public function setIp(string $ip): self + { + $this->initialized['ip'] = true; + $this->ip = $ip; + + return $this; + } + + public function getFlags(): string + { + return $this->flags; + } + + public function setFlags(string $flags): self + { + $this->initialized['flags'] = true; + $this->flags = $flags; + + return $this; + } + + public function getPropertyType(): string + { + return $this->propertyType; + } + + public function setPropertyType(string $propertyType): self + { + $this->initialized['propertyType'] = true; + $this->propertyType = $propertyType; + + return $this; + } + + public function getPropertyValue(): string + { + return $this->propertyValue; + } + + public function setPropertyValue(string $propertyValue): self + { + $this->initialized['propertyValue'] = true; + $this->propertyValue = $propertyValue; + + return $this; + } + + public function getHost(): string + { + return $this->host; + } + + public function setHost(string $host): self + { + $this->initialized['host'] = true; + $this->host = $host; + + return $this; + } + + public function getPriority(): string + { + return $this->priority; + } + + public function setPriority(string $priority): self + { + $this->initialized['priority'] = true; + $this->priority = $priority; + + return $this; + } + + public function getWeight(): string + { + return $this->weight; + } + + public function setWeight(string $weight): self + { + $this->initialized['weight'] = true; + $this->weight = $weight; + + return $this; + } + + public function getPort(): string + { + return $this->port; + } + + public function setPort(string $port): self + { + $this->initialized['port'] = true; + $this->port = $port; + + return $this; + } + + public function getTarget(): string + { + return $this->target; + } + + public function setTarget(string $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + public function getAlgorithm(): string + { + return $this->algorithm; + } + + public function setAlgorithm(string $algorithm): self + { + $this->initialized['algorithm'] = true; + $this->algorithm = $algorithm; + + return $this; + } + + public function getFingerprintType(): string + { + return $this->fingerprintType; + } + + public function setFingerprintType(string $fingerprintType): self + { + $this->initialized['fingerprintType'] = true; + $this->fingerprintType = $fingerprintType; + + return $this; + } + + public function getFingerprint(): string + { + return $this->fingerprint; + } + + public function setFingerprint(string $fingerprint): self + { + $this->initialized['fingerprint'] = true; + $this->fingerprint = $fingerprint; + + return $this; + } + + public function getData(): string + { + return $this->data; + } + + public function setData(string $data): self + { + $this->initialized['data'] = true; + $this->data = $data; + + return $this; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/DNSZone.php b/src/Model/DNSZone.php new file mode 100644 index 00000000..572e62c8 --- /dev/null +++ b/src/Model/DNSZone.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var bool + */ + protected $verified; + /** + * @var bool + */ + protected $infrastructureZone; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getVerified(): bool + { + return $this->verified; + } + + public function setVerified(bool $verified): self + { + $this->initialized['verified'] = true; + $this->verified = $verified; + + return $this; + } + + public function getInfrastructureZone(): bool + { + return $this->infrastructureZone; + } + + public function setInfrastructureZone(bool $infrastructureZone): self + { + $this->initialized['infrastructureZone'] = true; + $this->infrastructureZone = $infrastructureZone; + + return $this; + } +} diff --git a/src/Model/DNSZoneArguments.php b/src/Model/DNSZoneArguments.php new file mode 100644 index 00000000..9cc53826 --- /dev/null +++ b/src/Model/DNSZoneArguments.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } +} diff --git a/src/Model/DNSZoneLookup.php b/src/Model/DNSZoneLookup.php new file mode 100644 index 00000000..b60d5f2d --- /dev/null +++ b/src/Model/DNSZoneLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/DNSZoneNotVerified.php b/src/Model/DNSZoneNotVerified.php new file mode 100644 index 00000000..8ea025ec --- /dev/null +++ b/src/Model/DNSZoneNotVerified.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var DNSZoneVerificationDetails + */ + protected $verificationDetails; + + public function getVerificationDetails(): DNSZoneVerificationDetails + { + return $this->verificationDetails; + } + + public function setVerificationDetails(DNSZoneVerificationDetails $verificationDetails): self + { + $this->initialized['verificationDetails'] = true; + $this->verificationDetails = $verificationDetails; + + return $this; + } +} diff --git a/src/Model/DNSZoneVerificationDetails.php b/src/Model/DNSZoneVerificationDetails.php new file mode 100644 index 00000000..24c137db --- /dev/null +++ b/src/Model/DNSZoneVerificationDetails.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var string[] + */ + protected $nameservers; + + /** + * @return string[] + */ + public function getNameservers(): array + { + return $this->nameservers; + } + + /** + * @param string[] $nameservers + */ + public function setNameservers(array $nameservers): self + { + $this->initialized['nameservers'] = true; + $this->nameservers = $nameservers; + + return $this; + } +} diff --git a/src/Model/DataCenter.php b/src/Model/DataCenter.php new file mode 100644 index 00000000..b48dd323 --- /dev/null +++ b/src/Model/DataCenter.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var Country + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCountry(): Country + { + return $this->country; + } + + public function setCountry(Country $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/DataCenterLookup.php b/src/Model/DataCenterLookup.php new file mode 100644 index 00000000..1b401694 --- /dev/null +++ b/src/Model/DataCenterLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/DataCenterNotFoundSchema.php b/src/Model/DataCenterNotFoundSchema.php new file mode 100644 index 00000000..15936606 --- /dev/null +++ b/src/Model/DataCenterNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/DataCentersDataCenterDefaultNetworkGetResponse200.php b/src/Model/DataCentersDataCenterDefaultNetworkGetResponse200.php new file mode 100644 index 00000000..fbecd7cd --- /dev/null +++ b/src/Model/DataCentersDataCenterDefaultNetworkGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The details for the requested network. + * + * @var DataCentersDataCenterDefaultNetworkGetResponse200Network + */ + protected $network; + + /** + * The details for the requested network. + */ + public function getNetwork(): DataCentersDataCenterDefaultNetworkGetResponse200Network + { + return $this->network; + } + + /** + * The details for the requested network. + */ + public function setNetwork(DataCentersDataCenterDefaultNetworkGetResponse200Network $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } +} diff --git a/src/Model/DataCentersDataCenterDefaultNetworkGetResponse200Network.php b/src/Model/DataCentersDataCenterDefaultNetworkGetResponse200Network.php new file mode 100644 index 00000000..1175faf5 --- /dev/null +++ b/src/Model/DataCentersDataCenterDefaultNetworkGetResponse200Network.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var GetDataCenterDefaultNetworkPartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): GetDataCenterDefaultNetworkPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetDataCenterDefaultNetworkPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/DataCentersDataCenterGetResponse200.php b/src/Model/DataCentersDataCenterGetResponse200.php new file mode 100644 index 00000000..73a54dac --- /dev/null +++ b/src/Model/DataCentersDataCenterGetResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var DataCentersDataCenterGetResponse200DataCenter + */ + protected $dataCenter; + + public function getDataCenter(): DataCentersDataCenterGetResponse200DataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(DataCentersDataCenterGetResponse200DataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/DataCentersDataCenterGetResponse200DataCenter.php b/src/Model/DataCentersDataCenterGetResponse200DataCenter.php new file mode 100644 index 00000000..12ae4cbf --- /dev/null +++ b/src/Model/DataCentersDataCenterGetResponse200DataCenter.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var GetDataCenterPartCountry + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCountry(): GetDataCenterPartCountry + { + return $this->country; + } + + public function setCountry(GetDataCenterPartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/DataCentersDataCenterGpuTypesGetResponse200.php b/src/Model/DataCentersDataCenterGpuTypesGetResponse200.php new file mode 100644 index 00000000..a5d5535b --- /dev/null +++ b/src/Model/DataCentersDataCenterGpuTypesGetResponse200.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * @var DataCentersDataCenterGpuTypesGetResponse200Pagination + */ + protected $pagination; + /** + * @var GetDataCenterGPUTypes200ResponseGPUTypes[] + */ + protected $gpuTypes; + + public function getPagination(): DataCentersDataCenterGpuTypesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(DataCentersDataCenterGpuTypesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * @return GetDataCenterGPUTypes200ResponseGPUTypes[] + */ + public function getGpuTypes(): array + { + return $this->gpuTypes; + } + + /** + * @param GetDataCenterGPUTypes200ResponseGPUTypes[] $gpuTypes + */ + public function setGpuTypes(array $gpuTypes): self + { + $this->initialized['gpuTypes'] = true; + $this->gpuTypes = $gpuTypes; + + return $this; + } +} diff --git a/src/Model/DataCentersDataCenterGpuTypesGetResponse200Pagination.php b/src/Model/DataCentersDataCenterGpuTypesGetResponse200Pagination.php new file mode 100644 index 00000000..021bff3b --- /dev/null +++ b/src/Model/DataCentersDataCenterGpuTypesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/DataCentersGetResponse200.php b/src/Model/DataCentersGetResponse200.php new file mode 100644 index 00000000..eea098a5 --- /dev/null +++ b/src/Model/DataCentersGetResponse200.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var GetDataCenters200ResponseDataCenters[] + */ + protected $dataCenters; + + /** + * @return GetDataCenters200ResponseDataCenters[] + */ + public function getDataCenters(): array + { + return $this->dataCenters; + } + + /** + * @param GetDataCenters200ResponseDataCenters[] $dataCenters + */ + public function setDataCenters(array $dataCenters): self + { + $this->initialized['dataCenters'] = true; + $this->dataCenters = $dataCenters; + + return $this; + } +} diff --git a/src/Model/DeleteDNSZonesDNSZone200ResponseDNSZone.php b/src/Model/DeleteDNSZonesDNSZone200ResponseDNSZone.php new file mode 100644 index 00000000..3b4008fb --- /dev/null +++ b/src/Model/DeleteDNSZonesDNSZone200ResponseDNSZone.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var bool + */ + protected $verified; + /** + * @var bool + */ + protected $infrastructureZone; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getVerified(): bool + { + return $this->verified; + } + + public function setVerified(bool $verified): self + { + $this->initialized['verified'] = true; + $this->verified = $verified; + + return $this; + } + + public function getInfrastructureZone(): bool + { + return $this->infrastructureZone; + } + + public function setInfrastructureZone(bool $infrastructureZone): self + { + $this->initialized['infrastructureZone'] = true; + $this->infrastructureZone = $infrastructureZone; + + return $this; + } +} diff --git a/src/Model/DeleteDiskBackupPolicy200ResponseDiskBackupPolicy.php b/src/Model/DeleteDiskBackupPolicy200ResponseDiskBackupPolicy.php new file mode 100644 index 00000000..e9a0a6b7 --- /dev/null +++ b/src/Model/DeleteDiskBackupPolicy200ResponseDiskBackupPolicy.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicy.php b/src/Model/DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicy.php new file mode 100644 index 00000000..3c3b5a45 --- /dev/null +++ b/src/Model/DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicy.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var int + */ + protected $autoMoveToTrashAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + public function getAutoMoveToTrashAt(): int + { + return $this->autoMoveToTrashAt; + } + + public function setAutoMoveToTrashAt(int $autoMoveToTrashAt): self + { + $this->initialized['autoMoveToTrashAt'] = true; + $this->autoMoveToTrashAt = $autoMoveToTrashAt; + + return $this; + } +} diff --git a/src/Model/DeleteFileStorageVolume200ResponseFileStorageVolume.php b/src/Model/DeleteFileStorageVolume200ResponseFileStorageVolume.php new file mode 100644 index 00000000..adea73a9 --- /dev/null +++ b/src/Model/DeleteFileStorageVolume200ResponseFileStorageVolume.php @@ -0,0 +1,165 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var DeleteFileStorageVolumePartDataCenter + */ + protected $dataCenter; + /** + * @var string[] + */ + protected $associations; + /** + * @var string + */ + protected $state; + /** + * The NFS location of where to mount the volume from. + * + * @var string + */ + protected $nfsLocation; + /** + * The size of the volume in bytes. + * + * @var int + */ + protected $size; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDataCenter(): DeleteFileStorageVolumePartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(DeleteFileStorageVolumePartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function getNfsLocation(): string + { + return $this->nfsLocation; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function setNfsLocation(string $nfsLocation): self + { + $this->initialized['nfsLocation'] = true; + $this->nfsLocation = $nfsLocation; + + return $this; + } + + /** + * The size of the volume in bytes. + */ + public function getSize(): int + { + return $this->size; + } + + /** + * The size of the volume in bytes. + */ + public function setSize(int $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } +} diff --git a/src/Model/DeleteFileStorageVolumePartDataCenter.php b/src/Model/DeleteFileStorageVolumePartDataCenter.php new file mode 100644 index 00000000..06f1e26f --- /dev/null +++ b/src/Model/DeleteFileStorageVolumePartDataCenter.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/DeleteLoadBalancer200ResponseLoadBalancer.php b/src/Model/DeleteLoadBalancer200ResponseLoadBalancer.php new file mode 100644 index 00000000..60680e40 --- /dev/null +++ b/src/Model/DeleteLoadBalancer200ResponseLoadBalancer.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $apiReference; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getApiReference(): string + { + return $this->apiReference; + } + + public function setApiReference(string $apiReference): self + { + $this->initialized['apiReference'] = true; + $this->apiReference = $apiReference; + + return $this; + } +} diff --git a/src/Model/DeleteLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule.php b/src/Model/DeleteLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule.php new file mode 100644 index 00000000..5cb4f356 --- /dev/null +++ b/src/Model/DeleteLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/DeleteSecurityGroup200ResponseSecurityGroup.php b/src/Model/DeleteSecurityGroup200ResponseSecurityGroup.php new file mode 100644 index 00000000..5ac63953 --- /dev/null +++ b/src/Model/DeleteSecurityGroup200ResponseSecurityGroup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/DeleteSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule.php b/src/Model/DeleteSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule.php new file mode 100644 index 00000000..742f7004 --- /dev/null +++ b/src/Model/DeleteSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachine200ResponseVirtualMachine.php b/src/Model/DeleteVirtualMachine200ResponseVirtualMachine.php new file mode 100644 index 00000000..95e95c75 --- /dev/null +++ b/src/Model/DeleteVirtualMachine200ResponseVirtualMachine.php @@ -0,0 +1,388 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $hostname; + /** + * @var string + */ + protected $fqdn; + /** + * @var string + */ + protected $description; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $initialRootPassword; + /** + * @var string + */ + protected $state; + /** + * @var DeleteVirtualMachinePartZone + */ + protected $zone; + /** + * @var DeleteVirtualMachinePartOrganization + */ + protected $organization; + /** + * @var DeleteVirtualMachinePartGroup + */ + protected $group; + /** + * @var DeleteVirtualMachinePartPackage + */ + protected $package; + /** + * @var DeleteVirtualMachinePartAttachedISO + */ + protected $attachedIso; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $cpuCores; + /** + * @var DeleteVirtualMachinePartGPUType + */ + protected $gpuType; + /** + * @var DeleteVirtualMachinePartGPUs[] + */ + protected $gpus; + /** + * @var DeleteVirtualMachinePartTags[] + */ + protected $tags; + /** + * @var string[] + */ + protected $tagNames; + /** + * @var DeleteVirtualMachinePartIPAddresses[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getInitialRootPassword(): string + { + return $this->initialRootPassword; + } + + public function setInitialRootPassword(string $initialRootPassword): self + { + $this->initialized['initialRootPassword'] = true; + $this->initialRootPassword = $initialRootPassword; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getZone(): DeleteVirtualMachinePartZone + { + return $this->zone; + } + + public function setZone(DeleteVirtualMachinePartZone $zone): self + { + $this->initialized['zone'] = true; + $this->zone = $zone; + + return $this; + } + + public function getOrganization(): DeleteVirtualMachinePartOrganization + { + return $this->organization; + } + + public function setOrganization(DeleteVirtualMachinePartOrganization $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getGroup(): DeleteVirtualMachinePartGroup + { + return $this->group; + } + + public function setGroup(DeleteVirtualMachinePartGroup $group): self + { + $this->initialized['group'] = true; + $this->group = $group; + + return $this; + } + + public function getPackage(): DeleteVirtualMachinePartPackage + { + return $this->package; + } + + public function setPackage(DeleteVirtualMachinePartPackage $package): self + { + $this->initialized['package'] = true; + $this->package = $package; + + return $this; + } + + public function getAttachedIso(): DeleteVirtualMachinePartAttachedISO + { + return $this->attachedIso; + } + + public function setAttachedIso(DeleteVirtualMachinePartAttachedISO $attachedIso): self + { + $this->initialized['attachedIso'] = true; + $this->attachedIso = $attachedIso; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getGpuType(): DeleteVirtualMachinePartGPUType + { + return $this->gpuType; + } + + public function setGpuType(DeleteVirtualMachinePartGPUType $gpuType): self + { + $this->initialized['gpuType'] = true; + $this->gpuType = $gpuType; + + return $this; + } + + /** + * @return DeleteVirtualMachinePartGPUs[] + */ + public function getGpus(): array + { + return $this->gpus; + } + + /** + * @param DeleteVirtualMachinePartGPUs[] $gpus + */ + public function setGpus(array $gpus): self + { + $this->initialized['gpus'] = true; + $this->gpus = $gpus; + + return $this; + } + + /** + * @return DeleteVirtualMachinePartTags[] + */ + public function getTags(): array + { + return $this->tags; + } + + /** + * @param DeleteVirtualMachinePartTags[] $tags + */ + public function setTags(array $tags): self + { + $this->initialized['tags'] = true; + $this->tags = $tags; + + return $this; + } + + /** + * @return string[] + */ + public function getTagNames(): array + { + return $this->tagNames; + } + + /** + * @param string[] $tagNames + */ + public function setTagNames(array $tagNames): self + { + $this->initialized['tagNames'] = true; + $this->tagNames = $tagNames; + + return $this; + } + + /** + * @return DeleteVirtualMachinePartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param DeleteVirtualMachinePartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartAttachedISO.php b/src/Model/DeleteVirtualMachinePartAttachedISO.php new file mode 100644 index 00000000..0bd8d26b --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartAttachedISO.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var DeleteVirtualMachinePartOperatingSystem + */ + protected $operatingSystem; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getOperatingSystem(): DeleteVirtualMachinePartOperatingSystem + { + return $this->operatingSystem; + } + + public function setOperatingSystem(DeleteVirtualMachinePartOperatingSystem $operatingSystem): self + { + $this->initialized['operatingSystem'] = true; + $this->operatingSystem = $operatingSystem; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartBadge.php b/src/Model/DeleteVirtualMachinePartBadge.php new file mode 100644 index 00000000..83e45d78 --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartBadge.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $url; + /** + * @var string + */ + protected $fileName; + /** + * @var string + */ + protected $fileType; + /** + * @var int + */ + protected $fileSize; + /** + * @var string + */ + protected $digest; + /** + * @var string + */ + protected $token; + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } + + public function getFileName(): string + { + return $this->fileName; + } + + public function setFileName(string $fileName): self + { + $this->initialized['fileName'] = true; + $this->fileName = $fileName; + + return $this; + } + + public function getFileType(): string + { + return $this->fileType; + } + + public function setFileType(string $fileType): self + { + $this->initialized['fileType'] = true; + $this->fileType = $fileType; + + return $this; + } + + public function getFileSize(): int + { + return $this->fileSize; + } + + public function setFileSize(int $fileSize): self + { + $this->initialized['fileSize'] = true; + $this->fileSize = $fileSize; + + return $this; + } + + public function getDigest(): string + { + return $this->digest; + } + + public function setDigest(string $digest): self + { + $this->initialized['digest'] = true; + $this->digest = $digest; + + return $this; + } + + public function getToken(): string + { + return $this->token; + } + + public function setToken(string $token): self + { + $this->initialized['token'] = true; + $this->token = $token; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartCountry.php b/src/Model/DeleteVirtualMachinePartCountry.php new file mode 100644 index 00000000..8d571770 --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartCountry.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $isoCode2; + /** + * @var string + */ + protected $isoCode3; + /** + * @var string + */ + protected $timeZone; + /** + * @var bool + */ + protected $eu; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIsoCode2(): string + { + return $this->isoCode2; + } + + public function setIsoCode2(string $isoCode2): self + { + $this->initialized['isoCode2'] = true; + $this->isoCode2 = $isoCode2; + + return $this; + } + + public function getIsoCode3(): string + { + return $this->isoCode3; + } + + public function setIsoCode3(string $isoCode3): self + { + $this->initialized['isoCode3'] = true; + $this->isoCode3 = $isoCode3; + + return $this; + } + + public function getTimeZone(): string + { + return $this->timeZone; + } + + public function setTimeZone(string $timeZone): self + { + $this->initialized['timeZone'] = true; + $this->timeZone = $timeZone; + + return $this; + } + + public function getEu(): bool + { + return $this->eu; + } + + public function setEu(bool $eu): self + { + $this->initialized['eu'] = true; + $this->eu = $eu; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartCountryState.php b/src/Model/DeleteVirtualMachinePartCountryState.php new file mode 100644 index 00000000..ce30a4dc --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartCountryState.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $code; + /** + * @var DeleteVirtualMachinePartCountry + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getCountry(): DeleteVirtualMachinePartCountry + { + return $this->country; + } + + public function setCountry(DeleteVirtualMachinePartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartCurrency.php b/src/Model/DeleteVirtualMachinePartCurrency.php new file mode 100644 index 00000000..85454f7c --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartCurrency.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $isoCode; + /** + * @var string + */ + protected $symbol; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIsoCode(): string + { + return $this->isoCode; + } + + public function setIsoCode(string $isoCode): self + { + $this->initialized['isoCode'] = true; + $this->isoCode = $isoCode; + + return $this; + } + + public function getSymbol(): string + { + return $this->symbol; + } + + public function setSymbol(string $symbol): self + { + $this->initialized['symbol'] = true; + $this->symbol = $symbol; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartDataCenter.php b/src/Model/DeleteVirtualMachinePartDataCenter.php new file mode 100644 index 00000000..c5a9cff3 --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartDataCenter.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var DeleteVirtualMachinePartCountry + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCountry(): DeleteVirtualMachinePartCountry + { + return $this->country; + } + + public function setCountry(DeleteVirtualMachinePartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartGPUType.php b/src/Model/DeleteVirtualMachinePartGPUType.php new file mode 100644 index 00000000..a0d1a9d6 --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartGPUType.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $manufacturer; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var string + */ + protected $memoryType; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getManufacturer(): string + { + return $this->manufacturer; + } + + public function setManufacturer(string $manufacturer): self + { + $this->initialized['manufacturer'] = true; + $this->manufacturer = $manufacturer; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getMemoryType(): string + { + return $this->memoryType; + } + + public function setMemoryType(string $memoryType): self + { + $this->initialized['memoryType'] = true; + $this->memoryType = $memoryType; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartGPUs.php b/src/Model/DeleteVirtualMachinePartGPUs.php new file mode 100644 index 00000000..8931cb85 --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartGPUs.php @@ -0,0 +1,125 @@ +initialized); + } + /** + * Unique ID for this GPU. Not available when status is "detached". + * + * @var string + */ + protected $id; + /** + * @var string + */ + protected $status; + /** + * @var string + */ + protected $pendingAction; + /** + * When pending action is "attach", this indicates if there is a GPU of the relevant type available. + * + * @var bool + */ + protected $available; + /** + * @var DeleteVirtualMachinePartType + */ + protected $type; + + /** + * Unique ID for this GPU. Not available when status is "detached". + */ + public function getId(): string + { + return $this->id; + } + + /** + * Unique ID for this GPU. Not available when status is "detached". + */ + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + public function getPendingAction(): string + { + return $this->pendingAction; + } + + public function setPendingAction(string $pendingAction): self + { + $this->initialized['pendingAction'] = true; + $this->pendingAction = $pendingAction; + + return $this; + } + + /** + * When pending action is "attach", this indicates if there is a GPU of the relevant type available. + */ + public function getAvailable(): bool + { + return $this->available; + } + + /** + * When pending action is "attach", this indicates if there is a GPU of the relevant type available. + */ + public function setAvailable(bool $available): self + { + $this->initialized['available'] = true; + $this->available = $available; + + return $this; + } + + public function getType(): DeleteVirtualMachinePartType + { + return $this->type; + } + + public function setType(DeleteVirtualMachinePartType $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartGroup.php b/src/Model/DeleteVirtualMachinePartGroup.php new file mode 100644 index 00000000..f04c19b8 --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartGroup.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $segregate; + /** + * @var bool + */ + protected $autoSegregate; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSegregate(): bool + { + return $this->segregate; + } + + public function setSegregate(bool $segregate): self + { + $this->initialized['segregate'] = true; + $this->segregate = $segregate; + + return $this; + } + + public function getAutoSegregate(): bool + { + return $this->autoSegregate; + } + + public function setAutoSegregate(bool $autoSegregate): self + { + $this->initialized['autoSegregate'] = true; + $this->autoSegregate = $autoSegregate; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartIPAddresses.php b/src/Model/DeleteVirtualMachinePartIPAddresses.php new file mode 100644 index 00000000..29f3225c --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartIPAddresses.php @@ -0,0 +1,177 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + /** + * @var string + */ + protected $reverseDns; + /** + * @var bool + */ + protected $vip; + /** + * @var string + */ + protected $label; + /** + * @var string + */ + protected $addressWithMask; + /** + * @var DeleteVirtualMachinePartNetwork + */ + protected $network; + /** + * @var string + */ + protected $allocationId; + /** + * @var string + */ + protected $allocationType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } + + public function getReverseDns(): string + { + return $this->reverseDns; + } + + public function setReverseDns(string $reverseDns): self + { + $this->initialized['reverseDns'] = true; + $this->reverseDns = $reverseDns; + + return $this; + } + + public function getVip(): bool + { + return $this->vip; + } + + public function setVip(bool $vip): self + { + $this->initialized['vip'] = true; + $this->vip = $vip; + + return $this; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + public function getAddressWithMask(): string + { + return $this->addressWithMask; + } + + public function setAddressWithMask(string $addressWithMask): self + { + $this->initialized['addressWithMask'] = true; + $this->addressWithMask = $addressWithMask; + + return $this; + } + + public function getNetwork(): DeleteVirtualMachinePartNetwork + { + return $this->network; + } + + public function setNetwork(DeleteVirtualMachinePartNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getAllocationId(): string + { + return $this->allocationId; + } + + public function setAllocationId(string $allocationId): self + { + $this->initialized['allocationId'] = true; + $this->allocationId = $allocationId; + + return $this; + } + + public function getAllocationType(): string + { + return $this->allocationType; + } + + public function setAllocationType(string $allocationType): self + { + $this->initialized['allocationType'] = true; + $this->allocationType = $allocationType; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartIcon.php b/src/Model/DeleteVirtualMachinePartIcon.php new file mode 100644 index 00000000..c60fdda0 --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartIcon.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $url; + /** + * @var string + */ + protected $fileName; + /** + * @var string + */ + protected $fileType; + /** + * @var int + */ + protected $fileSize; + /** + * @var string + */ + protected $digest; + /** + * @var string + */ + protected $token; + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } + + public function getFileName(): string + { + return $this->fileName; + } + + public function setFileName(string $fileName): self + { + $this->initialized['fileName'] = true; + $this->fileName = $fileName; + + return $this; + } + + public function getFileType(): string + { + return $this->fileType; + } + + public function setFileType(string $fileType): self + { + $this->initialized['fileType'] = true; + $this->fileType = $fileType; + + return $this; + } + + public function getFileSize(): int + { + return $this->fileSize; + } + + public function setFileSize(int $fileSize): self + { + $this->initialized['fileSize'] = true; + $this->fileSize = $fileSize; + + return $this; + } + + public function getDigest(): string + { + return $this->digest; + } + + public function setDigest(string $digest): self + { + $this->initialized['digest'] = true; + $this->digest = $digest; + + return $this; + } + + public function getToken(): string + { + return $this->token; + } + + public function setToken(string $token): self + { + $this->initialized['token'] = true; + $this->token = $token; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartNetwork.php b/src/Model/DeleteVirtualMachinePartNetwork.php new file mode 100644 index 00000000..c6967bc6 --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartNetwork.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var DeleteVirtualMachinePartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): DeleteVirtualMachinePartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(DeleteVirtualMachinePartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartOperatingSystem.php b/src/Model/DeleteVirtualMachinePartOperatingSystem.php new file mode 100644 index 00000000..e030fd38 --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartOperatingSystem.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var DeleteVirtualMachinePartBadge + */ + protected $badge; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getBadge(): DeleteVirtualMachinePartBadge + { + return $this->badge; + } + + public function setBadge(DeleteVirtualMachinePartBadge $badge): self + { + $this->initialized['badge'] = true; + $this->badge = $badge; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartOrganization.php b/src/Model/DeleteVirtualMachinePartOrganization.php new file mode 100644 index 00000000..4e414c05 --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartOrganization.php @@ -0,0 +1,330 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $subDomain; + /** + * @var string + */ + protected $infrastructureDomain; + /** + * @var int + */ + protected $createdAt; + /** + * @var bool + */ + protected $suspended; + /** + * @var bool + */ + protected $managed; + /** + * @var string + */ + protected $billingName; + /** + * @var string + */ + protected $address1; + /** + * @var string + */ + protected $address2; + /** + * @var string + */ + protected $address3; + /** + * @var string + */ + protected $address4; + /** + * @var string + */ + protected $postcode; + /** + * @var string + */ + protected $vatNumber; + /** + * @var string + */ + protected $phoneNumber; + /** + * @var DeleteVirtualMachinePartCurrency + */ + protected $currency; + /** + * @var DeleteVirtualMachinePartCountry + */ + protected $country; + /** + * @var DeleteVirtualMachinePartCountryState + */ + protected $countryState; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSubDomain(): string + { + return $this->subDomain; + } + + public function setSubDomain(string $subDomain): self + { + $this->initialized['subDomain'] = true; + $this->subDomain = $subDomain; + + return $this; + } + + public function getInfrastructureDomain(): string + { + return $this->infrastructureDomain; + } + + public function setInfrastructureDomain(string $infrastructureDomain): self + { + $this->initialized['infrastructureDomain'] = true; + $this->infrastructureDomain = $infrastructureDomain; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getSuspended(): bool + { + return $this->suspended; + } + + public function setSuspended(bool $suspended): self + { + $this->initialized['suspended'] = true; + $this->suspended = $suspended; + + return $this; + } + + public function getManaged(): bool + { + return $this->managed; + } + + public function setManaged(bool $managed): self + { + $this->initialized['managed'] = true; + $this->managed = $managed; + + return $this; + } + + public function getBillingName(): string + { + return $this->billingName; + } + + public function setBillingName(string $billingName): self + { + $this->initialized['billingName'] = true; + $this->billingName = $billingName; + + return $this; + } + + public function getAddress1(): string + { + return $this->address1; + } + + public function setAddress1(string $address1): self + { + $this->initialized['address1'] = true; + $this->address1 = $address1; + + return $this; + } + + public function getAddress2(): string + { + return $this->address2; + } + + public function setAddress2(string $address2): self + { + $this->initialized['address2'] = true; + $this->address2 = $address2; + + return $this; + } + + public function getAddress3(): string + { + return $this->address3; + } + + public function setAddress3(string $address3): self + { + $this->initialized['address3'] = true; + $this->address3 = $address3; + + return $this; + } + + public function getAddress4(): string + { + return $this->address4; + } + + public function setAddress4(string $address4): self + { + $this->initialized['address4'] = true; + $this->address4 = $address4; + + return $this; + } + + public function getPostcode(): string + { + return $this->postcode; + } + + public function setPostcode(string $postcode): self + { + $this->initialized['postcode'] = true; + $this->postcode = $postcode; + + return $this; + } + + public function getVatNumber(): string + { + return $this->vatNumber; + } + + public function setVatNumber(string $vatNumber): self + { + $this->initialized['vatNumber'] = true; + $this->vatNumber = $vatNumber; + + return $this; + } + + public function getPhoneNumber(): string + { + return $this->phoneNumber; + } + + public function setPhoneNumber(string $phoneNumber): self + { + $this->initialized['phoneNumber'] = true; + $this->phoneNumber = $phoneNumber; + + return $this; + } + + public function getCurrency(): DeleteVirtualMachinePartCurrency + { + return $this->currency; + } + + public function setCurrency(DeleteVirtualMachinePartCurrency $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } + + public function getCountry(): DeleteVirtualMachinePartCountry + { + return $this->country; + } + + public function setCountry(DeleteVirtualMachinePartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } + + public function getCountryState(): DeleteVirtualMachinePartCountryState + { + return $this->countryState; + } + + public function setCountryState(DeleteVirtualMachinePartCountryState $countryState): self + { + $this->initialized['countryState'] = true; + $this->countryState = $countryState; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartPackage.php b/src/Model/DeleteVirtualMachinePartPackage.php new file mode 100644 index 00000000..63556e5a --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartPackage.php @@ -0,0 +1,194 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var int + */ + protected $cpuCores; + /** + * @var int + */ + protected $ipv4Addresses; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $storageInGb; + /** + * @var int + */ + protected $monthlyBandwidthAllowanceInGb; + /** + * @var string + */ + protected $privacy; + /** + * @var DeleteVirtualMachinePartIcon + */ + protected $icon; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getIpv4Addresses(): int + { + return $this->ipv4Addresses; + } + + public function setIpv4Addresses(int $ipv4Addresses): self + { + $this->initialized['ipv4Addresses'] = true; + $this->ipv4Addresses = $ipv4Addresses; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getStorageInGb(): int + { + return $this->storageInGb; + } + + public function setStorageInGb(int $storageInGb): self + { + $this->initialized['storageInGb'] = true; + $this->storageInGb = $storageInGb; + + return $this; + } + + public function getMonthlyBandwidthAllowanceInGb(): int + { + return $this->monthlyBandwidthAllowanceInGb; + } + + public function setMonthlyBandwidthAllowanceInGb(int $monthlyBandwidthAllowanceInGb): self + { + $this->initialized['monthlyBandwidthAllowanceInGb'] = true; + $this->monthlyBandwidthAllowanceInGb = $monthlyBandwidthAllowanceInGb; + + return $this; + } + + public function getPrivacy(): string + { + return $this->privacy; + } + + public function setPrivacy(string $privacy): self + { + $this->initialized['privacy'] = true; + $this->privacy = $privacy; + + return $this; + } + + public function getIcon(): DeleteVirtualMachinePartIcon + { + return $this->icon; + } + + public function setIcon(DeleteVirtualMachinePartIcon $icon): self + { + $this->initialized['icon'] = true; + $this->icon = $icon; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartTags.php b/src/Model/DeleteVirtualMachinePartTags.php new file mode 100644 index 00000000..8add57cc --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartTags.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $color; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getColor(): string + { + return $this->color; + } + + public function setColor(string $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartType.php b/src/Model/DeleteVirtualMachinePartType.php new file mode 100644 index 00000000..eb809b2a --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartType.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $manufacturer; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var string + */ + protected $memoryType; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getManufacturer(): string + { + return $this->manufacturer; + } + + public function setManufacturer(string $manufacturer): self + { + $this->initialized['manufacturer'] = true; + $this->manufacturer = $manufacturer; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getMemoryType(): string + { + return $this->memoryType; + } + + public function setMemoryType(string $memoryType): self + { + $this->initialized['memoryType'] = true; + $this->memoryType = $memoryType; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/DeleteVirtualMachinePartZone.php b/src/Model/DeleteVirtualMachinePartZone.php new file mode 100644 index 00000000..35c98edf --- /dev/null +++ b/src/Model/DeleteVirtualMachinePartZone.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var DeleteVirtualMachinePartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): DeleteVirtualMachinePartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(DeleteVirtualMachinePartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/DeletionRestricted.php b/src/Model/DeletionRestricted.php new file mode 100644 index 00000000..48c7731e --- /dev/null +++ b/src/Model/DeletionRestricted.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var string[] + */ + protected $errors; + + /** + * @return string[] + */ + public function getErrors(): array + { + return $this->errors; + } + + /** + * @param string[] $errors + */ + public function setErrors(array $errors): self + { + $this->initialized['errors'] = true; + $this->errors = $errors; + + return $this; + } +} diff --git a/src/Model/Disk.php b/src/Model/Disk.php new file mode 100644 index 00000000..2d414124 --- /dev/null +++ b/src/Model/Disk.php @@ -0,0 +1,194 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $sizeInGb; + /** + * @var string + */ + protected $wwn; + /** + * @var string + */ + protected $state; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $storageSpeed; + /** + * @var DiskIOProfile + */ + protected $ioProfile; + /** + * @var VirtualMachineDisk + */ + protected $virtualMachineDisk; + /** + * @var DiskInstallation + */ + protected $installation; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSizeInGb(): int + { + return $this->sizeInGb; + } + + public function setSizeInGb(int $sizeInGb): self + { + $this->initialized['sizeInGb'] = true; + $this->sizeInGb = $sizeInGb; + + return $this; + } + + public function getWwn(): string + { + return $this->wwn; + } + + public function setWwn(string $wwn): self + { + $this->initialized['wwn'] = true; + $this->wwn = $wwn; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getStorageSpeed(): string + { + return $this->storageSpeed; + } + + public function setStorageSpeed(string $storageSpeed): self + { + $this->initialized['storageSpeed'] = true; + $this->storageSpeed = $storageSpeed; + + return $this; + } + + public function getIoProfile(): DiskIOProfile + { + return $this->ioProfile; + } + + public function setIoProfile(DiskIOProfile $ioProfile): self + { + $this->initialized['ioProfile'] = true; + $this->ioProfile = $ioProfile; + + return $this; + } + + public function getVirtualMachineDisk(): VirtualMachineDisk + { + return $this->virtualMachineDisk; + } + + public function setVirtualMachineDisk(VirtualMachineDisk $virtualMachineDisk): self + { + $this->initialized['virtualMachineDisk'] = true; + $this->virtualMachineDisk = $virtualMachineDisk; + + return $this; + } + + public function getInstallation(): DiskInstallation + { + return $this->installation; + } + + public function setInstallation(DiskInstallation $installation): self + { + $this->initialized['installation'] = true; + $this->installation = $installation; + + return $this; + } +} diff --git a/src/Model/DiskBackupPoliciesDiskBackupPolicyDeleteBody.php b/src/Model/DiskBackupPoliciesDiskBackupPolicyDeleteBody.php new file mode 100644 index 00000000..657a66ee --- /dev/null +++ b/src/Model/DiskBackupPoliciesDiskBackupPolicyDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. + * + * @var DiskBackupPolicyLookup + */ + protected $diskBackupPolicy; + + /** + * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. + */ + public function getDiskBackupPolicy(): DiskBackupPolicyLookup + { + return $this->diskBackupPolicy; + } + + /** + * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. + */ + public function setDiskBackupPolicy(DiskBackupPolicyLookup $diskBackupPolicy): self + { + $this->initialized['diskBackupPolicy'] = true; + $this->diskBackupPolicy = $diskBackupPolicy; + + return $this; + } +} diff --git a/src/Model/DiskBackupPoliciesDiskBackupPolicyDeleteResponse200.php b/src/Model/DiskBackupPoliciesDiskBackupPolicyDeleteResponse200.php new file mode 100644 index 00000000..0b0c5331 --- /dev/null +++ b/src/Model/DiskBackupPoliciesDiskBackupPolicyDeleteResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The disk backup policy that has been destroyed. + * + * @var DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicy + */ + protected $diskBackupPolicy; + + /** + * The disk backup policy that has been destroyed. + */ + public function getDiskBackupPolicy(): DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicy + { + return $this->diskBackupPolicy; + } + + /** + * The disk backup policy that has been destroyed. + */ + public function setDiskBackupPolicy(DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicy $diskBackupPolicy): self + { + $this->initialized['diskBackupPolicy'] = true; + $this->diskBackupPolicy = $diskBackupPolicy; + + return $this; + } +} diff --git a/src/Model/DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicy.php b/src/Model/DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicy.php new file mode 100644 index 00000000..3af6ac00 --- /dev/null +++ b/src/Model/DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicy.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/DiskBackupPoliciesDiskBackupPolicyGetResponse200.php b/src/Model/DiskBackupPoliciesDiskBackupPolicyGetResponse200.php new file mode 100644 index 00000000..3faf1930 --- /dev/null +++ b/src/Model/DiskBackupPoliciesDiskBackupPolicyGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The located disk backup policy. + * + * @var DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicy + */ + protected $diskBackupPolicy; + + /** + * The located disk backup policy. + */ + public function getDiskBackupPolicy(): DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicy + { + return $this->diskBackupPolicy; + } + + /** + * The located disk backup policy. + */ + public function setDiskBackupPolicy(DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicy $diskBackupPolicy): self + { + $this->initialized['diskBackupPolicy'] = true; + $this->diskBackupPolicy = $diskBackupPolicy; + + return $this; + } +} diff --git a/src/Model/DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicy.php b/src/Model/DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicy.php new file mode 100644 index 00000000..d966d2a4 --- /dev/null +++ b/src/Model/DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicy.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $retention; + /** + * @var float + */ + protected $totalSize; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var GetDiskBackupPolicyPartSchedule + */ + protected $schedule; + /** + * @var int + */ + protected $autoMoveToTrashAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getRetention(): int + { + return $this->retention; + } + + public function setRetention(int $retention): self + { + $this->initialized['retention'] = true; + $this->retention = $retention; + + return $this; + } + + public function getTotalSize(): float + { + return $this->totalSize; + } + + public function setTotalSize(float $totalSize): self + { + $this->initialized['totalSize'] = true; + $this->totalSize = $totalSize; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + public function getSchedule(): GetDiskBackupPolicyPartSchedule + { + return $this->schedule; + } + + public function setSchedule(GetDiskBackupPolicyPartSchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } + + public function getAutoMoveToTrashAt(): int + { + return $this->autoMoveToTrashAt; + } + + public function setAutoMoveToTrashAt(int $autoMoveToTrashAt): self + { + $this->initialized['autoMoveToTrashAt'] = true; + $this->autoMoveToTrashAt = $autoMoveToTrashAt; + + return $this; + } +} diff --git a/src/Model/DiskBackupPoliciesDiskBackupPolicyPatchBody.php b/src/Model/DiskBackupPoliciesDiskBackupPolicyPatchBody.php new file mode 100644 index 00000000..0a0f7680 --- /dev/null +++ b/src/Model/DiskBackupPoliciesDiskBackupPolicyPatchBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. + * + * @var DiskBackupPolicyLookup + */ + protected $diskBackupPolicy; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var DiskBackupPolicyArguments + */ + protected $properties; + + /** + * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. + */ + public function getDiskBackupPolicy(): DiskBackupPolicyLookup + { + return $this->diskBackupPolicy; + } + + /** + * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. + */ + public function setDiskBackupPolicy(DiskBackupPolicyLookup $diskBackupPolicy): self + { + $this->initialized['diskBackupPolicy'] = true; + $this->diskBackupPolicy = $diskBackupPolicy; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): DiskBackupPolicyArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(DiskBackupPolicyArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/DiskBackupPoliciesDiskBackupPolicyPatchResponse200.php b/src/Model/DiskBackupPoliciesDiskBackupPolicyPatchResponse200.php new file mode 100644 index 00000000..6097deb2 --- /dev/null +++ b/src/Model/DiskBackupPoliciesDiskBackupPolicyPatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The disk backup policy that has been updated. + * + * @var DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicy + */ + protected $diskBackupPolicy; + + /** + * The disk backup policy that has been updated. + */ + public function getDiskBackupPolicy(): DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicy + { + return $this->diskBackupPolicy; + } + + /** + * The disk backup policy that has been updated. + */ + public function setDiskBackupPolicy(DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicy $diskBackupPolicy): self + { + $this->initialized['diskBackupPolicy'] = true; + $this->diskBackupPolicy = $diskBackupPolicy; + + return $this; + } +} diff --git a/src/Model/DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicy.php b/src/Model/DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicy.php new file mode 100644 index 00000000..d6936ee4 --- /dev/null +++ b/src/Model/DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicy.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $retention; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var array + */ + protected $schedule; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getRetention(): int + { + return $this->retention; + } + + public function setRetention(int $retention): self + { + $this->initialized['retention'] = true; + $this->retention = $retention; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + /** + * @return array + */ + public function getSchedule(): iterable + { + return $this->schedule; + } + + /** + * @param array $schedule + */ + public function setSchedule(iterable $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } +} diff --git a/src/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBody.php b/src/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBody.php new file mode 100644 index 00000000..82312170 --- /dev/null +++ b/src/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. + * + * @var DiskBackupPolicyLookup + */ + protected $diskBackupPolicy; + /** + * The time the disk backup policy will be moved to the trash automatically. + * + * @var int + */ + protected $timestamp; + + /** + * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. + */ + public function getDiskBackupPolicy(): DiskBackupPolicyLookup + { + return $this->diskBackupPolicy; + } + + /** + * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. + */ + public function setDiskBackupPolicy(DiskBackupPolicyLookup $diskBackupPolicy): self + { + $this->initialized['diskBackupPolicy'] = true; + $this->diskBackupPolicy = $diskBackupPolicy; + + return $this; + } + + /** + * The time the disk backup policy will be moved to the trash automatically. + */ + public function getTimestamp(): int + { + return $this->timestamp; + } + + /** + * The time the disk backup policy will be moved to the trash automatically. + */ + public function setTimestamp(int $timestamp): self + { + $this->initialized['timestamp'] = true; + $this->timestamp = $timestamp; + + return $this; + } +} diff --git a/src/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200.php b/src/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200.php new file mode 100644 index 00000000..28d31537 --- /dev/null +++ b/src/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The disk backup policy that has been scheduled for deletion. + * + * @var DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicy + */ + protected $diskBackupPolicy; + + /** + * The disk backup policy that has been scheduled for deletion. + */ + public function getDiskBackupPolicy(): DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicy + { + return $this->diskBackupPolicy; + } + + /** + * The disk backup policy that has been scheduled for deletion. + */ + public function setDiskBackupPolicy(DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicy $diskBackupPolicy): self + { + $this->initialized['diskBackupPolicy'] = true; + $this->diskBackupPolicy = $diskBackupPolicy; + + return $this; + } +} diff --git a/src/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicy.php b/src/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicy.php new file mode 100644 index 00000000..7e788390 --- /dev/null +++ b/src/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicy.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var int + */ + protected $autoMoveToTrashAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + public function getAutoMoveToTrashAt(): int + { + return $this->autoMoveToTrashAt; + } + + public function setAutoMoveToTrashAt(int $autoMoveToTrashAt): self + { + $this->initialized['autoMoveToTrashAt'] = true; + $this->autoMoveToTrashAt = $autoMoveToTrashAt; + + return $this; + } +} diff --git a/src/Model/DiskBackupPolicyArguments.php b/src/Model/DiskBackupPolicyArguments.php new file mode 100644 index 00000000..c01ebb63 --- /dev/null +++ b/src/Model/DiskBackupPolicyArguments.php @@ -0,0 +1,66 @@ +initialized); + } + /** + * @var int + */ + protected $retention; + /** + * All 'schedule[]' params are mutually exclusive, only one can be provided. + * + * @var ScheduleArguments + */ + protected $schedule; + + public function getRetention(): int + { + return $this->retention; + } + + public function setRetention(int $retention): self + { + $this->initialized['retention'] = true; + $this->retention = $retention; + + return $this; + } + + /** + * All 'schedule[]' params are mutually exclusive, only one can be provided. + */ + public function getSchedule(): ScheduleArguments + { + return $this->schedule; + } + + /** + * All 'schedule[]' params are mutually exclusive, only one can be provided. + */ + public function setSchedule(ScheduleArguments $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } +} diff --git a/src/Model/DiskBackupPolicyLookup.php b/src/Model/DiskBackupPolicyLookup.php new file mode 100644 index 00000000..4e9f167c --- /dev/null +++ b/src/Model/DiskBackupPolicyLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/DiskBackupPolicyTarget.php b/src/Model/DiskBackupPolicyTarget.php new file mode 100644 index 00000000..30ed224e --- /dev/null +++ b/src/Model/DiskBackupPolicyTarget.php @@ -0,0 +1,39 @@ +initialized); + } + + protected $target; + + public function getTarget() + { + return $this->target; + } + + public function setTarget($target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } +} diff --git a/src/Model/DiskIOProfile.php b/src/Model/DiskIOProfile.php new file mode 100644 index 00000000..2d7e39ce --- /dev/null +++ b/src/Model/DiskIOProfile.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var int + */ + protected $speedInMb; + /** + * @var int + */ + protected $iops; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getSpeedInMb(): int + { + return $this->speedInMb; + } + + public function setSpeedInMb(int $speedInMb): self + { + $this->initialized['speedInMb'] = true; + $this->speedInMb = $speedInMb; + + return $this; + } + + public function getIops(): int + { + return $this->iops; + } + + public function setIops(int $iops): self + { + $this->initialized['iops'] = true; + $this->iops = $iops; + + return $this; + } +} diff --git a/src/Model/DiskInstallation.php b/src/Model/DiskInstallation.php new file mode 100644 index 00000000..3c6140e6 --- /dev/null +++ b/src/Model/DiskInstallation.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var DiskTemplateVersion + */ + protected $diskTemplateVersion; + /** + * @var DiskInstallationAttribute[] + */ + protected $attributes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getDiskTemplateVersion(): DiskTemplateVersion + { + return $this->diskTemplateVersion; + } + + public function setDiskTemplateVersion(DiskTemplateVersion $diskTemplateVersion): self + { + $this->initialized['diskTemplateVersion'] = true; + $this->diskTemplateVersion = $diskTemplateVersion; + + return $this; + } + + /** + * @return DiskInstallationAttribute[] + */ + public function getAttributes(): array + { + return $this->attributes; + } + + /** + * @param DiskInstallationAttribute[] $attributes + */ + public function setAttributes(array $attributes): self + { + $this->initialized['attributes'] = true; + $this->attributes = $attributes; + + return $this; + } +} diff --git a/src/Model/DiskInstallationAttribute.php b/src/Model/DiskInstallationAttribute.php new file mode 100644 index 00000000..3e224949 --- /dev/null +++ b/src/Model/DiskInstallationAttribute.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $key; + /** + * @var string + */ + protected $label; + /** + * @var string + */ + protected $value; + /** + * @var string + */ + protected $description; + /** + * @var bool + */ + protected $protect; + + public function getKey(): string + { + return $this->key; + } + + public function setKey(string $key): self + { + $this->initialized['key'] = true; + $this->key = $key; + + return $this; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + public function getValue(): string + { + return $this->value; + } + + public function setValue(string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getProtect(): bool + { + return $this->protect; + } + + public function setProtect(bool $protect): self + { + $this->initialized['protect'] = true; + $this->protect = $protect; + + return $this; + } +} diff --git a/src/Model/DiskLookup.php b/src/Model/DiskLookup.php new file mode 100644 index 00000000..55aabd27 --- /dev/null +++ b/src/Model/DiskLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/DiskTemplate.php b/src/Model/DiskTemplate.php new file mode 100644 index 00000000..d4d661c6 --- /dev/null +++ b/src/Model/DiskTemplate.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $description; + /** + * @var string + */ + protected $permalink; + /** + * @var bool + */ + protected $universal; + /** + * @var DiskTemplateVersion + */ + protected $latestVersion; + /** + * @var OperatingSystem + */ + protected $operatingSystem; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getUniversal(): bool + { + return $this->universal; + } + + public function setUniversal(bool $universal): self + { + $this->initialized['universal'] = true; + $this->universal = $universal; + + return $this; + } + + public function getLatestVersion(): DiskTemplateVersion + { + return $this->latestVersion; + } + + public function setLatestVersion(DiskTemplateVersion $latestVersion): self + { + $this->initialized['latestVersion'] = true; + $this->latestVersion = $latestVersion; + + return $this; + } + + public function getOperatingSystem(): OperatingSystem + { + return $this->operatingSystem; + } + + public function setOperatingSystem(OperatingSystem $operatingSystem): self + { + $this->initialized['operatingSystem'] = true; + $this->operatingSystem = $operatingSystem; + + return $this; + } +} diff --git a/src/Model/DiskTemplateLookup.php b/src/Model/DiskTemplateLookup.php new file mode 100644 index 00000000..2ebcf078 --- /dev/null +++ b/src/Model/DiskTemplateLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/DiskTemplateNotFoundSchema.php b/src/Model/DiskTemplateNotFoundSchema.php new file mode 100644 index 00000000..b5c92e69 --- /dev/null +++ b/src/Model/DiskTemplateNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/DiskTemplateVersion.php b/src/Model/DiskTemplateVersion.php new file mode 100644 index 00000000..213b2675 --- /dev/null +++ b/src/Model/DiskTemplateVersion.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $number; + /** + * @var bool + */ + protected $stable; + /** + * @var int + */ + protected $sizeInGb; + /** + * @var DiskTemplate + */ + protected $diskTemplate; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getNumber(): int + { + return $this->number; + } + + public function setNumber(int $number): self + { + $this->initialized['number'] = true; + $this->number = $number; + + return $this; + } + + public function getStable(): bool + { + return $this->stable; + } + + public function setStable(bool $stable): self + { + $this->initialized['stable'] = true; + $this->stable = $stable; + + return $this; + } + + public function getSizeInGb(): int + { + return $this->sizeInGb; + } + + public function setSizeInGb(int $sizeInGb): self + { + $this->initialized['sizeInGb'] = true; + $this->sizeInGb = $sizeInGb; + + return $this; + } + + public function getDiskTemplate(): DiskTemplate + { + return $this->diskTemplate; + } + + public function setDiskTemplate(DiskTemplate $diskTemplate): self + { + $this->initialized['diskTemplate'] = true; + $this->diskTemplate = $diskTemplate; + + return $this; + } +} diff --git a/src/Model/DiskTemplateVersionsDiskTemplateVersionGetResponse200.php b/src/Model/DiskTemplateVersionsDiskTemplateVersionGetResponse200.php new file mode 100644 index 00000000..74c824c0 --- /dev/null +++ b/src/Model/DiskTemplateVersionsDiskTemplateVersionGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The disk template version details. + * + * @var DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersion + */ + protected $diskTemplateVersion; + + /** + * The disk template version details. + */ + public function getDiskTemplateVersion(): DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersion + { + return $this->diskTemplateVersion; + } + + /** + * The disk template version details. + */ + public function setDiskTemplateVersion(DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersion $diskTemplateVersion): self + { + $this->initialized['diskTemplateVersion'] = true; + $this->diskTemplateVersion = $diskTemplateVersion; + + return $this; + } +} diff --git a/src/Model/DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersion.php b/src/Model/DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersion.php new file mode 100644 index 00000000..efdec509 --- /dev/null +++ b/src/Model/DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersion.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $number; + /** + * @var bool + */ + protected $stable; + /** + * @var int + */ + protected $sizeInGb; + /** + * @var GetDiskTemplateVersionPartDiskTemplate + */ + protected $diskTemplate; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getNumber(): int + { + return $this->number; + } + + public function setNumber(int $number): self + { + $this->initialized['number'] = true; + $this->number = $number; + + return $this; + } + + public function getStable(): bool + { + return $this->stable; + } + + public function setStable(bool $stable): self + { + $this->initialized['stable'] = true; + $this->stable = $stable; + + return $this; + } + + public function getSizeInGb(): int + { + return $this->sizeInGb; + } + + public function setSizeInGb(int $sizeInGb): self + { + $this->initialized['sizeInGb'] = true; + $this->sizeInGb = $sizeInGb; + + return $this; + } + + public function getDiskTemplate(): GetDiskTemplateVersionPartDiskTemplate + { + return $this->diskTemplate; + } + + public function setDiskTemplate(GetDiskTemplateVersionPartDiskTemplate $diskTemplate): self + { + $this->initialized['diskTemplate'] = true; + $this->diskTemplate = $diskTemplate; + + return $this; + } +} diff --git a/src/Model/DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200.php b/src/Model/DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200.php new file mode 100644 index 00000000..c87888df --- /dev/null +++ b/src/Model/DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * The disk template version details. + * + * @var DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersion + */ + protected $diskTemplateVersion; + + protected $spec; + + /** + * The disk template version details. + */ + public function getDiskTemplateVersion(): DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersion + { + return $this->diskTemplateVersion; + } + + /** + * The disk template version details. + */ + public function setDiskTemplateVersion(DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersion $diskTemplateVersion): self + { + $this->initialized['diskTemplateVersion'] = true; + $this->diskTemplateVersion = $diskTemplateVersion; + + return $this; + } + + public function getSpec() + { + return $this->spec; + } + + public function setSpec($spec): self + { + $this->initialized['spec'] = true; + $this->spec = $spec; + + return $this; + } +} diff --git a/src/Model/DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersion.php b/src/Model/DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersion.php new file mode 100644 index 00000000..cdd82c87 --- /dev/null +++ b/src/Model/DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersion.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $number; + /** + * @var bool + */ + protected $stable; + /** + * @var int + */ + protected $sizeInGb; + /** + * @var GetDiskTemplateVersionSpecPartDiskTemplate + */ + protected $diskTemplate; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getNumber(): int + { + return $this->number; + } + + public function setNumber(int $number): self + { + $this->initialized['number'] = true; + $this->number = $number; + + return $this; + } + + public function getStable(): bool + { + return $this->stable; + } + + public function setStable(bool $stable): self + { + $this->initialized['stable'] = true; + $this->stable = $stable; + + return $this; + } + + public function getSizeInGb(): int + { + return $this->sizeInGb; + } + + public function setSizeInGb(int $sizeInGb): self + { + $this->initialized['sizeInGb'] = true; + $this->sizeInGb = $sizeInGb; + + return $this; + } + + public function getDiskTemplate(): GetDiskTemplateVersionSpecPartDiskTemplate + { + return $this->diskTemplate; + } + + public function setDiskTemplate(GetDiskTemplateVersionSpecPartDiskTemplate $diskTemplate): self + { + $this->initialized['diskTemplate'] = true; + $this->diskTemplate = $diskTemplate; + + return $this; + } +} diff --git a/src/Model/DiskTemplatesDiskTemplateGetResponse200.php b/src/Model/DiskTemplatesDiskTemplateGetResponse200.php new file mode 100644 index 00000000..25c250eb --- /dev/null +++ b/src/Model/DiskTemplatesDiskTemplateGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The disk template details. + * + * @var DiskTemplatesDiskTemplateGetResponse200DiskTemplate + */ + protected $diskTemplate; + + /** + * The disk template details. + */ + public function getDiskTemplate(): DiskTemplatesDiskTemplateGetResponse200DiskTemplate + { + return $this->diskTemplate; + } + + /** + * The disk template details. + */ + public function setDiskTemplate(DiskTemplatesDiskTemplateGetResponse200DiskTemplate $diskTemplate): self + { + $this->initialized['diskTemplate'] = true; + $this->diskTemplate = $diskTemplate; + + return $this; + } +} diff --git a/src/Model/DiskTemplatesDiskTemplateGetResponse200DiskTemplate.php b/src/Model/DiskTemplatesDiskTemplateGetResponse200DiskTemplate.php new file mode 100644 index 00000000..202fba5b --- /dev/null +++ b/src/Model/DiskTemplatesDiskTemplateGetResponse200DiskTemplate.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $description; + /** + * @var string + */ + protected $permalink; + /** + * @var bool + */ + protected $universal; + /** + * @var GetDiskTemplatePartLatestVersion + */ + protected $latestVersion; + /** + * @var GetDiskTemplatePartOperatingSystem + */ + protected $operatingSystem; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getUniversal(): bool + { + return $this->universal; + } + + public function setUniversal(bool $universal): self + { + $this->initialized['universal'] = true; + $this->universal = $universal; + + return $this; + } + + public function getLatestVersion(): GetDiskTemplatePartLatestVersion + { + return $this->latestVersion; + } + + public function setLatestVersion(GetDiskTemplatePartLatestVersion $latestVersion): self + { + $this->initialized['latestVersion'] = true; + $this->latestVersion = $latestVersion; + + return $this; + } + + public function getOperatingSystem(): GetDiskTemplatePartOperatingSystem + { + return $this->operatingSystem; + } + + public function setOperatingSystem(GetDiskTemplatePartOperatingSystem $operatingSystem): self + { + $this->initialized['operatingSystem'] = true; + $this->operatingSystem = $operatingSystem; + + return $this; + } +} diff --git a/src/Model/DiskTemplatesDiskTemplateVersionsGetResponse200.php b/src/Model/DiskTemplatesDiskTemplateVersionsGetResponse200.php new file mode 100644 index 00000000..ef9d6d2d --- /dev/null +++ b/src/Model/DiskTemplatesDiskTemplateVersionsGetResponse200.php @@ -0,0 +1,87 @@ +initialized); + } + /** + * @var DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplate + */ + protected $diskTemplate; + /** + * @var DiskTemplatesDiskTemplateVersionsGetResponse200Pagination + */ + protected $pagination; + /** + * The disk template versions for the provided template. + * + * @var GetDiskTemplateVersions200ResponseDiskTemplateVersions[] + */ + protected $diskTemplateVersions; + + public function getDiskTemplate(): DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplate + { + return $this->diskTemplate; + } + + public function setDiskTemplate(DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplate $diskTemplate): self + { + $this->initialized['diskTemplate'] = true; + $this->diskTemplate = $diskTemplate; + + return $this; + } + + public function getPagination(): DiskTemplatesDiskTemplateVersionsGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(DiskTemplatesDiskTemplateVersionsGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The disk template versions for the provided template. + * + * @return GetDiskTemplateVersions200ResponseDiskTemplateVersions[] + */ + public function getDiskTemplateVersions(): array + { + return $this->diskTemplateVersions; + } + + /** + * The disk template versions for the provided template. + * + * @param GetDiskTemplateVersions200ResponseDiskTemplateVersions[] $diskTemplateVersions + */ + public function setDiskTemplateVersions(array $diskTemplateVersions): self + { + $this->initialized['diskTemplateVersions'] = true; + $this->diskTemplateVersions = $diskTemplateVersions; + + return $this; + } +} diff --git a/src/Model/DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplate.php b/src/Model/DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplate.php new file mode 100644 index 00000000..ca27df8f --- /dev/null +++ b/src/Model/DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplate.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/DiskTemplatesDiskTemplateVersionsGetResponse200Pagination.php b/src/Model/DiskTemplatesDiskTemplateVersionsGetResponse200Pagination.php new file mode 100644 index 00000000..f9d77151 --- /dev/null +++ b/src/Model/DiskTemplatesDiskTemplateVersionsGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/DisksDiskDiskBackupPoliciesGetResponse200.php b/src/Model/DisksDiskDiskBackupPoliciesGetResponse200.php new file mode 100644 index 00000000..664cf15c --- /dev/null +++ b/src/Model/DisksDiskDiskBackupPoliciesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var DisksDiskDiskBackupPoliciesGetResponse200Pagination + */ + protected $pagination; + /** + * The disk backup policies for the provided disk. + * + * @var GetDiskDiskBackupPolicies200ResponseDiskBackupPolicies[] + */ + protected $diskBackupPolicies; + + public function getPagination(): DisksDiskDiskBackupPoliciesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(DisksDiskDiskBackupPoliciesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The disk backup policies for the provided disk. + * + * @return GetDiskDiskBackupPolicies200ResponseDiskBackupPolicies[] + */ + public function getDiskBackupPolicies(): array + { + return $this->diskBackupPolicies; + } + + /** + * The disk backup policies for the provided disk. + * + * @param GetDiskDiskBackupPolicies200ResponseDiskBackupPolicies[] $diskBackupPolicies + */ + public function setDiskBackupPolicies(array $diskBackupPolicies): self + { + $this->initialized['diskBackupPolicies'] = true; + $this->diskBackupPolicies = $diskBackupPolicies; + + return $this; + } +} diff --git a/src/Model/DisksDiskDiskBackupPoliciesGetResponse200Pagination.php b/src/Model/DisksDiskDiskBackupPoliciesGetResponse200Pagination.php new file mode 100644 index 00000000..d1a1ed84 --- /dev/null +++ b/src/Model/DisksDiskDiskBackupPoliciesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/DisksDiskDiskBackupPoliciesPostBody.php b/src/Model/DisksDiskDiskBackupPoliciesPostBody.php new file mode 100644 index 00000000..fb935a12 --- /dev/null +++ b/src/Model/DisksDiskDiskBackupPoliciesPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'disk[]' params are mutually exclusive, only one can be provided. + * + * @var DiskLookup + */ + protected $disk; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var DiskBackupPolicyArguments + */ + protected $properties; + + /** + * All 'disk[]' params are mutually exclusive, only one can be provided. + */ + public function getDisk(): DiskLookup + { + return $this->disk; + } + + /** + * All 'disk[]' params are mutually exclusive, only one can be provided. + */ + public function setDisk(DiskLookup $disk): self + { + $this->initialized['disk'] = true; + $this->disk = $disk; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): DiskBackupPolicyArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(DiskBackupPolicyArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/DisksDiskDiskBackupPoliciesPostResponse200.php b/src/Model/DisksDiskDiskBackupPoliciesPostResponse200.php new file mode 100644 index 00000000..5caf6fb7 --- /dev/null +++ b/src/Model/DisksDiskDiskBackupPoliciesPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The new disk backup policy that has been created. + * + * @var DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicy + */ + protected $diskBackupPolicy; + + /** + * The new disk backup policy that has been created. + */ + public function getDiskBackupPolicy(): DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicy + { + return $this->diskBackupPolicy; + } + + /** + * The new disk backup policy that has been created. + */ + public function setDiskBackupPolicy(DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicy $diskBackupPolicy): self + { + $this->initialized['diskBackupPolicy'] = true; + $this->diskBackupPolicy = $diskBackupPolicy; + + return $this; + } +} diff --git a/src/Model/DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicy.php b/src/Model/DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicy.php new file mode 100644 index 00000000..2590987e --- /dev/null +++ b/src/Model/DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicy.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $retention; + /** + * @var float + */ + protected $totalSize; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var PostDiskDiskBackupPoliciesPartSchedule + */ + protected $schedule; + /** + * @var int + */ + protected $autoMoveToTrashAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getRetention(): int + { + return $this->retention; + } + + public function setRetention(int $retention): self + { + $this->initialized['retention'] = true; + $this->retention = $retention; + + return $this; + } + + public function getTotalSize(): float + { + return $this->totalSize; + } + + public function setTotalSize(float $totalSize): self + { + $this->initialized['totalSize'] = true; + $this->totalSize = $totalSize; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + public function getSchedule(): PostDiskDiskBackupPoliciesPartSchedule + { + return $this->schedule; + } + + public function setSchedule(PostDiskDiskBackupPoliciesPartSchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } + + public function getAutoMoveToTrashAt(): int + { + return $this->autoMoveToTrashAt; + } + + public function setAutoMoveToTrashAt(int $autoMoveToTrashAt): self + { + $this->initialized['autoMoveToTrashAt'] = true; + $this->autoMoveToTrashAt = $autoMoveToTrashAt; + + return $this; + } +} diff --git a/src/Model/DisksDiskGetResponse200.php b/src/Model/DisksDiskGetResponse200.php new file mode 100644 index 00000000..915ad70f --- /dev/null +++ b/src/Model/DisksDiskGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The disk details. + * + * @var DisksDiskGetResponse200Disk + */ + protected $disk; + + /** + * The disk details. + */ + public function getDisk(): DisksDiskGetResponse200Disk + { + return $this->disk; + } + + /** + * The disk details. + */ + public function setDisk(DisksDiskGetResponse200Disk $disk): self + { + $this->initialized['disk'] = true; + $this->disk = $disk; + + return $this; + } +} diff --git a/src/Model/DisksDiskGetResponse200Disk.php b/src/Model/DisksDiskGetResponse200Disk.php new file mode 100644 index 00000000..91326138 --- /dev/null +++ b/src/Model/DisksDiskGetResponse200Disk.php @@ -0,0 +1,194 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $sizeInGb; + /** + * @var string + */ + protected $wwn; + /** + * @var string + */ + protected $state; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $storageSpeed; + /** + * @var GetDiskPartIOProfile + */ + protected $ioProfile; + /** + * @var GetDiskPartVirtualMachineDisk + */ + protected $virtualMachineDisk; + /** + * @var GetDiskPartInstallation + */ + protected $installation; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSizeInGb(): int + { + return $this->sizeInGb; + } + + public function setSizeInGb(int $sizeInGb): self + { + $this->initialized['sizeInGb'] = true; + $this->sizeInGb = $sizeInGb; + + return $this; + } + + public function getWwn(): string + { + return $this->wwn; + } + + public function setWwn(string $wwn): self + { + $this->initialized['wwn'] = true; + $this->wwn = $wwn; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getStorageSpeed(): string + { + return $this->storageSpeed; + } + + public function setStorageSpeed(string $storageSpeed): self + { + $this->initialized['storageSpeed'] = true; + $this->storageSpeed = $storageSpeed; + + return $this; + } + + public function getIoProfile(): GetDiskPartIOProfile + { + return $this->ioProfile; + } + + public function setIoProfile(GetDiskPartIOProfile $ioProfile): self + { + $this->initialized['ioProfile'] = true; + $this->ioProfile = $ioProfile; + + return $this; + } + + public function getVirtualMachineDisk(): GetDiskPartVirtualMachineDisk + { + return $this->virtualMachineDisk; + } + + public function setVirtualMachineDisk(GetDiskPartVirtualMachineDisk $virtualMachineDisk): self + { + $this->initialized['virtualMachineDisk'] = true; + $this->virtualMachineDisk = $virtualMachineDisk; + + return $this; + } + + public function getInstallation(): GetDiskPartInstallation + { + return $this->installation; + } + + public function setInstallation(GetDiskPartInstallation $installation): self + { + $this->initialized['installation'] = true; + $this->installation = $installation; + + return $this; + } +} diff --git a/src/Model/DnsRecordsDnsRecordDeleteBody.php b/src/Model/DnsRecordsDnsRecordDeleteBody.php new file mode 100644 index 00000000..b5e8e647 --- /dev/null +++ b/src/Model/DnsRecordsDnsRecordDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'dns_record[]' params are mutually exclusive, only one can be provided. + * + * @var DNSRecordLookup + */ + protected $dnsRecord; + + /** + * All 'dns_record[]' params are mutually exclusive, only one can be provided. + */ + public function getDnsRecord(): DNSRecordLookup + { + return $this->dnsRecord; + } + + /** + * All 'dns_record[]' params are mutually exclusive, only one can be provided. + */ + public function setDnsRecord(DNSRecordLookup $dnsRecord): self + { + $this->initialized['dnsRecord'] = true; + $this->dnsRecord = $dnsRecord; + + return $this; + } +} diff --git a/src/Model/DnsRecordsDnsRecordDeleteResponse200.php b/src/Model/DnsRecordsDnsRecordDeleteResponse200.php new file mode 100644 index 00000000..eaa8c044 --- /dev/null +++ b/src/Model/DnsRecordsDnsRecordDeleteResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var bool + */ + protected $deleted; + + public function getDeleted(): bool + { + return $this->deleted; + } + + public function setDeleted(bool $deleted): self + { + $this->initialized['deleted'] = true; + $this->deleted = $deleted; + + return $this; + } +} diff --git a/src/Model/DnsRecordsDnsRecordGetResponse200.php b/src/Model/DnsRecordsDnsRecordGetResponse200.php new file mode 100644 index 00000000..afc22caa --- /dev/null +++ b/src/Model/DnsRecordsDnsRecordGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The DNS record for the provided organization. + * + * @var DnsRecordsDnsRecordGetResponse200DnsRecord + */ + protected $dnsRecord; + + /** + * The DNS record for the provided organization. + */ + public function getDnsRecord(): DnsRecordsDnsRecordGetResponse200DnsRecord + { + return $this->dnsRecord; + } + + /** + * The DNS record for the provided organization. + */ + public function setDnsRecord(DnsRecordsDnsRecordGetResponse200DnsRecord $dnsRecord): self + { + $this->initialized['dnsRecord'] = true; + $this->dnsRecord = $dnsRecord; + + return $this; + } +} diff --git a/src/Model/DnsRecordsDnsRecordGetResponse200DnsRecord.php b/src/Model/DnsRecordsDnsRecordGetResponse200DnsRecord.php new file mode 100644 index 00000000..9505f376 --- /dev/null +++ b/src/Model/DnsRecordsDnsRecordGetResponse200DnsRecord.php @@ -0,0 +1,160 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $fullName; + /** + * @var int + */ + protected $ttl; + /** + * @var string + */ + protected $type; + /** + * @var int + */ + protected $priority; + /** + * @var string + */ + protected $content; + /** + * @var DNSRecordContentAttributes + */ + protected $contentAttributes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getFullName(): string + { + return $this->fullName; + } + + public function setFullName(string $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getType(): string + { + return $this->type; + } + + public function setType(string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getPriority(): int + { + return $this->priority; + } + + public function setPriority(int $priority): self + { + $this->initialized['priority'] = true; + $this->priority = $priority; + + return $this; + } + + public function getContent(): string + { + return $this->content; + } + + public function setContent(string $content): self + { + $this->initialized['content'] = true; + $this->content = $content; + + return $this; + } + + public function getContentAttributes(): DNSRecordContentAttributes + { + return $this->contentAttributes; + } + + public function setContentAttributes(DNSRecordContentAttributes $contentAttributes): self + { + $this->initialized['contentAttributes'] = true; + $this->contentAttributes = $contentAttributes; + + return $this; + } +} diff --git a/src/Model/DnsRecordsDnsRecordPatchBody.php b/src/Model/DnsRecordsDnsRecordPatchBody.php new file mode 100644 index 00000000..cb63aff1 --- /dev/null +++ b/src/Model/DnsRecordsDnsRecordPatchBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'dns_record[]' params are mutually exclusive, only one can be provided. + * + * @var DNSRecordLookup + */ + protected $dnsRecord; + /** + * All 'details[]' params are mutually exclusive, only one can be provided. + * + * @var DNSRecordArguments + */ + protected $properties; + + /** + * All 'dns_record[]' params are mutually exclusive, only one can be provided. + */ + public function getDnsRecord(): DNSRecordLookup + { + return $this->dnsRecord; + } + + /** + * All 'dns_record[]' params are mutually exclusive, only one can be provided. + */ + public function setDnsRecord(DNSRecordLookup $dnsRecord): self + { + $this->initialized['dnsRecord'] = true; + $this->dnsRecord = $dnsRecord; + + return $this; + } + + /** + * All 'details[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): DNSRecordArguments + { + return $this->properties; + } + + /** + * All 'details[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(DNSRecordArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/DnsRecordsDnsRecordPatchResponse200.php b/src/Model/DnsRecordsDnsRecordPatchResponse200.php new file mode 100644 index 00000000..23362039 --- /dev/null +++ b/src/Model/DnsRecordsDnsRecordPatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The DNS record that has been updated. + * + * @var DnsRecordsDnsRecordPatchResponse200DnsRecord + */ + protected $dnsRecord; + + /** + * The DNS record that has been updated. + */ + public function getDnsRecord(): DnsRecordsDnsRecordPatchResponse200DnsRecord + { + return $this->dnsRecord; + } + + /** + * The DNS record that has been updated. + */ + public function setDnsRecord(DnsRecordsDnsRecordPatchResponse200DnsRecord $dnsRecord): self + { + $this->initialized['dnsRecord'] = true; + $this->dnsRecord = $dnsRecord; + + return $this; + } +} diff --git a/src/Model/DnsRecordsDnsRecordPatchResponse200DnsRecord.php b/src/Model/DnsRecordsDnsRecordPatchResponse200DnsRecord.php new file mode 100644 index 00000000..395d1586 --- /dev/null +++ b/src/Model/DnsRecordsDnsRecordPatchResponse200DnsRecord.php @@ -0,0 +1,160 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $fullName; + /** + * @var int + */ + protected $ttl; + /** + * @var string + */ + protected $type; + /** + * @var int + */ + protected $priority; + /** + * @var string + */ + protected $content; + /** + * @var DNSRecordContentAttributes + */ + protected $contentAttributes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getFullName(): string + { + return $this->fullName; + } + + public function setFullName(string $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getType(): string + { + return $this->type; + } + + public function setType(string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getPriority(): int + { + return $this->priority; + } + + public function setPriority(int $priority): self + { + $this->initialized['priority'] = true; + $this->priority = $priority; + + return $this; + } + + public function getContent(): string + { + return $this->content; + } + + public function setContent(string $content): self + { + $this->initialized['content'] = true; + $this->content = $content; + + return $this; + } + + public function getContentAttributes(): DNSRecordContentAttributes + { + return $this->contentAttributes; + } + + public function setContentAttributes(DNSRecordContentAttributes $contentAttributes): self + { + $this->initialized['contentAttributes'] = true; + $this->contentAttributes = $contentAttributes; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneDeleteBody.php b/src/Model/DnsZonesDnsZoneDeleteBody.php new file mode 100644 index 00000000..308ad40e --- /dev/null +++ b/src/Model/DnsZonesDnsZoneDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + * + * @var DNSZoneLookup + */ + protected $dnsZone; + + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + */ + public function getDnsZone(): DNSZoneLookup + { + return $this->dnsZone; + } + + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + */ + public function setDnsZone(DNSZoneLookup $dnsZone): self + { + $this->initialized['dnsZone'] = true; + $this->dnsZone = $dnsZone; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneDeleteResponse200.php b/src/Model/DnsZonesDnsZoneDeleteResponse200.php new file mode 100644 index 00000000..b5f20bf1 --- /dev/null +++ b/src/Model/DnsZonesDnsZoneDeleteResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var bool + */ + protected $deleted; + + public function getDeleted(): bool + { + return $this->deleted; + } + + public function setDeleted(bool $deleted): self + { + $this->initialized['deleted'] = true; + $this->deleted = $deleted; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneDeleteResponse200DnsZone.php b/src/Model/DnsZonesDnsZoneDeleteResponse200DnsZone.php new file mode 100644 index 00000000..df6de82a --- /dev/null +++ b/src/Model/DnsZonesDnsZoneDeleteResponse200DnsZone.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var bool + */ + protected $verified; + /** + * @var bool + */ + protected $infrastructureZone; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getVerified(): bool + { + return $this->verified; + } + + public function setVerified(bool $verified): self + { + $this->initialized['verified'] = true; + $this->verified = $verified; + + return $this; + } + + public function getInfrastructureZone(): bool + { + return $this->infrastructureZone; + } + + public function setInfrastructureZone(bool $infrastructureZone): self + { + $this->initialized['infrastructureZone'] = true; + $this->infrastructureZone = $infrastructureZone; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneGetResponse200.php b/src/Model/DnsZonesDnsZoneGetResponse200.php new file mode 100644 index 00000000..b317961a --- /dev/null +++ b/src/Model/DnsZonesDnsZoneGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The DNS zones for the provided organization. + * + * @var DnsZonesDnsZoneGetResponse200DnsZone + */ + protected $dnsZone; + + /** + * The DNS zones for the provided organization. + */ + public function getDnsZone(): DnsZonesDnsZoneGetResponse200DnsZone + { + return $this->dnsZone; + } + + /** + * The DNS zones for the provided organization. + */ + public function setDnsZone(DnsZonesDnsZoneGetResponse200DnsZone $dnsZone): self + { + $this->initialized['dnsZone'] = true; + $this->dnsZone = $dnsZone; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneGetResponse200DnsZone.php b/src/Model/DnsZonesDnsZoneGetResponse200DnsZone.php new file mode 100644 index 00000000..850c9003 --- /dev/null +++ b/src/Model/DnsZonesDnsZoneGetResponse200DnsZone.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var bool + */ + protected $verified; + /** + * @var bool + */ + protected $infrastructureZone; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getVerified(): bool + { + return $this->verified; + } + + public function setVerified(bool $verified): self + { + $this->initialized['verified'] = true; + $this->verified = $verified; + + return $this; + } + + public function getInfrastructureZone(): bool + { + return $this->infrastructureZone; + } + + public function setInfrastructureZone(bool $infrastructureZone): self + { + $this->initialized['infrastructureZone'] = true; + $this->infrastructureZone = $infrastructureZone; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZonePatchBody.php b/src/Model/DnsZonesDnsZonePatchBody.php new file mode 100644 index 00000000..491ac2e2 --- /dev/null +++ b/src/Model/DnsZonesDnsZonePatchBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + * + * @var DNSZoneLookup + */ + protected $dnsZone; + /** + * All 'details[]' params are mutually exclusive, only one can be provided. + * + * @var DNSZoneArguments + */ + protected $properties; + + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + */ + public function getDnsZone(): DNSZoneLookup + { + return $this->dnsZone; + } + + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + */ + public function setDnsZone(DNSZoneLookup $dnsZone): self + { + $this->initialized['dnsZone'] = true; + $this->dnsZone = $dnsZone; + + return $this; + } + + /** + * All 'details[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): DNSZoneArguments + { + return $this->properties; + } + + /** + * All 'details[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(DNSZoneArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZonePatchResponse200.php b/src/Model/DnsZonesDnsZonePatchResponse200.php new file mode 100644 index 00000000..5963d89c --- /dev/null +++ b/src/Model/DnsZonesDnsZonePatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The DNS zones for the provided organization. + * + * @var DnsZonesDnsZonePatchResponse200DnsZone + */ + protected $dnsZone; + + /** + * The DNS zones for the provided organization. + */ + public function getDnsZone(): DnsZonesDnsZonePatchResponse200DnsZone + { + return $this->dnsZone; + } + + /** + * The DNS zones for the provided organization. + */ + public function setDnsZone(DnsZonesDnsZonePatchResponse200DnsZone $dnsZone): self + { + $this->initialized['dnsZone'] = true; + $this->dnsZone = $dnsZone; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZonePatchResponse200DnsZone.php b/src/Model/DnsZonesDnsZonePatchResponse200DnsZone.php new file mode 100644 index 00000000..99880ae3 --- /dev/null +++ b/src/Model/DnsZonesDnsZonePatchResponse200DnsZone.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var bool + */ + protected $verified; + /** + * @var bool + */ + protected $infrastructureZone; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getVerified(): bool + { + return $this->verified; + } + + public function setVerified(bool $verified): self + { + $this->initialized['verified'] = true; + $this->verified = $verified; + + return $this; + } + + public function getInfrastructureZone(): bool + { + return $this->infrastructureZone; + } + + public function setInfrastructureZone(bool $infrastructureZone): self + { + $this->initialized['infrastructureZone'] = true; + $this->infrastructureZone = $infrastructureZone; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneRecordsGetResponse200.php b/src/Model/DnsZonesDnsZoneRecordsGetResponse200.php new file mode 100644 index 00000000..1d8a0ce2 --- /dev/null +++ b/src/Model/DnsZonesDnsZoneRecordsGetResponse200.php @@ -0,0 +1,53 @@ +initialized); + } + /** + * The DNS record for the provided zone. + * + * @var DNSRecord[] + */ + protected $dnsRecords; + + /** + * The DNS record for the provided zone. + * + * @return DNSRecord[] + */ + public function getDnsRecords(): array + { + return $this->dnsRecords; + } + + /** + * The DNS record for the provided zone. + * + * @param DNSRecord[] $dnsRecords + */ + public function setDnsRecords(array $dnsRecords): self + { + $this->initialized['dnsRecords'] = true; + $this->dnsRecords = $dnsRecords; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneRecordsPostBody.php b/src/Model/DnsZonesDnsZoneRecordsPostBody.php new file mode 100644 index 00000000..ae848868 --- /dev/null +++ b/src/Model/DnsZonesDnsZoneRecordsPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + * + * @var DNSZoneLookup + */ + protected $dnsZone; + /** + * All 'details[]' params are mutually exclusive, only one can be provided. + * + * @var DNSRecordArguments + */ + protected $properties; + + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + */ + public function getDnsZone(): DNSZoneLookup + { + return $this->dnsZone; + } + + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + */ + public function setDnsZone(DNSZoneLookup $dnsZone): self + { + $this->initialized['dnsZone'] = true; + $this->dnsZone = $dnsZone; + + return $this; + } + + /** + * All 'details[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): DNSRecordArguments + { + return $this->properties; + } + + /** + * All 'details[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(DNSRecordArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneRecordsPostResponse200.php b/src/Model/DnsZonesDnsZoneRecordsPostResponse200.php new file mode 100644 index 00000000..89bad7ff --- /dev/null +++ b/src/Model/DnsZonesDnsZoneRecordsPostResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var DnsZonesDnsZoneRecordsPostResponse200DnsRecord + */ + protected $dnsRecord; + + public function getDnsRecord(): DnsZonesDnsZoneRecordsPostResponse200DnsRecord + { + return $this->dnsRecord; + } + + public function setDnsRecord(DnsZonesDnsZoneRecordsPostResponse200DnsRecord $dnsRecord): self + { + $this->initialized['dnsRecord'] = true; + $this->dnsRecord = $dnsRecord; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneRecordsPostResponse200DnsRecord.php b/src/Model/DnsZonesDnsZoneRecordsPostResponse200DnsRecord.php new file mode 100644 index 00000000..6cb23db7 --- /dev/null +++ b/src/Model/DnsZonesDnsZoneRecordsPostResponse200DnsRecord.php @@ -0,0 +1,160 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $fullName; + /** + * @var int + */ + protected $ttl; + /** + * @var string + */ + protected $type; + /** + * @var int + */ + protected $priority; + /** + * @var string + */ + protected $content; + /** + * @var DNSRecordContentAttributes + */ + protected $contentAttributes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getFullName(): string + { + return $this->fullName; + } + + public function setFullName(string $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getType(): string + { + return $this->type; + } + + public function setType(string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getPriority(): int + { + return $this->priority; + } + + public function setPriority(int $priority): self + { + $this->initialized['priority'] = true; + $this->priority = $priority; + + return $this; + } + + public function getContent(): string + { + return $this->content; + } + + public function setContent(string $content): self + { + $this->initialized['content'] = true; + $this->content = $content; + + return $this; + } + + public function getContentAttributes(): DNSRecordContentAttributes + { + return $this->contentAttributes; + } + + public function setContentAttributes(DNSRecordContentAttributes $contentAttributes): self + { + $this->initialized['contentAttributes'] = true; + $this->contentAttributes = $contentAttributes; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneUpdateTtlPostBody.php b/src/Model/DnsZonesDnsZoneUpdateTtlPostBody.php new file mode 100644 index 00000000..68667a4b --- /dev/null +++ b/src/Model/DnsZonesDnsZoneUpdateTtlPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + * + * @var DNSZoneLookup + */ + protected $dnsZone; + /** + * The new TTL value for the DNS zone. + * + * @var int + */ + protected $ttl; + + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + */ + public function getDnsZone(): DNSZoneLookup + { + return $this->dnsZone; + } + + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + */ + public function setDnsZone(DNSZoneLookup $dnsZone): self + { + $this->initialized['dnsZone'] = true; + $this->dnsZone = $dnsZone; + + return $this; + } + + /** + * The new TTL value for the DNS zone. + */ + public function getTtl(): int + { + return $this->ttl; + } + + /** + * The new TTL value for the DNS zone. + */ + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneUpdateTtlPostResponse200.php b/src/Model/DnsZonesDnsZoneUpdateTtlPostResponse200.php new file mode 100644 index 00000000..dc91c73f --- /dev/null +++ b/src/Model/DnsZonesDnsZoneUpdateTtlPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The DNS zone with the new TTL value. + * + * @var DnsZonesDnsZoneUpdateTtlPostResponse200DnsZone + */ + protected $dnsZone; + + /** + * The DNS zone with the new TTL value. + */ + public function getDnsZone(): DnsZonesDnsZoneUpdateTtlPostResponse200DnsZone + { + return $this->dnsZone; + } + + /** + * The DNS zone with the new TTL value. + */ + public function setDnsZone(DnsZonesDnsZoneUpdateTtlPostResponse200DnsZone $dnsZone): self + { + $this->initialized['dnsZone'] = true; + $this->dnsZone = $dnsZone; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneUpdateTtlPostResponse200DnsZone.php b/src/Model/DnsZonesDnsZoneUpdateTtlPostResponse200DnsZone.php new file mode 100644 index 00000000..9b189c06 --- /dev/null +++ b/src/Model/DnsZonesDnsZoneUpdateTtlPostResponse200DnsZone.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var bool + */ + protected $verified; + /** + * @var bool + */ + protected $infrastructureZone; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getVerified(): bool + { + return $this->verified; + } + + public function setVerified(bool $verified): self + { + $this->initialized['verified'] = true; + $this->verified = $verified; + + return $this; + } + + public function getInfrastructureZone(): bool + { + return $this->infrastructureZone; + } + + public function setInfrastructureZone(bool $infrastructureZone): self + { + $this->initialized['infrastructureZone'] = true; + $this->infrastructureZone = $infrastructureZone; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneVerificationDetailsGetResponse200.php b/src/Model/DnsZonesDnsZoneVerificationDetailsGetResponse200.php new file mode 100644 index 00000000..8c1cee6c --- /dev/null +++ b/src/Model/DnsZonesDnsZoneVerificationDetailsGetResponse200.php @@ -0,0 +1,39 @@ +initialized); + } + + protected $details; + + public function getDetails() + { + return $this->details; + } + + public function setDetails($details): self + { + $this->initialized['details'] = true; + $this->details = $details; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneVerifyPostBody.php b/src/Model/DnsZonesDnsZoneVerifyPostBody.php new file mode 100644 index 00000000..fce2b43f --- /dev/null +++ b/src/Model/DnsZonesDnsZoneVerifyPostBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + * + * @var DNSZoneLookup + */ + protected $dnsZone; + + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + */ + public function getDnsZone(): DNSZoneLookup + { + return $this->dnsZone; + } + + /** + * All 'dns_zone[]' params are mutually exclusive, only one can be provided. + */ + public function setDnsZone(DNSZoneLookup $dnsZone): self + { + $this->initialized['dnsZone'] = true; + $this->dnsZone = $dnsZone; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneVerifyPostResponse200.php b/src/Model/DnsZonesDnsZoneVerifyPostResponse200.php new file mode 100644 index 00000000..9f246acd --- /dev/null +++ b/src/Model/DnsZonesDnsZoneVerifyPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The DNS zones for the provided organization. + * + * @var DnsZonesDnsZoneVerifyPostResponse200DnsZone + */ + protected $dnsZone; + + /** + * The DNS zones for the provided organization. + */ + public function getDnsZone(): DnsZonesDnsZoneVerifyPostResponse200DnsZone + { + return $this->dnsZone; + } + + /** + * The DNS zones for the provided organization. + */ + public function setDnsZone(DnsZonesDnsZoneVerifyPostResponse200DnsZone $dnsZone): self + { + $this->initialized['dnsZone'] = true; + $this->dnsZone = $dnsZone; + + return $this; + } +} diff --git a/src/Model/DnsZonesDnsZoneVerifyPostResponse200DnsZone.php b/src/Model/DnsZonesDnsZoneVerifyPostResponse200DnsZone.php new file mode 100644 index 00000000..b67b2555 --- /dev/null +++ b/src/Model/DnsZonesDnsZoneVerifyPostResponse200DnsZone.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var bool + */ + protected $verified; + /** + * @var bool + */ + protected $infrastructureZone; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getVerified(): bool + { + return $this->verified; + } + + public function setVerified(bool $verified): self + { + $this->initialized['verified'] = true; + $this->verified = $verified; + + return $this; + } + + public function getInfrastructureZone(): bool + { + return $this->infrastructureZone; + } + + public function setInfrastructureZone(bool $infrastructureZone): self + { + $this->initialized['infrastructureZone'] = true; + $this->infrastructureZone = $infrastructureZone; + + return $this; + } +} diff --git a/src/Model/FileStorageVolumeArguments.php b/src/Model/FileStorageVolumeArguments.php new file mode 100644 index 00000000..5ee01db7 --- /dev/null +++ b/src/Model/FileStorageVolumeArguments.php @@ -0,0 +1,97 @@ +initialized); + } + /** + * Unique name to help identify the volume. + * + * @var string + */ + protected $name; + /** + * All 'data_center[]' params are mutually exclusive, only one can be provided. + * + * @var DataCenterLookup + */ + protected $dataCenter; + /** + * @var string[] + */ + protected $associations; + + /** + * Unique name to help identify the volume. + */ + public function getName(): string + { + return $this->name; + } + + /** + * Unique name to help identify the volume. + */ + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * All 'data_center[]' params are mutually exclusive, only one can be provided. + */ + public function getDataCenter(): DataCenterLookup + { + return $this->dataCenter; + } + + /** + * All 'data_center[]' params are mutually exclusive, only one can be provided. + */ + public function setDataCenter(DataCenterLookup $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } +} diff --git a/src/Model/FileStorageVolumeLookup.php b/src/Model/FileStorageVolumeLookup.php new file mode 100644 index 00000000..6bb45bce --- /dev/null +++ b/src/Model/FileStorageVolumeLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/FileStorageVolumesFileStorageVolumeDeleteBody.php b/src/Model/FileStorageVolumesFileStorageVolumeDeleteBody.php new file mode 100644 index 00000000..3d208832 --- /dev/null +++ b/src/Model/FileStorageVolumesFileStorageVolumeDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. + * + * @var FileStorageVolumeLookup + */ + protected $fileStorageVolume; + + /** + * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. + */ + public function getFileStorageVolume(): FileStorageVolumeLookup + { + return $this->fileStorageVolume; + } + + /** + * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. + */ + public function setFileStorageVolume(FileStorageVolumeLookup $fileStorageVolume): self + { + $this->initialized['fileStorageVolume'] = true; + $this->fileStorageVolume = $fileStorageVolume; + + return $this; + } +} diff --git a/src/Model/FileStorageVolumesFileStorageVolumeDeleteResponse200.php b/src/Model/FileStorageVolumesFileStorageVolumeDeleteResponse200.php new file mode 100644 index 00000000..eee83cf8 --- /dev/null +++ b/src/Model/FileStorageVolumesFileStorageVolumeDeleteResponse200.php @@ -0,0 +1,66 @@ +initialized); + } + /** + * @var FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObject + */ + protected $trashObject; + /** + * The file storage volume that has been destroyed. + * + * @var FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolume + */ + protected $fileStorageVolume; + + public function getTrashObject(): FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObject + { + return $this->trashObject; + } + + public function setTrashObject(FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObject $trashObject): self + { + $this->initialized['trashObject'] = true; + $this->trashObject = $trashObject; + + return $this; + } + + /** + * The file storage volume that has been destroyed. + */ + public function getFileStorageVolume(): FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolume + { + return $this->fileStorageVolume; + } + + /** + * The file storage volume that has been destroyed. + */ + public function setFileStorageVolume(FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolume $fileStorageVolume): self + { + $this->initialized['fileStorageVolume'] = true; + $this->fileStorageVolume = $fileStorageVolume; + + return $this; + } +} diff --git a/src/Model/FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolume.php b/src/Model/FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolume.php new file mode 100644 index 00000000..1cee083a --- /dev/null +++ b/src/Model/FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolume.php @@ -0,0 +1,165 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var DeleteFileStorageVolumePartDataCenter + */ + protected $dataCenter; + /** + * @var string[] + */ + protected $associations; + /** + * @var string + */ + protected $state; + /** + * The NFS location of where to mount the volume from. + * + * @var string + */ + protected $nfsLocation; + /** + * The size of the volume in bytes. + * + * @var int + */ + protected $size; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDataCenter(): DeleteFileStorageVolumePartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(DeleteFileStorageVolumePartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function getNfsLocation(): string + { + return $this->nfsLocation; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function setNfsLocation(string $nfsLocation): self + { + $this->initialized['nfsLocation'] = true; + $this->nfsLocation = $nfsLocation; + + return $this; + } + + /** + * The size of the volume in bytes. + */ + public function getSize(): int + { + return $this->size; + } + + /** + * The size of the volume in bytes. + */ + public function setSize(int $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } +} diff --git a/src/Model/FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObject.php b/src/Model/FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObject.php new file mode 100644 index 00000000..d33e96ec --- /dev/null +++ b/src/Model/FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObject.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $keepUntil; + /** + * @var string + */ + protected $objectId; + /** + * @var string + */ + protected $objectType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getKeepUntil(): int + { + return $this->keepUntil; + } + + public function setKeepUntil(int $keepUntil): self + { + $this->initialized['keepUntil'] = true; + $this->keepUntil = $keepUntil; + + return $this; + } + + public function getObjectId(): string + { + return $this->objectId; + } + + public function setObjectId(string $objectId): self + { + $this->initialized['objectId'] = true; + $this->objectId = $objectId; + + return $this; + } + + public function getObjectType(): string + { + return $this->objectType; + } + + public function setObjectType(string $objectType): self + { + $this->initialized['objectType'] = true; + $this->objectType = $objectType; + + return $this; + } +} diff --git a/src/Model/FileStorageVolumesFileStorageVolumeGetResponse200.php b/src/Model/FileStorageVolumesFileStorageVolumeGetResponse200.php new file mode 100644 index 00000000..3234a917 --- /dev/null +++ b/src/Model/FileStorageVolumesFileStorageVolumeGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The file storage volume. + * + * @var FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolume + */ + protected $fileStorageVolume; + + /** + * The file storage volume. + */ + public function getFileStorageVolume(): FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolume + { + return $this->fileStorageVolume; + } + + /** + * The file storage volume. + */ + public function setFileStorageVolume(FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolume $fileStorageVolume): self + { + $this->initialized['fileStorageVolume'] = true; + $this->fileStorageVolume = $fileStorageVolume; + + return $this; + } +} diff --git a/src/Model/FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolume.php b/src/Model/FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolume.php new file mode 100644 index 00000000..4856bd30 --- /dev/null +++ b/src/Model/FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolume.php @@ -0,0 +1,165 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var GetFileStorageVolumePartDataCenter + */ + protected $dataCenter; + /** + * @var string[] + */ + protected $associations; + /** + * @var string + */ + protected $state; + /** + * The NFS location of where to mount the volume from. + * + * @var string + */ + protected $nfsLocation; + /** + * The size of the volume in bytes. + * + * @var int + */ + protected $size; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDataCenter(): GetFileStorageVolumePartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetFileStorageVolumePartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function getNfsLocation(): string + { + return $this->nfsLocation; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function setNfsLocation(string $nfsLocation): self + { + $this->initialized['nfsLocation'] = true; + $this->nfsLocation = $nfsLocation; + + return $this; + } + + /** + * The size of the volume in bytes. + */ + public function getSize(): int + { + return $this->size; + } + + /** + * The size of the volume in bytes. + */ + public function setSize(int $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } +} diff --git a/src/Model/FileStorageVolumesFileStorageVolumePatchBody.php b/src/Model/FileStorageVolumesFileStorageVolumePatchBody.php new file mode 100644 index 00000000..5c21706f --- /dev/null +++ b/src/Model/FileStorageVolumesFileStorageVolumePatchBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. + * + * @var FileStorageVolumeLookup + */ + protected $fileStorageVolume; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var FileStorageVolumeArguments + */ + protected $properties; + + /** + * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. + */ + public function getFileStorageVolume(): FileStorageVolumeLookup + { + return $this->fileStorageVolume; + } + + /** + * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. + */ + public function setFileStorageVolume(FileStorageVolumeLookup $fileStorageVolume): self + { + $this->initialized['fileStorageVolume'] = true; + $this->fileStorageVolume = $fileStorageVolume; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): FileStorageVolumeArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(FileStorageVolumeArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/FileStorageVolumesFileStorageVolumePatchResponse200.php b/src/Model/FileStorageVolumesFileStorageVolumePatchResponse200.php new file mode 100644 index 00000000..c224d8e0 --- /dev/null +++ b/src/Model/FileStorageVolumesFileStorageVolumePatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The file storage volume. + * + * @var FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolume + */ + protected $fileStorageVolume; + + /** + * The file storage volume. + */ + public function getFileStorageVolume(): FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolume + { + return $this->fileStorageVolume; + } + + /** + * The file storage volume. + */ + public function setFileStorageVolume(FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolume $fileStorageVolume): self + { + $this->initialized['fileStorageVolume'] = true; + $this->fileStorageVolume = $fileStorageVolume; + + return $this; + } +} diff --git a/src/Model/FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolume.php b/src/Model/FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolume.php new file mode 100644 index 00000000..aa41fe0e --- /dev/null +++ b/src/Model/FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolume.php @@ -0,0 +1,165 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var PatchFileStorageVolumePartDataCenter + */ + protected $dataCenter; + /** + * @var string[] + */ + protected $associations; + /** + * @var string + */ + protected $state; + /** + * The NFS location of where to mount the volume from. + * + * @var string + */ + protected $nfsLocation; + /** + * The size of the volume in bytes. + * + * @var int + */ + protected $size; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDataCenter(): PatchFileStorageVolumePartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(PatchFileStorageVolumePartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function getNfsLocation(): string + { + return $this->nfsLocation; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function setNfsLocation(string $nfsLocation): self + { + $this->initialized['nfsLocation'] = true; + $this->nfsLocation = $nfsLocation; + + return $this; + } + + /** + * The size of the volume in bytes. + */ + public function getSize(): int + { + return $this->size; + } + + /** + * The size of the volume in bytes. + */ + public function setSize(int $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } +} diff --git a/src/Model/FlexibleResourcesUnavailableToOrganizationSchema.php b/src/Model/FlexibleResourcesUnavailableToOrganizationSchema.php new file mode 100644 index 00000000..e66dae82 --- /dev/null +++ b/src/Model/FlexibleResourcesUnavailableToOrganizationSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/GPUType.php b/src/Model/GPUType.php new file mode 100644 index 00000000..d7c1ea6f --- /dev/null +++ b/src/Model/GPUType.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $manufacturer; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var string + */ + protected $memoryType; + /** + * @var string + */ + protected $permalink; + /** + * @var DataCenter[] + */ + protected $dataCenters; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getManufacturer(): string + { + return $this->manufacturer; + } + + public function setManufacturer(string $manufacturer): self + { + $this->initialized['manufacturer'] = true; + $this->manufacturer = $manufacturer; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getMemoryType(): string + { + return $this->memoryType; + } + + public function setMemoryType(string $memoryType): self + { + $this->initialized['memoryType'] = true; + $this->memoryType = $memoryType; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + /** + * @return DataCenter[] + */ + public function getDataCenters(): array + { + return $this->dataCenters; + } + + /** + * @param DataCenter[] $dataCenters + */ + public function setDataCenters(array $dataCenters): self + { + $this->initialized['dataCenters'] = true; + $this->dataCenters = $dataCenters; + + return $this; + } +} diff --git a/src/Model/GPUTypeLookup.php b/src/Model/GPUTypeLookup.php new file mode 100644 index 00000000..fdc62717 --- /dev/null +++ b/src/Model/GPUTypeLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetCountries200ResponseCountries.php b/src/Model/GetCountries200ResponseCountries.php new file mode 100644 index 00000000..7ee440c6 --- /dev/null +++ b/src/Model/GetCountries200ResponseCountries.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetCountryCountryStates200ResponseCountryStates.php b/src/Model/GetCountryCountryStates200ResponseCountryStates.php new file mode 100644 index 00000000..624ca078 --- /dev/null +++ b/src/Model/GetCountryCountryStates200ResponseCountryStates.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetCurrencies200ResponseCurrencies.php b/src/Model/GetCurrencies200ResponseCurrencies.php new file mode 100644 index 00000000..543f96d8 --- /dev/null +++ b/src/Model/GetCurrencies200ResponseCurrencies.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetDNSRecordsDNSRecord200ResponseDNSRecord.php b/src/Model/GetDNSRecordsDNSRecord200ResponseDNSRecord.php new file mode 100644 index 00000000..f61e5976 --- /dev/null +++ b/src/Model/GetDNSRecordsDNSRecord200ResponseDNSRecord.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var string + */ + protected $recordType; + /** + * @var DNSRecordProperties + */ + protected $properties; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getRecordType(): string + { + return $this->recordType; + } + + public function setRecordType(string $recordType): self + { + $this->initialized['recordType'] = true; + $this->recordType = $recordType; + + return $this; + } + + public function getProperties(): DNSRecordProperties + { + return $this->properties; + } + + public function setProperties(DNSRecordProperties $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/GetDNSZonesDNSZoneRecords200ResponseDNSRecords.php b/src/Model/GetDNSZonesDNSZoneRecords200ResponseDNSRecords.php new file mode 100644 index 00000000..3a350b04 --- /dev/null +++ b/src/Model/GetDNSZonesDNSZoneRecords200ResponseDNSRecords.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var string + */ + protected $recordType; + /** + * @var DNSRecordProperties + */ + protected $properties; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getRecordType(): string + { + return $this->recordType; + } + + public function setRecordType(string $recordType): self + { + $this->initialized['recordType'] = true; + $this->recordType = $recordType; + + return $this; + } + + public function getProperties(): DNSRecordProperties + { + return $this->properties; + } + + public function setProperties(DNSRecordProperties $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/GetDataCenter200ResponseDataCenter.php b/src/Model/GetDataCenter200ResponseDataCenter.php new file mode 100644 index 00000000..f4c6a61b --- /dev/null +++ b/src/Model/GetDataCenter200ResponseDataCenter.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var GetDataCenterPartCountry + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCountry(): GetDataCenterPartCountry + { + return $this->country; + } + + public function setCountry(GetDataCenterPartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/GetDataCenterDefaultNetwork200ResponseNetwork.php b/src/Model/GetDataCenterDefaultNetwork200ResponseNetwork.php new file mode 100644 index 00000000..a19772b4 --- /dev/null +++ b/src/Model/GetDataCenterDefaultNetwork200ResponseNetwork.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var GetDataCenterDefaultNetworkPartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): GetDataCenterDefaultNetworkPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetDataCenterDefaultNetworkPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/GetDataCenterDefaultNetworkPartDataCenter.php b/src/Model/GetDataCenterDefaultNetworkPartDataCenter.php new file mode 100644 index 00000000..e5ac65f2 --- /dev/null +++ b/src/Model/GetDataCenterDefaultNetworkPartDataCenter.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetDataCenterGPUTypes200ResponseGPUTypes.php b/src/Model/GetDataCenterGPUTypes200ResponseGPUTypes.php new file mode 100644 index 00000000..8a0a1599 --- /dev/null +++ b/src/Model/GetDataCenterGPUTypes200ResponseGPUTypes.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $manufacturer; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var string + */ + protected $memoryType; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getManufacturer(): string + { + return $this->manufacturer; + } + + public function setManufacturer(string $manufacturer): self + { + $this->initialized['manufacturer'] = true; + $this->manufacturer = $manufacturer; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getMemoryType(): string + { + return $this->memoryType; + } + + public function setMemoryType(string $memoryType): self + { + $this->initialized['memoryType'] = true; + $this->memoryType = $memoryType; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetDataCenterPartCountry.php b/src/Model/GetDataCenterPartCountry.php new file mode 100644 index 00000000..e5770bac --- /dev/null +++ b/src/Model/GetDataCenterPartCountry.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetDataCenters200ResponseDataCenters.php b/src/Model/GetDataCenters200ResponseDataCenters.php new file mode 100644 index 00000000..802c3e39 --- /dev/null +++ b/src/Model/GetDataCenters200ResponseDataCenters.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var GetDataCentersPartCountry + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCountry(): GetDataCentersPartCountry + { + return $this->country; + } + + public function setCountry(GetDataCentersPartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/GetDataCentersPartCountry.php b/src/Model/GetDataCentersPartCountry.php new file mode 100644 index 00000000..7ec605d7 --- /dev/null +++ b/src/Model/GetDataCentersPartCountry.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetDisk200ResponseDisk.php b/src/Model/GetDisk200ResponseDisk.php new file mode 100644 index 00000000..4ec40b41 --- /dev/null +++ b/src/Model/GetDisk200ResponseDisk.php @@ -0,0 +1,194 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $sizeInGb; + /** + * @var string + */ + protected $wwn; + /** + * @var string + */ + protected $state; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $storageSpeed; + /** + * @var GetDiskPartIOProfile + */ + protected $ioProfile; + /** + * @var GetDiskPartVirtualMachineDisk + */ + protected $virtualMachineDisk; + /** + * @var GetDiskPartInstallation + */ + protected $installation; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSizeInGb(): int + { + return $this->sizeInGb; + } + + public function setSizeInGb(int $sizeInGb): self + { + $this->initialized['sizeInGb'] = true; + $this->sizeInGb = $sizeInGb; + + return $this; + } + + public function getWwn(): string + { + return $this->wwn; + } + + public function setWwn(string $wwn): self + { + $this->initialized['wwn'] = true; + $this->wwn = $wwn; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getStorageSpeed(): string + { + return $this->storageSpeed; + } + + public function setStorageSpeed(string $storageSpeed): self + { + $this->initialized['storageSpeed'] = true; + $this->storageSpeed = $storageSpeed; + + return $this; + } + + public function getIoProfile(): GetDiskPartIOProfile + { + return $this->ioProfile; + } + + public function setIoProfile(GetDiskPartIOProfile $ioProfile): self + { + $this->initialized['ioProfile'] = true; + $this->ioProfile = $ioProfile; + + return $this; + } + + public function getVirtualMachineDisk(): GetDiskPartVirtualMachineDisk + { + return $this->virtualMachineDisk; + } + + public function setVirtualMachineDisk(GetDiskPartVirtualMachineDisk $virtualMachineDisk): self + { + $this->initialized['virtualMachineDisk'] = true; + $this->virtualMachineDisk = $virtualMachineDisk; + + return $this; + } + + public function getInstallation(): GetDiskPartInstallation + { + return $this->installation; + } + + public function setInstallation(GetDiskPartInstallation $installation): self + { + $this->initialized['installation'] = true; + $this->installation = $installation; + + return $this; + } +} diff --git a/src/Model/GetDiskBackupPolicy200ResponseDiskBackupPolicy.php b/src/Model/GetDiskBackupPolicy200ResponseDiskBackupPolicy.php new file mode 100644 index 00000000..28c568cd --- /dev/null +++ b/src/Model/GetDiskBackupPolicy200ResponseDiskBackupPolicy.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $retention; + /** + * @var float + */ + protected $totalSize; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var GetDiskBackupPolicyPartSchedule + */ + protected $schedule; + /** + * @var int + */ + protected $autoMoveToTrashAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getRetention(): int + { + return $this->retention; + } + + public function setRetention(int $retention): self + { + $this->initialized['retention'] = true; + $this->retention = $retention; + + return $this; + } + + public function getTotalSize(): float + { + return $this->totalSize; + } + + public function setTotalSize(float $totalSize): self + { + $this->initialized['totalSize'] = true; + $this->totalSize = $totalSize; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + public function getSchedule(): GetDiskBackupPolicyPartSchedule + { + return $this->schedule; + } + + public function setSchedule(GetDiskBackupPolicyPartSchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } + + public function getAutoMoveToTrashAt(): int + { + return $this->autoMoveToTrashAt; + } + + public function setAutoMoveToTrashAt(int $autoMoveToTrashAt): self + { + $this->initialized['autoMoveToTrashAt'] = true; + $this->autoMoveToTrashAt = $autoMoveToTrashAt; + + return $this; + } +} diff --git a/src/Model/GetDiskBackupPolicyPartSchedule.php b/src/Model/GetDiskBackupPolicyPartSchedule.php new file mode 100644 index 00000000..e49c70bd --- /dev/null +++ b/src/Model/GetDiskBackupPolicyPartSchedule.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var int + */ + protected $frequency; + /** + * @var string + */ + protected $interval; + /** + * @var int + */ + protected $minute; + /** + * @var int + */ + protected $nextInvocationAt; + /** + * @var int + */ + protected $time; + + public function getFrequency(): int + { + return $this->frequency; + } + + public function setFrequency(int $frequency): self + { + $this->initialized['frequency'] = true; + $this->frequency = $frequency; + + return $this; + } + + public function getInterval(): string + { + return $this->interval; + } + + public function setInterval(string $interval): self + { + $this->initialized['interval'] = true; + $this->interval = $interval; + + return $this; + } + + public function getMinute(): int + { + return $this->minute; + } + + public function setMinute(int $minute): self + { + $this->initialized['minute'] = true; + $this->minute = $minute; + + return $this; + } + + public function getNextInvocationAt(): int + { + return $this->nextInvocationAt; + } + + public function setNextInvocationAt(int $nextInvocationAt): self + { + $this->initialized['nextInvocationAt'] = true; + $this->nextInvocationAt = $nextInvocationAt; + + return $this; + } + + public function getTime(): int + { + return $this->time; + } + + public function setTime(int $time): self + { + $this->initialized['time'] = true; + $this->time = $time; + + return $this; + } +} diff --git a/src/Model/GetDiskDiskBackupPolicies200ResponseDiskBackupPolicies.php b/src/Model/GetDiskDiskBackupPolicies200ResponseDiskBackupPolicies.php new file mode 100644 index 00000000..5069ee70 --- /dev/null +++ b/src/Model/GetDiskDiskBackupPolicies200ResponseDiskBackupPolicies.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $retention; + /** + * @var float + */ + protected $totalSize; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var GetDiskDiskBackupPoliciesPartSchedule + */ + protected $schedule; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getRetention(): int + { + return $this->retention; + } + + public function setRetention(int $retention): self + { + $this->initialized['retention'] = true; + $this->retention = $retention; + + return $this; + } + + public function getTotalSize(): float + { + return $this->totalSize; + } + + public function setTotalSize(float $totalSize): self + { + $this->initialized['totalSize'] = true; + $this->totalSize = $totalSize; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + public function getSchedule(): GetDiskDiskBackupPoliciesPartSchedule + { + return $this->schedule; + } + + public function setSchedule(GetDiskDiskBackupPoliciesPartSchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } +} diff --git a/src/Model/GetDiskDiskBackupPoliciesPartSchedule.php b/src/Model/GetDiskDiskBackupPoliciesPartSchedule.php new file mode 100644 index 00000000..c99bb0f5 --- /dev/null +++ b/src/Model/GetDiskDiskBackupPoliciesPartSchedule.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $interval; + /** + * @var int + */ + protected $nextInvocationAt; + + public function getInterval(): string + { + return $this->interval; + } + + public function setInterval(string $interval): self + { + $this->initialized['interval'] = true; + $this->interval = $interval; + + return $this; + } + + public function getNextInvocationAt(): int + { + return $this->nextInvocationAt; + } + + public function setNextInvocationAt(int $nextInvocationAt): self + { + $this->initialized['nextInvocationAt'] = true; + $this->nextInvocationAt = $nextInvocationAt; + + return $this; + } +} diff --git a/src/Model/GetDiskPartAttributes.php b/src/Model/GetDiskPartAttributes.php new file mode 100644 index 00000000..d4f463af --- /dev/null +++ b/src/Model/GetDiskPartAttributes.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $key; + /** + * @var string + */ + protected $label; + /** + * @var string + */ + protected $value; + /** + * @var string + */ + protected $description; + /** + * @var bool + */ + protected $protect; + + public function getKey(): string + { + return $this->key; + } + + public function setKey(string $key): self + { + $this->initialized['key'] = true; + $this->key = $key; + + return $this; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + public function getValue(): string + { + return $this->value; + } + + public function setValue(string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getProtect(): bool + { + return $this->protect; + } + + public function setProtect(bool $protect): self + { + $this->initialized['protect'] = true; + $this->protect = $protect; + + return $this; + } +} diff --git a/src/Model/GetDiskPartDiskTemplate.php b/src/Model/GetDiskPartDiskTemplate.php new file mode 100644 index 00000000..c64dd5ae --- /dev/null +++ b/src/Model/GetDiskPartDiskTemplate.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var GetDiskPartOperatingSystem + */ + protected $operatingSystem; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getOperatingSystem(): GetDiskPartOperatingSystem + { + return $this->operatingSystem; + } + + public function setOperatingSystem(GetDiskPartOperatingSystem $operatingSystem): self + { + $this->initialized['operatingSystem'] = true; + $this->operatingSystem = $operatingSystem; + + return $this; + } +} diff --git a/src/Model/GetDiskPartDiskTemplateVersion.php b/src/Model/GetDiskPartDiskTemplateVersion.php new file mode 100644 index 00000000..a9e8070c --- /dev/null +++ b/src/Model/GetDiskPartDiskTemplateVersion.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var int + */ + protected $number; + /** + * @var bool + */ + protected $stable; + /** + * @var GetDiskPartDiskTemplate + */ + protected $diskTemplate; + + public function getNumber(): int + { + return $this->number; + } + + public function setNumber(int $number): self + { + $this->initialized['number'] = true; + $this->number = $number; + + return $this; + } + + public function getStable(): bool + { + return $this->stable; + } + + public function setStable(bool $stable): self + { + $this->initialized['stable'] = true; + $this->stable = $stable; + + return $this; + } + + public function getDiskTemplate(): GetDiskPartDiskTemplate + { + return $this->diskTemplate; + } + + public function setDiskTemplate(GetDiskPartDiskTemplate $diskTemplate): self + { + $this->initialized['diskTemplate'] = true; + $this->diskTemplate = $diskTemplate; + + return $this; + } +} diff --git a/src/Model/GetDiskPartIOProfile.php b/src/Model/GetDiskPartIOProfile.php new file mode 100644 index 00000000..f2cd0c16 --- /dev/null +++ b/src/Model/GetDiskPartIOProfile.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var int + */ + protected $speedInMb; + /** + * @var int + */ + protected $iops; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getSpeedInMb(): int + { + return $this->speedInMb; + } + + public function setSpeedInMb(int $speedInMb): self + { + $this->initialized['speedInMb'] = true; + $this->speedInMb = $speedInMb; + + return $this; + } + + public function getIops(): int + { + return $this->iops; + } + + public function setIops(int $iops): self + { + $this->initialized['iops'] = true; + $this->iops = $iops; + + return $this; + } +} diff --git a/src/Model/GetDiskPartInstallation.php b/src/Model/GetDiskPartInstallation.php new file mode 100644 index 00000000..9f39f55c --- /dev/null +++ b/src/Model/GetDiskPartInstallation.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var GetDiskPartDiskTemplateVersion + */ + protected $diskTemplateVersion; + /** + * @var GetDiskPartAttributes[] + */ + protected $attributes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getDiskTemplateVersion(): GetDiskPartDiskTemplateVersion + { + return $this->diskTemplateVersion; + } + + public function setDiskTemplateVersion(GetDiskPartDiskTemplateVersion $diskTemplateVersion): self + { + $this->initialized['diskTemplateVersion'] = true; + $this->diskTemplateVersion = $diskTemplateVersion; + + return $this; + } + + /** + * @return GetDiskPartAttributes[] + */ + public function getAttributes(): array + { + return $this->attributes; + } + + /** + * @param GetDiskPartAttributes[] $attributes + */ + public function setAttributes(array $attributes): self + { + $this->initialized['attributes'] = true; + $this->attributes = $attributes; + + return $this; + } +} diff --git a/src/Model/GetDiskPartOperatingSystem.php b/src/Model/GetDiskPartOperatingSystem.php new file mode 100644 index 00000000..c73fb195 --- /dev/null +++ b/src/Model/GetDiskPartOperatingSystem.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetDiskPartVirtualMachine.php b/src/Model/GetDiskPartVirtualMachine.php new file mode 100644 index 00000000..8d199287 --- /dev/null +++ b/src/Model/GetDiskPartVirtualMachine.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $fqdn; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } +} diff --git a/src/Model/GetDiskPartVirtualMachineDisk.php b/src/Model/GetDiskPartVirtualMachineDisk.php new file mode 100644 index 00000000..b915a1c3 --- /dev/null +++ b/src/Model/GetDiskPartVirtualMachineDisk.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var GetDiskPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var bool + */ + protected $attachOnBoot; + /** + * @var bool + */ + protected $boot; + /** + * @var string + */ + protected $state; + + public function getVirtualMachine(): GetDiskPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(GetDiskPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getAttachOnBoot(): bool + { + return $this->attachOnBoot; + } + + public function setAttachOnBoot(bool $attachOnBoot): self + { + $this->initialized['attachOnBoot'] = true; + $this->attachOnBoot = $attachOnBoot; + + return $this; + } + + public function getBoot(): bool + { + return $this->boot; + } + + public function setBoot(bool $boot): self + { + $this->initialized['boot'] = true; + $this->boot = $boot; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/GetDiskTemplate200ResponseDiskTemplate.php b/src/Model/GetDiskTemplate200ResponseDiskTemplate.php new file mode 100644 index 00000000..de755704 --- /dev/null +++ b/src/Model/GetDiskTemplate200ResponseDiskTemplate.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $description; + /** + * @var string + */ + protected $permalink; + /** + * @var bool + */ + protected $universal; + /** + * @var GetDiskTemplatePartLatestVersion + */ + protected $latestVersion; + /** + * @var GetDiskTemplatePartOperatingSystem + */ + protected $operatingSystem; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getUniversal(): bool + { + return $this->universal; + } + + public function setUniversal(bool $universal): self + { + $this->initialized['universal'] = true; + $this->universal = $universal; + + return $this; + } + + public function getLatestVersion(): GetDiskTemplatePartLatestVersion + { + return $this->latestVersion; + } + + public function setLatestVersion(GetDiskTemplatePartLatestVersion $latestVersion): self + { + $this->initialized['latestVersion'] = true; + $this->latestVersion = $latestVersion; + + return $this; + } + + public function getOperatingSystem(): GetDiskTemplatePartOperatingSystem + { + return $this->operatingSystem; + } + + public function setOperatingSystem(GetDiskTemplatePartOperatingSystem $operatingSystem): self + { + $this->initialized['operatingSystem'] = true; + $this->operatingSystem = $operatingSystem; + + return $this; + } +} diff --git a/src/Model/GetDiskTemplatePartBadge.php b/src/Model/GetDiskTemplatePartBadge.php new file mode 100644 index 00000000..f2c96901 --- /dev/null +++ b/src/Model/GetDiskTemplatePartBadge.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $url; + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } +} diff --git a/src/Model/GetDiskTemplatePartLatestVersion.php b/src/Model/GetDiskTemplatePartLatestVersion.php new file mode 100644 index 00000000..4cbeeecf --- /dev/null +++ b/src/Model/GetDiskTemplatePartLatestVersion.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/GetDiskTemplatePartOperatingSystem.php b/src/Model/GetDiskTemplatePartOperatingSystem.php new file mode 100644 index 00000000..add17b40 --- /dev/null +++ b/src/Model/GetDiskTemplatePartOperatingSystem.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var GetDiskTemplatePartBadge + */ + protected $badge; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getBadge(): GetDiskTemplatePartBadge + { + return $this->badge; + } + + public function setBadge(GetDiskTemplatePartBadge $badge): self + { + $this->initialized['badge'] = true; + $this->badge = $badge; + + return $this; + } +} diff --git a/src/Model/GetDiskTemplateVersion200ResponseDiskTemplateVersion.php b/src/Model/GetDiskTemplateVersion200ResponseDiskTemplateVersion.php new file mode 100644 index 00000000..1e720210 --- /dev/null +++ b/src/Model/GetDiskTemplateVersion200ResponseDiskTemplateVersion.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $number; + /** + * @var bool + */ + protected $stable; + /** + * @var int + */ + protected $sizeInGb; + /** + * @var GetDiskTemplateVersionPartDiskTemplate + */ + protected $diskTemplate; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getNumber(): int + { + return $this->number; + } + + public function setNumber(int $number): self + { + $this->initialized['number'] = true; + $this->number = $number; + + return $this; + } + + public function getStable(): bool + { + return $this->stable; + } + + public function setStable(bool $stable): self + { + $this->initialized['stable'] = true; + $this->stable = $stable; + + return $this; + } + + public function getSizeInGb(): int + { + return $this->sizeInGb; + } + + public function setSizeInGb(int $sizeInGb): self + { + $this->initialized['sizeInGb'] = true; + $this->sizeInGb = $sizeInGb; + + return $this; + } + + public function getDiskTemplate(): GetDiskTemplateVersionPartDiskTemplate + { + return $this->diskTemplate; + } + + public function setDiskTemplate(GetDiskTemplateVersionPartDiskTemplate $diskTemplate): self + { + $this->initialized['diskTemplate'] = true; + $this->diskTemplate = $diskTemplate; + + return $this; + } +} diff --git a/src/Model/GetDiskTemplateVersionPartDiskTemplate.php b/src/Model/GetDiskTemplateVersionPartDiskTemplate.php new file mode 100644 index 00000000..c309a9fe --- /dev/null +++ b/src/Model/GetDiskTemplateVersionPartDiskTemplate.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetDiskTemplateVersionSpec200ResponseDiskTemplateVersion.php b/src/Model/GetDiskTemplateVersionSpec200ResponseDiskTemplateVersion.php new file mode 100644 index 00000000..1ac4cdad --- /dev/null +++ b/src/Model/GetDiskTemplateVersionSpec200ResponseDiskTemplateVersion.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $number; + /** + * @var bool + */ + protected $stable; + /** + * @var int + */ + protected $sizeInGb; + /** + * @var GetDiskTemplateVersionSpecPartDiskTemplate + */ + protected $diskTemplate; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getNumber(): int + { + return $this->number; + } + + public function setNumber(int $number): self + { + $this->initialized['number'] = true; + $this->number = $number; + + return $this; + } + + public function getStable(): bool + { + return $this->stable; + } + + public function setStable(bool $stable): self + { + $this->initialized['stable'] = true; + $this->stable = $stable; + + return $this; + } + + public function getSizeInGb(): int + { + return $this->sizeInGb; + } + + public function setSizeInGb(int $sizeInGb): self + { + $this->initialized['sizeInGb'] = true; + $this->sizeInGb = $sizeInGb; + + return $this; + } + + public function getDiskTemplate(): GetDiskTemplateVersionSpecPartDiskTemplate + { + return $this->diskTemplate; + } + + public function setDiskTemplate(GetDiskTemplateVersionSpecPartDiskTemplate $diskTemplate): self + { + $this->initialized['diskTemplate'] = true; + $this->diskTemplate = $diskTemplate; + + return $this; + } +} diff --git a/src/Model/GetDiskTemplateVersionSpecPartDiskTemplate.php b/src/Model/GetDiskTemplateVersionSpecPartDiskTemplate.php new file mode 100644 index 00000000..7eff1b36 --- /dev/null +++ b/src/Model/GetDiskTemplateVersionSpecPartDiskTemplate.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetDiskTemplateVersions200ResponseDiskTemplate.php b/src/Model/GetDiskTemplateVersions200ResponseDiskTemplate.php new file mode 100644 index 00000000..429d0007 --- /dev/null +++ b/src/Model/GetDiskTemplateVersions200ResponseDiskTemplate.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetDiskTemplateVersions200ResponseDiskTemplateVersions.php b/src/Model/GetDiskTemplateVersions200ResponseDiskTemplateVersions.php new file mode 100644 index 00000000..cfaf8802 --- /dev/null +++ b/src/Model/GetDiskTemplateVersions200ResponseDiskTemplateVersions.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $number; + /** + * @var bool + */ + protected $stable; + /** + * @var int + */ + protected $sizeInGb; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getNumber(): int + { + return $this->number; + } + + public function setNumber(int $number): self + { + $this->initialized['number'] = true; + $this->number = $number; + + return $this; + } + + public function getStable(): bool + { + return $this->stable; + } + + public function setStable(bool $stable): self + { + $this->initialized['stable'] = true; + $this->stable = $stable; + + return $this; + } + + public function getSizeInGb(): int + { + return $this->sizeInGb; + } + + public function setSizeInGb(int $sizeInGb): self + { + $this->initialized['sizeInGb'] = true; + $this->sizeInGb = $sizeInGb; + + return $this; + } +} diff --git a/src/Model/GetFileStorageVolume200ResponseFileStorageVolume.php b/src/Model/GetFileStorageVolume200ResponseFileStorageVolume.php new file mode 100644 index 00000000..dd203e27 --- /dev/null +++ b/src/Model/GetFileStorageVolume200ResponseFileStorageVolume.php @@ -0,0 +1,165 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var GetFileStorageVolumePartDataCenter + */ + protected $dataCenter; + /** + * @var string[] + */ + protected $associations; + /** + * @var string + */ + protected $state; + /** + * The NFS location of where to mount the volume from. + * + * @var string + */ + protected $nfsLocation; + /** + * The size of the volume in bytes. + * + * @var int + */ + protected $size; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDataCenter(): GetFileStorageVolumePartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetFileStorageVolumePartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function getNfsLocation(): string + { + return $this->nfsLocation; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function setNfsLocation(string $nfsLocation): self + { + $this->initialized['nfsLocation'] = true; + $this->nfsLocation = $nfsLocation; + + return $this; + } + + /** + * The size of the volume in bytes. + */ + public function getSize(): int + { + return $this->size; + } + + /** + * The size of the volume in bytes. + */ + public function setSize(int $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } +} diff --git a/src/Model/GetFileStorageVolumePartDataCenter.php b/src/Model/GetFileStorageVolumePartDataCenter.php new file mode 100644 index 00000000..91093469 --- /dev/null +++ b/src/Model/GetFileStorageVolumePartDataCenter.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetGPUType200ResponseGPUType.php b/src/Model/GetGPUType200ResponseGPUType.php new file mode 100644 index 00000000..9db1b3ee --- /dev/null +++ b/src/Model/GetGPUType200ResponseGPUType.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $manufacturer; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var string + */ + protected $memoryType; + /** + * @var string + */ + protected $permalink; + /** + * @var GetGPUTypePartDataCenters[] + */ + protected $dataCenters; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getManufacturer(): string + { + return $this->manufacturer; + } + + public function setManufacturer(string $manufacturer): self + { + $this->initialized['manufacturer'] = true; + $this->manufacturer = $manufacturer; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getMemoryType(): string + { + return $this->memoryType; + } + + public function setMemoryType(string $memoryType): self + { + $this->initialized['memoryType'] = true; + $this->memoryType = $memoryType; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + /** + * @return GetGPUTypePartDataCenters[] + */ + public function getDataCenters(): array + { + return $this->dataCenters; + } + + /** + * @param GetGPUTypePartDataCenters[] $dataCenters + */ + public function setDataCenters(array $dataCenters): self + { + $this->initialized['dataCenters'] = true; + $this->dataCenters = $dataCenters; + + return $this; + } +} diff --git a/src/Model/GetGPUTypePartDataCenters.php b/src/Model/GetGPUTypePartDataCenters.php new file mode 100644 index 00000000..2edcfc57 --- /dev/null +++ b/src/Model/GetGPUTypePartDataCenters.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetGPUTypes200ResponseGPUTypes.php b/src/Model/GetGPUTypes200ResponseGPUTypes.php new file mode 100644 index 00000000..e19d60ef --- /dev/null +++ b/src/Model/GetGPUTypes200ResponseGPUTypes.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $manufacturer; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var string + */ + protected $memoryType; + /** + * @var string + */ + protected $permalink; + /** + * @var GetGPUTypesPartDataCenters[] + */ + protected $dataCenters; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getManufacturer(): string + { + return $this->manufacturer; + } + + public function setManufacturer(string $manufacturer): self + { + $this->initialized['manufacturer'] = true; + $this->manufacturer = $manufacturer; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getMemoryType(): string + { + return $this->memoryType; + } + + public function setMemoryType(string $memoryType): self + { + $this->initialized['memoryType'] = true; + $this->memoryType = $memoryType; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + /** + * @return GetGPUTypesPartDataCenters[] + */ + public function getDataCenters(): array + { + return $this->dataCenters; + } + + /** + * @param GetGPUTypesPartDataCenters[] $dataCenters + */ + public function setDataCenters(array $dataCenters): self + { + $this->initialized['dataCenters'] = true; + $this->dataCenters = $dataCenters; + + return $this; + } +} diff --git a/src/Model/GetGPUTypesPartDataCenters.php b/src/Model/GetGPUTypesPartDataCenters.php new file mode 100644 index 00000000..da1ed40d --- /dev/null +++ b/src/Model/GetGPUTypesPartDataCenters.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetIPAddress200ResponseAllocation.php b/src/Model/GetIPAddress200ResponseAllocation.php new file mode 100644 index 00000000..98d4c11d --- /dev/null +++ b/src/Model/GetIPAddress200ResponseAllocation.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetLoadBalancer200ResponseLoadBalancer.php b/src/Model/GetLoadBalancer200ResponseLoadBalancer.php new file mode 100644 index 00000000..0c2258f0 --- /dev/null +++ b/src/Model/GetLoadBalancer200ResponseLoadBalancer.php @@ -0,0 +1,292 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $apiReference; + /** + * @var string + */ + protected $resourceType; + /** + * @var LoadBalancerResource[] + */ + protected $resources; + /** + * @var string[] + */ + protected $resourceIds; + /** + * @var GetLoadBalancerPartIPAddress[] + */ + protected $ipAddress; + /** + * @var bool + */ + protected $httpsRedirect; + /** + * @var string + */ + protected $backendCertificate; + /** + * @var string + */ + protected $backendCertificateKey; + /** + * @var GetLoadBalancerPartDataCenter + */ + protected $dataCenter; + /** + * @var bool + */ + protected $enableWeighting; + /** + * @var GetLoadBalancerPartWeights[] + */ + protected $weights; + /** + * @var string[] + */ + protected $standbyVms; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getApiReference(): string + { + return $this->apiReference; + } + + public function setApiReference(string $apiReference): self + { + $this->initialized['apiReference'] = true; + $this->apiReference = $apiReference; + + return $this; + } + + public function getResourceType(): string + { + return $this->resourceType; + } + + public function setResourceType(string $resourceType): self + { + $this->initialized['resourceType'] = true; + $this->resourceType = $resourceType; + + return $this; + } + + /** + * @return LoadBalancerResource[] + */ + public function getResources(): array + { + return $this->resources; + } + + /** + * @param LoadBalancerResource[] $resources + */ + public function setResources(array $resources): self + { + $this->initialized['resources'] = true; + $this->resources = $resources; + + return $this; + } + + /** + * @return string[] + */ + public function getResourceIds(): array + { + return $this->resourceIds; + } + + /** + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds): self + { + $this->initialized['resourceIds'] = true; + $this->resourceIds = $resourceIds; + + return $this; + } + + /** + * @return GetLoadBalancerPartIPAddress[] + */ + public function getIpAddress(): array + { + return $this->ipAddress; + } + + /** + * @param GetLoadBalancerPartIPAddress[] $ipAddress + */ + public function setIpAddress(array $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } + + public function getHttpsRedirect(): bool + { + return $this->httpsRedirect; + } + + public function setHttpsRedirect(bool $httpsRedirect): self + { + $this->initialized['httpsRedirect'] = true; + $this->httpsRedirect = $httpsRedirect; + + return $this; + } + + public function getBackendCertificate(): string + { + return $this->backendCertificate; + } + + public function setBackendCertificate(string $backendCertificate): self + { + $this->initialized['backendCertificate'] = true; + $this->backendCertificate = $backendCertificate; + + return $this; + } + + public function getBackendCertificateKey(): string + { + return $this->backendCertificateKey; + } + + public function setBackendCertificateKey(string $backendCertificateKey): self + { + $this->initialized['backendCertificateKey'] = true; + $this->backendCertificateKey = $backendCertificateKey; + + return $this; + } + + public function getDataCenter(): GetLoadBalancerPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetLoadBalancerPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + public function getEnableWeighting(): bool + { + return $this->enableWeighting; + } + + public function setEnableWeighting(bool $enableWeighting): self + { + $this->initialized['enableWeighting'] = true; + $this->enableWeighting = $enableWeighting; + + return $this; + } + + /** + * @return GetLoadBalancerPartWeights[] + */ + public function getWeights(): array + { + return $this->weights; + } + + /** + * @param GetLoadBalancerPartWeights[] $weights + */ + public function setWeights(array $weights): self + { + $this->initialized['weights'] = true; + $this->weights = $weights; + + return $this; + } + + /** + * @return string[] + */ + public function getStandbyVms(): array + { + return $this->standbyVms; + } + + /** + * @param string[] $standbyVms + */ + public function setStandbyVms(array $standbyVms): self + { + $this->initialized['standbyVms'] = true; + $this->standbyVms = $standbyVms; + + return $this; + } +} diff --git a/src/Model/GetLoadBalancerPartDataCenter.php b/src/Model/GetLoadBalancerPartDataCenter.php new file mode 100644 index 00000000..cd49db05 --- /dev/null +++ b/src/Model/GetLoadBalancerPartDataCenter.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetLoadBalancerPartIPAddress.php b/src/Model/GetLoadBalancerPartIPAddress.php new file mode 100644 index 00000000..0e1dddec --- /dev/null +++ b/src/Model/GetLoadBalancerPartIPAddress.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Model/GetLoadBalancerPartWeights.php b/src/Model/GetLoadBalancerPartWeights.php new file mode 100644 index 00000000..7e61ebaa --- /dev/null +++ b/src/Model/GetLoadBalancerPartWeights.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $virtualMachineId; + /** + * @var int + */ + protected $weight; + + public function getVirtualMachineId(): string + { + return $this->virtualMachineId; + } + + public function setVirtualMachineId(string $virtualMachineId): self + { + $this->initialized['virtualMachineId'] = true; + $this->virtualMachineId = $virtualMachineId; + + return $this; + } + + public function getWeight(): int + { + return $this->weight; + } + + public function setWeight(int $weight): self + { + $this->initialized['weight'] = true; + $this->weight = $weight; + + return $this; + } +} diff --git a/src/Model/GetLoadBalancerRules200ResponseLoadBalancerRules.php b/src/Model/GetLoadBalancerRules200ResponseLoadBalancerRules.php new file mode 100644 index 00000000..76492387 --- /dev/null +++ b/src/Model/GetLoadBalancerRules200ResponseLoadBalancerRules.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $algorithm; + /** + * @var int + */ + protected $destinationPort; + /** + * @var int + */ + protected $listenPort; + /** + * @var string + */ + protected $protocol; + /** + * @var GetLoadBalancerRulesPartCertificates[] + */ + protected $certificates; + /** + * @var bool + */ + protected $checkEnabled; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAlgorithm(): string + { + return $this->algorithm; + } + + public function setAlgorithm(string $algorithm): self + { + $this->initialized['algorithm'] = true; + $this->algorithm = $algorithm; + + return $this; + } + + public function getDestinationPort(): int + { + return $this->destinationPort; + } + + public function setDestinationPort(int $destinationPort): self + { + $this->initialized['destinationPort'] = true; + $this->destinationPort = $destinationPort; + + return $this; + } + + public function getListenPort(): int + { + return $this->listenPort; + } + + public function setListenPort(int $listenPort): self + { + $this->initialized['listenPort'] = true; + $this->listenPort = $listenPort; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + /** + * @return GetLoadBalancerRulesPartCertificates[] + */ + public function getCertificates(): array + { + return $this->certificates; + } + + /** + * @param GetLoadBalancerRulesPartCertificates[] $certificates + */ + public function setCertificates(array $certificates): self + { + $this->initialized['certificates'] = true; + $this->certificates = $certificates; + + return $this; + } + + public function getCheckEnabled(): bool + { + return $this->checkEnabled; + } + + public function setCheckEnabled(bool $checkEnabled): self + { + $this->initialized['checkEnabled'] = true; + $this->checkEnabled = $checkEnabled; + + return $this; + } +} diff --git a/src/Model/GetLoadBalancerRulesPartCertificates.php b/src/Model/GetLoadBalancerRulesPartCertificates.php new file mode 100644 index 00000000..df8eb265 --- /dev/null +++ b/src/Model/GetLoadBalancerRulesPartCertificates.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule.php b/src/Model/GetLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule.php new file mode 100644 index 00000000..6ff6bb98 --- /dev/null +++ b/src/Model/GetLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule.php @@ -0,0 +1,336 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $algorithm; + /** + * @var int + */ + protected $destinationPort; + /** + * @var int + */ + protected $listenPort; + /** + * @var string + */ + protected $protocol; + /** + * @var bool + */ + protected $proxyProtocol; + /** + * @var GetLoadBalancersRulesLoadBalancerRulePartCertificates[] + */ + protected $certificates; + /** + * @var bool + */ + protected $backendSsl; + /** + * @var bool + */ + protected $passthroughSsl; + /** + * @var bool + */ + protected $checkEnabled; + /** + * @var int + */ + protected $checkFall; + /** + * @var int + */ + protected $checkInterval; + /** + * @var string + */ + protected $checkPath; + /** + * @var string + */ + protected $checkProtocol; + /** + * @var int + */ + protected $checkRise; + /** + * @var int + */ + protected $checkTimeout; + /** + * @var string + */ + protected $checkHttpStatuses; + /** + * @var GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer + */ + protected $loadBalancer; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAlgorithm(): string + { + return $this->algorithm; + } + + public function setAlgorithm(string $algorithm): self + { + $this->initialized['algorithm'] = true; + $this->algorithm = $algorithm; + + return $this; + } + + public function getDestinationPort(): int + { + return $this->destinationPort; + } + + public function setDestinationPort(int $destinationPort): self + { + $this->initialized['destinationPort'] = true; + $this->destinationPort = $destinationPort; + + return $this; + } + + public function getListenPort(): int + { + return $this->listenPort; + } + + public function setListenPort(int $listenPort): self + { + $this->initialized['listenPort'] = true; + $this->listenPort = $listenPort; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getProxyProtocol(): bool + { + return $this->proxyProtocol; + } + + public function setProxyProtocol(bool $proxyProtocol): self + { + $this->initialized['proxyProtocol'] = true; + $this->proxyProtocol = $proxyProtocol; + + return $this; + } + + /** + * @return GetLoadBalancersRulesLoadBalancerRulePartCertificates[] + */ + public function getCertificates(): array + { + return $this->certificates; + } + + /** + * @param GetLoadBalancersRulesLoadBalancerRulePartCertificates[] $certificates + */ + public function setCertificates(array $certificates): self + { + $this->initialized['certificates'] = true; + $this->certificates = $certificates; + + return $this; + } + + public function getBackendSsl(): bool + { + return $this->backendSsl; + } + + public function setBackendSsl(bool $backendSsl): self + { + $this->initialized['backendSsl'] = true; + $this->backendSsl = $backendSsl; + + return $this; + } + + public function getPassthroughSsl(): bool + { + return $this->passthroughSsl; + } + + public function setPassthroughSsl(bool $passthroughSsl): self + { + $this->initialized['passthroughSsl'] = true; + $this->passthroughSsl = $passthroughSsl; + + return $this; + } + + public function getCheckEnabled(): bool + { + return $this->checkEnabled; + } + + public function setCheckEnabled(bool $checkEnabled): self + { + $this->initialized['checkEnabled'] = true; + $this->checkEnabled = $checkEnabled; + + return $this; + } + + public function getCheckFall(): int + { + return $this->checkFall; + } + + public function setCheckFall(int $checkFall): self + { + $this->initialized['checkFall'] = true; + $this->checkFall = $checkFall; + + return $this; + } + + public function getCheckInterval(): int + { + return $this->checkInterval; + } + + public function setCheckInterval(int $checkInterval): self + { + $this->initialized['checkInterval'] = true; + $this->checkInterval = $checkInterval; + + return $this; + } + + public function getCheckPath(): string + { + return $this->checkPath; + } + + public function setCheckPath(string $checkPath): self + { + $this->initialized['checkPath'] = true; + $this->checkPath = $checkPath; + + return $this; + } + + public function getCheckProtocol(): string + { + return $this->checkProtocol; + } + + public function setCheckProtocol(string $checkProtocol): self + { + $this->initialized['checkProtocol'] = true; + $this->checkProtocol = $checkProtocol; + + return $this; + } + + public function getCheckRise(): int + { + return $this->checkRise; + } + + public function setCheckRise(int $checkRise): self + { + $this->initialized['checkRise'] = true; + $this->checkRise = $checkRise; + + return $this; + } + + public function getCheckTimeout(): int + { + return $this->checkTimeout; + } + + public function setCheckTimeout(int $checkTimeout): self + { + $this->initialized['checkTimeout'] = true; + $this->checkTimeout = $checkTimeout; + + return $this; + } + + public function getCheckHttpStatuses(): string + { + return $this->checkHttpStatuses; + } + + public function setCheckHttpStatuses(string $checkHttpStatuses): self + { + $this->initialized['checkHttpStatuses'] = true; + $this->checkHttpStatuses = $checkHttpStatuses; + + return $this; + } + + public function getLoadBalancer(): GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer + { + return $this->loadBalancer; + } + + public function setLoadBalancer(GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } +} diff --git a/src/Model/GetLoadBalancersRulesLoadBalancerRulePartCertificates.php b/src/Model/GetLoadBalancersRulesLoadBalancerRulePartCertificates.php new file mode 100644 index 00000000..453b9143 --- /dev/null +++ b/src/Model/GetLoadBalancersRulesLoadBalancerRulePartCertificates.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string[] + */ + protected $additionalNames; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * @return string[] + */ + public function getAdditionalNames(): array + { + return $this->additionalNames; + } + + /** + * @param string[] $additionalNames + */ + public function setAdditionalNames(array $additionalNames): self + { + $this->initialized['additionalNames'] = true; + $this->additionalNames = $additionalNames; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer.php b/src/Model/GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer.php new file mode 100644 index 00000000..8c5e0d98 --- /dev/null +++ b/src/Model/GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetOperatingSystems200ResponseOperatingSystems.php b/src/Model/GetOperatingSystems200ResponseOperatingSystems.php new file mode 100644 index 00000000..309eb51e --- /dev/null +++ b/src/Model/GetOperatingSystems200ResponseOperatingSystems.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetOrganizationAvailableNetworks200ResponseNetworks.php b/src/Model/GetOrganizationAvailableNetworks200ResponseNetworks.php new file mode 100644 index 00000000..6db49bbc --- /dev/null +++ b/src/Model/GetOrganizationAvailableNetworks200ResponseNetworks.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var GetOrganizationAvailableNetworksPartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): GetOrganizationAvailableNetworksPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetOrganizationAvailableNetworksPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/GetOrganizationAvailableNetworks200ResponseVirtualNetworks.php b/src/Model/GetOrganizationAvailableNetworks200ResponseVirtualNetworks.php new file mode 100644 index 00000000..98b50cbc --- /dev/null +++ b/src/Model/GetOrganizationAvailableNetworks200ResponseVirtualNetworks.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var GetOrganizationAvailableNetworksPartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDataCenter(): GetOrganizationAvailableNetworksPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetOrganizationAvailableNetworksPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/GetOrganizationAvailableNetworksPartDataCenter.php b/src/Model/GetOrganizationAvailableNetworksPartDataCenter.php new file mode 100644 index 00000000..baa1febc --- /dev/null +++ b/src/Model/GetOrganizationAvailableNetworksPartDataCenter.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetOrganizationCertificates200ResponseCertificates.php b/src/Model/GetOrganizationCertificates200ResponseCertificates.php new file mode 100644 index 00000000..c55405cd --- /dev/null +++ b/src/Model/GetOrganizationCertificates200ResponseCertificates.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $issuer; + /** + * @var string + */ + protected $state; + /** + * @var int + */ + protected $expiresAt; + /** + * @var int + */ + protected $lastIssuedAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIssuer(): string + { + return $this->issuer; + } + + public function setIssuer(string $issuer): self + { + $this->initialized['issuer'] = true; + $this->issuer = $issuer; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getExpiresAt(): int + { + return $this->expiresAt; + } + + public function setExpiresAt(int $expiresAt): self + { + $this->initialized['expiresAt'] = true; + $this->expiresAt = $expiresAt; + + return $this; + } + + public function getLastIssuedAt(): int + { + return $this->lastIssuedAt; + } + + public function setLastIssuedAt(int $lastIssuedAt): self + { + $this->initialized['lastIssuedAt'] = true; + $this->lastIssuedAt = $lastIssuedAt; + + return $this; + } +} diff --git a/src/Model/GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies.php b/src/Model/GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies.php new file mode 100644 index 00000000..abacfb18 --- /dev/null +++ b/src/Model/GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $retention; + /** + * @var float + */ + protected $totalSize; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var GetOrganizationDiskBackupPoliciesPartSchedule + */ + protected $schedule; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getRetention(): int + { + return $this->retention; + } + + public function setRetention(int $retention): self + { + $this->initialized['retention'] = true; + $this->retention = $retention; + + return $this; + } + + public function getTotalSize(): float + { + return $this->totalSize; + } + + public function setTotalSize(float $totalSize): self + { + $this->initialized['totalSize'] = true; + $this->totalSize = $totalSize; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + public function getSchedule(): GetOrganizationDiskBackupPoliciesPartSchedule + { + return $this->schedule; + } + + public function setSchedule(GetOrganizationDiskBackupPoliciesPartSchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } +} diff --git a/src/Model/GetOrganizationDiskBackupPoliciesPartSchedule.php b/src/Model/GetOrganizationDiskBackupPoliciesPartSchedule.php new file mode 100644 index 00000000..4a2e4156 --- /dev/null +++ b/src/Model/GetOrganizationDiskBackupPoliciesPartSchedule.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $interval; + /** + * @var int + */ + protected $nextInvocationAt; + + public function getInterval(): string + { + return $this->interval; + } + + public function setInterval(string $interval): self + { + $this->initialized['interval'] = true; + $this->interval = $interval; + + return $this; + } + + public function getNextInvocationAt(): int + { + return $this->nextInvocationAt; + } + + public function setNextInvocationAt(int $nextInvocationAt): self + { + $this->initialized['nextInvocationAt'] = true; + $this->nextInvocationAt = $nextInvocationAt; + + return $this; + } +} diff --git a/src/Model/GetOrganizationDiskTemplates200ResponseDiskTemplates.php b/src/Model/GetOrganizationDiskTemplates200ResponseDiskTemplates.php new file mode 100644 index 00000000..b7e2498e --- /dev/null +++ b/src/Model/GetOrganizationDiskTemplates200ResponseDiskTemplates.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $description; + /** + * @var string + */ + protected $permalink; + /** + * @var bool + */ + protected $universal; + /** + * @var GetOrganizationDiskTemplatesPartLatestVersion + */ + protected $latestVersion; + /** + * @var GetOrganizationDiskTemplatesPartOperatingSystem + */ + protected $operatingSystem; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getUniversal(): bool + { + return $this->universal; + } + + public function setUniversal(bool $universal): self + { + $this->initialized['universal'] = true; + $this->universal = $universal; + + return $this; + } + + public function getLatestVersion(): GetOrganizationDiskTemplatesPartLatestVersion + { + return $this->latestVersion; + } + + public function setLatestVersion(GetOrganizationDiskTemplatesPartLatestVersion $latestVersion): self + { + $this->initialized['latestVersion'] = true; + $this->latestVersion = $latestVersion; + + return $this; + } + + public function getOperatingSystem(): GetOrganizationDiskTemplatesPartOperatingSystem + { + return $this->operatingSystem; + } + + public function setOperatingSystem(GetOrganizationDiskTemplatesPartOperatingSystem $operatingSystem): self + { + $this->initialized['operatingSystem'] = true; + $this->operatingSystem = $operatingSystem; + + return $this; + } +} diff --git a/src/Model/GetOrganizationDiskTemplatesPartLatestVersion.php b/src/Model/GetOrganizationDiskTemplatesPartLatestVersion.php new file mode 100644 index 00000000..a7de4ff6 --- /dev/null +++ b/src/Model/GetOrganizationDiskTemplatesPartLatestVersion.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $number; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getNumber(): int + { + return $this->number; + } + + public function setNumber(int $number): self + { + $this->initialized['number'] = true; + $this->number = $number; + + return $this; + } +} diff --git a/src/Model/GetOrganizationDiskTemplatesPartOperatingSystem.php b/src/Model/GetOrganizationDiskTemplatesPartOperatingSystem.php new file mode 100644 index 00000000..0669a857 --- /dev/null +++ b/src/Model/GetOrganizationDiskTemplatesPartOperatingSystem.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetOrganizationDisks200ResponseDisk.php b/src/Model/GetOrganizationDisks200ResponseDisk.php new file mode 100644 index 00000000..8ae5931f --- /dev/null +++ b/src/Model/GetOrganizationDisks200ResponseDisk.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $sizeInGb; + /** + * @var string + */ + protected $wwn; + /** + * @var string + */ + protected $state; + /** + * @var GetOrganizationDisksPartVirtualMachineDisk + */ + protected $virtualMachineDisk; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSizeInGb(): int + { + return $this->sizeInGb; + } + + public function setSizeInGb(int $sizeInGb): self + { + $this->initialized['sizeInGb'] = true; + $this->sizeInGb = $sizeInGb; + + return $this; + } + + public function getWwn(): string + { + return $this->wwn; + } + + public function setWwn(string $wwn): self + { + $this->initialized['wwn'] = true; + $this->wwn = $wwn; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getVirtualMachineDisk(): GetOrganizationDisksPartVirtualMachineDisk + { + return $this->virtualMachineDisk; + } + + public function setVirtualMachineDisk(GetOrganizationDisksPartVirtualMachineDisk $virtualMachineDisk): self + { + $this->initialized['virtualMachineDisk'] = true; + $this->virtualMachineDisk = $virtualMachineDisk; + + return $this; + } +} diff --git a/src/Model/GetOrganizationDisksPartVirtualMachine.php b/src/Model/GetOrganizationDisksPartVirtualMachine.php new file mode 100644 index 00000000..a7946be0 --- /dev/null +++ b/src/Model/GetOrganizationDisksPartVirtualMachine.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $fqdn; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } +} diff --git a/src/Model/GetOrganizationDisksPartVirtualMachineDisk.php b/src/Model/GetOrganizationDisksPartVirtualMachineDisk.php new file mode 100644 index 00000000..9a6a67a5 --- /dev/null +++ b/src/Model/GetOrganizationDisksPartVirtualMachineDisk.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var GetOrganizationDisksPartVirtualMachine + */ + protected $virtualMachine; + + public function getVirtualMachine(): GetOrganizationDisksPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(GetOrganizationDisksPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes.php b/src/Model/GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes.php new file mode 100644 index 00000000..180d4821 --- /dev/null +++ b/src/Model/GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes.php @@ -0,0 +1,165 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var GetOrganizationFileStorageVolumesPartDataCenter + */ + protected $dataCenter; + /** + * @var string[] + */ + protected $associations; + /** + * @var string + */ + protected $state; + /** + * The NFS location of where to mount the volume from. + * + * @var string + */ + protected $nfsLocation; + /** + * The size of the volume in bytes. + * + * @var int + */ + protected $size; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDataCenter(): GetOrganizationFileStorageVolumesPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetOrganizationFileStorageVolumesPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function getNfsLocation(): string + { + return $this->nfsLocation; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function setNfsLocation(string $nfsLocation): self + { + $this->initialized['nfsLocation'] = true; + $this->nfsLocation = $nfsLocation; + + return $this; + } + + /** + * The size of the volume in bytes. + */ + public function getSize(): int + { + return $this->size; + } + + /** + * The size of the volume in bytes. + */ + public function setSize(int $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } +} diff --git a/src/Model/GetOrganizationFileStorageVolumesPartDataCenter.php b/src/Model/GetOrganizationFileStorageVolumesPartDataCenter.php new file mode 100644 index 00000000..2ec8c86c --- /dev/null +++ b/src/Model/GetOrganizationFileStorageVolumesPartDataCenter.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetOrganizationIPAddresses200ResponseIPAddresses.php b/src/Model/GetOrganizationIPAddresses200ResponseIPAddresses.php new file mode 100644 index 00000000..52afd824 --- /dev/null +++ b/src/Model/GetOrganizationIPAddresses200ResponseIPAddresses.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + /** + * @var string + */ + protected $reverseDns; + /** + * @var bool + */ + protected $vip; + /** + * @var string + */ + protected $allocationId; + /** + * @var string + */ + protected $allocationType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } + + public function getReverseDns(): string + { + return $this->reverseDns; + } + + public function setReverseDns(string $reverseDns): self + { + $this->initialized['reverseDns'] = true; + $this->reverseDns = $reverseDns; + + return $this; + } + + public function getVip(): bool + { + return $this->vip; + } + + public function setVip(bool $vip): self + { + $this->initialized['vip'] = true; + $this->vip = $vip; + + return $this; + } + + public function getAllocationId(): string + { + return $this->allocationId; + } + + public function setAllocationId(string $allocationId): self + { + $this->initialized['allocationId'] = true; + $this->allocationId = $allocationId; + + return $this; + } + + public function getAllocationType(): string + { + return $this->allocationType; + } + + public function setAllocationType(string $allocationType): self + { + $this->initialized['allocationType'] = true; + $this->allocationType = $allocationType; + + return $this; + } +} diff --git a/src/Model/GetOrganizationLoadBalancers200ResponseLoadBalancers.php b/src/Model/GetOrganizationLoadBalancers200ResponseLoadBalancers.php new file mode 100644 index 00000000..78f9a930 --- /dev/null +++ b/src/Model/GetOrganizationLoadBalancers200ResponseLoadBalancers.php @@ -0,0 +1,178 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $apiReference; + /** + * @var string + */ + protected $resourceType; + /** + * @var LoadBalancerResource[] + */ + protected $resources; + /** + * @var string[] + */ + protected $resourceIds; + /** + * @var GetOrganizationLoadBalancersPartIPAddress[] + */ + protected $ipAddress; + /** + * @var GetOrganizationLoadBalancersPartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getApiReference(): string + { + return $this->apiReference; + } + + public function setApiReference(string $apiReference): self + { + $this->initialized['apiReference'] = true; + $this->apiReference = $apiReference; + + return $this; + } + + public function getResourceType(): string + { + return $this->resourceType; + } + + public function setResourceType(string $resourceType): self + { + $this->initialized['resourceType'] = true; + $this->resourceType = $resourceType; + + return $this; + } + + /** + * @return LoadBalancerResource[] + */ + public function getResources(): array + { + return $this->resources; + } + + /** + * @param LoadBalancerResource[] $resources + */ + public function setResources(array $resources): self + { + $this->initialized['resources'] = true; + $this->resources = $resources; + + return $this; + } + + /** + * @return string[] + */ + public function getResourceIds(): array + { + return $this->resourceIds; + } + + /** + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds): self + { + $this->initialized['resourceIds'] = true; + $this->resourceIds = $resourceIds; + + return $this; + } + + /** + * @return GetOrganizationLoadBalancersPartIPAddress[] + */ + public function getIpAddress(): array + { + return $this->ipAddress; + } + + /** + * @param GetOrganizationLoadBalancersPartIPAddress[] $ipAddress + */ + public function setIpAddress(array $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } + + public function getDataCenter(): GetOrganizationLoadBalancersPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetOrganizationLoadBalancersPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/GetOrganizationLoadBalancersPartDataCenter.php b/src/Model/GetOrganizationLoadBalancersPartDataCenter.php new file mode 100644 index 00000000..c1eae498 --- /dev/null +++ b/src/Model/GetOrganizationLoadBalancersPartDataCenter.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetOrganizationLoadBalancersPartIPAddress.php b/src/Model/GetOrganizationLoadBalancersPartIPAddress.php new file mode 100644 index 00000000..9161944c --- /dev/null +++ b/src/Model/GetOrganizationLoadBalancersPartIPAddress.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $address; + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Model/GetOrganizationManaged200ResponseOrganizations.php b/src/Model/GetOrganizationManaged200ResponseOrganizations.php new file mode 100644 index 00000000..3f5eb325 --- /dev/null +++ b/src/Model/GetOrganizationManaged200ResponseOrganizations.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $subDomain; + /** + * @var string + */ + protected $infrastructureDomain; + /** + * @var int + */ + protected $createdAt; + /** + * @var bool + */ + protected $managed; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSubDomain(): string + { + return $this->subDomain; + } + + public function setSubDomain(string $subDomain): self + { + $this->initialized['subDomain'] = true; + $this->subDomain = $subDomain; + + return $this; + } + + public function getInfrastructureDomain(): string + { + return $this->infrastructureDomain; + } + + public function setInfrastructureDomain(string $infrastructureDomain): self + { + $this->initialized['infrastructureDomain'] = true; + $this->infrastructureDomain = $infrastructureDomain; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getManaged(): bool + { + return $this->managed; + } + + public function setManaged(bool $managed): self + { + $this->initialized['managed'] = true; + $this->managed = $managed; + + return $this; + } +} diff --git a/src/Model/GetOrganizationTags200ResponseTags.php b/src/Model/GetOrganizationTags200ResponseTags.php new file mode 100644 index 00000000..8d6107ab --- /dev/null +++ b/src/Model/GetOrganizationTags200ResponseTags.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetOrganizationUsersWithAccess200ResponseUsers.php b/src/Model/GetOrganizationUsersWithAccess200ResponseUsers.php new file mode 100644 index 00000000..8844bd62 --- /dev/null +++ b/src/Model/GetOrganizationUsersWithAccess200ResponseUsers.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var GetOrganizationUsersWithAccessPartUser + */ + protected $user; + + public function getUser(): GetOrganizationUsersWithAccessPartUser + { + return $this->user; + } + + public function setUser(GetOrganizationUsersWithAccessPartUser $user): self + { + $this->initialized['user'] = true; + $this->user = $user; + + return $this; + } +} diff --git a/src/Model/GetOrganizationUsersWithAccessPartUser.php b/src/Model/GetOrganizationUsersWithAccessPartUser.php new file mode 100644 index 00000000..a1130a35 --- /dev/null +++ b/src/Model/GetOrganizationUsersWithAccessPartUser.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $firstName; + /** + * @var string + */ + protected $lastName; + /** + * @var string + */ + protected $avatarUrl; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getFirstName(): string + { + return $this->firstName; + } + + public function setFirstName(string $firstName): self + { + $this->initialized['firstName'] = true; + $this->firstName = $firstName; + + return $this; + } + + public function getLastName(): string + { + return $this->lastName; + } + + public function setLastName(string $lastName): self + { + $this->initialized['lastName'] = true; + $this->lastName = $lastName; + + return $this; + } + + public function getAvatarUrl(): string + { + return $this->avatarUrl; + } + + public function setAvatarUrl(string $avatarUrl): self + { + $this->initialized['avatarUrl'] = true; + $this->avatarUrl = $avatarUrl; + + return $this; + } +} diff --git a/src/Model/GetOrganizationVirtualMachines200ResponseVirtualMachines.php b/src/Model/GetOrganizationVirtualMachines200ResponseVirtualMachines.php new file mode 100644 index 00000000..569ceafd --- /dev/null +++ b/src/Model/GetOrganizationVirtualMachines200ResponseVirtualMachines.php @@ -0,0 +1,183 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $hostname; + /** + * @var string + */ + protected $fqdn; + /** + * @var int + */ + protected $createdAt; + /** + * @var GetOrganizationVirtualMachinesPartZone + */ + protected $zone; + /** + * @var GetOrganizationVirtualMachinesPartPackage + */ + protected $package; + /** + * @var GetOrganizationVirtualMachinesPartGPUType + */ + protected $gpuType; + /** + * @var GetOrganizationVirtualMachinesPartIPAddresses[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getZone(): GetOrganizationVirtualMachinesPartZone + { + return $this->zone; + } + + public function setZone(GetOrganizationVirtualMachinesPartZone $zone): self + { + $this->initialized['zone'] = true; + $this->zone = $zone; + + return $this; + } + + public function getPackage(): GetOrganizationVirtualMachinesPartPackage + { + return $this->package; + } + + public function setPackage(GetOrganizationVirtualMachinesPartPackage $package): self + { + $this->initialized['package'] = true; + $this->package = $package; + + return $this; + } + + public function getGpuType(): GetOrganizationVirtualMachinesPartGPUType + { + return $this->gpuType; + } + + public function setGpuType(GetOrganizationVirtualMachinesPartGPUType $gpuType): self + { + $this->initialized['gpuType'] = true; + $this->gpuType = $gpuType; + + return $this; + } + + /** + * @return GetOrganizationVirtualMachinesPartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param GetOrganizationVirtualMachinesPartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/GetOrganizationVirtualMachinesPartDataCenter.php b/src/Model/GetOrganizationVirtualMachinesPartDataCenter.php new file mode 100644 index 00000000..05f0b30b --- /dev/null +++ b/src/Model/GetOrganizationVirtualMachinesPartDataCenter.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetOrganizationVirtualMachinesPartGPUType.php b/src/Model/GetOrganizationVirtualMachinesPartGPUType.php new file mode 100644 index 00000000..542c7764 --- /dev/null +++ b/src/Model/GetOrganizationVirtualMachinesPartGPUType.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetOrganizationVirtualMachinesPartIPAddresses.php b/src/Model/GetOrganizationVirtualMachinesPartIPAddresses.php new file mode 100644 index 00000000..a22fbd28 --- /dev/null +++ b/src/Model/GetOrganizationVirtualMachinesPartIPAddresses.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $address; + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Model/GetOrganizationVirtualMachinesPartPackage.php b/src/Model/GetOrganizationVirtualMachinesPartPackage.php new file mode 100644 index 00000000..5c1cad24 --- /dev/null +++ b/src/Model/GetOrganizationVirtualMachinesPartPackage.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $name; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetOrganizationVirtualMachinesPartZone.php b/src/Model/GetOrganizationVirtualMachinesPartZone.php new file mode 100644 index 00000000..e8153d84 --- /dev/null +++ b/src/Model/GetOrganizationVirtualMachinesPartZone.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var GetOrganizationVirtualMachinesPartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): GetOrganizationVirtualMachinesPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetOrganizationVirtualMachinesPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/GetOrganizations200ResponseOrganizations.php b/src/Model/GetOrganizations200ResponseOrganizations.php new file mode 100644 index 00000000..287d96b0 --- /dev/null +++ b/src/Model/GetOrganizations200ResponseOrganizations.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $subDomain; + /** + * @var string + */ + protected $infrastructureDomain; + /** + * @var int + */ + protected $createdAt; + /** + * @var bool + */ + protected $suspended; + /** + * @var bool + */ + protected $managed; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSubDomain(): string + { + return $this->subDomain; + } + + public function setSubDomain(string $subDomain): self + { + $this->initialized['subDomain'] = true; + $this->subDomain = $subDomain; + + return $this; + } + + public function getInfrastructureDomain(): string + { + return $this->infrastructureDomain; + } + + public function setInfrastructureDomain(string $infrastructureDomain): self + { + $this->initialized['infrastructureDomain'] = true; + $this->infrastructureDomain = $infrastructureDomain; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getSuspended(): bool + { + return $this->suspended; + } + + public function setSuspended(bool $suspended): self + { + $this->initialized['suspended'] = true; + $this->suspended = $suspended; + + return $this; + } + + public function getManaged(): bool + { + return $this->managed; + } + + public function setManaged(bool $managed): self + { + $this->initialized['managed'] = true; + $this->managed = $managed; + + return $this; + } +} diff --git a/src/Model/GetSecurityGroupRules200ResponseSecurityGroupRules.php b/src/Model/GetSecurityGroupRules200ResponseSecurityGroupRules.php new file mode 100644 index 00000000..188b60f2 --- /dev/null +++ b/src/Model/GetSecurityGroupRules200ResponseSecurityGroupRules.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $direction; + /** + * @var string + */ + protected $protocol; + /** + * @var string + */ + protected $action; + /** + * @var string + */ + protected $ports; + /** + * @var string[] + */ + protected $targets; + /** + * @var string + */ + protected $notes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getDirection(): string + { + return $this->direction; + } + + public function setDirection(string $direction): self + { + $this->initialized['direction'] = true; + $this->direction = $direction; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getAction(): string + { + return $this->action; + } + + public function setAction(string $action): self + { + $this->initialized['action'] = true; + $this->action = $action; + + return $this; + } + + public function getPorts(): string + { + return $this->ports; + } + + public function setPorts(string $ports): self + { + $this->initialized['ports'] = true; + $this->ports = $ports; + + return $this; + } + + /** + * @return string[] + */ + public function getTargets(): array + { + return $this->targets; + } + + /** + * @param string[] $targets + */ + public function setTargets(array $targets): self + { + $this->initialized['targets'] = true; + $this->targets = $targets; + + return $this; + } + + public function getNotes(): string + { + return $this->notes; + } + + public function setNotes(string $notes): self + { + $this->initialized['notes'] = true; + $this->notes = $notes; + + return $this; + } +} diff --git a/src/Model/GetSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule.php b/src/Model/GetSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule.php new file mode 100644 index 00000000..e8166999 --- /dev/null +++ b/src/Model/GetSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule.php @@ -0,0 +1,166 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup + */ + protected $securityGroup; + /** + * @var string + */ + protected $direction; + /** + * @var string + */ + protected $protocol; + /** + * @var string + */ + protected $action; + /** + * @var string + */ + protected $ports; + /** + * @var string[] + */ + protected $targets; + /** + * @var string + */ + protected $notes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getSecurityGroup(): GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup + { + return $this->securityGroup; + } + + public function setSecurityGroup(GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } + + public function getDirection(): string + { + return $this->direction; + } + + public function setDirection(string $direction): self + { + $this->initialized['direction'] = true; + $this->direction = $direction; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getAction(): string + { + return $this->action; + } + + public function setAction(string $action): self + { + $this->initialized['action'] = true; + $this->action = $action; + + return $this; + } + + public function getPorts(): string + { + return $this->ports; + } + + public function setPorts(string $ports): self + { + $this->initialized['ports'] = true; + $this->ports = $ports; + + return $this; + } + + /** + * @return string[] + */ + public function getTargets(): array + { + return $this->targets; + } + + /** + * @param string[] $targets + */ + public function setTargets(array $targets): self + { + $this->initialized['targets'] = true; + $this->targets = $targets; + + return $this; + } + + public function getNotes(): string + { + return $this->notes; + } + + public function setNotes(string $notes): self + { + $this->initialized['notes'] = true; + $this->notes = $notes; + + return $this; + } +} diff --git a/src/Model/GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup.php b/src/Model/GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup.php new file mode 100644 index 00000000..cca2a82f --- /dev/null +++ b/src/Model/GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetUsersCurrent200ResponseOrganizations.php b/src/Model/GetUsersCurrent200ResponseOrganizations.php new file mode 100644 index 00000000..e92a6777 --- /dev/null +++ b/src/Model/GetUsersCurrent200ResponseOrganizations.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $subDomain; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSubDomain(): string + { + return $this->subDomain; + } + + public function setSubDomain(string $subDomain): self + { + $this->initialized['subDomain'] = true; + $this->subDomain = $subDomain; + + return $this; + } +} diff --git a/src/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterface.php b/src/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterface.php new file mode 100644 index 00000000..71f53d8b --- /dev/null +++ b/src/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterface.php @@ -0,0 +1,166 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var GetVMNIVMNIPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var GetVMNIVMNIPartNetwork + */ + protected $network; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var GetVMNIVMNIPartIPAddresses[] + */ + protected $ipAddresses; + /** + * @var GetVMNIVMNIPartSpeedProfile + */ + protected $speedProfile; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): GetVMNIVMNIPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(GetVMNIVMNIPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): GetVMNIVMNIPartNetwork + { + return $this->network; + } + + public function setNetwork(GetVMNIVMNIPartNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return GetVMNIVMNIPartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param GetVMNIVMNIPartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } + + public function getSpeedProfile(): GetVMNIVMNIPartSpeedProfile + { + return $this->speedProfile; + } + + public function setSpeedProfile(GetVMNIVMNIPartSpeedProfile $speedProfile): self + { + $this->initialized['speedProfile'] = true; + $this->speedProfile = $speedProfile; + + return $this; + } +} diff --git a/src/Model/GetVMNIVMNIPartIPAddresses.php b/src/Model/GetVMNIVMNIPartIPAddresses.php new file mode 100644 index 00000000..da47efc7 --- /dev/null +++ b/src/Model/GetVMNIVMNIPartIPAddresses.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Model/GetVMNIVMNIPartNetwork.php b/src/Model/GetVMNIVMNIPartNetwork.php new file mode 100644 index 00000000..3a8405b1 --- /dev/null +++ b/src/Model/GetVMNIVMNIPartNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetVMNIVMNIPartSpeedProfile.php b/src/Model/GetVMNIVMNIPartSpeedProfile.php new file mode 100644 index 00000000..27096a20 --- /dev/null +++ b/src/Model/GetVMNIVMNIPartSpeedProfile.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetVMNIVMNIPartVirtualMachine.php b/src/Model/GetVMNIVMNIPartVirtualMachine.php new file mode 100644 index 00000000..81214221 --- /dev/null +++ b/src/Model/GetVMNIVMNIPartVirtualMachine.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachine200ResponseVirtualMachine.php b/src/Model/GetVirtualMachine200ResponseVirtualMachine.php new file mode 100644 index 00000000..564e42e5 --- /dev/null +++ b/src/Model/GetVirtualMachine200ResponseVirtualMachine.php @@ -0,0 +1,388 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $hostname; + /** + * @var string + */ + protected $fqdn; + /** + * @var string + */ + protected $description; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $initialRootPassword; + /** + * @var string + */ + protected $state; + /** + * @var GetVirtualMachinePartZone + */ + protected $zone; + /** + * @var GetVirtualMachinePartOrganization + */ + protected $organization; + /** + * @var GetVirtualMachinePartGroup + */ + protected $group; + /** + * @var GetVirtualMachinePartPackage + */ + protected $package; + /** + * @var GetVirtualMachinePartAttachedISO + */ + protected $attachedIso; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $cpuCores; + /** + * @var GetVirtualMachinePartGPUType + */ + protected $gpuType; + /** + * @var GetVirtualMachinePartGPUs[] + */ + protected $gpus; + /** + * @var GetVirtualMachinePartTags[] + */ + protected $tags; + /** + * @var string[] + */ + protected $tagNames; + /** + * @var GetVirtualMachinePartIPAddresses[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getInitialRootPassword(): string + { + return $this->initialRootPassword; + } + + public function setInitialRootPassword(string $initialRootPassword): self + { + $this->initialized['initialRootPassword'] = true; + $this->initialRootPassword = $initialRootPassword; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getZone(): GetVirtualMachinePartZone + { + return $this->zone; + } + + public function setZone(GetVirtualMachinePartZone $zone): self + { + $this->initialized['zone'] = true; + $this->zone = $zone; + + return $this; + } + + public function getOrganization(): GetVirtualMachinePartOrganization + { + return $this->organization; + } + + public function setOrganization(GetVirtualMachinePartOrganization $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getGroup(): GetVirtualMachinePartGroup + { + return $this->group; + } + + public function setGroup(GetVirtualMachinePartGroup $group): self + { + $this->initialized['group'] = true; + $this->group = $group; + + return $this; + } + + public function getPackage(): GetVirtualMachinePartPackage + { + return $this->package; + } + + public function setPackage(GetVirtualMachinePartPackage $package): self + { + $this->initialized['package'] = true; + $this->package = $package; + + return $this; + } + + public function getAttachedIso(): GetVirtualMachinePartAttachedISO + { + return $this->attachedIso; + } + + public function setAttachedIso(GetVirtualMachinePartAttachedISO $attachedIso): self + { + $this->initialized['attachedIso'] = true; + $this->attachedIso = $attachedIso; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getGpuType(): GetVirtualMachinePartGPUType + { + return $this->gpuType; + } + + public function setGpuType(GetVirtualMachinePartGPUType $gpuType): self + { + $this->initialized['gpuType'] = true; + $this->gpuType = $gpuType; + + return $this; + } + + /** + * @return GetVirtualMachinePartGPUs[] + */ + public function getGpus(): array + { + return $this->gpus; + } + + /** + * @param GetVirtualMachinePartGPUs[] $gpus + */ + public function setGpus(array $gpus): self + { + $this->initialized['gpus'] = true; + $this->gpus = $gpus; + + return $this; + } + + /** + * @return GetVirtualMachinePartTags[] + */ + public function getTags(): array + { + return $this->tags; + } + + /** + * @param GetVirtualMachinePartTags[] $tags + */ + public function setTags(array $tags): self + { + $this->initialized['tags'] = true; + $this->tags = $tags; + + return $this; + } + + /** + * @return string[] + */ + public function getTagNames(): array + { + return $this->tagNames; + } + + /** + * @param string[] $tagNames + */ + public function setTagNames(array $tagNames): self + { + $this->initialized['tagNames'] = true; + $this->tagNames = $tagNames; + + return $this; + } + + /** + * @return GetVirtualMachinePartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param GetVirtualMachinePartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicies.php b/src/Model/GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicies.php new file mode 100644 index 00000000..720c082c --- /dev/null +++ b/src/Model/GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicies.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $retention; + /** + * @var float + */ + protected $totalSize; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var GetVirtualMachineDiskBackupPoliciesPartSchedule + */ + protected $schedule; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getRetention(): int + { + return $this->retention; + } + + public function setRetention(int $retention): self + { + $this->initialized['retention'] = true; + $this->retention = $retention; + + return $this; + } + + public function getTotalSize(): float + { + return $this->totalSize; + } + + public function setTotalSize(float $totalSize): self + { + $this->initialized['totalSize'] = true; + $this->totalSize = $totalSize; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + public function getSchedule(): GetVirtualMachineDiskBackupPoliciesPartSchedule + { + return $this->schedule; + } + + public function setSchedule(GetVirtualMachineDiskBackupPoliciesPartSchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachineDiskBackupPoliciesPartSchedule.php b/src/Model/GetVirtualMachineDiskBackupPoliciesPartSchedule.php new file mode 100644 index 00000000..c7572b1f --- /dev/null +++ b/src/Model/GetVirtualMachineDiskBackupPoliciesPartSchedule.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $interval; + /** + * @var int + */ + protected $nextInvocationAt; + + public function getInterval(): string + { + return $this->interval; + } + + public function setInterval(string $interval): self + { + $this->initialized['interval'] = true; + $this->interval = $interval; + + return $this; + } + + public function getNextInvocationAt(): int + { + return $this->nextInvocationAt; + } + + public function setNextInvocationAt(int $nextInvocationAt): self + { + $this->initialized['nextInvocationAt'] = true; + $this->nextInvocationAt = $nextInvocationAt; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachineDisks200ResponseDisks.php b/src/Model/GetVirtualMachineDisks200ResponseDisks.php new file mode 100644 index 00000000..c79f1d63 --- /dev/null +++ b/src/Model/GetVirtualMachineDisks200ResponseDisks.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var GetVirtualMachineDisksPartDisk + */ + protected $disk; + /** + * @var bool + */ + protected $attachOnBoot; + /** + * @var bool + */ + protected $boot; + /** + * @var string + */ + protected $state; + + public function getDisk(): GetVirtualMachineDisksPartDisk + { + return $this->disk; + } + + public function setDisk(GetVirtualMachineDisksPartDisk $disk): self + { + $this->initialized['disk'] = true; + $this->disk = $disk; + + return $this; + } + + public function getAttachOnBoot(): bool + { + return $this->attachOnBoot; + } + + public function setAttachOnBoot(bool $attachOnBoot): self + { + $this->initialized['attachOnBoot'] = true; + $this->attachOnBoot = $attachOnBoot; + + return $this; + } + + public function getBoot(): bool + { + return $this->boot; + } + + public function setBoot(bool $boot): self + { + $this->initialized['boot'] = true; + $this->boot = $boot; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachineDisksPartDisk.php b/src/Model/GetVirtualMachineDisksPartDisk.php new file mode 100644 index 00000000..d8f8d295 --- /dev/null +++ b/src/Model/GetVirtualMachineDisksPartDisk.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $sizeInGb; + /** + * @var string + */ + protected $wwn; + /** + * @var string + */ + protected $state; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSizeInGb(): int + { + return $this->sizeInGb; + } + + public function setSizeInGb(int $sizeInGb): self + { + $this->initialized['sizeInGb'] = true; + $this->sizeInGb = $sizeInGb; + + return $this; + } + + public function getWwn(): string + { + return $this->wwn; + } + + public function setWwn(string $wwn): self + { + $this->initialized['wwn'] = true; + $this->wwn = $wwn; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface.php b/src/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface.php new file mode 100644 index 00000000..b26d3798 --- /dev/null +++ b/src/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var GetVirtualMachineNetworkInterfacePartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var GetVirtualMachineNetworkInterfacePartNetwork + */ + protected $network; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var GetVirtualMachineNetworkInterfacePartIPAddresses[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): GetVirtualMachineNetworkInterfacePartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(GetVirtualMachineNetworkInterfacePartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): GetVirtualMachineNetworkInterfacePartNetwork + { + return $this->network; + } + + public function setNetwork(GetVirtualMachineNetworkInterfacePartNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return GetVirtualMachineNetworkInterfacePartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param GetVirtualMachineNetworkInterfacePartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachineNetworkInterfacePartIPAddresses.php b/src/Model/GetVirtualMachineNetworkInterfacePartIPAddresses.php new file mode 100644 index 00000000..16b31caf --- /dev/null +++ b/src/Model/GetVirtualMachineNetworkInterfacePartIPAddresses.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachineNetworkInterfacePartNetwork.php b/src/Model/GetVirtualMachineNetworkInterfacePartNetwork.php new file mode 100644 index 00000000..4ea2c71a --- /dev/null +++ b/src/Model/GetVirtualMachineNetworkInterfacePartNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachineNetworkInterfacePartVirtualMachine.php b/src/Model/GetVirtualMachineNetworkInterfacePartVirtualMachine.php new file mode 100644 index 00000000..837d0682 --- /dev/null +++ b/src/Model/GetVirtualMachineNetworkInterfacePartVirtualMachine.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces.php b/src/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces.php new file mode 100644 index 00000000..42e4ebb9 --- /dev/null +++ b/src/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var GetVirtualMachineNetworkInterfacesPartNetwork + */ + protected $network; + /** + * @var GetVirtualMachineNetworkInterfacesPartIPAddresses[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): GetVirtualMachineNetworkInterfacesPartNetwork + { + return $this->network; + } + + public function setNetwork(GetVirtualMachineNetworkInterfacesPartNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + /** + * @return GetVirtualMachineNetworkInterfacesPartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param GetVirtualMachineNetworkInterfacesPartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachineNetworkInterfacesPartIPAddresses.php b/src/Model/GetVirtualMachineNetworkInterfacesPartIPAddresses.php new file mode 100644 index 00000000..83a9a0b0 --- /dev/null +++ b/src/Model/GetVirtualMachineNetworkInterfacesPartIPAddresses.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachineNetworkInterfacesPartNetwork.php b/src/Model/GetVirtualMachineNetworkInterfacesPartNetwork.php new file mode 100644 index 00000000..9c1190ca --- /dev/null +++ b/src/Model/GetVirtualMachineNetworkInterfacesPartNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePackages200ResponseVirtualMachinePackages.php b/src/Model/GetVirtualMachinePackages200ResponseVirtualMachinePackages.php new file mode 100644 index 00000000..6ae5a515 --- /dev/null +++ b/src/Model/GetVirtualMachinePackages200ResponseVirtualMachinePackages.php @@ -0,0 +1,177 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var int + */ + protected $cpuCores; + /** + * @var int + */ + protected $ipv4Addresses; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $storageInGb; + /** + * @var string + */ + protected $privacy; + /** + * @var GetVirtualMachinePackagesPartIcon + */ + protected $icon; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getIpv4Addresses(): int + { + return $this->ipv4Addresses; + } + + public function setIpv4Addresses(int $ipv4Addresses): self + { + $this->initialized['ipv4Addresses'] = true; + $this->ipv4Addresses = $ipv4Addresses; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getStorageInGb(): int + { + return $this->storageInGb; + } + + public function setStorageInGb(int $storageInGb): self + { + $this->initialized['storageInGb'] = true; + $this->storageInGb = $storageInGb; + + return $this; + } + + public function getPrivacy(): string + { + return $this->privacy; + } + + public function setPrivacy(string $privacy): self + { + $this->initialized['privacy'] = true; + $this->privacy = $privacy; + + return $this; + } + + public function getIcon(): GetVirtualMachinePackagesPartIcon + { + return $this->icon; + } + + public function setIcon(GetVirtualMachinePackagesPartIcon $icon): self + { + $this->initialized['icon'] = true; + $this->icon = $icon; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePackagesPartIcon.php b/src/Model/GetVirtualMachinePackagesPartIcon.php new file mode 100644 index 00000000..d10950fd --- /dev/null +++ b/src/Model/GetVirtualMachinePackagesPartIcon.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $url; + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartAttachedISO.php b/src/Model/GetVirtualMachinePartAttachedISO.php new file mode 100644 index 00000000..f5b1fca1 --- /dev/null +++ b/src/Model/GetVirtualMachinePartAttachedISO.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var GetVirtualMachinePartOperatingSystem + */ + protected $operatingSystem; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getOperatingSystem(): GetVirtualMachinePartOperatingSystem + { + return $this->operatingSystem; + } + + public function setOperatingSystem(GetVirtualMachinePartOperatingSystem $operatingSystem): self + { + $this->initialized['operatingSystem'] = true; + $this->operatingSystem = $operatingSystem; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartBadge.php b/src/Model/GetVirtualMachinePartBadge.php new file mode 100644 index 00000000..046e578e --- /dev/null +++ b/src/Model/GetVirtualMachinePartBadge.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $url; + /** + * @var string + */ + protected $fileName; + /** + * @var string + */ + protected $fileType; + /** + * @var int + */ + protected $fileSize; + /** + * @var string + */ + protected $digest; + /** + * @var string + */ + protected $token; + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } + + public function getFileName(): string + { + return $this->fileName; + } + + public function setFileName(string $fileName): self + { + $this->initialized['fileName'] = true; + $this->fileName = $fileName; + + return $this; + } + + public function getFileType(): string + { + return $this->fileType; + } + + public function setFileType(string $fileType): self + { + $this->initialized['fileType'] = true; + $this->fileType = $fileType; + + return $this; + } + + public function getFileSize(): int + { + return $this->fileSize; + } + + public function setFileSize(int $fileSize): self + { + $this->initialized['fileSize'] = true; + $this->fileSize = $fileSize; + + return $this; + } + + public function getDigest(): string + { + return $this->digest; + } + + public function setDigest(string $digest): self + { + $this->initialized['digest'] = true; + $this->digest = $digest; + + return $this; + } + + public function getToken(): string + { + return $this->token; + } + + public function setToken(string $token): self + { + $this->initialized['token'] = true; + $this->token = $token; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartCountry.php b/src/Model/GetVirtualMachinePartCountry.php new file mode 100644 index 00000000..78d873a7 --- /dev/null +++ b/src/Model/GetVirtualMachinePartCountry.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $isoCode2; + /** + * @var string + */ + protected $isoCode3; + /** + * @var string + */ + protected $timeZone; + /** + * @var bool + */ + protected $eu; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIsoCode2(): string + { + return $this->isoCode2; + } + + public function setIsoCode2(string $isoCode2): self + { + $this->initialized['isoCode2'] = true; + $this->isoCode2 = $isoCode2; + + return $this; + } + + public function getIsoCode3(): string + { + return $this->isoCode3; + } + + public function setIsoCode3(string $isoCode3): self + { + $this->initialized['isoCode3'] = true; + $this->isoCode3 = $isoCode3; + + return $this; + } + + public function getTimeZone(): string + { + return $this->timeZone; + } + + public function setTimeZone(string $timeZone): self + { + $this->initialized['timeZone'] = true; + $this->timeZone = $timeZone; + + return $this; + } + + public function getEu(): bool + { + return $this->eu; + } + + public function setEu(bool $eu): self + { + $this->initialized['eu'] = true; + $this->eu = $eu; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartCountryState.php b/src/Model/GetVirtualMachinePartCountryState.php new file mode 100644 index 00000000..4f465fcf --- /dev/null +++ b/src/Model/GetVirtualMachinePartCountryState.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $code; + /** + * @var GetVirtualMachinePartCountry + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getCountry(): GetVirtualMachinePartCountry + { + return $this->country; + } + + public function setCountry(GetVirtualMachinePartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartCurrency.php b/src/Model/GetVirtualMachinePartCurrency.php new file mode 100644 index 00000000..f6137c1b --- /dev/null +++ b/src/Model/GetVirtualMachinePartCurrency.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $isoCode; + /** + * @var string + */ + protected $symbol; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIsoCode(): string + { + return $this->isoCode; + } + + public function setIsoCode(string $isoCode): self + { + $this->initialized['isoCode'] = true; + $this->isoCode = $isoCode; + + return $this; + } + + public function getSymbol(): string + { + return $this->symbol; + } + + public function setSymbol(string $symbol): self + { + $this->initialized['symbol'] = true; + $this->symbol = $symbol; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartDataCenter.php b/src/Model/GetVirtualMachinePartDataCenter.php new file mode 100644 index 00000000..cbced232 --- /dev/null +++ b/src/Model/GetVirtualMachinePartDataCenter.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var GetVirtualMachinePartCountry + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCountry(): GetVirtualMachinePartCountry + { + return $this->country; + } + + public function setCountry(GetVirtualMachinePartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartGPUType.php b/src/Model/GetVirtualMachinePartGPUType.php new file mode 100644 index 00000000..5b961e13 --- /dev/null +++ b/src/Model/GetVirtualMachinePartGPUType.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $manufacturer; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var string + */ + protected $memoryType; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getManufacturer(): string + { + return $this->manufacturer; + } + + public function setManufacturer(string $manufacturer): self + { + $this->initialized['manufacturer'] = true; + $this->manufacturer = $manufacturer; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getMemoryType(): string + { + return $this->memoryType; + } + + public function setMemoryType(string $memoryType): self + { + $this->initialized['memoryType'] = true; + $this->memoryType = $memoryType; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartGPUs.php b/src/Model/GetVirtualMachinePartGPUs.php new file mode 100644 index 00000000..c7dc7734 --- /dev/null +++ b/src/Model/GetVirtualMachinePartGPUs.php @@ -0,0 +1,125 @@ +initialized); + } + /** + * Unique ID for this GPU. Not available when status is "detached". + * + * @var string + */ + protected $id; + /** + * @var string + */ + protected $status; + /** + * @var string + */ + protected $pendingAction; + /** + * When pending action is "attach", this indicates if there is a GPU of the relevant type available. + * + * @var bool + */ + protected $available; + /** + * @var GetVirtualMachinePartType + */ + protected $type; + + /** + * Unique ID for this GPU. Not available when status is "detached". + */ + public function getId(): string + { + return $this->id; + } + + /** + * Unique ID for this GPU. Not available when status is "detached". + */ + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + public function getPendingAction(): string + { + return $this->pendingAction; + } + + public function setPendingAction(string $pendingAction): self + { + $this->initialized['pendingAction'] = true; + $this->pendingAction = $pendingAction; + + return $this; + } + + /** + * When pending action is "attach", this indicates if there is a GPU of the relevant type available. + */ + public function getAvailable(): bool + { + return $this->available; + } + + /** + * When pending action is "attach", this indicates if there is a GPU of the relevant type available. + */ + public function setAvailable(bool $available): self + { + $this->initialized['available'] = true; + $this->available = $available; + + return $this; + } + + public function getType(): GetVirtualMachinePartType + { + return $this->type; + } + + public function setType(GetVirtualMachinePartType $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartGroup.php b/src/Model/GetVirtualMachinePartGroup.php new file mode 100644 index 00000000..1c341ede --- /dev/null +++ b/src/Model/GetVirtualMachinePartGroup.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $segregate; + /** + * @var bool + */ + protected $autoSegregate; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSegregate(): bool + { + return $this->segregate; + } + + public function setSegregate(bool $segregate): self + { + $this->initialized['segregate'] = true; + $this->segregate = $segregate; + + return $this; + } + + public function getAutoSegregate(): bool + { + return $this->autoSegregate; + } + + public function setAutoSegregate(bool $autoSegregate): self + { + $this->initialized['autoSegregate'] = true; + $this->autoSegregate = $autoSegregate; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartIPAddresses.php b/src/Model/GetVirtualMachinePartIPAddresses.php new file mode 100644 index 00000000..b8333521 --- /dev/null +++ b/src/Model/GetVirtualMachinePartIPAddresses.php @@ -0,0 +1,177 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + /** + * @var string + */ + protected $reverseDns; + /** + * @var bool + */ + protected $vip; + /** + * @var string + */ + protected $label; + /** + * @var string + */ + protected $addressWithMask; + /** + * @var GetVirtualMachinePartNetwork + */ + protected $network; + /** + * @var string + */ + protected $allocationId; + /** + * @var string + */ + protected $allocationType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } + + public function getReverseDns(): string + { + return $this->reverseDns; + } + + public function setReverseDns(string $reverseDns): self + { + $this->initialized['reverseDns'] = true; + $this->reverseDns = $reverseDns; + + return $this; + } + + public function getVip(): bool + { + return $this->vip; + } + + public function setVip(bool $vip): self + { + $this->initialized['vip'] = true; + $this->vip = $vip; + + return $this; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + public function getAddressWithMask(): string + { + return $this->addressWithMask; + } + + public function setAddressWithMask(string $addressWithMask): self + { + $this->initialized['addressWithMask'] = true; + $this->addressWithMask = $addressWithMask; + + return $this; + } + + public function getNetwork(): GetVirtualMachinePartNetwork + { + return $this->network; + } + + public function setNetwork(GetVirtualMachinePartNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getAllocationId(): string + { + return $this->allocationId; + } + + public function setAllocationId(string $allocationId): self + { + $this->initialized['allocationId'] = true; + $this->allocationId = $allocationId; + + return $this; + } + + public function getAllocationType(): string + { + return $this->allocationType; + } + + public function setAllocationType(string $allocationType): self + { + $this->initialized['allocationType'] = true; + $this->allocationType = $allocationType; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartIcon.php b/src/Model/GetVirtualMachinePartIcon.php new file mode 100644 index 00000000..0e150d4c --- /dev/null +++ b/src/Model/GetVirtualMachinePartIcon.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $url; + /** + * @var string + */ + protected $fileName; + /** + * @var string + */ + protected $fileType; + /** + * @var int + */ + protected $fileSize; + /** + * @var string + */ + protected $digest; + /** + * @var string + */ + protected $token; + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } + + public function getFileName(): string + { + return $this->fileName; + } + + public function setFileName(string $fileName): self + { + $this->initialized['fileName'] = true; + $this->fileName = $fileName; + + return $this; + } + + public function getFileType(): string + { + return $this->fileType; + } + + public function setFileType(string $fileType): self + { + $this->initialized['fileType'] = true; + $this->fileType = $fileType; + + return $this; + } + + public function getFileSize(): int + { + return $this->fileSize; + } + + public function setFileSize(int $fileSize): self + { + $this->initialized['fileSize'] = true; + $this->fileSize = $fileSize; + + return $this; + } + + public function getDigest(): string + { + return $this->digest; + } + + public function setDigest(string $digest): self + { + $this->initialized['digest'] = true; + $this->digest = $digest; + + return $this; + } + + public function getToken(): string + { + return $this->token; + } + + public function setToken(string $token): self + { + $this->initialized['token'] = true; + $this->token = $token; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartNetwork.php b/src/Model/GetVirtualMachinePartNetwork.php new file mode 100644 index 00000000..57c4b077 --- /dev/null +++ b/src/Model/GetVirtualMachinePartNetwork.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var GetVirtualMachinePartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): GetVirtualMachinePartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetVirtualMachinePartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartOperatingSystem.php b/src/Model/GetVirtualMachinePartOperatingSystem.php new file mode 100644 index 00000000..5e34535c --- /dev/null +++ b/src/Model/GetVirtualMachinePartOperatingSystem.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var GetVirtualMachinePartBadge + */ + protected $badge; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getBadge(): GetVirtualMachinePartBadge + { + return $this->badge; + } + + public function setBadge(GetVirtualMachinePartBadge $badge): self + { + $this->initialized['badge'] = true; + $this->badge = $badge; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartOrganization.php b/src/Model/GetVirtualMachinePartOrganization.php new file mode 100644 index 00000000..778ffefa --- /dev/null +++ b/src/Model/GetVirtualMachinePartOrganization.php @@ -0,0 +1,330 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $subDomain; + /** + * @var string + */ + protected $infrastructureDomain; + /** + * @var int + */ + protected $createdAt; + /** + * @var bool + */ + protected $suspended; + /** + * @var bool + */ + protected $managed; + /** + * @var string + */ + protected $billingName; + /** + * @var string + */ + protected $address1; + /** + * @var string + */ + protected $address2; + /** + * @var string + */ + protected $address3; + /** + * @var string + */ + protected $address4; + /** + * @var string + */ + protected $postcode; + /** + * @var string + */ + protected $vatNumber; + /** + * @var string + */ + protected $phoneNumber; + /** + * @var GetVirtualMachinePartCurrency + */ + protected $currency; + /** + * @var GetVirtualMachinePartCountry + */ + protected $country; + /** + * @var GetVirtualMachinePartCountryState + */ + protected $countryState; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSubDomain(): string + { + return $this->subDomain; + } + + public function setSubDomain(string $subDomain): self + { + $this->initialized['subDomain'] = true; + $this->subDomain = $subDomain; + + return $this; + } + + public function getInfrastructureDomain(): string + { + return $this->infrastructureDomain; + } + + public function setInfrastructureDomain(string $infrastructureDomain): self + { + $this->initialized['infrastructureDomain'] = true; + $this->infrastructureDomain = $infrastructureDomain; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getSuspended(): bool + { + return $this->suspended; + } + + public function setSuspended(bool $suspended): self + { + $this->initialized['suspended'] = true; + $this->suspended = $suspended; + + return $this; + } + + public function getManaged(): bool + { + return $this->managed; + } + + public function setManaged(bool $managed): self + { + $this->initialized['managed'] = true; + $this->managed = $managed; + + return $this; + } + + public function getBillingName(): string + { + return $this->billingName; + } + + public function setBillingName(string $billingName): self + { + $this->initialized['billingName'] = true; + $this->billingName = $billingName; + + return $this; + } + + public function getAddress1(): string + { + return $this->address1; + } + + public function setAddress1(string $address1): self + { + $this->initialized['address1'] = true; + $this->address1 = $address1; + + return $this; + } + + public function getAddress2(): string + { + return $this->address2; + } + + public function setAddress2(string $address2): self + { + $this->initialized['address2'] = true; + $this->address2 = $address2; + + return $this; + } + + public function getAddress3(): string + { + return $this->address3; + } + + public function setAddress3(string $address3): self + { + $this->initialized['address3'] = true; + $this->address3 = $address3; + + return $this; + } + + public function getAddress4(): string + { + return $this->address4; + } + + public function setAddress4(string $address4): self + { + $this->initialized['address4'] = true; + $this->address4 = $address4; + + return $this; + } + + public function getPostcode(): string + { + return $this->postcode; + } + + public function setPostcode(string $postcode): self + { + $this->initialized['postcode'] = true; + $this->postcode = $postcode; + + return $this; + } + + public function getVatNumber(): string + { + return $this->vatNumber; + } + + public function setVatNumber(string $vatNumber): self + { + $this->initialized['vatNumber'] = true; + $this->vatNumber = $vatNumber; + + return $this; + } + + public function getPhoneNumber(): string + { + return $this->phoneNumber; + } + + public function setPhoneNumber(string $phoneNumber): self + { + $this->initialized['phoneNumber'] = true; + $this->phoneNumber = $phoneNumber; + + return $this; + } + + public function getCurrency(): GetVirtualMachinePartCurrency + { + return $this->currency; + } + + public function setCurrency(GetVirtualMachinePartCurrency $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } + + public function getCountry(): GetVirtualMachinePartCountry + { + return $this->country; + } + + public function setCountry(GetVirtualMachinePartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } + + public function getCountryState(): GetVirtualMachinePartCountryState + { + return $this->countryState; + } + + public function setCountryState(GetVirtualMachinePartCountryState $countryState): self + { + $this->initialized['countryState'] = true; + $this->countryState = $countryState; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartPackage.php b/src/Model/GetVirtualMachinePartPackage.php new file mode 100644 index 00000000..4e6e9503 --- /dev/null +++ b/src/Model/GetVirtualMachinePartPackage.php @@ -0,0 +1,194 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var int + */ + protected $cpuCores; + /** + * @var int + */ + protected $ipv4Addresses; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $storageInGb; + /** + * @var int + */ + protected $monthlyBandwidthAllowanceInGb; + /** + * @var string + */ + protected $privacy; + /** + * @var GetVirtualMachinePartIcon + */ + protected $icon; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getIpv4Addresses(): int + { + return $this->ipv4Addresses; + } + + public function setIpv4Addresses(int $ipv4Addresses): self + { + $this->initialized['ipv4Addresses'] = true; + $this->ipv4Addresses = $ipv4Addresses; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getStorageInGb(): int + { + return $this->storageInGb; + } + + public function setStorageInGb(int $storageInGb): self + { + $this->initialized['storageInGb'] = true; + $this->storageInGb = $storageInGb; + + return $this; + } + + public function getMonthlyBandwidthAllowanceInGb(): int + { + return $this->monthlyBandwidthAllowanceInGb; + } + + public function setMonthlyBandwidthAllowanceInGb(int $monthlyBandwidthAllowanceInGb): self + { + $this->initialized['monthlyBandwidthAllowanceInGb'] = true; + $this->monthlyBandwidthAllowanceInGb = $monthlyBandwidthAllowanceInGb; + + return $this; + } + + public function getPrivacy(): string + { + return $this->privacy; + } + + public function setPrivacy(string $privacy): self + { + $this->initialized['privacy'] = true; + $this->privacy = $privacy; + + return $this; + } + + public function getIcon(): GetVirtualMachinePartIcon + { + return $this->icon; + } + + public function setIcon(GetVirtualMachinePartIcon $icon): self + { + $this->initialized['icon'] = true; + $this->icon = $icon; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartTags.php b/src/Model/GetVirtualMachinePartTags.php new file mode 100644 index 00000000..e857b9e9 --- /dev/null +++ b/src/Model/GetVirtualMachinePartTags.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $color; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getColor(): string + { + return $this->color; + } + + public function setColor(string $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartType.php b/src/Model/GetVirtualMachinePartType.php new file mode 100644 index 00000000..ae4f8f40 --- /dev/null +++ b/src/Model/GetVirtualMachinePartType.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $manufacturer; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var string + */ + protected $memoryType; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getManufacturer(): string + { + return $this->manufacturer; + } + + public function setManufacturer(string $manufacturer): self + { + $this->initialized['manufacturer'] = true; + $this->manufacturer = $manufacturer; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getMemoryType(): string + { + return $this->memoryType; + } + + public function setMemoryType(string $memoryType): self + { + $this->initialized['memoryType'] = true; + $this->memoryType = $memoryType; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinePartZone.php b/src/Model/GetVirtualMachinePartZone.php new file mode 100644 index 00000000..02fb07f3 --- /dev/null +++ b/src/Model/GetVirtualMachinePartZone.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var GetVirtualMachinePartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): GetVirtualMachinePartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetVirtualMachinePartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuild.php b/src/Model/GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuild.php new file mode 100644 index 00000000..7f2842ba --- /dev/null +++ b/src/Model/GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuild.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $specXml; + /** + * @var string + */ + protected $state; + /** + * @var GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getSpecXml(): string + { + return $this->specXml; + } + + public function setSpecXml(string $specXml): self + { + $this->initialized['specXml'] = true; + $this->specXml = $specXml; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getVirtualMachine(): GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine.php b/src/Model/GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine.php new file mode 100644 index 00000000..aaa54cfa --- /dev/null +++ b/src/Model/GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $hostname; + /** + * @var string + */ + protected $fqdn; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/GetZones200ResponseZones.php b/src/Model/GetZones200ResponseZones.php new file mode 100644 index 00000000..16572ae5 --- /dev/null +++ b/src/Model/GetZones200ResponseZones.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var GetZonesPartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): GetZonesPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetZonesPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/GetZonesPartDataCenter.php b/src/Model/GetZonesPartDataCenter.php new file mode 100644 index 00000000..5e2ff2cd --- /dev/null +++ b/src/Model/GetZonesPartDataCenter.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/GpuTypesGetResponse200.php b/src/Model/GpuTypesGetResponse200.php new file mode 100644 index 00000000..e328cef1 --- /dev/null +++ b/src/Model/GpuTypesGetResponse200.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * @var GpuTypesGetResponse200Pagination + */ + protected $pagination; + /** + * @var GetGPUTypes200ResponseGPUTypes[] + */ + protected $gpuTypes; + + public function getPagination(): GpuTypesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(GpuTypesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * @return GetGPUTypes200ResponseGPUTypes[] + */ + public function getGpuTypes(): array + { + return $this->gpuTypes; + } + + /** + * @param GetGPUTypes200ResponseGPUTypes[] $gpuTypes + */ + public function setGpuTypes(array $gpuTypes): self + { + $this->initialized['gpuTypes'] = true; + $this->gpuTypes = $gpuTypes; + + return $this; + } +} diff --git a/src/Model/GpuTypesGetResponse200Pagination.php b/src/Model/GpuTypesGetResponse200Pagination.php new file mode 100644 index 00000000..c267bf0f --- /dev/null +++ b/src/Model/GpuTypesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/GpuTypesGpuTypeGetResponse200.php b/src/Model/GpuTypesGpuTypeGetResponse200.php new file mode 100644 index 00000000..8218b906 --- /dev/null +++ b/src/Model/GpuTypesGpuTypeGetResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var GpuTypesGpuTypeGetResponse200GpuType + */ + protected $gpuType; + + public function getGpuType(): GpuTypesGpuTypeGetResponse200GpuType + { + return $this->gpuType; + } + + public function setGpuType(GpuTypesGpuTypeGetResponse200GpuType $gpuType): self + { + $this->initialized['gpuType'] = true; + $this->gpuType = $gpuType; + + return $this; + } +} diff --git a/src/Model/GpuTypesGpuTypeGetResponse200GpuType.php b/src/Model/GpuTypesGpuTypeGetResponse200GpuType.php new file mode 100644 index 00000000..d0805152 --- /dev/null +++ b/src/Model/GpuTypesGpuTypeGetResponse200GpuType.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $manufacturer; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var string + */ + protected $memoryType; + /** + * @var string + */ + protected $permalink; + /** + * @var GetGPUTypePartDataCenters[] + */ + protected $dataCenters; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getManufacturer(): string + { + return $this->manufacturer; + } + + public function setManufacturer(string $manufacturer): self + { + $this->initialized['manufacturer'] = true; + $this->manufacturer = $manufacturer; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getMemoryType(): string + { + return $this->memoryType; + } + + public function setMemoryType(string $memoryType): self + { + $this->initialized['memoryType'] = true; + $this->memoryType = $memoryType; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + /** + * @return GetGPUTypePartDataCenters[] + */ + public function getDataCenters(): array + { + return $this->dataCenters; + } + + /** + * @param GetGPUTypePartDataCenters[] $dataCenters + */ + public function setDataCenters(array $dataCenters): self + { + $this->initialized['dataCenters'] = true; + $this->dataCenters = $dataCenters; + + return $this; + } +} diff --git a/src/Model/IPAddress.php b/src/Model/IPAddress.php new file mode 100644 index 00000000..2225ea37 --- /dev/null +++ b/src/Model/IPAddress.php @@ -0,0 +1,177 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + /** + * @var string + */ + protected $reverseDns; + /** + * @var bool + */ + protected $vip; + /** + * @var string + */ + protected $label; + /** + * @var string + */ + protected $addressWithMask; + /** + * @var Network + */ + protected $network; + /** + * @var string + */ + protected $allocationId; + /** + * @var string + */ + protected $allocationType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } + + public function getReverseDns(): string + { + return $this->reverseDns; + } + + public function setReverseDns(string $reverseDns): self + { + $this->initialized['reverseDns'] = true; + $this->reverseDns = $reverseDns; + + return $this; + } + + public function getVip(): bool + { + return $this->vip; + } + + public function setVip(bool $vip): self + { + $this->initialized['vip'] = true; + $this->vip = $vip; + + return $this; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + public function getAddressWithMask(): string + { + return $this->addressWithMask; + } + + public function setAddressWithMask(string $addressWithMask): self + { + $this->initialized['addressWithMask'] = true; + $this->addressWithMask = $addressWithMask; + + return $this; + } + + public function getNetwork(): Network + { + return $this->network; + } + + public function setNetwork(Network $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getAllocationId(): string + { + return $this->allocationId; + } + + public function setAllocationId(string $allocationId): self + { + $this->initialized['allocationId'] = true; + $this->allocationId = $allocationId; + + return $this; + } + + public function getAllocationType(): string + { + return $this->allocationType; + } + + public function setAllocationType(string $allocationType): self + { + $this->initialized['allocationType'] = true; + $this->allocationType = $allocationType; + + return $this; + } +} diff --git a/src/Model/IPAddressLookup.php b/src/Model/IPAddressLookup.php new file mode 100644 index 00000000..7e9703dd --- /dev/null +++ b/src/Model/IPAddressLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Model/IPAddressNotFoundSchema.php b/src/Model/IPAddressNotFoundSchema.php new file mode 100644 index 00000000..6fb0e421 --- /dev/null +++ b/src/Model/IPAddressNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/IPAlreadyAllocatedSchema.php b/src/Model/IPAlreadyAllocatedSchema.php new file mode 100644 index 00000000..98b23144 --- /dev/null +++ b/src/Model/IPAlreadyAllocatedSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ISO.php b/src/Model/ISO.php new file mode 100644 index 00000000..666f5e58 --- /dev/null +++ b/src/Model/ISO.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var OperatingSystem + */ + protected $operatingSystem; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getOperatingSystem(): OperatingSystem + { + return $this->operatingSystem; + } + + public function setOperatingSystem(OperatingSystem $operatingSystem): self + { + $this->initialized['operatingSystem'] = true; + $this->operatingSystem = $operatingSystem; + + return $this; + } +} diff --git a/src/Model/IdentityNotLinkedToWebSessionSchema.php b/src/Model/IdentityNotLinkedToWebSessionSchema.php new file mode 100644 index 00000000..26445463 --- /dev/null +++ b/src/Model/IdentityNotLinkedToWebSessionSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/InfrastructureDNSZoneCannotBeEditedSchema.php b/src/Model/InfrastructureDNSZoneCannotBeEditedSchema.php new file mode 100644 index 00000000..8b6ee230 --- /dev/null +++ b/src/Model/InfrastructureDNSZoneCannotBeEditedSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/InterfaceNotFoundSchema.php b/src/Model/InterfaceNotFoundSchema.php new file mode 100644 index 00000000..0565d9dd --- /dev/null +++ b/src/Model/InterfaceNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/InvalidAPIToken.php b/src/Model/InvalidAPIToken.php new file mode 100644 index 00000000..0c08d016 --- /dev/null +++ b/src/Model/InvalidAPIToken.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $details; + + public function getDetails(): string + { + return $this->details; + } + + public function setDetails(string $details): self + { + $this->initialized['details'] = true; + $this->details = $details; + + return $this; + } +} diff --git a/src/Model/InvalidAPITokenSchema.php b/src/Model/InvalidAPITokenSchema.php new file mode 100644 index 00000000..5687871a --- /dev/null +++ b/src/Model/InvalidAPITokenSchema.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var InvalidAPIToken + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): InvalidAPIToken + { + return $this->detail; + } + + public function setDetail(InvalidAPIToken $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/InvalidIPSchema.php b/src/Model/InvalidIPSchema.php new file mode 100644 index 00000000..7bc6bfd9 --- /dev/null +++ b/src/Model/InvalidIPSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/InvalidSpecXML.php b/src/Model/InvalidSpecXML.php new file mode 100644 index 00000000..7c6a9ea6 --- /dev/null +++ b/src/Model/InvalidSpecXML.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * A textual description of the errors with the provided XML. + * + * @var string + */ + protected $errors; + + /** + * A textual description of the errors with the provided XML. + */ + public function getErrors(): string + { + return $this->errors; + } + + /** + * A textual description of the errors with the provided XML. + */ + public function setErrors(string $errors): self + { + $this->initialized['errors'] = true; + $this->errors = $errors; + + return $this; + } +} diff --git a/src/Model/InvalidSpecXMLSchema.php b/src/Model/InvalidSpecXMLSchema.php new file mode 100644 index 00000000..fec6483a --- /dev/null +++ b/src/Model/InvalidSpecXMLSchema.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var InvalidSpecXML + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): InvalidSpecXML + { + return $this->detail; + } + + public function setDetail(InvalidSpecXML $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/InvalidTimestampSchema.php b/src/Model/InvalidTimestampSchema.php new file mode 100644 index 00000000..0a313e43 --- /dev/null +++ b/src/Model/InvalidTimestampSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/InvalidateLinkedWebSessionPostBody.php b/src/Model/InvalidateLinkedWebSessionPostBody.php new file mode 100644 index 00000000..18e00ae9 --- /dev/null +++ b/src/Model/InvalidateLinkedWebSessionPostBody.php @@ -0,0 +1,24 @@ +initialized); + } +} diff --git a/src/Model/InvalidateLinkedWebSessionPostResponse200.php b/src/Model/InvalidateLinkedWebSessionPostResponse200.php new file mode 100644 index 00000000..1285adef --- /dev/null +++ b/src/Model/InvalidateLinkedWebSessionPostResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var bool + */ + protected $status; + + public function getStatus(): bool + { + return $this->status; + } + + public function setStatus(bool $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/IpAddressesIpAddressDeleteBody.php b/src/Model/IpAddressesIpAddressDeleteBody.php new file mode 100644 index 00000000..e541605b --- /dev/null +++ b/src/Model/IpAddressesIpAddressDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + * + * @var IPAddressLookup + */ + protected $ipAddress; + + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + */ + public function getIpAddress(): IPAddressLookup + { + return $this->ipAddress; + } + + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + */ + public function setIpAddress(IPAddressLookup $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } +} diff --git a/src/Model/IpAddressesIpAddressDeleteResponse200.php b/src/Model/IpAddressesIpAddressDeleteResponse200.php new file mode 100644 index 00000000..c9ef30f1 --- /dev/null +++ b/src/Model/IpAddressesIpAddressDeleteResponse200.php @@ -0,0 +1,24 @@ +initialized); + } +} diff --git a/src/Model/IpAddressesIpAddressGetResponse200.php b/src/Model/IpAddressesIpAddressGetResponse200.php new file mode 100644 index 00000000..03ee4b74 --- /dev/null +++ b/src/Model/IpAddressesIpAddressGetResponse200.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * The IP address that has been located. + * + * @var IpAddressesIpAddressGetResponse200IpAddress + */ + protected $ipAddress; + /** + * The resource this address is allocated to. + * + * @var IpAddressesIpAddressGetResponse200Allocation|null + */ + protected $allocation; + + /** + * The IP address that has been located. + */ + public function getIpAddress(): IpAddressesIpAddressGetResponse200IpAddress + { + return $this->ipAddress; + } + + /** + * The IP address that has been located. + */ + public function setIpAddress(IpAddressesIpAddressGetResponse200IpAddress $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } + + /** + * The resource this address is allocated to. + */ + public function getAllocation(): ?IpAddressesIpAddressGetResponse200Allocation + { + return $this->allocation; + } + + /** + * The resource this address is allocated to. + */ + public function setAllocation(?IpAddressesIpAddressGetResponse200Allocation $allocation): self + { + $this->initialized['allocation'] = true; + $this->allocation = $allocation; + + return $this; + } +} diff --git a/src/Model/IpAddressesIpAddressGetResponse200Allocation.php b/src/Model/IpAddressesIpAddressGetResponse200Allocation.php new file mode 100644 index 00000000..eeb9d6f5 --- /dev/null +++ b/src/Model/IpAddressesIpAddressGetResponse200Allocation.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/IpAddressesIpAddressGetResponse200IpAddress.php b/src/Model/IpAddressesIpAddressGetResponse200IpAddress.php new file mode 100644 index 00000000..d73b1823 --- /dev/null +++ b/src/Model/IpAddressesIpAddressGetResponse200IpAddress.php @@ -0,0 +1,177 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + /** + * @var string + */ + protected $reverseDns; + /** + * @var bool + */ + protected $vip; + /** + * @var string + */ + protected $label; + /** + * @var string + */ + protected $addressWithMask; + /** + * @var Network + */ + protected $network; + /** + * @var string + */ + protected $allocationId; + /** + * @var string + */ + protected $allocationType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } + + public function getReverseDns(): string + { + return $this->reverseDns; + } + + public function setReverseDns(string $reverseDns): self + { + $this->initialized['reverseDns'] = true; + $this->reverseDns = $reverseDns; + + return $this; + } + + public function getVip(): bool + { + return $this->vip; + } + + public function setVip(bool $vip): self + { + $this->initialized['vip'] = true; + $this->vip = $vip; + + return $this; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + public function getAddressWithMask(): string + { + return $this->addressWithMask; + } + + public function setAddressWithMask(string $addressWithMask): self + { + $this->initialized['addressWithMask'] = true; + $this->addressWithMask = $addressWithMask; + + return $this; + } + + public function getNetwork(): Network + { + return $this->network; + } + + public function setNetwork(Network $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getAllocationId(): string + { + return $this->allocationId; + } + + public function setAllocationId(string $allocationId): self + { + $this->initialized['allocationId'] = true; + $this->allocationId = $allocationId; + + return $this; + } + + public function getAllocationType(): string + { + return $this->allocationType; + } + + public function setAllocationType(string $allocationType): self + { + $this->initialized['allocationType'] = true; + $this->allocationType = $allocationType; + + return $this; + } +} diff --git a/src/Model/IpAddressesIpAddressPatchBody.php b/src/Model/IpAddressesIpAddressPatchBody.php new file mode 100644 index 00000000..31d99f97 --- /dev/null +++ b/src/Model/IpAddressesIpAddressPatchBody.php @@ -0,0 +1,124 @@ +initialized); + } + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + * + * @var IPAddressLookup + */ + protected $ipAddress; + /** + * Whether or not to set this address as a VIP. + * + * @var bool + */ + protected $vip; + /** + * The label to give this address if setting it as a VIP. + * + * @var string + */ + protected $label; + /** + * The reverse DNS to set for this IP address. + * + * @var string + */ + protected $reverseDns; + + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + */ + public function getIpAddress(): IPAddressLookup + { + return $this->ipAddress; + } + + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + */ + public function setIpAddress(IPAddressLookup $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } + + /** + * Whether or not to set this address as a VIP. + */ + public function getVip(): bool + { + return $this->vip; + } + + /** + * Whether or not to set this address as a VIP. + */ + public function setVip(bool $vip): self + { + $this->initialized['vip'] = true; + $this->vip = $vip; + + return $this; + } + + /** + * The label to give this address if setting it as a VIP. + */ + public function getLabel(): string + { + return $this->label; + } + + /** + * The label to give this address if setting it as a VIP. + */ + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * The reverse DNS to set for this IP address. + */ + public function getReverseDns(): string + { + return $this->reverseDns; + } + + /** + * The reverse DNS to set for this IP address. + */ + public function setReverseDns(string $reverseDns): self + { + $this->initialized['reverseDns'] = true; + $this->reverseDns = $reverseDns; + + return $this; + } +} diff --git a/src/Model/IpAddressesIpAddressPatchResponse200.php b/src/Model/IpAddressesIpAddressPatchResponse200.php new file mode 100644 index 00000000..ee26fec0 --- /dev/null +++ b/src/Model/IpAddressesIpAddressPatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The IP address that has been updated. + * + * @var IpAddressesIpAddressPatchResponse200IpAddress + */ + protected $ipAddress; + + /** + * The IP address that has been updated. + */ + public function getIpAddress(): IpAddressesIpAddressPatchResponse200IpAddress + { + return $this->ipAddress; + } + + /** + * The IP address that has been updated. + */ + public function setIpAddress(IpAddressesIpAddressPatchResponse200IpAddress $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } +} diff --git a/src/Model/IpAddressesIpAddressPatchResponse200IpAddress.php b/src/Model/IpAddressesIpAddressPatchResponse200IpAddress.php new file mode 100644 index 00000000..76a92847 --- /dev/null +++ b/src/Model/IpAddressesIpAddressPatchResponse200IpAddress.php @@ -0,0 +1,177 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + /** + * @var string + */ + protected $reverseDns; + /** + * @var bool + */ + protected $vip; + /** + * @var string + */ + protected $label; + /** + * @var string + */ + protected $addressWithMask; + /** + * @var Network + */ + protected $network; + /** + * @var string + */ + protected $allocationId; + /** + * @var string + */ + protected $allocationType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } + + public function getReverseDns(): string + { + return $this->reverseDns; + } + + public function setReverseDns(string $reverseDns): self + { + $this->initialized['reverseDns'] = true; + $this->reverseDns = $reverseDns; + + return $this; + } + + public function getVip(): bool + { + return $this->vip; + } + + public function setVip(bool $vip): self + { + $this->initialized['vip'] = true; + $this->vip = $vip; + + return $this; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + public function getAddressWithMask(): string + { + return $this->addressWithMask; + } + + public function setAddressWithMask(string $addressWithMask): self + { + $this->initialized['addressWithMask'] = true; + $this->addressWithMask = $addressWithMask; + + return $this; + } + + public function getNetwork(): Network + { + return $this->network; + } + + public function setNetwork(Network $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getAllocationId(): string + { + return $this->allocationId; + } + + public function setAllocationId(string $allocationId): self + { + $this->initialized['allocationId'] = true; + $this->allocationId = $allocationId; + + return $this; + } + + public function getAllocationType(): string + { + return $this->allocationType; + } + + public function setAllocationType(string $allocationType): self + { + $this->initialized['allocationType'] = true; + $this->allocationType = $allocationType; + + return $this; + } +} diff --git a/src/Model/IpAddressesIpAddressUnallocatePostBody.php b/src/Model/IpAddressesIpAddressUnallocatePostBody.php new file mode 100644 index 00000000..8a566d83 --- /dev/null +++ b/src/Model/IpAddressesIpAddressUnallocatePostBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + * + * @var IPAddressLookup + */ + protected $ipAddress; + + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + */ + public function getIpAddress(): IPAddressLookup + { + return $this->ipAddress; + } + + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + */ + public function setIpAddress(IPAddressLookup $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } +} diff --git a/src/Model/IpAddressesIpAddressUnallocatePostResponse200.php b/src/Model/IpAddressesIpAddressUnallocatePostResponse200.php new file mode 100644 index 00000000..9437e48e --- /dev/null +++ b/src/Model/IpAddressesIpAddressUnallocatePostResponse200.php @@ -0,0 +1,24 @@ +initialized); + } +} diff --git a/src/Model/KeyValue.php b/src/Model/KeyValue.php new file mode 100644 index 00000000..3ac7dff8 --- /dev/null +++ b/src/Model/KeyValue.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $key; + /** + * @var string + */ + protected $value; + + public function getKey(): string + { + return $this->key; + } + + public function setKey(string $key): self + { + $this->initialized['key'] = true; + $this->key = $key; + + return $this; + } + + public function getValue(): string + { + return $this->value; + } + + public function setValue(string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } +} diff --git a/src/Model/LoadBalancerArguments.php b/src/Model/LoadBalancerArguments.php new file mode 100644 index 00000000..edd14cf1 --- /dev/null +++ b/src/Model/LoadBalancerArguments.php @@ -0,0 +1,203 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $apiReference; + /** + * @var string + */ + protected $resourceType; + /** + * @var string[] + */ + protected $resourceIds; + /** + * All 'data_center[]' params are mutually exclusive, only one can be provided. + * + * @var DataCenterLookup + */ + protected $dataCenter; + /** + * @var bool + */ + protected $httpsRedirect; + /** + * @var bool + */ + protected $enableWeighting; + /** + * @var LoadBalancerWeightsArguments[] + */ + protected $weights; + /** + * @var string[] + */ + protected $standbyVms; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getApiReference(): string + { + return $this->apiReference; + } + + public function setApiReference(string $apiReference): self + { + $this->initialized['apiReference'] = true; + $this->apiReference = $apiReference; + + return $this; + } + + public function getResourceType(): string + { + return $this->resourceType; + } + + public function setResourceType(string $resourceType): self + { + $this->initialized['resourceType'] = true; + $this->resourceType = $resourceType; + + return $this; + } + + /** + * @return string[] + */ + public function getResourceIds(): array + { + return $this->resourceIds; + } + + /** + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds): self + { + $this->initialized['resourceIds'] = true; + $this->resourceIds = $resourceIds; + + return $this; + } + + /** + * All 'data_center[]' params are mutually exclusive, only one can be provided. + */ + public function getDataCenter(): DataCenterLookup + { + return $this->dataCenter; + } + + /** + * All 'data_center[]' params are mutually exclusive, only one can be provided. + */ + public function setDataCenter(DataCenterLookup $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + public function getHttpsRedirect(): bool + { + return $this->httpsRedirect; + } + + public function setHttpsRedirect(bool $httpsRedirect): self + { + $this->initialized['httpsRedirect'] = true; + $this->httpsRedirect = $httpsRedirect; + + return $this; + } + + public function getEnableWeighting(): bool + { + return $this->enableWeighting; + } + + public function setEnableWeighting(bool $enableWeighting): self + { + $this->initialized['enableWeighting'] = true; + $this->enableWeighting = $enableWeighting; + + return $this; + } + + /** + * @return LoadBalancerWeightsArguments[] + */ + public function getWeights(): array + { + return $this->weights; + } + + /** + * @param LoadBalancerWeightsArguments[] $weights + */ + public function setWeights(array $weights): self + { + $this->initialized['weights'] = true; + $this->weights = $weights; + + return $this; + } + + /** + * @return string[] + */ + public function getStandbyVms(): array + { + return $this->standbyVms; + } + + /** + * @param string[] $standbyVms + */ + public function setStandbyVms(array $standbyVms): self + { + $this->initialized['standbyVms'] = true; + $this->standbyVms = $standbyVms; + + return $this; + } +} diff --git a/src/Model/LoadBalancerLookup.php b/src/Model/LoadBalancerLookup.php new file mode 100644 index 00000000..56f9f612 --- /dev/null +++ b/src/Model/LoadBalancerLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $apiReference; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getApiReference(): string + { + return $this->apiReference; + } + + public function setApiReference(string $apiReference): self + { + $this->initialized['apiReference'] = true; + $this->apiReference = $apiReference; + + return $this; + } +} diff --git a/src/Model/LoadBalancerResource.php b/src/Model/LoadBalancerResource.php new file mode 100644 index 00000000..41a4021a --- /dev/null +++ b/src/Model/LoadBalancerResource.php @@ -0,0 +1,39 @@ +initialized); + } + + protected $resources; + + public function getResources() + { + return $this->resources; + } + + public function setResources($resources): self + { + $this->initialized['resources'] = true; + $this->resources = $resources; + + return $this; + } +} diff --git a/src/Model/LoadBalancerRuleArguments.php b/src/Model/LoadBalancerRuleArguments.php new file mode 100644 index 00000000..402e49ce --- /dev/null +++ b/src/Model/LoadBalancerRuleArguments.php @@ -0,0 +1,302 @@ +initialized); + } + /** + * @var string + */ + protected $algorithm; + /** + * @var int + */ + protected $destinationPort; + /** + * @var int + */ + protected $listenPort; + /** + * @var string + */ + protected $protocol; + /** + * @var bool + */ + protected $proxyProtocol; + /** + * @var bool + */ + protected $backendSsl; + /** + * @var bool + */ + protected $passthroughSsl; + /** + * @var CertificateLookup[] + */ + protected $certificates; + /** + * @var bool + */ + protected $checkEnabled; + /** + * @var int + */ + protected $checkFall; + /** + * @var int + */ + protected $checkInterval; + /** + * @var string + */ + protected $checkPath; + /** + * @var string + */ + protected $checkProtocol; + /** + * @var int + */ + protected $checkRise; + /** + * @var int + */ + protected $checkTimeout; + /** + * @var string + */ + protected $checkHttpStatuses; + + public function getAlgorithm(): string + { + return $this->algorithm; + } + + public function setAlgorithm(string $algorithm): self + { + $this->initialized['algorithm'] = true; + $this->algorithm = $algorithm; + + return $this; + } + + public function getDestinationPort(): int + { + return $this->destinationPort; + } + + public function setDestinationPort(int $destinationPort): self + { + $this->initialized['destinationPort'] = true; + $this->destinationPort = $destinationPort; + + return $this; + } + + public function getListenPort(): int + { + return $this->listenPort; + } + + public function setListenPort(int $listenPort): self + { + $this->initialized['listenPort'] = true; + $this->listenPort = $listenPort; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getProxyProtocol(): bool + { + return $this->proxyProtocol; + } + + public function setProxyProtocol(bool $proxyProtocol): self + { + $this->initialized['proxyProtocol'] = true; + $this->proxyProtocol = $proxyProtocol; + + return $this; + } + + public function getBackendSsl(): bool + { + return $this->backendSsl; + } + + public function setBackendSsl(bool $backendSsl): self + { + $this->initialized['backendSsl'] = true; + $this->backendSsl = $backendSsl; + + return $this; + } + + public function getPassthroughSsl(): bool + { + return $this->passthroughSsl; + } + + public function setPassthroughSsl(bool $passthroughSsl): self + { + $this->initialized['passthroughSsl'] = true; + $this->passthroughSsl = $passthroughSsl; + + return $this; + } + + /** + * @return CertificateLookup[] + */ + public function getCertificates(): array + { + return $this->certificates; + } + + /** + * @param CertificateLookup[] $certificates + */ + public function setCertificates(array $certificates): self + { + $this->initialized['certificates'] = true; + $this->certificates = $certificates; + + return $this; + } + + public function getCheckEnabled(): bool + { + return $this->checkEnabled; + } + + public function setCheckEnabled(bool $checkEnabled): self + { + $this->initialized['checkEnabled'] = true; + $this->checkEnabled = $checkEnabled; + + return $this; + } + + public function getCheckFall(): int + { + return $this->checkFall; + } + + public function setCheckFall(int $checkFall): self + { + $this->initialized['checkFall'] = true; + $this->checkFall = $checkFall; + + return $this; + } + + public function getCheckInterval(): int + { + return $this->checkInterval; + } + + public function setCheckInterval(int $checkInterval): self + { + $this->initialized['checkInterval'] = true; + $this->checkInterval = $checkInterval; + + return $this; + } + + public function getCheckPath(): string + { + return $this->checkPath; + } + + public function setCheckPath(string $checkPath): self + { + $this->initialized['checkPath'] = true; + $this->checkPath = $checkPath; + + return $this; + } + + public function getCheckProtocol(): string + { + return $this->checkProtocol; + } + + public function setCheckProtocol(string $checkProtocol): self + { + $this->initialized['checkProtocol'] = true; + $this->checkProtocol = $checkProtocol; + + return $this; + } + + public function getCheckRise(): int + { + return $this->checkRise; + } + + public function setCheckRise(int $checkRise): self + { + $this->initialized['checkRise'] = true; + $this->checkRise = $checkRise; + + return $this; + } + + public function getCheckTimeout(): int + { + return $this->checkTimeout; + } + + public function setCheckTimeout(int $checkTimeout): self + { + $this->initialized['checkTimeout'] = true; + $this->checkTimeout = $checkTimeout; + + return $this; + } + + public function getCheckHttpStatuses(): string + { + return $this->checkHttpStatuses; + } + + public function setCheckHttpStatuses(string $checkHttpStatuses): self + { + $this->initialized['checkHttpStatuses'] = true; + $this->checkHttpStatuses = $checkHttpStatuses; + + return $this; + } +} diff --git a/src/Model/LoadBalancerRuleLookup.php b/src/Model/LoadBalancerRuleLookup.php new file mode 100644 index 00000000..d5934bd9 --- /dev/null +++ b/src/Model/LoadBalancerRuleLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/LoadBalancerWeightsArguments.php b/src/Model/LoadBalancerWeightsArguments.php new file mode 100644 index 00000000..ce8ee2e2 --- /dev/null +++ b/src/Model/LoadBalancerWeightsArguments.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $virtualMachineId; + /** + * @var int + */ + protected $weight; + + public function getVirtualMachineId(): string + { + return $this->virtualMachineId; + } + + public function setVirtualMachineId(string $virtualMachineId): self + { + $this->initialized['virtualMachineId'] = true; + $this->virtualMachineId = $virtualMachineId; + + return $this; + } + + public function getWeight(): int + { + return $this->weight; + } + + public function setWeight(int $weight): self + { + $this->initialized['weight'] = true; + $this->weight = $weight; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerDeleteBody.php b/src/Model/LoadBalancersLoadBalancerDeleteBody.php new file mode 100644 index 00000000..16031a99 --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'load_balancer[]' params are mutually exclusive, only one can be provided. + * + * @var LoadBalancerLookup + */ + protected $loadBalancer; + + /** + * All 'load_balancer[]' params are mutually exclusive, only one can be provided. + */ + public function getLoadBalancer(): LoadBalancerLookup + { + return $this->loadBalancer; + } + + /** + * All 'load_balancer[]' params are mutually exclusive, only one can be provided. + */ + public function setLoadBalancer(LoadBalancerLookup $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerDeleteResponse200.php b/src/Model/LoadBalancersLoadBalancerDeleteResponse200.php new file mode 100644 index 00000000..6e6d7e69 --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerDeleteResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The load balancer that has been destroyed. + * + * @var LoadBalancersLoadBalancerDeleteResponse200LoadBalancer + */ + protected $loadBalancer; + + /** + * The load balancer that has been destroyed. + */ + public function getLoadBalancer(): LoadBalancersLoadBalancerDeleteResponse200LoadBalancer + { + return $this->loadBalancer; + } + + /** + * The load balancer that has been destroyed. + */ + public function setLoadBalancer(LoadBalancersLoadBalancerDeleteResponse200LoadBalancer $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerDeleteResponse200LoadBalancer.php b/src/Model/LoadBalancersLoadBalancerDeleteResponse200LoadBalancer.php new file mode 100644 index 00000000..eaee1dd8 --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerDeleteResponse200LoadBalancer.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $apiReference; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getApiReference(): string + { + return $this->apiReference; + } + + public function setApiReference(string $apiReference): self + { + $this->initialized['apiReference'] = true; + $this->apiReference = $apiReference; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerGetResponse200.php b/src/Model/LoadBalancersLoadBalancerGetResponse200.php new file mode 100644 index 00000000..1644c72e --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The load balancer. + * + * @var LoadBalancersLoadBalancerGetResponse200LoadBalancer + */ + protected $loadBalancer; + + /** + * The load balancer. + */ + public function getLoadBalancer(): LoadBalancersLoadBalancerGetResponse200LoadBalancer + { + return $this->loadBalancer; + } + + /** + * The load balancer. + */ + public function setLoadBalancer(LoadBalancersLoadBalancerGetResponse200LoadBalancer $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerGetResponse200LoadBalancer.php b/src/Model/LoadBalancersLoadBalancerGetResponse200LoadBalancer.php new file mode 100644 index 00000000..49aa7e38 --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerGetResponse200LoadBalancer.php @@ -0,0 +1,292 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $apiReference; + /** + * @var string + */ + protected $resourceType; + /** + * @var LoadBalancerResource[] + */ + protected $resources; + /** + * @var string[] + */ + protected $resourceIds; + /** + * @var GetLoadBalancerPartIPAddress[] + */ + protected $ipAddress; + /** + * @var bool + */ + protected $httpsRedirect; + /** + * @var string + */ + protected $backendCertificate; + /** + * @var string + */ + protected $backendCertificateKey; + /** + * @var GetLoadBalancerPartDataCenter + */ + protected $dataCenter; + /** + * @var bool + */ + protected $enableWeighting; + /** + * @var GetLoadBalancerPartWeights[] + */ + protected $weights; + /** + * @var string[] + */ + protected $standbyVms; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getApiReference(): string + { + return $this->apiReference; + } + + public function setApiReference(string $apiReference): self + { + $this->initialized['apiReference'] = true; + $this->apiReference = $apiReference; + + return $this; + } + + public function getResourceType(): string + { + return $this->resourceType; + } + + public function setResourceType(string $resourceType): self + { + $this->initialized['resourceType'] = true; + $this->resourceType = $resourceType; + + return $this; + } + + /** + * @return LoadBalancerResource[] + */ + public function getResources(): array + { + return $this->resources; + } + + /** + * @param LoadBalancerResource[] $resources + */ + public function setResources(array $resources): self + { + $this->initialized['resources'] = true; + $this->resources = $resources; + + return $this; + } + + /** + * @return string[] + */ + public function getResourceIds(): array + { + return $this->resourceIds; + } + + /** + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds): self + { + $this->initialized['resourceIds'] = true; + $this->resourceIds = $resourceIds; + + return $this; + } + + /** + * @return GetLoadBalancerPartIPAddress[] + */ + public function getIpAddress(): array + { + return $this->ipAddress; + } + + /** + * @param GetLoadBalancerPartIPAddress[] $ipAddress + */ + public function setIpAddress(array $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } + + public function getHttpsRedirect(): bool + { + return $this->httpsRedirect; + } + + public function setHttpsRedirect(bool $httpsRedirect): self + { + $this->initialized['httpsRedirect'] = true; + $this->httpsRedirect = $httpsRedirect; + + return $this; + } + + public function getBackendCertificate(): string + { + return $this->backendCertificate; + } + + public function setBackendCertificate(string $backendCertificate): self + { + $this->initialized['backendCertificate'] = true; + $this->backendCertificate = $backendCertificate; + + return $this; + } + + public function getBackendCertificateKey(): string + { + return $this->backendCertificateKey; + } + + public function setBackendCertificateKey(string $backendCertificateKey): self + { + $this->initialized['backendCertificateKey'] = true; + $this->backendCertificateKey = $backendCertificateKey; + + return $this; + } + + public function getDataCenter(): GetLoadBalancerPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(GetLoadBalancerPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + public function getEnableWeighting(): bool + { + return $this->enableWeighting; + } + + public function setEnableWeighting(bool $enableWeighting): self + { + $this->initialized['enableWeighting'] = true; + $this->enableWeighting = $enableWeighting; + + return $this; + } + + /** + * @return GetLoadBalancerPartWeights[] + */ + public function getWeights(): array + { + return $this->weights; + } + + /** + * @param GetLoadBalancerPartWeights[] $weights + */ + public function setWeights(array $weights): self + { + $this->initialized['weights'] = true; + $this->weights = $weights; + + return $this; + } + + /** + * @return string[] + */ + public function getStandbyVms(): array + { + return $this->standbyVms; + } + + /** + * @param string[] $standbyVms + */ + public function setStandbyVms(array $standbyVms): self + { + $this->initialized['standbyVms'] = true; + $this->standbyVms = $standbyVms; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerPatchBody.php b/src/Model/LoadBalancersLoadBalancerPatchBody.php new file mode 100644 index 00000000..61279975 --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerPatchBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'load_balancer[]' params are mutually exclusive, only one can be provided. + * + * @var LoadBalancerLookup + */ + protected $loadBalancer; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var LoadBalancerArguments + */ + protected $properties; + + /** + * All 'load_balancer[]' params are mutually exclusive, only one can be provided. + */ + public function getLoadBalancer(): LoadBalancerLookup + { + return $this->loadBalancer; + } + + /** + * All 'load_balancer[]' params are mutually exclusive, only one can be provided. + */ + public function setLoadBalancer(LoadBalancerLookup $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): LoadBalancerArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(LoadBalancerArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerPatchResponse200.php b/src/Model/LoadBalancersLoadBalancerPatchResponse200.php new file mode 100644 index 00000000..765fecb2 --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerPatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The load balancer that has been updated. + * + * @var LoadBalancersLoadBalancerPatchResponse200LoadBalancer + */ + protected $loadBalancer; + + /** + * The load balancer that has been updated. + */ + public function getLoadBalancer(): LoadBalancersLoadBalancerPatchResponse200LoadBalancer + { + return $this->loadBalancer; + } + + /** + * The load balancer that has been updated. + */ + public function setLoadBalancer(LoadBalancersLoadBalancerPatchResponse200LoadBalancer $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerPatchResponse200LoadBalancer.php b/src/Model/LoadBalancersLoadBalancerPatchResponse200LoadBalancer.php new file mode 100644 index 00000000..51c9b0e3 --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerPatchResponse200LoadBalancer.php @@ -0,0 +1,292 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $apiReference; + /** + * @var string + */ + protected $resourceType; + /** + * @var LoadBalancerResource[] + */ + protected $resources; + /** + * @var string[] + */ + protected $resourceIds; + /** + * @var PatchLoadBalancerPartIPAddress[] + */ + protected $ipAddress; + /** + * @var bool + */ + protected $httpsRedirect; + /** + * @var string + */ + protected $backendCertificate; + /** + * @var string + */ + protected $backendCertificateKey; + /** + * @var PatchLoadBalancerPartDataCenter + */ + protected $dataCenter; + /** + * @var bool + */ + protected $enableWeighting; + /** + * @var PatchLoadBalancerPartWeights[] + */ + protected $weights; + /** + * @var string[] + */ + protected $standbyVms; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getApiReference(): string + { + return $this->apiReference; + } + + public function setApiReference(string $apiReference): self + { + $this->initialized['apiReference'] = true; + $this->apiReference = $apiReference; + + return $this; + } + + public function getResourceType(): string + { + return $this->resourceType; + } + + public function setResourceType(string $resourceType): self + { + $this->initialized['resourceType'] = true; + $this->resourceType = $resourceType; + + return $this; + } + + /** + * @return LoadBalancerResource[] + */ + public function getResources(): array + { + return $this->resources; + } + + /** + * @param LoadBalancerResource[] $resources + */ + public function setResources(array $resources): self + { + $this->initialized['resources'] = true; + $this->resources = $resources; + + return $this; + } + + /** + * @return string[] + */ + public function getResourceIds(): array + { + return $this->resourceIds; + } + + /** + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds): self + { + $this->initialized['resourceIds'] = true; + $this->resourceIds = $resourceIds; + + return $this; + } + + /** + * @return PatchLoadBalancerPartIPAddress[] + */ + public function getIpAddress(): array + { + return $this->ipAddress; + } + + /** + * @param PatchLoadBalancerPartIPAddress[] $ipAddress + */ + public function setIpAddress(array $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } + + public function getHttpsRedirect(): bool + { + return $this->httpsRedirect; + } + + public function setHttpsRedirect(bool $httpsRedirect): self + { + $this->initialized['httpsRedirect'] = true; + $this->httpsRedirect = $httpsRedirect; + + return $this; + } + + public function getBackendCertificate(): string + { + return $this->backendCertificate; + } + + public function setBackendCertificate(string $backendCertificate): self + { + $this->initialized['backendCertificate'] = true; + $this->backendCertificate = $backendCertificate; + + return $this; + } + + public function getBackendCertificateKey(): string + { + return $this->backendCertificateKey; + } + + public function setBackendCertificateKey(string $backendCertificateKey): self + { + $this->initialized['backendCertificateKey'] = true; + $this->backendCertificateKey = $backendCertificateKey; + + return $this; + } + + public function getDataCenter(): PatchLoadBalancerPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(PatchLoadBalancerPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + public function getEnableWeighting(): bool + { + return $this->enableWeighting; + } + + public function setEnableWeighting(bool $enableWeighting): self + { + $this->initialized['enableWeighting'] = true; + $this->enableWeighting = $enableWeighting; + + return $this; + } + + /** + * @return PatchLoadBalancerPartWeights[] + */ + public function getWeights(): array + { + return $this->weights; + } + + /** + * @param PatchLoadBalancerPartWeights[] $weights + */ + public function setWeights(array $weights): self + { + $this->initialized['weights'] = true; + $this->weights = $weights; + + return $this; + } + + /** + * @return string[] + */ + public function getStandbyVms(): array + { + return $this->standbyVms; + } + + /** + * @param string[] $standbyVms + */ + public function setStandbyVms(array $standbyVms): self + { + $this->initialized['standbyVms'] = true; + $this->standbyVms = $standbyVms; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerRulesGetResponse200.php b/src/Model/LoadBalancersLoadBalancerRulesGetResponse200.php new file mode 100644 index 00000000..d778ffc9 --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerRulesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var LoadBalancersLoadBalancerRulesGetResponse200Pagination + */ + protected $pagination; + /** + * The load balancer rules for this load balancer. + * + * @var GetLoadBalancerRules200ResponseLoadBalancerRules[] + */ + protected $loadBalancerRules; + + public function getPagination(): LoadBalancersLoadBalancerRulesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(LoadBalancersLoadBalancerRulesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The load balancer rules for this load balancer. + * + * @return GetLoadBalancerRules200ResponseLoadBalancerRules[] + */ + public function getLoadBalancerRules(): array + { + return $this->loadBalancerRules; + } + + /** + * The load balancer rules for this load balancer. + * + * @param GetLoadBalancerRules200ResponseLoadBalancerRules[] $loadBalancerRules + */ + public function setLoadBalancerRules(array $loadBalancerRules): self + { + $this->initialized['loadBalancerRules'] = true; + $this->loadBalancerRules = $loadBalancerRules; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerRulesGetResponse200Pagination.php b/src/Model/LoadBalancersLoadBalancerRulesGetResponse200Pagination.php new file mode 100644 index 00000000..83d42bfd --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerRulesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerRulesPostBody.php b/src/Model/LoadBalancersLoadBalancerRulesPostBody.php new file mode 100644 index 00000000..70f84753 --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerRulesPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'load_balancer[]' params are mutually exclusive, only one can be provided. + * + * @var LoadBalancerLookup + */ + protected $loadBalancer; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var LoadBalancerRuleArguments + */ + protected $properties; + + /** + * All 'load_balancer[]' params are mutually exclusive, only one can be provided. + */ + public function getLoadBalancer(): LoadBalancerLookup + { + return $this->loadBalancer; + } + + /** + * All 'load_balancer[]' params are mutually exclusive, only one can be provided. + */ + public function setLoadBalancer(LoadBalancerLookup $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): LoadBalancerRuleArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(LoadBalancerRuleArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerRulesPostResponse200.php b/src/Model/LoadBalancersLoadBalancerRulesPostResponse200.php new file mode 100644 index 00000000..98a30da8 --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerRulesPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The load balancer rule that has been created. + * + * @var LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRule + */ + protected $loadBalancerRule; + + /** + * The load balancer rule that has been created. + */ + public function getLoadBalancerRule(): LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRule + { + return $this->loadBalancerRule; + } + + /** + * The load balancer rule that has been created. + */ + public function setLoadBalancerRule(LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRule $loadBalancerRule): self + { + $this->initialized['loadBalancerRule'] = true; + $this->loadBalancerRule = $loadBalancerRule; + + return $this; + } +} diff --git a/src/Model/LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRule.php b/src/Model/LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRule.php new file mode 100644 index 00000000..313e7775 --- /dev/null +++ b/src/Model/LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRule.php @@ -0,0 +1,336 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $algorithm; + /** + * @var int + */ + protected $destinationPort; + /** + * @var int + */ + protected $listenPort; + /** + * @var string + */ + protected $protocol; + /** + * @var bool + */ + protected $proxyProtocol; + /** + * @var PostLoadBalancerRulesPartCertificates[] + */ + protected $certificates; + /** + * @var bool + */ + protected $backendSsl; + /** + * @var bool + */ + protected $passthroughSsl; + /** + * @var bool + */ + protected $checkEnabled; + /** + * @var int + */ + protected $checkFall; + /** + * @var int + */ + protected $checkInterval; + /** + * @var string + */ + protected $checkPath; + /** + * @var string + */ + protected $checkProtocol; + /** + * @var int + */ + protected $checkRise; + /** + * @var int + */ + protected $checkTimeout; + /** + * @var string + */ + protected $checkHttpStatuses; + /** + * @var PostLoadBalancerRulesPartLoadBalancer + */ + protected $loadBalancer; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAlgorithm(): string + { + return $this->algorithm; + } + + public function setAlgorithm(string $algorithm): self + { + $this->initialized['algorithm'] = true; + $this->algorithm = $algorithm; + + return $this; + } + + public function getDestinationPort(): int + { + return $this->destinationPort; + } + + public function setDestinationPort(int $destinationPort): self + { + $this->initialized['destinationPort'] = true; + $this->destinationPort = $destinationPort; + + return $this; + } + + public function getListenPort(): int + { + return $this->listenPort; + } + + public function setListenPort(int $listenPort): self + { + $this->initialized['listenPort'] = true; + $this->listenPort = $listenPort; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getProxyProtocol(): bool + { + return $this->proxyProtocol; + } + + public function setProxyProtocol(bool $proxyProtocol): self + { + $this->initialized['proxyProtocol'] = true; + $this->proxyProtocol = $proxyProtocol; + + return $this; + } + + /** + * @return PostLoadBalancerRulesPartCertificates[] + */ + public function getCertificates(): array + { + return $this->certificates; + } + + /** + * @param PostLoadBalancerRulesPartCertificates[] $certificates + */ + public function setCertificates(array $certificates): self + { + $this->initialized['certificates'] = true; + $this->certificates = $certificates; + + return $this; + } + + public function getBackendSsl(): bool + { + return $this->backendSsl; + } + + public function setBackendSsl(bool $backendSsl): self + { + $this->initialized['backendSsl'] = true; + $this->backendSsl = $backendSsl; + + return $this; + } + + public function getPassthroughSsl(): bool + { + return $this->passthroughSsl; + } + + public function setPassthroughSsl(bool $passthroughSsl): self + { + $this->initialized['passthroughSsl'] = true; + $this->passthroughSsl = $passthroughSsl; + + return $this; + } + + public function getCheckEnabled(): bool + { + return $this->checkEnabled; + } + + public function setCheckEnabled(bool $checkEnabled): self + { + $this->initialized['checkEnabled'] = true; + $this->checkEnabled = $checkEnabled; + + return $this; + } + + public function getCheckFall(): int + { + return $this->checkFall; + } + + public function setCheckFall(int $checkFall): self + { + $this->initialized['checkFall'] = true; + $this->checkFall = $checkFall; + + return $this; + } + + public function getCheckInterval(): int + { + return $this->checkInterval; + } + + public function setCheckInterval(int $checkInterval): self + { + $this->initialized['checkInterval'] = true; + $this->checkInterval = $checkInterval; + + return $this; + } + + public function getCheckPath(): string + { + return $this->checkPath; + } + + public function setCheckPath(string $checkPath): self + { + $this->initialized['checkPath'] = true; + $this->checkPath = $checkPath; + + return $this; + } + + public function getCheckProtocol(): string + { + return $this->checkProtocol; + } + + public function setCheckProtocol(string $checkProtocol): self + { + $this->initialized['checkProtocol'] = true; + $this->checkProtocol = $checkProtocol; + + return $this; + } + + public function getCheckRise(): int + { + return $this->checkRise; + } + + public function setCheckRise(int $checkRise): self + { + $this->initialized['checkRise'] = true; + $this->checkRise = $checkRise; + + return $this; + } + + public function getCheckTimeout(): int + { + return $this->checkTimeout; + } + + public function setCheckTimeout(int $checkTimeout): self + { + $this->initialized['checkTimeout'] = true; + $this->checkTimeout = $checkTimeout; + + return $this; + } + + public function getCheckHttpStatuses(): string + { + return $this->checkHttpStatuses; + } + + public function setCheckHttpStatuses(string $checkHttpStatuses): self + { + $this->initialized['checkHttpStatuses'] = true; + $this->checkHttpStatuses = $checkHttpStatuses; + + return $this; + } + + public function getLoadBalancer(): PostLoadBalancerRulesPartLoadBalancer + { + return $this->loadBalancer; + } + + public function setLoadBalancer(PostLoadBalancerRulesPartLoadBalancer $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } +} diff --git a/src/Model/LoadBalancersRulesLoadBalancerRuleDeleteBody.php b/src/Model/LoadBalancersRulesLoadBalancerRuleDeleteBody.php new file mode 100644 index 00000000..4d2a32fb --- /dev/null +++ b/src/Model/LoadBalancersRulesLoadBalancerRuleDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. + * + * @var LoadBalancerRuleLookup + */ + protected $loadBalancerRule; + + /** + * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. + */ + public function getLoadBalancerRule(): LoadBalancerRuleLookup + { + return $this->loadBalancerRule; + } + + /** + * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. + */ + public function setLoadBalancerRule(LoadBalancerRuleLookup $loadBalancerRule): self + { + $this->initialized['loadBalancerRule'] = true; + $this->loadBalancerRule = $loadBalancerRule; + + return $this; + } +} diff --git a/src/Model/LoadBalancersRulesLoadBalancerRuleDeleteResponse200.php b/src/Model/LoadBalancersRulesLoadBalancerRuleDeleteResponse200.php new file mode 100644 index 00000000..2f4cd43f --- /dev/null +++ b/src/Model/LoadBalancersRulesLoadBalancerRuleDeleteResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The load balancer rule that has been destroyed. + * + * @var LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRule + */ + protected $loadBalancerRule; + + /** + * The load balancer rule that has been destroyed. + */ + public function getLoadBalancerRule(): LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRule + { + return $this->loadBalancerRule; + } + + /** + * The load balancer rule that has been destroyed. + */ + public function setLoadBalancerRule(LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRule $loadBalancerRule): self + { + $this->initialized['loadBalancerRule'] = true; + $this->loadBalancerRule = $loadBalancerRule; + + return $this; + } +} diff --git a/src/Model/LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRule.php b/src/Model/LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRule.php new file mode 100644 index 00000000..df7bbac4 --- /dev/null +++ b/src/Model/LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRule.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/LoadBalancersRulesLoadBalancerRuleGetResponse200.php b/src/Model/LoadBalancersRulesLoadBalancerRuleGetResponse200.php new file mode 100644 index 00000000..33bd5ce1 --- /dev/null +++ b/src/Model/LoadBalancersRulesLoadBalancerRuleGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The resolved load balancer rule. + * + * @var LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRule + */ + protected $loadBalancerRule; + + /** + * The resolved load balancer rule. + */ + public function getLoadBalancerRule(): LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRule + { + return $this->loadBalancerRule; + } + + /** + * The resolved load balancer rule. + */ + public function setLoadBalancerRule(LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRule $loadBalancerRule): self + { + $this->initialized['loadBalancerRule'] = true; + $this->loadBalancerRule = $loadBalancerRule; + + return $this; + } +} diff --git a/src/Model/LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRule.php b/src/Model/LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRule.php new file mode 100644 index 00000000..11e1ae3f --- /dev/null +++ b/src/Model/LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRule.php @@ -0,0 +1,336 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $algorithm; + /** + * @var int + */ + protected $destinationPort; + /** + * @var int + */ + protected $listenPort; + /** + * @var string + */ + protected $protocol; + /** + * @var bool + */ + protected $proxyProtocol; + /** + * @var GetLoadBalancersRulesLoadBalancerRulePartCertificates[] + */ + protected $certificates; + /** + * @var bool + */ + protected $backendSsl; + /** + * @var bool + */ + protected $passthroughSsl; + /** + * @var bool + */ + protected $checkEnabled; + /** + * @var int + */ + protected $checkFall; + /** + * @var int + */ + protected $checkInterval; + /** + * @var string + */ + protected $checkPath; + /** + * @var string + */ + protected $checkProtocol; + /** + * @var int + */ + protected $checkRise; + /** + * @var int + */ + protected $checkTimeout; + /** + * @var string + */ + protected $checkHttpStatuses; + /** + * @var GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer + */ + protected $loadBalancer; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAlgorithm(): string + { + return $this->algorithm; + } + + public function setAlgorithm(string $algorithm): self + { + $this->initialized['algorithm'] = true; + $this->algorithm = $algorithm; + + return $this; + } + + public function getDestinationPort(): int + { + return $this->destinationPort; + } + + public function setDestinationPort(int $destinationPort): self + { + $this->initialized['destinationPort'] = true; + $this->destinationPort = $destinationPort; + + return $this; + } + + public function getListenPort(): int + { + return $this->listenPort; + } + + public function setListenPort(int $listenPort): self + { + $this->initialized['listenPort'] = true; + $this->listenPort = $listenPort; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getProxyProtocol(): bool + { + return $this->proxyProtocol; + } + + public function setProxyProtocol(bool $proxyProtocol): self + { + $this->initialized['proxyProtocol'] = true; + $this->proxyProtocol = $proxyProtocol; + + return $this; + } + + /** + * @return GetLoadBalancersRulesLoadBalancerRulePartCertificates[] + */ + public function getCertificates(): array + { + return $this->certificates; + } + + /** + * @param GetLoadBalancersRulesLoadBalancerRulePartCertificates[] $certificates + */ + public function setCertificates(array $certificates): self + { + $this->initialized['certificates'] = true; + $this->certificates = $certificates; + + return $this; + } + + public function getBackendSsl(): bool + { + return $this->backendSsl; + } + + public function setBackendSsl(bool $backendSsl): self + { + $this->initialized['backendSsl'] = true; + $this->backendSsl = $backendSsl; + + return $this; + } + + public function getPassthroughSsl(): bool + { + return $this->passthroughSsl; + } + + public function setPassthroughSsl(bool $passthroughSsl): self + { + $this->initialized['passthroughSsl'] = true; + $this->passthroughSsl = $passthroughSsl; + + return $this; + } + + public function getCheckEnabled(): bool + { + return $this->checkEnabled; + } + + public function setCheckEnabled(bool $checkEnabled): self + { + $this->initialized['checkEnabled'] = true; + $this->checkEnabled = $checkEnabled; + + return $this; + } + + public function getCheckFall(): int + { + return $this->checkFall; + } + + public function setCheckFall(int $checkFall): self + { + $this->initialized['checkFall'] = true; + $this->checkFall = $checkFall; + + return $this; + } + + public function getCheckInterval(): int + { + return $this->checkInterval; + } + + public function setCheckInterval(int $checkInterval): self + { + $this->initialized['checkInterval'] = true; + $this->checkInterval = $checkInterval; + + return $this; + } + + public function getCheckPath(): string + { + return $this->checkPath; + } + + public function setCheckPath(string $checkPath): self + { + $this->initialized['checkPath'] = true; + $this->checkPath = $checkPath; + + return $this; + } + + public function getCheckProtocol(): string + { + return $this->checkProtocol; + } + + public function setCheckProtocol(string $checkProtocol): self + { + $this->initialized['checkProtocol'] = true; + $this->checkProtocol = $checkProtocol; + + return $this; + } + + public function getCheckRise(): int + { + return $this->checkRise; + } + + public function setCheckRise(int $checkRise): self + { + $this->initialized['checkRise'] = true; + $this->checkRise = $checkRise; + + return $this; + } + + public function getCheckTimeout(): int + { + return $this->checkTimeout; + } + + public function setCheckTimeout(int $checkTimeout): self + { + $this->initialized['checkTimeout'] = true; + $this->checkTimeout = $checkTimeout; + + return $this; + } + + public function getCheckHttpStatuses(): string + { + return $this->checkHttpStatuses; + } + + public function setCheckHttpStatuses(string $checkHttpStatuses): self + { + $this->initialized['checkHttpStatuses'] = true; + $this->checkHttpStatuses = $checkHttpStatuses; + + return $this; + } + + public function getLoadBalancer(): GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer + { + return $this->loadBalancer; + } + + public function setLoadBalancer(GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } +} diff --git a/src/Model/LoadBalancersRulesLoadBalancerRulePatchBody.php b/src/Model/LoadBalancersRulesLoadBalancerRulePatchBody.php new file mode 100644 index 00000000..32a512ae --- /dev/null +++ b/src/Model/LoadBalancersRulesLoadBalancerRulePatchBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. + * + * @var LoadBalancerRuleLookup + */ + protected $loadBalancerRule; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var LoadBalancerRuleArguments + */ + protected $properties; + + /** + * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. + */ + public function getLoadBalancerRule(): LoadBalancerRuleLookup + { + return $this->loadBalancerRule; + } + + /** + * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. + */ + public function setLoadBalancerRule(LoadBalancerRuleLookup $loadBalancerRule): self + { + $this->initialized['loadBalancerRule'] = true; + $this->loadBalancerRule = $loadBalancerRule; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): LoadBalancerRuleArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(LoadBalancerRuleArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/LoadBalancersRulesLoadBalancerRulePatchResponse200.php b/src/Model/LoadBalancersRulesLoadBalancerRulePatchResponse200.php new file mode 100644 index 00000000..eafd5894 --- /dev/null +++ b/src/Model/LoadBalancersRulesLoadBalancerRulePatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The load balancer that has been updated. + * + * @var LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRule + */ + protected $loadBalancerRule; + + /** + * The load balancer that has been updated. + */ + public function getLoadBalancerRule(): LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRule + { + return $this->loadBalancerRule; + } + + /** + * The load balancer that has been updated. + */ + public function setLoadBalancerRule(LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRule $loadBalancerRule): self + { + $this->initialized['loadBalancerRule'] = true; + $this->loadBalancerRule = $loadBalancerRule; + + return $this; + } +} diff --git a/src/Model/LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRule.php b/src/Model/LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRule.php new file mode 100644 index 00000000..68422b70 --- /dev/null +++ b/src/Model/LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRule.php @@ -0,0 +1,336 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $algorithm; + /** + * @var int + */ + protected $destinationPort; + /** + * @var int + */ + protected $listenPort; + /** + * @var string + */ + protected $protocol; + /** + * @var bool + */ + protected $proxyProtocol; + /** + * @var PatchLoadBalancersRulesLoadBalancerRulePartCertificates[] + */ + protected $certificates; + /** + * @var bool + */ + protected $backendSsl; + /** + * @var bool + */ + protected $passthroughSsl; + /** + * @var bool + */ + protected $checkEnabled; + /** + * @var int + */ + protected $checkFall; + /** + * @var int + */ + protected $checkInterval; + /** + * @var string + */ + protected $checkPath; + /** + * @var string + */ + protected $checkProtocol; + /** + * @var int + */ + protected $checkRise; + /** + * @var int + */ + protected $checkTimeout; + /** + * @var string + */ + protected $checkHttpStatuses; + /** + * @var PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer + */ + protected $loadBalancer; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAlgorithm(): string + { + return $this->algorithm; + } + + public function setAlgorithm(string $algorithm): self + { + $this->initialized['algorithm'] = true; + $this->algorithm = $algorithm; + + return $this; + } + + public function getDestinationPort(): int + { + return $this->destinationPort; + } + + public function setDestinationPort(int $destinationPort): self + { + $this->initialized['destinationPort'] = true; + $this->destinationPort = $destinationPort; + + return $this; + } + + public function getListenPort(): int + { + return $this->listenPort; + } + + public function setListenPort(int $listenPort): self + { + $this->initialized['listenPort'] = true; + $this->listenPort = $listenPort; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getProxyProtocol(): bool + { + return $this->proxyProtocol; + } + + public function setProxyProtocol(bool $proxyProtocol): self + { + $this->initialized['proxyProtocol'] = true; + $this->proxyProtocol = $proxyProtocol; + + return $this; + } + + /** + * @return PatchLoadBalancersRulesLoadBalancerRulePartCertificates[] + */ + public function getCertificates(): array + { + return $this->certificates; + } + + /** + * @param PatchLoadBalancersRulesLoadBalancerRulePartCertificates[] $certificates + */ + public function setCertificates(array $certificates): self + { + $this->initialized['certificates'] = true; + $this->certificates = $certificates; + + return $this; + } + + public function getBackendSsl(): bool + { + return $this->backendSsl; + } + + public function setBackendSsl(bool $backendSsl): self + { + $this->initialized['backendSsl'] = true; + $this->backendSsl = $backendSsl; + + return $this; + } + + public function getPassthroughSsl(): bool + { + return $this->passthroughSsl; + } + + public function setPassthroughSsl(bool $passthroughSsl): self + { + $this->initialized['passthroughSsl'] = true; + $this->passthroughSsl = $passthroughSsl; + + return $this; + } + + public function getCheckEnabled(): bool + { + return $this->checkEnabled; + } + + public function setCheckEnabled(bool $checkEnabled): self + { + $this->initialized['checkEnabled'] = true; + $this->checkEnabled = $checkEnabled; + + return $this; + } + + public function getCheckFall(): int + { + return $this->checkFall; + } + + public function setCheckFall(int $checkFall): self + { + $this->initialized['checkFall'] = true; + $this->checkFall = $checkFall; + + return $this; + } + + public function getCheckInterval(): int + { + return $this->checkInterval; + } + + public function setCheckInterval(int $checkInterval): self + { + $this->initialized['checkInterval'] = true; + $this->checkInterval = $checkInterval; + + return $this; + } + + public function getCheckPath(): string + { + return $this->checkPath; + } + + public function setCheckPath(string $checkPath): self + { + $this->initialized['checkPath'] = true; + $this->checkPath = $checkPath; + + return $this; + } + + public function getCheckProtocol(): string + { + return $this->checkProtocol; + } + + public function setCheckProtocol(string $checkProtocol): self + { + $this->initialized['checkProtocol'] = true; + $this->checkProtocol = $checkProtocol; + + return $this; + } + + public function getCheckRise(): int + { + return $this->checkRise; + } + + public function setCheckRise(int $checkRise): self + { + $this->initialized['checkRise'] = true; + $this->checkRise = $checkRise; + + return $this; + } + + public function getCheckTimeout(): int + { + return $this->checkTimeout; + } + + public function setCheckTimeout(int $checkTimeout): self + { + $this->initialized['checkTimeout'] = true; + $this->checkTimeout = $checkTimeout; + + return $this; + } + + public function getCheckHttpStatuses(): string + { + return $this->checkHttpStatuses; + } + + public function setCheckHttpStatuses(string $checkHttpStatuses): self + { + $this->initialized['checkHttpStatuses'] = true; + $this->checkHttpStatuses = $checkHttpStatuses; + + return $this; + } + + public function getLoadBalancer(): PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer + { + return $this->loadBalancer; + } + + public function setLoadBalancer(PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } +} diff --git a/src/Model/LocationRequiredSchema.php b/src/Model/LocationRequiredSchema.php new file mode 100644 index 00000000..9f8524e0 --- /dev/null +++ b/src/Model/LocationRequiredSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/MX.php b/src/Model/MX.php new file mode 100644 index 00000000..a000c43b --- /dev/null +++ b/src/Model/MX.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $host; + /** + * @var string + */ + protected $priority; + + public function getHost(): string + { + return $this->host; + } + + public function setHost(string $host): self + { + $this->initialized['host'] = true; + $this->host = $host; + + return $this; + } + + public function getPriority(): string + { + return $this->priority; + } + + public function setPriority(string $priority): self + { + $this->initialized['priority'] = true; + $this->priority = $priority; + + return $this; + } +} diff --git a/src/Model/NS.php b/src/Model/NS.php new file mode 100644 index 00000000..394d6083 --- /dev/null +++ b/src/Model/NS.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $name; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/Network.php b/src/Model/Network.php new file mode 100644 index 00000000..30ecc74e --- /dev/null +++ b/src/Model/Network.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var DataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): DataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(DataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/NetworkLookup.php b/src/Model/NetworkLookup.php new file mode 100644 index 00000000..76bf683e --- /dev/null +++ b/src/Model/NetworkLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/NetworkNotFoundSchema.php b/src/Model/NetworkNotFoundSchema.php new file mode 100644 index 00000000..c6cf763a --- /dev/null +++ b/src/Model/NetworkNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/NetworkSpeedProfile.php b/src/Model/NetworkSpeedProfile.php new file mode 100644 index 00000000..069950c1 --- /dev/null +++ b/src/Model/NetworkSpeedProfile.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $uploadSpeedInMbit; + /** + * @var int + */ + protected $downloadSpeedInMbit; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getUploadSpeedInMbit(): int + { + return $this->uploadSpeedInMbit; + } + + public function setUploadSpeedInMbit(int $uploadSpeedInMbit): self + { + $this->initialized['uploadSpeedInMbit'] = true; + $this->uploadSpeedInMbit = $uploadSpeedInMbit; + + return $this; + } + + public function getDownloadSpeedInMbit(): int + { + return $this->downloadSpeedInMbit; + } + + public function setDownloadSpeedInMbit(int $downloadSpeedInMbit): self + { + $this->initialized['downloadSpeedInMbit'] = true; + $this->downloadSpeedInMbit = $downloadSpeedInMbit; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/NetworkSpeedProfileLookup.php b/src/Model/NetworkSpeedProfileLookup.php new file mode 100644 index 00000000..45c494e5 --- /dev/null +++ b/src/Model/NetworkSpeedProfileLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/NetworkSpeedProfileNotFoundSchema.php b/src/Model/NetworkSpeedProfileNotFoundSchema.php new file mode 100644 index 00000000..1b27147e --- /dev/null +++ b/src/Model/NetworkSpeedProfileNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/NetworksNetworkGetResponse200.php b/src/Model/NetworksNetworkGetResponse200.php new file mode 100644 index 00000000..9d30b64b --- /dev/null +++ b/src/Model/NetworksNetworkGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The details for the requested network. + * + * @var NetworksNetworkGetResponse200Network + */ + protected $network; + + /** + * The details for the requested network. + */ + public function getNetwork(): NetworksNetworkGetResponse200Network + { + return $this->network; + } + + /** + * The details for the requested network. + */ + public function setNetwork(NetworksNetworkGetResponse200Network $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } +} diff --git a/src/Model/NetworksNetworkGetResponse200Network.php b/src/Model/NetworksNetworkGetResponse200Network.php new file mode 100644 index 00000000..606e0b6c --- /dev/null +++ b/src/Model/NetworksNetworkGetResponse200Network.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var DataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): DataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(DataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/NoInterfaceAvailableSchema.php b/src/Model/NoInterfaceAvailableSchema.php new file mode 100644 index 00000000..2aa0f7a4 --- /dev/null +++ b/src/Model/NoInterfaceAvailableSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ObjectInTrash.php b/src/Model/ObjectInTrash.php new file mode 100644 index 00000000..cad940ca --- /dev/null +++ b/src/Model/ObjectInTrash.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var TrashObject + */ + protected $trashObject; + + public function getTrashObject(): TrashObject + { + return $this->trashObject; + } + + public function setTrashObject(TrashObject $trashObject): self + { + $this->initialized['trashObject'] = true; + $this->trashObject = $trashObject; + + return $this; + } +} diff --git a/src/Model/ObjectInTrashSchema.php b/src/Model/ObjectInTrashSchema.php new file mode 100644 index 00000000..6b2111f3 --- /dev/null +++ b/src/Model/ObjectInTrashSchema.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var ObjectInTrash + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): ObjectInTrash + { + return $this->detail; + } + + public function setDetail(ObjectInTrash $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/OperatingSystem.php b/src/Model/OperatingSystem.php new file mode 100644 index 00000000..c7fe9984 --- /dev/null +++ b/src/Model/OperatingSystem.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var Attachment + */ + protected $badge; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getBadge(): Attachment + { + return $this->badge; + } + + public function setBadge(Attachment $badge): self + { + $this->initialized['badge'] = true; + $this->badge = $badge; + + return $this; + } +} diff --git a/src/Model/OperatingSystemNotFoundSchema.php b/src/Model/OperatingSystemNotFoundSchema.php new file mode 100644 index 00000000..8d6f6924 --- /dev/null +++ b/src/Model/OperatingSystemNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/OperatingSystemsGetResponse200.php b/src/Model/OperatingSystemsGetResponse200.php new file mode 100644 index 00000000..fa41ce76 --- /dev/null +++ b/src/Model/OperatingSystemsGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var OperatingSystemsGetResponse200Pagination + */ + protected $pagination; + /** + * The list of available operating systems. + * + * @var GetOperatingSystems200ResponseOperatingSystems[] + */ + protected $operatingSystems; + + public function getPagination(): OperatingSystemsGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OperatingSystemsGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The list of available operating systems. + * + * @return GetOperatingSystems200ResponseOperatingSystems[] + */ + public function getOperatingSystems(): array + { + return $this->operatingSystems; + } + + /** + * The list of available operating systems. + * + * @param GetOperatingSystems200ResponseOperatingSystems[] $operatingSystems + */ + public function setOperatingSystems(array $operatingSystems): self + { + $this->initialized['operatingSystems'] = true; + $this->operatingSystems = $operatingSystems; + + return $this; + } +} diff --git a/src/Model/OperatingSystemsGetResponse200Pagination.php b/src/Model/OperatingSystemsGetResponse200Pagination.php new file mode 100644 index 00000000..76893e7c --- /dev/null +++ b/src/Model/OperatingSystemsGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OperatingSystemsOperatingSystemGetResponse200.php b/src/Model/OperatingSystemsOperatingSystemGetResponse200.php new file mode 100644 index 00000000..023a3c3a --- /dev/null +++ b/src/Model/OperatingSystemsOperatingSystemGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The operating system details. + * + * @var OperatingSystemsOperatingSystemGetResponse200OperatingSystem + */ + protected $operatingSystem; + + /** + * The operating system details. + */ + public function getOperatingSystem(): OperatingSystemsOperatingSystemGetResponse200OperatingSystem + { + return $this->operatingSystem; + } + + /** + * The operating system details. + */ + public function setOperatingSystem(OperatingSystemsOperatingSystemGetResponse200OperatingSystem $operatingSystem): self + { + $this->initialized['operatingSystem'] = true; + $this->operatingSystem = $operatingSystem; + + return $this; + } +} diff --git a/src/Model/OperatingSystemsOperatingSystemGetResponse200OperatingSystem.php b/src/Model/OperatingSystemsOperatingSystemGetResponse200OperatingSystem.php new file mode 100644 index 00000000..c790def2 --- /dev/null +++ b/src/Model/OperatingSystemsOperatingSystemGetResponse200OperatingSystem.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var Attachment + */ + protected $badge; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getBadge(): Attachment + { + return $this->badge; + } + + public function setBadge(Attachment $badge): self + { + $this->initialized['badge'] = true; + $this->badge = $badge; + + return $this; + } +} diff --git a/src/Model/Organization.php b/src/Model/Organization.php new file mode 100644 index 00000000..0efdd4c4 --- /dev/null +++ b/src/Model/Organization.php @@ -0,0 +1,330 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $subDomain; + /** + * @var string + */ + protected $infrastructureDomain; + /** + * @var int + */ + protected $createdAt; + /** + * @var bool + */ + protected $suspended; + /** + * @var bool + */ + protected $managed; + /** + * @var string + */ + protected $billingName; + /** + * @var string + */ + protected $address1; + /** + * @var string + */ + protected $address2; + /** + * @var string + */ + protected $address3; + /** + * @var string + */ + protected $address4; + /** + * @var string + */ + protected $postcode; + /** + * @var string + */ + protected $vatNumber; + /** + * @var string + */ + protected $phoneNumber; + /** + * @var Currency + */ + protected $currency; + /** + * @var Country + */ + protected $country; + /** + * @var CountryState + */ + protected $countryState; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSubDomain(): string + { + return $this->subDomain; + } + + public function setSubDomain(string $subDomain): self + { + $this->initialized['subDomain'] = true; + $this->subDomain = $subDomain; + + return $this; + } + + public function getInfrastructureDomain(): string + { + return $this->infrastructureDomain; + } + + public function setInfrastructureDomain(string $infrastructureDomain): self + { + $this->initialized['infrastructureDomain'] = true; + $this->infrastructureDomain = $infrastructureDomain; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getSuspended(): bool + { + return $this->suspended; + } + + public function setSuspended(bool $suspended): self + { + $this->initialized['suspended'] = true; + $this->suspended = $suspended; + + return $this; + } + + public function getManaged(): bool + { + return $this->managed; + } + + public function setManaged(bool $managed): self + { + $this->initialized['managed'] = true; + $this->managed = $managed; + + return $this; + } + + public function getBillingName(): string + { + return $this->billingName; + } + + public function setBillingName(string $billingName): self + { + $this->initialized['billingName'] = true; + $this->billingName = $billingName; + + return $this; + } + + public function getAddress1(): string + { + return $this->address1; + } + + public function setAddress1(string $address1): self + { + $this->initialized['address1'] = true; + $this->address1 = $address1; + + return $this; + } + + public function getAddress2(): string + { + return $this->address2; + } + + public function setAddress2(string $address2): self + { + $this->initialized['address2'] = true; + $this->address2 = $address2; + + return $this; + } + + public function getAddress3(): string + { + return $this->address3; + } + + public function setAddress3(string $address3): self + { + $this->initialized['address3'] = true; + $this->address3 = $address3; + + return $this; + } + + public function getAddress4(): string + { + return $this->address4; + } + + public function setAddress4(string $address4): self + { + $this->initialized['address4'] = true; + $this->address4 = $address4; + + return $this; + } + + public function getPostcode(): string + { + return $this->postcode; + } + + public function setPostcode(string $postcode): self + { + $this->initialized['postcode'] = true; + $this->postcode = $postcode; + + return $this; + } + + public function getVatNumber(): string + { + return $this->vatNumber; + } + + public function setVatNumber(string $vatNumber): self + { + $this->initialized['vatNumber'] = true; + $this->vatNumber = $vatNumber; + + return $this; + } + + public function getPhoneNumber(): string + { + return $this->phoneNumber; + } + + public function setPhoneNumber(string $phoneNumber): self + { + $this->initialized['phoneNumber'] = true; + $this->phoneNumber = $phoneNumber; + + return $this; + } + + public function getCurrency(): Currency + { + return $this->currency; + } + + public function setCurrency(Currency $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } + + public function getCountry(): Country + { + return $this->country; + } + + public function setCountry(Country $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } + + public function getCountryState(): CountryState + { + return $this->countryState; + } + + public function setCountryState(CountryState $countryState): self + { + $this->initialized['countryState'] = true; + $this->countryState = $countryState; + + return $this; + } +} diff --git a/src/Model/OrganizationLimitReachedSchema.php b/src/Model/OrganizationLimitReachedSchema.php new file mode 100644 index 00000000..b6c0bb08 --- /dev/null +++ b/src/Model/OrganizationLimitReachedSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/OrganizationLookup.php b/src/Model/OrganizationLookup.php new file mode 100644 index 00000000..42338530 --- /dev/null +++ b/src/Model/OrganizationLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $subDomain; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getSubDomain(): string + { + return $this->subDomain; + } + + public function setSubDomain(string $subDomain): self + { + $this->initialized['subDomain'] = true; + $this->subDomain = $subDomain; + + return $this; + } +} diff --git a/src/Model/OrganizationNotActivatedSchema.php b/src/Model/OrganizationNotActivatedSchema.php new file mode 100644 index 00000000..0d3ac574 --- /dev/null +++ b/src/Model/OrganizationNotActivatedSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/OrganizationNotFoundSchema.php b/src/Model/OrganizationNotFoundSchema.php new file mode 100644 index 00000000..e4ca37b3 --- /dev/null +++ b/src/Model/OrganizationNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/OrganizationSuspendedSchema.php b/src/Model/OrganizationSuspendedSchema.php new file mode 100644 index 00000000..781dd78c --- /dev/null +++ b/src/Model/OrganizationSuspendedSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/OrganizationsGetResponse200.php b/src/Model/OrganizationsGetResponse200.php new file mode 100644 index 00000000..b2e0e4ed --- /dev/null +++ b/src/Model/OrganizationsGetResponse200.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var GetOrganizations200ResponseOrganizations[] + */ + protected $organizations; + + /** + * @return GetOrganizations200ResponseOrganizations[] + */ + public function getOrganizations(): array + { + return $this->organizations; + } + + /** + * @param GetOrganizations200ResponseOrganizations[] $organizations + */ + public function setOrganizations(array $organizations): self + { + $this->initialized['organizations'] = true; + $this->organizations = $organizations; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationAvailableNetworksGetResponse200.php b/src/Model/OrganizationsOrganizationAvailableNetworksGetResponse200.php new file mode 100644 index 00000000..4490d6f3 --- /dev/null +++ b/src/Model/OrganizationsOrganizationAvailableNetworksGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var GetOrganizationAvailableNetworks200ResponseNetworks[] + */ + protected $networks; + /** + * @var GetOrganizationAvailableNetworks200ResponseVirtualNetworks[] + */ + protected $virtualNetworks; + + /** + * @return GetOrganizationAvailableNetworks200ResponseNetworks[] + */ + public function getNetworks(): array + { + return $this->networks; + } + + /** + * @param GetOrganizationAvailableNetworks200ResponseNetworks[] $networks + */ + public function setNetworks(array $networks): self + { + $this->initialized['networks'] = true; + $this->networks = $networks; + + return $this; + } + + /** + * @return GetOrganizationAvailableNetworks200ResponseVirtualNetworks[] + */ + public function getVirtualNetworks(): array + { + return $this->virtualNetworks; + } + + /** + * @param GetOrganizationAvailableNetworks200ResponseVirtualNetworks[] $virtualNetworks + */ + public function setVirtualNetworks(array $virtualNetworks): self + { + $this->initialized['virtualNetworks'] = true; + $this->virtualNetworks = $virtualNetworks; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationCertificatesGetResponse200.php b/src/Model/OrganizationsOrganizationCertificatesGetResponse200.php new file mode 100644 index 00000000..8c164423 --- /dev/null +++ b/src/Model/OrganizationsOrganizationCertificatesGetResponse200.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * @var OrganizationsOrganizationCertificatesGetResponse200Pagination + */ + protected $pagination; + /** + * @var GetOrganizationCertificates200ResponseCertificates[] + */ + protected $certificates; + + public function getPagination(): OrganizationsOrganizationCertificatesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationCertificatesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * @return GetOrganizationCertificates200ResponseCertificates[] + */ + public function getCertificates(): array + { + return $this->certificates; + } + + /** + * @param GetOrganizationCertificates200ResponseCertificates[] $certificates + */ + public function setCertificates(array $certificates): self + { + $this->initialized['certificates'] = true; + $this->certificates = $certificates; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationCertificatesGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationCertificatesGetResponse200Pagination.php new file mode 100644 index 00000000..e0e0834e --- /dev/null +++ b/src/Model/OrganizationsOrganizationCertificatesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationDiskBackupPoliciesGetResponse200.php b/src/Model/OrganizationsOrganizationDiskBackupPoliciesGetResponse200.php new file mode 100644 index 00000000..4650c50e --- /dev/null +++ b/src/Model/OrganizationsOrganizationDiskBackupPoliciesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var OrganizationsOrganizationDiskBackupPoliciesGetResponse200Pagination + */ + protected $pagination; + /** + * The disk backup policies for the provided organization. + * + * @var GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies[] + */ + protected $diskBackupPolicies; + + public function getPagination(): OrganizationsOrganizationDiskBackupPoliciesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationDiskBackupPoliciesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The disk backup policies for the provided organization. + * + * @return GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies[] + */ + public function getDiskBackupPolicies(): array + { + return $this->diskBackupPolicies; + } + + /** + * The disk backup policies for the provided organization. + * + * @param GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies[] $diskBackupPolicies + */ + public function setDiskBackupPolicies(array $diskBackupPolicies): self + { + $this->initialized['diskBackupPolicies'] = true; + $this->diskBackupPolicies = $diskBackupPolicies; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationDiskBackupPoliciesGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationDiskBackupPoliciesGetResponse200Pagination.php new file mode 100644 index 00000000..d784f9ab --- /dev/null +++ b/src/Model/OrganizationsOrganizationDiskBackupPoliciesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationDiskTemplatesGetResponse200.php b/src/Model/OrganizationsOrganizationDiskTemplatesGetResponse200.php new file mode 100644 index 00000000..30ba35e3 --- /dev/null +++ b/src/Model/OrganizationsOrganizationDiskTemplatesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var OrganizationsOrganizationDiskTemplatesGetResponse200Pagination + */ + protected $pagination; + /** + * The list of disk templates. + * + * @var GetOrganizationDiskTemplates200ResponseDiskTemplates[] + */ + protected $diskTemplates; + + public function getPagination(): OrganizationsOrganizationDiskTemplatesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationDiskTemplatesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The list of disk templates. + * + * @return GetOrganizationDiskTemplates200ResponseDiskTemplates[] + */ + public function getDiskTemplates(): array + { + return $this->diskTemplates; + } + + /** + * The list of disk templates. + * + * @param GetOrganizationDiskTemplates200ResponseDiskTemplates[] $diskTemplates + */ + public function setDiskTemplates(array $diskTemplates): self + { + $this->initialized['diskTemplates'] = true; + $this->diskTemplates = $diskTemplates; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationDiskTemplatesGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationDiskTemplatesGetResponse200Pagination.php new file mode 100644 index 00000000..160d29f0 --- /dev/null +++ b/src/Model/OrganizationsOrganizationDiskTemplatesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationDisksGetResponse200.php b/src/Model/OrganizationsOrganizationDisksGetResponse200.php new file mode 100644 index 00000000..ef32090a --- /dev/null +++ b/src/Model/OrganizationsOrganizationDisksGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var OrganizationsOrganizationDisksGetResponse200Pagination + */ + protected $pagination; + /** + * The list of disks. + * + * @var GetOrganizationDisks200ResponseDisk[] + */ + protected $disk; + + public function getPagination(): OrganizationsOrganizationDisksGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationDisksGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The list of disks. + * + * @return GetOrganizationDisks200ResponseDisk[] + */ + public function getDisk(): array + { + return $this->disk; + } + + /** + * The list of disks. + * + * @param GetOrganizationDisks200ResponseDisk[] $disk + */ + public function setDisk(array $disk): self + { + $this->initialized['disk'] = true; + $this->disk = $disk; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationDisksGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationDisksGetResponse200Pagination.php new file mode 100644 index 00000000..1339665e --- /dev/null +++ b/src/Model/OrganizationsOrganizationDisksGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationDnsZonesGetResponse200.php b/src/Model/OrganizationsOrganizationDnsZonesGetResponse200.php new file mode 100644 index 00000000..8297d3cf --- /dev/null +++ b/src/Model/OrganizationsOrganizationDnsZonesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var OrganizationsOrganizationDnsZonesGetResponse200Pagination + */ + protected $pagination; + /** + * The DNS zones for the provided organization. + * + * @var DNSZone[] + */ + protected $dnsZones; + + public function getPagination(): OrganizationsOrganizationDnsZonesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationDnsZonesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The DNS zones for the provided organization. + * + * @return DNSZone[] + */ + public function getDnsZones(): array + { + return $this->dnsZones; + } + + /** + * The DNS zones for the provided organization. + * + * @param DNSZone[] $dnsZones + */ + public function setDnsZones(array $dnsZones): self + { + $this->initialized['dnsZones'] = true; + $this->dnsZones = $dnsZones; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationDnsZonesGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationDnsZonesGetResponse200Pagination.php new file mode 100644 index 00000000..cbac5900 --- /dev/null +++ b/src/Model/OrganizationsOrganizationDnsZonesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationDnsZonesNameserversGetResponse200.php b/src/Model/OrganizationsOrganizationDnsZonesNameserversGetResponse200.php new file mode 100644 index 00000000..61233ea7 --- /dev/null +++ b/src/Model/OrganizationsOrganizationDnsZonesNameserversGetResponse200.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var string[] + */ + protected $nameservers; + + /** + * @return string[] + */ + public function getNameservers(): array + { + return $this->nameservers; + } + + /** + * @param string[] $nameservers + */ + public function setNameservers(array $nameservers): self + { + $this->initialized['nameservers'] = true; + $this->nameservers = $nameservers; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationDnsZonesPostBody.php b/src/Model/OrganizationsOrganizationDnsZonesPostBody.php new file mode 100644 index 00000000..750a025e --- /dev/null +++ b/src/Model/OrganizationsOrganizationDnsZonesPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * All 'details[]' params are mutually exclusive, only one can be provided. + * + * @var DNSZoneArguments + */ + protected $properties; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + /** + * All 'details[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): DNSZoneArguments + { + return $this->properties; + } + + /** + * All 'details[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(DNSZoneArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationDnsZonesPostResponse201.php b/src/Model/OrganizationsOrganizationDnsZonesPostResponse201.php new file mode 100644 index 00000000..3a6e24a1 --- /dev/null +++ b/src/Model/OrganizationsOrganizationDnsZonesPostResponse201.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The new DNS zone that has been created. + * + * @var OrganizationsOrganizationDnsZonesPostResponse201DnsZone + */ + protected $dnsZone; + + /** + * The new DNS zone that has been created. + */ + public function getDnsZone(): OrganizationsOrganizationDnsZonesPostResponse201DnsZone + { + return $this->dnsZone; + } + + /** + * The new DNS zone that has been created. + */ + public function setDnsZone(OrganizationsOrganizationDnsZonesPostResponse201DnsZone $dnsZone): self + { + $this->initialized['dnsZone'] = true; + $this->dnsZone = $dnsZone; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationDnsZonesPostResponse201DnsZone.php b/src/Model/OrganizationsOrganizationDnsZonesPostResponse201DnsZone.php new file mode 100644 index 00000000..9a25b0cd --- /dev/null +++ b/src/Model/OrganizationsOrganizationDnsZonesPostResponse201DnsZone.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $defaultTtl; + /** + * @var bool + */ + protected $verified; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDefaultTtl(): int + { + return $this->defaultTtl; + } + + public function setDefaultTtl(int $defaultTtl): self + { + $this->initialized['defaultTtl'] = true; + $this->defaultTtl = $defaultTtl; + + return $this; + } + + public function getVerified(): bool + { + return $this->verified; + } + + public function setVerified(bool $verified): self + { + $this->initialized['verified'] = true; + $this->verified = $verified; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationFileStorageVolumesGetResponse200.php b/src/Model/OrganizationsOrganizationFileStorageVolumesGetResponse200.php new file mode 100644 index 00000000..6d6deb27 --- /dev/null +++ b/src/Model/OrganizationsOrganizationFileStorageVolumesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var OrganizationsOrganizationFileStorageVolumesGetResponse200Pagination + */ + protected $pagination; + /** + * A list of all file storage volumes for the given organization. + * + * @var GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes[] + */ + protected $fileStorageVolumes; + + public function getPagination(): OrganizationsOrganizationFileStorageVolumesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationFileStorageVolumesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * A list of all file storage volumes for the given organization. + * + * @return GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes[] + */ + public function getFileStorageVolumes(): array + { + return $this->fileStorageVolumes; + } + + /** + * A list of all file storage volumes for the given organization. + * + * @param GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes[] $fileStorageVolumes + */ + public function setFileStorageVolumes(array $fileStorageVolumes): self + { + $this->initialized['fileStorageVolumes'] = true; + $this->fileStorageVolumes = $fileStorageVolumes; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationFileStorageVolumesGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationFileStorageVolumesGetResponse200Pagination.php new file mode 100644 index 00000000..4740b489 --- /dev/null +++ b/src/Model/OrganizationsOrganizationFileStorageVolumesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationFileStorageVolumesPostBody.php b/src/Model/OrganizationsOrganizationFileStorageVolumesPostBody.php new file mode 100644 index 00000000..951725a8 --- /dev/null +++ b/src/Model/OrganizationsOrganizationFileStorageVolumesPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var FileStorageVolumeArguments + */ + protected $properties; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): FileStorageVolumeArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(FileStorageVolumeArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationFileStorageVolumesPostResponse201.php b/src/Model/OrganizationsOrganizationFileStorageVolumesPostResponse201.php new file mode 100644 index 00000000..74f3604d --- /dev/null +++ b/src/Model/OrganizationsOrganizationFileStorageVolumesPostResponse201.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The file storage volume. + * + * @var OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolume + */ + protected $fileStorageVolume; + + /** + * The file storage volume. + */ + public function getFileStorageVolume(): OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolume + { + return $this->fileStorageVolume; + } + + /** + * The file storage volume. + */ + public function setFileStorageVolume(OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolume $fileStorageVolume): self + { + $this->initialized['fileStorageVolume'] = true; + $this->fileStorageVolume = $fileStorageVolume; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolume.php b/src/Model/OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolume.php new file mode 100644 index 00000000..aca56de9 --- /dev/null +++ b/src/Model/OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolume.php @@ -0,0 +1,165 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var PostOrganizationFileStorageVolumesPartDataCenter + */ + protected $dataCenter; + /** + * @var string[] + */ + protected $associations; + /** + * @var string + */ + protected $state; + /** + * The NFS location of where to mount the volume from. + * + * @var string + */ + protected $nfsLocation; + /** + * The size of the volume in bytes. + * + * @var int + */ + protected $size; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDataCenter(): PostOrganizationFileStorageVolumesPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(PostOrganizationFileStorageVolumesPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function getNfsLocation(): string + { + return $this->nfsLocation; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function setNfsLocation(string $nfsLocation): self + { + $this->initialized['nfsLocation'] = true; + $this->nfsLocation = $nfsLocation; + + return $this; + } + + /** + * The size of the volume in bytes. + */ + public function getSize(): int + { + return $this->size; + } + + /** + * The size of the volume in bytes. + */ + public function setSize(int $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationGetResponse200.php b/src/Model/OrganizationsOrganizationGetResponse200.php new file mode 100644 index 00000000..1604470d --- /dev/null +++ b/src/Model/OrganizationsOrganizationGetResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var OrganizationsOrganizationGetResponse200Organization + */ + protected $organization; + + public function getOrganization(): OrganizationsOrganizationGetResponse200Organization + { + return $this->organization; + } + + public function setOrganization(OrganizationsOrganizationGetResponse200Organization $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationGetResponse200Organization.php b/src/Model/OrganizationsOrganizationGetResponse200Organization.php new file mode 100644 index 00000000..cba4ef0a --- /dev/null +++ b/src/Model/OrganizationsOrganizationGetResponse200Organization.php @@ -0,0 +1,330 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $subDomain; + /** + * @var string + */ + protected $infrastructureDomain; + /** + * @var int + */ + protected $createdAt; + /** + * @var bool + */ + protected $suspended; + /** + * @var bool + */ + protected $managed; + /** + * @var string + */ + protected $billingName; + /** + * @var string + */ + protected $address1; + /** + * @var string + */ + protected $address2; + /** + * @var string + */ + protected $address3; + /** + * @var string + */ + protected $address4; + /** + * @var string + */ + protected $postcode; + /** + * @var string + */ + protected $vatNumber; + /** + * @var string + */ + protected $phoneNumber; + /** + * @var Currency + */ + protected $currency; + /** + * @var Country + */ + protected $country; + /** + * @var CountryState + */ + protected $countryState; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSubDomain(): string + { + return $this->subDomain; + } + + public function setSubDomain(string $subDomain): self + { + $this->initialized['subDomain'] = true; + $this->subDomain = $subDomain; + + return $this; + } + + public function getInfrastructureDomain(): string + { + return $this->infrastructureDomain; + } + + public function setInfrastructureDomain(string $infrastructureDomain): self + { + $this->initialized['infrastructureDomain'] = true; + $this->infrastructureDomain = $infrastructureDomain; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getSuspended(): bool + { + return $this->suspended; + } + + public function setSuspended(bool $suspended): self + { + $this->initialized['suspended'] = true; + $this->suspended = $suspended; + + return $this; + } + + public function getManaged(): bool + { + return $this->managed; + } + + public function setManaged(bool $managed): self + { + $this->initialized['managed'] = true; + $this->managed = $managed; + + return $this; + } + + public function getBillingName(): string + { + return $this->billingName; + } + + public function setBillingName(string $billingName): self + { + $this->initialized['billingName'] = true; + $this->billingName = $billingName; + + return $this; + } + + public function getAddress1(): string + { + return $this->address1; + } + + public function setAddress1(string $address1): self + { + $this->initialized['address1'] = true; + $this->address1 = $address1; + + return $this; + } + + public function getAddress2(): string + { + return $this->address2; + } + + public function setAddress2(string $address2): self + { + $this->initialized['address2'] = true; + $this->address2 = $address2; + + return $this; + } + + public function getAddress3(): string + { + return $this->address3; + } + + public function setAddress3(string $address3): self + { + $this->initialized['address3'] = true; + $this->address3 = $address3; + + return $this; + } + + public function getAddress4(): string + { + return $this->address4; + } + + public function setAddress4(string $address4): self + { + $this->initialized['address4'] = true; + $this->address4 = $address4; + + return $this; + } + + public function getPostcode(): string + { + return $this->postcode; + } + + public function setPostcode(string $postcode): self + { + $this->initialized['postcode'] = true; + $this->postcode = $postcode; + + return $this; + } + + public function getVatNumber(): string + { + return $this->vatNumber; + } + + public function setVatNumber(string $vatNumber): self + { + $this->initialized['vatNumber'] = true; + $this->vatNumber = $vatNumber; + + return $this; + } + + public function getPhoneNumber(): string + { + return $this->phoneNumber; + } + + public function setPhoneNumber(string $phoneNumber): self + { + $this->initialized['phoneNumber'] = true; + $this->phoneNumber = $phoneNumber; + + return $this; + } + + public function getCurrency(): Currency + { + return $this->currency; + } + + public function setCurrency(Currency $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } + + public function getCountry(): Country + { + return $this->country; + } + + public function setCountry(Country $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } + + public function getCountryState(): CountryState + { + return $this->countryState; + } + + public function setCountryState(CountryState $countryState): self + { + $this->initialized['countryState'] = true; + $this->countryState = $countryState; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationIpAddressesGetResponse200.php b/src/Model/OrganizationsOrganizationIpAddressesGetResponse200.php new file mode 100644 index 00000000..0401bc2e --- /dev/null +++ b/src/Model/OrganizationsOrganizationIpAddressesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var OrganizationsOrganizationIpAddressesGetResponse200Pagination + */ + protected $pagination; + /** + * The IP addresses belonging to this organization. + * + * @var GetOrganizationIPAddresses200ResponseIPAddresses[] + */ + protected $ipAddresses; + + public function getPagination(): OrganizationsOrganizationIpAddressesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationIpAddressesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The IP addresses belonging to this organization. + * + * @return GetOrganizationIPAddresses200ResponseIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * The IP addresses belonging to this organization. + * + * @param GetOrganizationIPAddresses200ResponseIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationIpAddressesGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationIpAddressesGetResponse200Pagination.php new file mode 100644 index 00000000..fd3b285c --- /dev/null +++ b/src/Model/OrganizationsOrganizationIpAddressesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationIpAddressesPostBody.php b/src/Model/OrganizationsOrganizationIpAddressesPostBody.php new file mode 100644 index 00000000..ecd67778 --- /dev/null +++ b/src/Model/OrganizationsOrganizationIpAddressesPostBody.php @@ -0,0 +1,141 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * All 'network[]' params are mutually exclusive, only one can be provided. + * + * @var NetworkLookup + */ + protected $network; + /** + * @var string + */ + protected $version; + /** + * Whether or not to set this address as a VIP. + * + * @var bool + */ + protected $vip; + /** + * The label to give this address if setting it as a VIP. + * + * @var string + */ + protected $label; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + /** + * All 'network[]' params are mutually exclusive, only one can be provided. + */ + public function getNetwork(): NetworkLookup + { + return $this->network; + } + + /** + * All 'network[]' params are mutually exclusive, only one can be provided. + */ + public function setNetwork(NetworkLookup $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getVersion(): string + { + return $this->version; + } + + public function setVersion(string $version): self + { + $this->initialized['version'] = true; + $this->version = $version; + + return $this; + } + + /** + * Whether or not to set this address as a VIP. + */ + public function getVip(): bool + { + return $this->vip; + } + + /** + * Whether or not to set this address as a VIP. + */ + public function setVip(bool $vip): self + { + $this->initialized['vip'] = true; + $this->vip = $vip; + + return $this; + } + + /** + * The label to give this address if setting it as a VIP. + */ + public function getLabel(): string + { + return $this->label; + } + + /** + * The label to give this address if setting it as a VIP. + */ + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationIpAddressesPostResponse200.php b/src/Model/OrganizationsOrganizationIpAddressesPostResponse200.php new file mode 100644 index 00000000..0b70801b --- /dev/null +++ b/src/Model/OrganizationsOrganizationIpAddressesPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The newly allocated IP address. + * + * @var OrganizationsOrganizationIpAddressesPostResponse200IpAddress + */ + protected $ipAddress; + + /** + * The newly allocated IP address. + */ + public function getIpAddress(): OrganizationsOrganizationIpAddressesPostResponse200IpAddress + { + return $this->ipAddress; + } + + /** + * The newly allocated IP address. + */ + public function setIpAddress(OrganizationsOrganizationIpAddressesPostResponse200IpAddress $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationIpAddressesPostResponse200IpAddress.php b/src/Model/OrganizationsOrganizationIpAddressesPostResponse200IpAddress.php new file mode 100644 index 00000000..7d196e9f --- /dev/null +++ b/src/Model/OrganizationsOrganizationIpAddressesPostResponse200IpAddress.php @@ -0,0 +1,177 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + /** + * @var string + */ + protected $reverseDns; + /** + * @var bool + */ + protected $vip; + /** + * @var string + */ + protected $label; + /** + * @var string + */ + protected $addressWithMask; + /** + * @var Network + */ + protected $network; + /** + * @var string + */ + protected $allocationId; + /** + * @var string + */ + protected $allocationType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } + + public function getReverseDns(): string + { + return $this->reverseDns; + } + + public function setReverseDns(string $reverseDns): self + { + $this->initialized['reverseDns'] = true; + $this->reverseDns = $reverseDns; + + return $this; + } + + public function getVip(): bool + { + return $this->vip; + } + + public function setVip(bool $vip): self + { + $this->initialized['vip'] = true; + $this->vip = $vip; + + return $this; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + public function getAddressWithMask(): string + { + return $this->addressWithMask; + } + + public function setAddressWithMask(string $addressWithMask): self + { + $this->initialized['addressWithMask'] = true; + $this->addressWithMask = $addressWithMask; + + return $this; + } + + public function getNetwork(): Network + { + return $this->network; + } + + public function setNetwork(Network $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getAllocationId(): string + { + return $this->allocationId; + } + + public function setAllocationId(string $allocationId): self + { + $this->initialized['allocationId'] = true; + $this->allocationId = $allocationId; + + return $this; + } + + public function getAllocationType(): string + { + return $this->allocationType; + } + + public function setAllocationType(string $allocationType): self + { + $this->initialized['allocationType'] = true; + $this->allocationType = $allocationType; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationLoadBalancersGetResponse200.php b/src/Model/OrganizationsOrganizationLoadBalancersGetResponse200.php new file mode 100644 index 00000000..73a7e95f --- /dev/null +++ b/src/Model/OrganizationsOrganizationLoadBalancersGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var OrganizationsOrganizationLoadBalancersGetResponse200Pagination + */ + protected $pagination; + /** + * The load balancers owned by this organization. + * + * @var GetOrganizationLoadBalancers200ResponseLoadBalancers[] + */ + protected $loadBalancers; + + public function getPagination(): OrganizationsOrganizationLoadBalancersGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationLoadBalancersGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The load balancers owned by this organization. + * + * @return GetOrganizationLoadBalancers200ResponseLoadBalancers[] + */ + public function getLoadBalancers(): array + { + return $this->loadBalancers; + } + + /** + * The load balancers owned by this organization. + * + * @param GetOrganizationLoadBalancers200ResponseLoadBalancers[] $loadBalancers + */ + public function setLoadBalancers(array $loadBalancers): self + { + $this->initialized['loadBalancers'] = true; + $this->loadBalancers = $loadBalancers; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationLoadBalancersGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationLoadBalancersGetResponse200Pagination.php new file mode 100644 index 00000000..d2ff0a9a --- /dev/null +++ b/src/Model/OrganizationsOrganizationLoadBalancersGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationLoadBalancersPostBody.php b/src/Model/OrganizationsOrganizationLoadBalancersPostBody.php new file mode 100644 index 00000000..b56815c8 --- /dev/null +++ b/src/Model/OrganizationsOrganizationLoadBalancersPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var LoadBalancerArguments + */ + protected $properties; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): LoadBalancerArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(LoadBalancerArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationLoadBalancersPostResponse200.php b/src/Model/OrganizationsOrganizationLoadBalancersPostResponse200.php new file mode 100644 index 00000000..f13b8748 --- /dev/null +++ b/src/Model/OrganizationsOrganizationLoadBalancersPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The load balancer that has been created. + * + * @var OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancer + */ + protected $loadBalancer; + + /** + * The load balancer that has been created. + */ + public function getLoadBalancer(): OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancer + { + return $this->loadBalancer; + } + + /** + * The load balancer that has been created. + */ + public function setLoadBalancer(OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancer $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancer.php b/src/Model/OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancer.php new file mode 100644 index 00000000..91b695ce --- /dev/null +++ b/src/Model/OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancer.php @@ -0,0 +1,292 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $apiReference; + /** + * @var string + */ + protected $resourceType; + /** + * @var LoadBalancerResource[] + */ + protected $resources; + /** + * @var string[] + */ + protected $resourceIds; + /** + * @var PostOrganizationLoadBalancersPartIPAddress[] + */ + protected $ipAddress; + /** + * @var bool + */ + protected $httpsRedirect; + /** + * @var string + */ + protected $backendCertificate; + /** + * @var string + */ + protected $backendCertificateKey; + /** + * @var PostOrganizationLoadBalancersPartDataCenter + */ + protected $dataCenter; + /** + * @var bool + */ + protected $enableWeighting; + /** + * @var PostOrganizationLoadBalancersPartWeights[] + */ + protected $weights; + /** + * @var string[] + */ + protected $standbyVms; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getApiReference(): string + { + return $this->apiReference; + } + + public function setApiReference(string $apiReference): self + { + $this->initialized['apiReference'] = true; + $this->apiReference = $apiReference; + + return $this; + } + + public function getResourceType(): string + { + return $this->resourceType; + } + + public function setResourceType(string $resourceType): self + { + $this->initialized['resourceType'] = true; + $this->resourceType = $resourceType; + + return $this; + } + + /** + * @return LoadBalancerResource[] + */ + public function getResources(): array + { + return $this->resources; + } + + /** + * @param LoadBalancerResource[] $resources + */ + public function setResources(array $resources): self + { + $this->initialized['resources'] = true; + $this->resources = $resources; + + return $this; + } + + /** + * @return string[] + */ + public function getResourceIds(): array + { + return $this->resourceIds; + } + + /** + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds): self + { + $this->initialized['resourceIds'] = true; + $this->resourceIds = $resourceIds; + + return $this; + } + + /** + * @return PostOrganizationLoadBalancersPartIPAddress[] + */ + public function getIpAddress(): array + { + return $this->ipAddress; + } + + /** + * @param PostOrganizationLoadBalancersPartIPAddress[] $ipAddress + */ + public function setIpAddress(array $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } + + public function getHttpsRedirect(): bool + { + return $this->httpsRedirect; + } + + public function setHttpsRedirect(bool $httpsRedirect): self + { + $this->initialized['httpsRedirect'] = true; + $this->httpsRedirect = $httpsRedirect; + + return $this; + } + + public function getBackendCertificate(): string + { + return $this->backendCertificate; + } + + public function setBackendCertificate(string $backendCertificate): self + { + $this->initialized['backendCertificate'] = true; + $this->backendCertificate = $backendCertificate; + + return $this; + } + + public function getBackendCertificateKey(): string + { + return $this->backendCertificateKey; + } + + public function setBackendCertificateKey(string $backendCertificateKey): self + { + $this->initialized['backendCertificateKey'] = true; + $this->backendCertificateKey = $backendCertificateKey; + + return $this; + } + + public function getDataCenter(): PostOrganizationLoadBalancersPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(PostOrganizationLoadBalancersPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + public function getEnableWeighting(): bool + { + return $this->enableWeighting; + } + + public function setEnableWeighting(bool $enableWeighting): self + { + $this->initialized['enableWeighting'] = true; + $this->enableWeighting = $enableWeighting; + + return $this; + } + + /** + * @return PostOrganizationLoadBalancersPartWeights[] + */ + public function getWeights(): array + { + return $this->weights; + } + + /** + * @param PostOrganizationLoadBalancersPartWeights[] $weights + */ + public function setWeights(array $weights): self + { + $this->initialized['weights'] = true; + $this->weights = $weights; + + return $this; + } + + /** + * @return string[] + */ + public function getStandbyVms(): array + { + return $this->standbyVms; + } + + /** + * @param string[] $standbyVms + */ + public function setStandbyVms(array $standbyVms): self + { + $this->initialized['standbyVms'] = true; + $this->standbyVms = $standbyVms; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationManagedGetResponse200.php b/src/Model/OrganizationsOrganizationManagedGetResponse200.php new file mode 100644 index 00000000..441b9b63 --- /dev/null +++ b/src/Model/OrganizationsOrganizationManagedGetResponse200.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * @var OrganizationsOrganizationManagedGetResponse200Pagination + */ + protected $pagination; + /** + * @var GetOrganizationManaged200ResponseOrganizations[] + */ + protected $organizations; + + public function getPagination(): OrganizationsOrganizationManagedGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationManagedGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * @return GetOrganizationManaged200ResponseOrganizations[] + */ + public function getOrganizations(): array + { + return $this->organizations; + } + + /** + * @param GetOrganizationManaged200ResponseOrganizations[] $organizations + */ + public function setOrganizations(array $organizations): self + { + $this->initialized['organizations'] = true; + $this->organizations = $organizations; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationManagedGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationManagedGetResponse200Pagination.php new file mode 100644 index 00000000..89e413c6 --- /dev/null +++ b/src/Model/OrganizationsOrganizationManagedGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationManagedPostBody.php b/src/Model/OrganizationsOrganizationManagedPostBody.php new file mode 100644 index 00000000..e7c906a4 --- /dev/null +++ b/src/Model/OrganizationsOrganizationManagedPostBody.php @@ -0,0 +1,83 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $subDomain; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSubDomain(): string + { + return $this->subDomain; + } + + public function setSubDomain(string $subDomain): self + { + $this->initialized['subDomain'] = true; + $this->subDomain = $subDomain; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationManagedPostResponse201.php b/src/Model/OrganizationsOrganizationManagedPostResponse201.php new file mode 100644 index 00000000..d6dea7aa --- /dev/null +++ b/src/Model/OrganizationsOrganizationManagedPostResponse201.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var OrganizationsOrganizationManagedPostResponse201Organization + */ + protected $organization; + + public function getOrganization(): OrganizationsOrganizationManagedPostResponse201Organization + { + return $this->organization; + } + + public function setOrganization(OrganizationsOrganizationManagedPostResponse201Organization $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationManagedPostResponse201Organization.php b/src/Model/OrganizationsOrganizationManagedPostResponse201Organization.php new file mode 100644 index 00000000..1acaf726 --- /dev/null +++ b/src/Model/OrganizationsOrganizationManagedPostResponse201Organization.php @@ -0,0 +1,330 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $subDomain; + /** + * @var string + */ + protected $infrastructureDomain; + /** + * @var int + */ + protected $createdAt; + /** + * @var bool + */ + protected $suspended; + /** + * @var bool + */ + protected $managed; + /** + * @var string + */ + protected $billingName; + /** + * @var string + */ + protected $address1; + /** + * @var string + */ + protected $address2; + /** + * @var string + */ + protected $address3; + /** + * @var string + */ + protected $address4; + /** + * @var string + */ + protected $postcode; + /** + * @var string + */ + protected $vatNumber; + /** + * @var string + */ + protected $phoneNumber; + /** + * @var PostOrganizationManagedPartCurrency + */ + protected $currency; + /** + * @var PostOrganizationManagedPartCountry + */ + protected $country; + /** + * @var PostOrganizationManagedPartCountryState + */ + protected $countryState; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSubDomain(): string + { + return $this->subDomain; + } + + public function setSubDomain(string $subDomain): self + { + $this->initialized['subDomain'] = true; + $this->subDomain = $subDomain; + + return $this; + } + + public function getInfrastructureDomain(): string + { + return $this->infrastructureDomain; + } + + public function setInfrastructureDomain(string $infrastructureDomain): self + { + $this->initialized['infrastructureDomain'] = true; + $this->infrastructureDomain = $infrastructureDomain; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getSuspended(): bool + { + return $this->suspended; + } + + public function setSuspended(bool $suspended): self + { + $this->initialized['suspended'] = true; + $this->suspended = $suspended; + + return $this; + } + + public function getManaged(): bool + { + return $this->managed; + } + + public function setManaged(bool $managed): self + { + $this->initialized['managed'] = true; + $this->managed = $managed; + + return $this; + } + + public function getBillingName(): string + { + return $this->billingName; + } + + public function setBillingName(string $billingName): self + { + $this->initialized['billingName'] = true; + $this->billingName = $billingName; + + return $this; + } + + public function getAddress1(): string + { + return $this->address1; + } + + public function setAddress1(string $address1): self + { + $this->initialized['address1'] = true; + $this->address1 = $address1; + + return $this; + } + + public function getAddress2(): string + { + return $this->address2; + } + + public function setAddress2(string $address2): self + { + $this->initialized['address2'] = true; + $this->address2 = $address2; + + return $this; + } + + public function getAddress3(): string + { + return $this->address3; + } + + public function setAddress3(string $address3): self + { + $this->initialized['address3'] = true; + $this->address3 = $address3; + + return $this; + } + + public function getAddress4(): string + { + return $this->address4; + } + + public function setAddress4(string $address4): self + { + $this->initialized['address4'] = true; + $this->address4 = $address4; + + return $this; + } + + public function getPostcode(): string + { + return $this->postcode; + } + + public function setPostcode(string $postcode): self + { + $this->initialized['postcode'] = true; + $this->postcode = $postcode; + + return $this; + } + + public function getVatNumber(): string + { + return $this->vatNumber; + } + + public function setVatNumber(string $vatNumber): self + { + $this->initialized['vatNumber'] = true; + $this->vatNumber = $vatNumber; + + return $this; + } + + public function getPhoneNumber(): string + { + return $this->phoneNumber; + } + + public function setPhoneNumber(string $phoneNumber): self + { + $this->initialized['phoneNumber'] = true; + $this->phoneNumber = $phoneNumber; + + return $this; + } + + public function getCurrency(): PostOrganizationManagedPartCurrency + { + return $this->currency; + } + + public function setCurrency(PostOrganizationManagedPartCurrency $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } + + public function getCountry(): PostOrganizationManagedPartCountry + { + return $this->country; + } + + public function setCountry(PostOrganizationManagedPartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } + + public function getCountryState(): PostOrganizationManagedPartCountryState + { + return $this->countryState; + } + + public function setCountryState(PostOrganizationManagedPartCountryState $countryState): self + { + $this->initialized['countryState'] = true; + $this->countryState = $countryState; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationNetworkSpeedProfilesGetResponse200.php b/src/Model/OrganizationsOrganizationNetworkSpeedProfilesGetResponse200.php new file mode 100644 index 00000000..7a740294 --- /dev/null +++ b/src/Model/OrganizationsOrganizationNetworkSpeedProfilesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Pagination + */ + protected $pagination; + /** + * The network speed profiles available to this organization. + * + * @var NetworkSpeedProfile[] + */ + protected $networkSpeedProfiles; + + public function getPagination(): OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The network speed profiles available to this organization. + * + * @return NetworkSpeedProfile[] + */ + public function getNetworkSpeedProfiles(): array + { + return $this->networkSpeedProfiles; + } + + /** + * The network speed profiles available to this organization. + * + * @param NetworkSpeedProfile[] $networkSpeedProfiles + */ + public function setNetworkSpeedProfiles(array $networkSpeedProfiles): self + { + $this->initialized['networkSpeedProfiles'] = true; + $this->networkSpeedProfiles = $networkSpeedProfiles; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Pagination.php new file mode 100644 index 00000000..5001de80 --- /dev/null +++ b/src/Model/OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationSecurityGroupsGetResponse200.php b/src/Model/OrganizationsOrganizationSecurityGroupsGetResponse200.php new file mode 100644 index 00000000..2bbbbb5e --- /dev/null +++ b/src/Model/OrganizationsOrganizationSecurityGroupsGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var OrganizationsOrganizationSecurityGroupsGetResponse200Pagination + */ + protected $pagination; + /** + * The security groups owned by this organization. + * + * @var SecurityGroup[] + */ + protected $securityGroups; + + public function getPagination(): OrganizationsOrganizationSecurityGroupsGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationSecurityGroupsGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The security groups owned by this organization. + * + * @return SecurityGroup[] + */ + public function getSecurityGroups(): array + { + return $this->securityGroups; + } + + /** + * The security groups owned by this organization. + * + * @param SecurityGroup[] $securityGroups + */ + public function setSecurityGroups(array $securityGroups): self + { + $this->initialized['securityGroups'] = true; + $this->securityGroups = $securityGroups; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationSecurityGroupsGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationSecurityGroupsGetResponse200Pagination.php new file mode 100644 index 00000000..cd83b4c3 --- /dev/null +++ b/src/Model/OrganizationsOrganizationSecurityGroupsGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationSecurityGroupsPostBody.php b/src/Model/OrganizationsOrganizationSecurityGroupsPostBody.php new file mode 100644 index 00000000..1e48255f --- /dev/null +++ b/src/Model/OrganizationsOrganizationSecurityGroupsPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var SecurityGroupArguments + */ + protected $properties; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): SecurityGroupArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(SecurityGroupArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationSecurityGroupsPostResponse200.php b/src/Model/OrganizationsOrganizationSecurityGroupsPostResponse200.php new file mode 100644 index 00000000..44df3dab --- /dev/null +++ b/src/Model/OrganizationsOrganizationSecurityGroupsPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The security group that has been created. + * + * @var OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroup + */ + protected $securityGroup; + + /** + * The security group that has been created. + */ + public function getSecurityGroup(): OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroup + { + return $this->securityGroup; + } + + /** + * The security group that has been created. + */ + public function setSecurityGroup(OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroup.php b/src/Model/OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroup.php new file mode 100644 index 00000000..bafebc24 --- /dev/null +++ b/src/Model/OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroup.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $allowAllInbound; + /** + * @var bool + */ + protected $allowAllOutbound; + /** + * @var string[] + */ + protected $associations; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getAllowAllInbound(): bool + { + return $this->allowAllInbound; + } + + public function setAllowAllInbound(bool $allowAllInbound): self + { + $this->initialized['allowAllInbound'] = true; + $this->allowAllInbound = $allowAllInbound; + + return $this; + } + + public function getAllowAllOutbound(): bool + { + return $this->allowAllOutbound; + } + + public function setAllowAllOutbound(bool $allowAllOutbound): self + { + $this->initialized['allowAllOutbound'] = true; + $this->allowAllOutbound = $allowAllOutbound; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationSshKeysGetResponse200.php b/src/Model/OrganizationsOrganizationSshKeysGetResponse200.php new file mode 100644 index 00000000..fadd55ee --- /dev/null +++ b/src/Model/OrganizationsOrganizationSshKeysGetResponse200.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * @var OrganizationsOrganizationSshKeysGetResponse200Pagination + */ + protected $pagination; + /** + * @var AuthSSHKey[] + */ + protected $sshKeys; + + public function getPagination(): OrganizationsOrganizationSshKeysGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationSshKeysGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * @return AuthSSHKey[] + */ + public function getSshKeys(): array + { + return $this->sshKeys; + } + + /** + * @param AuthSSHKey[] $sshKeys + */ + public function setSshKeys(array $sshKeys): self + { + $this->initialized['sshKeys'] = true; + $this->sshKeys = $sshKeys; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationSshKeysGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationSshKeysGetResponse200Pagination.php new file mode 100644 index 00000000..cfb5b60e --- /dev/null +++ b/src/Model/OrganizationsOrganizationSshKeysGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationSshKeysPostBody.php b/src/Model/OrganizationsOrganizationSshKeysPostBody.php new file mode 100644 index 00000000..77e60fc1 --- /dev/null +++ b/src/Model/OrganizationsOrganizationSshKeysPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * All 'ssh_key[]' params are mutually exclusive, only one can be provided. + * + * @var AuthSSHKeyProperties + */ + protected $sshKey; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + /** + * All 'ssh_key[]' params are mutually exclusive, only one can be provided. + */ + public function getSshKey(): AuthSSHKeyProperties + { + return $this->sshKey; + } + + /** + * All 'ssh_key[]' params are mutually exclusive, only one can be provided. + */ + public function setSshKey(AuthSSHKeyProperties $sshKey): self + { + $this->initialized['sshKey'] = true; + $this->sshKey = $sshKey; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationSshKeysPostResponse201.php b/src/Model/OrganizationsOrganizationSshKeysPostResponse201.php new file mode 100644 index 00000000..688285ce --- /dev/null +++ b/src/Model/OrganizationsOrganizationSshKeysPostResponse201.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var OrganizationsOrganizationSshKeysPostResponse201SshKey + */ + protected $sshKey; + + public function getSshKey(): OrganizationsOrganizationSshKeysPostResponse201SshKey + { + return $this->sshKey; + } + + public function setSshKey(OrganizationsOrganizationSshKeysPostResponse201SshKey $sshKey): self + { + $this->initialized['sshKey'] = true; + $this->sshKey = $sshKey; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationSshKeysPostResponse201SshKey.php b/src/Model/OrganizationsOrganizationSshKeysPostResponse201SshKey.php new file mode 100644 index 00000000..2a4efaeb --- /dev/null +++ b/src/Model/OrganizationsOrganizationSshKeysPostResponse201SshKey.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $fingerprint; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getFingerprint(): string + { + return $this->fingerprint; + } + + public function setFingerprint(string $fingerprint): self + { + $this->initialized['fingerprint'] = true; + $this->fingerprint = $fingerprint; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationTagsGetResponse200.php b/src/Model/OrganizationsOrganizationTagsGetResponse200.php new file mode 100644 index 00000000..c2795696 --- /dev/null +++ b/src/Model/OrganizationsOrganizationTagsGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var OrganizationsOrganizationTagsGetResponse200Pagination + */ + protected $pagination; + /** + * The details for the tags on the organization. + * + * @var GetOrganizationTags200ResponseTags[] + */ + protected $tags; + + public function getPagination(): OrganizationsOrganizationTagsGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationTagsGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The details for the tags on the organization. + * + * @return GetOrganizationTags200ResponseTags[] + */ + public function getTags(): array + { + return $this->tags; + } + + /** + * The details for the tags on the organization. + * + * @param GetOrganizationTags200ResponseTags[] $tags + */ + public function setTags(array $tags): self + { + $this->initialized['tags'] = true; + $this->tags = $tags; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationTagsGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationTagsGetResponse200Pagination.php new file mode 100644 index 00000000..5b0f6414 --- /dev/null +++ b/src/Model/OrganizationsOrganizationTagsGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationTagsPostBody.php b/src/Model/OrganizationsOrganizationTagsPostBody.php new file mode 100644 index 00000000..1224a42c --- /dev/null +++ b/src/Model/OrganizationsOrganizationTagsPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var TagArguments + */ + protected $properties; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): TagArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(TagArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationTagsPostResponse200.php b/src/Model/OrganizationsOrganizationTagsPostResponse200.php new file mode 100644 index 00000000..dc30d942 --- /dev/null +++ b/src/Model/OrganizationsOrganizationTagsPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The newly created tag. + * + * @var OrganizationsOrganizationTagsPostResponse200Tag + */ + protected $tag; + + /** + * The newly created tag. + */ + public function getTag(): OrganizationsOrganizationTagsPostResponse200Tag + { + return $this->tag; + } + + /** + * The newly created tag. + */ + public function setTag(OrganizationsOrganizationTagsPostResponse200Tag $tag): self + { + $this->initialized['tag'] = true; + $this->tag = $tag; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationTagsPostResponse200Tag.php b/src/Model/OrganizationsOrganizationTagsPostResponse200Tag.php new file mode 100644 index 00000000..6b3f4c98 --- /dev/null +++ b/src/Model/OrganizationsOrganizationTagsPostResponse200Tag.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $color; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getColor(): string + { + return $this->color; + } + + public function setColor(string $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationTrashObjectsGetResponse200.php b/src/Model/OrganizationsOrganizationTrashObjectsGetResponse200.php new file mode 100644 index 00000000..2d72bcaf --- /dev/null +++ b/src/Model/OrganizationsOrganizationTrashObjectsGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var OrganizationsOrganizationTrashObjectsGetResponse200Pagination + */ + protected $pagination; + /** + * The trash objects that belong to this organization. + * + * @var TrashObject[] + */ + protected $trashObjects; + + public function getPagination(): OrganizationsOrganizationTrashObjectsGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationTrashObjectsGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The trash objects that belong to this organization. + * + * @return TrashObject[] + */ + public function getTrashObjects(): array + { + return $this->trashObjects; + } + + /** + * The trash objects that belong to this organization. + * + * @param TrashObject[] $trashObjects + */ + public function setTrashObjects(array $trashObjects): self + { + $this->initialized['trashObjects'] = true; + $this->trashObjects = $trashObjects; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationTrashObjectsGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationTrashObjectsGetResponse200Pagination.php new file mode 100644 index 00000000..affafb80 --- /dev/null +++ b/src/Model/OrganizationsOrganizationTrashObjectsGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationTrashObjectsPurgeAllPostBody.php b/src/Model/OrganizationsOrganizationTrashObjectsPurgeAllPostBody.php new file mode 100644 index 00000000..fadc8944 --- /dev/null +++ b/src/Model/OrganizationsOrganizationTrashObjectsPurgeAllPostBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200.php b/src/Model/OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200.php new file mode 100644 index 00000000..48f8d465 --- /dev/null +++ b/src/Model/OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Task + */ + protected $task; + + public function getTask(): OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Task + { + return $this->task; + } + + public function setTask(OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Task.php b/src/Model/OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Task.php new file mode 100644 index 00000000..2daa81a8 --- /dev/null +++ b/src/Model/OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Task.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + /** + * @var int + */ + protected $createdAt; + /** + * @var int + */ + protected $startedAt; + /** + * @var int + */ + protected $finishedAt; + /** + * @var int + */ + protected $progress; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getStartedAt(): int + { + return $this->startedAt; + } + + public function setStartedAt(int $startedAt): self + { + $this->initialized['startedAt'] = true; + $this->startedAt = $startedAt; + + return $this; + } + + public function getFinishedAt(): int + { + return $this->finishedAt; + } + + public function setFinishedAt(int $finishedAt): self + { + $this->initialized['finishedAt'] = true; + $this->finishedAt = $finishedAt; + + return $this; + } + + public function getProgress(): int + { + return $this->progress; + } + + public function setProgress(int $progress): self + { + $this->initialized['progress'] = true; + $this->progress = $progress; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationUsersWithAccessGetResponse200.php b/src/Model/OrganizationsOrganizationUsersWithAccessGetResponse200.php new file mode 100644 index 00000000..4f812c75 --- /dev/null +++ b/src/Model/OrganizationsOrganizationUsersWithAccessGetResponse200.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * @var OrganizationsOrganizationUsersWithAccessGetResponse200Pagination + */ + protected $pagination; + /** + * @var GetOrganizationUsersWithAccess200ResponseUsers[] + */ + protected $users; + + public function getPagination(): OrganizationsOrganizationUsersWithAccessGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationUsersWithAccessGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * @return GetOrganizationUsersWithAccess200ResponseUsers[] + */ + public function getUsers(): array + { + return $this->users; + } + + /** + * @param GetOrganizationUsersWithAccess200ResponseUsers[] $users + */ + public function setUsers(array $users): self + { + $this->initialized['users'] = true; + $this->users = $users; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationUsersWithAccessGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationUsersWithAccessGetResponse200Pagination.php new file mode 100644 index 00000000..1574d133 --- /dev/null +++ b/src/Model/OrganizationsOrganizationUsersWithAccessGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachineGroupsGetResponse200.php b/src/Model/OrganizationsOrganizationVirtualMachineGroupsGetResponse200.php new file mode 100644 index 00000000..0e9f43bb --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachineGroupsGetResponse200.php @@ -0,0 +1,53 @@ +initialized); + } + /** + * The virtual machine groups for the provided organization. + * + * @var VirtualMachineGroup[] + */ + protected $virtualMachineGroups; + + /** + * The virtual machine groups for the provided organization. + * + * @return VirtualMachineGroup[] + */ + public function getVirtualMachineGroups(): array + { + return $this->virtualMachineGroups; + } + + /** + * The virtual machine groups for the provided organization. + * + * @param VirtualMachineGroup[] $virtualMachineGroups + */ + public function setVirtualMachineGroups(array $virtualMachineGroups): self + { + $this->initialized['virtualMachineGroups'] = true; + $this->virtualMachineGroups = $virtualMachineGroups; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachineGroupsPostBody.php b/src/Model/OrganizationsOrganizationVirtualMachineGroupsPostBody.php new file mode 100644 index 00000000..9c90d4e0 --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachineGroupsPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineGroupArguments + */ + protected $properties; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): VirtualMachineGroupArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(VirtualMachineGroupArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachineGroupsPostResponse200.php b/src/Model/OrganizationsOrganizationVirtualMachineGroupsPostResponse200.php new file mode 100644 index 00000000..5d725c79 --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachineGroupsPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The new virtual machine group details. + * + * @var OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroup + */ + protected $virtualMachineGroup; + + /** + * The new virtual machine group details. + */ + public function getVirtualMachineGroup(): OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroup + { + return $this->virtualMachineGroup; + } + + /** + * The new virtual machine group details. + */ + public function setVirtualMachineGroup(OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroup $virtualMachineGroup): self + { + $this->initialized['virtualMachineGroup'] = true; + $this->virtualMachineGroup = $virtualMachineGroup; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroup.php b/src/Model/OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroup.php new file mode 100644 index 00000000..9736f4b0 --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroup.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $segregate; + /** + * @var bool + */ + protected $autoSegregate; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSegregate(): bool + { + return $this->segregate; + } + + public function setSegregate(bool $segregate): self + { + $this->initialized['segregate'] = true; + $this->segregate = $segregate; + + return $this; + } + + public function getAutoSegregate(): bool + { + return $this->autoSegregate; + } + + public function setAutoSegregate(bool $autoSegregate): self + { + $this->initialized['autoSegregate'] = true; + $this->autoSegregate = $autoSegregate; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostBody.php b/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostBody.php new file mode 100644 index 00000000..74d7b840 --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostBody.php @@ -0,0 +1,66 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * @var string + */ + protected $xml; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getXml(): string + { + return $this->xml; + } + + public function setXml(string $xml): self + { + $this->initialized['xml'] = true; + $this->xml = $xml; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201.php b/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201.php new file mode 100644 index 00000000..982898d1 --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201.php @@ -0,0 +1,100 @@ +initialized); + } + /** + * @var OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Task + */ + protected $task; + /** + * Deprecated, please use "virtual_machine_build" instead. + * + * @var OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Build + */ + protected $build; + /** + * @var OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuild + */ + protected $virtualMachineBuild; + /** + * @var string + */ + protected $hostname; + + public function getTask(): OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Task + { + return $this->task; + } + + public function setTask(OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } + + /** + * Deprecated, please use "virtual_machine_build" instead. + */ + public function getBuild(): OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Build + { + return $this->build; + } + + /** + * Deprecated, please use "virtual_machine_build" instead. + */ + public function setBuild(OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Build $build): self + { + $this->initialized['build'] = true; + $this->build = $build; + + return $this; + } + + public function getVirtualMachineBuild(): OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuild + { + return $this->virtualMachineBuild; + } + + public function setVirtualMachineBuild(OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuild $virtualMachineBuild): self + { + $this->initialized['virtualMachineBuild'] = true; + $this->virtualMachineBuild = $virtualMachineBuild; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Build.php b/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Build.php new file mode 100644 index 00000000..579cca65 --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Build.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Task.php b/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Task.php new file mode 100644 index 00000000..001bafef --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Task.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuild.php b/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuild.php new file mode 100644 index 00000000..3937ee3f --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuild.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostBody.php b/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostBody.php new file mode 100644 index 00000000..431731f4 --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostBody.php @@ -0,0 +1,214 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * All 'zone[]' params are mutually exclusive, only one can be provided. + * + * @var ZoneLookup + */ + protected $zone; + /** + * All 'data_center[]' params are mutually exclusive, only one can be provided. + * + * @var DataCenterLookup + */ + protected $dataCenter; + /** + * All 'virtual_machine_package[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachinePackageLookup + */ + protected $package; + /** + * All 'disk_template[]' params are mutually exclusive, only one can be provided. + * + * @var DiskTemplateLookup + */ + protected $diskTemplate; + /** + * @var KeyValue[] + */ + protected $diskTemplateOptions; + /** + * All 'network[]' params are mutually exclusive, only one can be provided. + * + * @var NetworkLookup + */ + protected $network; + /** + * @var string + */ + protected $hostname; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + /** + * All 'zone[]' params are mutually exclusive, only one can be provided. + */ + public function getZone(): ZoneLookup + { + return $this->zone; + } + + /** + * All 'zone[]' params are mutually exclusive, only one can be provided. + */ + public function setZone(ZoneLookup $zone): self + { + $this->initialized['zone'] = true; + $this->zone = $zone; + + return $this; + } + + /** + * All 'data_center[]' params are mutually exclusive, only one can be provided. + */ + public function getDataCenter(): DataCenterLookup + { + return $this->dataCenter; + } + + /** + * All 'data_center[]' params are mutually exclusive, only one can be provided. + */ + public function setDataCenter(DataCenterLookup $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + /** + * All 'virtual_machine_package[]' params are mutually exclusive, only one can be provided. + */ + public function getPackage(): VirtualMachinePackageLookup + { + return $this->package; + } + + /** + * All 'virtual_machine_package[]' params are mutually exclusive, only one can be provided. + */ + public function setPackage(VirtualMachinePackageLookup $package): self + { + $this->initialized['package'] = true; + $this->package = $package; + + return $this; + } + + /** + * All 'disk_template[]' params are mutually exclusive, only one can be provided. + */ + public function getDiskTemplate(): DiskTemplateLookup + { + return $this->diskTemplate; + } + + /** + * All 'disk_template[]' params are mutually exclusive, only one can be provided. + */ + public function setDiskTemplate(DiskTemplateLookup $diskTemplate): self + { + $this->initialized['diskTemplate'] = true; + $this->diskTemplate = $diskTemplate; + + return $this; + } + + /** + * @return KeyValue[] + */ + public function getDiskTemplateOptions(): array + { + return $this->diskTemplateOptions; + } + + /** + * @param KeyValue[] $diskTemplateOptions + */ + public function setDiskTemplateOptions(array $diskTemplateOptions): self + { + $this->initialized['diskTemplateOptions'] = true; + $this->diskTemplateOptions = $diskTemplateOptions; + + return $this; + } + + /** + * All 'network[]' params are mutually exclusive, only one can be provided. + */ + public function getNetwork(): NetworkLookup + { + return $this->network; + } + + /** + * All 'network[]' params are mutually exclusive, only one can be provided. + */ + public function setNetwork(NetworkLookup $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostResponse201.php b/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostResponse201.php new file mode 100644 index 00000000..e88e77d9 --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostResponse201.php @@ -0,0 +1,100 @@ +initialized); + } + /** + * @var OrganizationsOrganizationVirtualMachinesBuildPostResponse201Task + */ + protected $task; + /** + * Deprecated, please use "virtual_machine_build" instead. + * + * @var OrganizationsOrganizationVirtualMachinesBuildPostResponse201Build + */ + protected $build; + /** + * @var OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuild + */ + protected $virtualMachineBuild; + /** + * @var string + */ + protected $hostname; + + public function getTask(): OrganizationsOrganizationVirtualMachinesBuildPostResponse201Task + { + return $this->task; + } + + public function setTask(OrganizationsOrganizationVirtualMachinesBuildPostResponse201Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } + + /** + * Deprecated, please use "virtual_machine_build" instead. + */ + public function getBuild(): OrganizationsOrganizationVirtualMachinesBuildPostResponse201Build + { + return $this->build; + } + + /** + * Deprecated, please use "virtual_machine_build" instead. + */ + public function setBuild(OrganizationsOrganizationVirtualMachinesBuildPostResponse201Build $build): self + { + $this->initialized['build'] = true; + $this->build = $build; + + return $this; + } + + public function getVirtualMachineBuild(): OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuild + { + return $this->virtualMachineBuild; + } + + public function setVirtualMachineBuild(OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuild $virtualMachineBuild): self + { + $this->initialized['virtualMachineBuild'] = true; + $this->virtualMachineBuild = $virtualMachineBuild; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostResponse201Build.php b/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostResponse201Build.php new file mode 100644 index 00000000..35be2737 --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostResponse201Build.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostResponse201Task.php b/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostResponse201Task.php new file mode 100644 index 00000000..f8309c46 --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostResponse201Task.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuild.php b/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuild.php new file mode 100644 index 00000000..01d2ba3d --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuild.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachinesGetResponse200.php b/src/Model/OrganizationsOrganizationVirtualMachinesGetResponse200.php new file mode 100644 index 00000000..f3c137a3 --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachinesGetResponse200.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * @var OrganizationsOrganizationVirtualMachinesGetResponse200Pagination + */ + protected $pagination; + /** + * @var GetOrganizationVirtualMachines200ResponseVirtualMachines[] + */ + protected $virtualMachines; + + public function getPagination(): OrganizationsOrganizationVirtualMachinesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(OrganizationsOrganizationVirtualMachinesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * @return GetOrganizationVirtualMachines200ResponseVirtualMachines[] + */ + public function getVirtualMachines(): array + { + return $this->virtualMachines; + } + + /** + * @param GetOrganizationVirtualMachines200ResponseVirtualMachines[] $virtualMachines + */ + public function setVirtualMachines(array $virtualMachines): self + { + $this->initialized['virtualMachines'] = true; + $this->virtualMachines = $virtualMachines; + + return $this; + } +} diff --git a/src/Model/OrganizationsOrganizationVirtualMachinesGetResponse200Pagination.php b/src/Model/OrganizationsOrganizationVirtualMachinesGetResponse200Pagination.php new file mode 100644 index 00000000..b93989ac --- /dev/null +++ b/src/Model/OrganizationsOrganizationVirtualMachinesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/PaginationObject.php b/src/Model/PaginationObject.php new file mode 100644 index 00000000..cf89b141 --- /dev/null +++ b/src/Model/PaginationObject.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/PatchDNSRecordsDNSRecord200ResponseDNSRecord.php b/src/Model/PatchDNSRecordsDNSRecord200ResponseDNSRecord.php new file mode 100644 index 00000000..619a5915 --- /dev/null +++ b/src/Model/PatchDNSRecordsDNSRecord200ResponseDNSRecord.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var string + */ + protected $recordType; + /** + * @var DNSRecordProperties + */ + protected $properties; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getRecordType(): string + { + return $this->recordType; + } + + public function setRecordType(string $recordType): self + { + $this->initialized['recordType'] = true; + $this->recordType = $recordType; + + return $this; + } + + public function getProperties(): DNSRecordProperties + { + return $this->properties; + } + + public function setProperties(DNSRecordProperties $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/PatchDiskBackupPolicy200ResponseDiskBackupPolicy.php b/src/Model/PatchDiskBackupPolicy200ResponseDiskBackupPolicy.php new file mode 100644 index 00000000..ab797746 --- /dev/null +++ b/src/Model/PatchDiskBackupPolicy200ResponseDiskBackupPolicy.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $retention; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var array + */ + protected $schedule; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getRetention(): int + { + return $this->retention; + } + + public function setRetention(int $retention): self + { + $this->initialized['retention'] = true; + $this->retention = $retention; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + /** + * @return array + */ + public function getSchedule(): iterable + { + return $this->schedule; + } + + /** + * @param array $schedule + */ + public function setSchedule(iterable $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } +} diff --git a/src/Model/PatchFileStorageVolume200ResponseFileStorageVolume.php b/src/Model/PatchFileStorageVolume200ResponseFileStorageVolume.php new file mode 100644 index 00000000..dae4cd58 --- /dev/null +++ b/src/Model/PatchFileStorageVolume200ResponseFileStorageVolume.php @@ -0,0 +1,165 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var PatchFileStorageVolumePartDataCenter + */ + protected $dataCenter; + /** + * @var string[] + */ + protected $associations; + /** + * @var string + */ + protected $state; + /** + * The NFS location of where to mount the volume from. + * + * @var string + */ + protected $nfsLocation; + /** + * The size of the volume in bytes. + * + * @var int + */ + protected $size; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDataCenter(): PatchFileStorageVolumePartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(PatchFileStorageVolumePartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function getNfsLocation(): string + { + return $this->nfsLocation; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function setNfsLocation(string $nfsLocation): self + { + $this->initialized['nfsLocation'] = true; + $this->nfsLocation = $nfsLocation; + + return $this; + } + + /** + * The size of the volume in bytes. + */ + public function getSize(): int + { + return $this->size; + } + + /** + * The size of the volume in bytes. + */ + public function setSize(int $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } +} diff --git a/src/Model/PatchFileStorageVolumePartDataCenter.php b/src/Model/PatchFileStorageVolumePartDataCenter.php new file mode 100644 index 00000000..427d6566 --- /dev/null +++ b/src/Model/PatchFileStorageVolumePartDataCenter.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/PatchLoadBalancer200ResponseLoadBalancer.php b/src/Model/PatchLoadBalancer200ResponseLoadBalancer.php new file mode 100644 index 00000000..a51d094a --- /dev/null +++ b/src/Model/PatchLoadBalancer200ResponseLoadBalancer.php @@ -0,0 +1,292 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $apiReference; + /** + * @var string + */ + protected $resourceType; + /** + * @var LoadBalancerResource[] + */ + protected $resources; + /** + * @var string[] + */ + protected $resourceIds; + /** + * @var PatchLoadBalancerPartIPAddress[] + */ + protected $ipAddress; + /** + * @var bool + */ + protected $httpsRedirect; + /** + * @var string + */ + protected $backendCertificate; + /** + * @var string + */ + protected $backendCertificateKey; + /** + * @var PatchLoadBalancerPartDataCenter + */ + protected $dataCenter; + /** + * @var bool + */ + protected $enableWeighting; + /** + * @var PatchLoadBalancerPartWeights[] + */ + protected $weights; + /** + * @var string[] + */ + protected $standbyVms; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getApiReference(): string + { + return $this->apiReference; + } + + public function setApiReference(string $apiReference): self + { + $this->initialized['apiReference'] = true; + $this->apiReference = $apiReference; + + return $this; + } + + public function getResourceType(): string + { + return $this->resourceType; + } + + public function setResourceType(string $resourceType): self + { + $this->initialized['resourceType'] = true; + $this->resourceType = $resourceType; + + return $this; + } + + /** + * @return LoadBalancerResource[] + */ + public function getResources(): array + { + return $this->resources; + } + + /** + * @param LoadBalancerResource[] $resources + */ + public function setResources(array $resources): self + { + $this->initialized['resources'] = true; + $this->resources = $resources; + + return $this; + } + + /** + * @return string[] + */ + public function getResourceIds(): array + { + return $this->resourceIds; + } + + /** + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds): self + { + $this->initialized['resourceIds'] = true; + $this->resourceIds = $resourceIds; + + return $this; + } + + /** + * @return PatchLoadBalancerPartIPAddress[] + */ + public function getIpAddress(): array + { + return $this->ipAddress; + } + + /** + * @param PatchLoadBalancerPartIPAddress[] $ipAddress + */ + public function setIpAddress(array $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } + + public function getHttpsRedirect(): bool + { + return $this->httpsRedirect; + } + + public function setHttpsRedirect(bool $httpsRedirect): self + { + $this->initialized['httpsRedirect'] = true; + $this->httpsRedirect = $httpsRedirect; + + return $this; + } + + public function getBackendCertificate(): string + { + return $this->backendCertificate; + } + + public function setBackendCertificate(string $backendCertificate): self + { + $this->initialized['backendCertificate'] = true; + $this->backendCertificate = $backendCertificate; + + return $this; + } + + public function getBackendCertificateKey(): string + { + return $this->backendCertificateKey; + } + + public function setBackendCertificateKey(string $backendCertificateKey): self + { + $this->initialized['backendCertificateKey'] = true; + $this->backendCertificateKey = $backendCertificateKey; + + return $this; + } + + public function getDataCenter(): PatchLoadBalancerPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(PatchLoadBalancerPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + public function getEnableWeighting(): bool + { + return $this->enableWeighting; + } + + public function setEnableWeighting(bool $enableWeighting): self + { + $this->initialized['enableWeighting'] = true; + $this->enableWeighting = $enableWeighting; + + return $this; + } + + /** + * @return PatchLoadBalancerPartWeights[] + */ + public function getWeights(): array + { + return $this->weights; + } + + /** + * @param PatchLoadBalancerPartWeights[] $weights + */ + public function setWeights(array $weights): self + { + $this->initialized['weights'] = true; + $this->weights = $weights; + + return $this; + } + + /** + * @return string[] + */ + public function getStandbyVms(): array + { + return $this->standbyVms; + } + + /** + * @param string[] $standbyVms + */ + public function setStandbyVms(array $standbyVms): self + { + $this->initialized['standbyVms'] = true; + $this->standbyVms = $standbyVms; + + return $this; + } +} diff --git a/src/Model/PatchLoadBalancerPartDataCenter.php b/src/Model/PatchLoadBalancerPartDataCenter.php new file mode 100644 index 00000000..2257ca7c --- /dev/null +++ b/src/Model/PatchLoadBalancerPartDataCenter.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/PatchLoadBalancerPartIPAddress.php b/src/Model/PatchLoadBalancerPartIPAddress.php new file mode 100644 index 00000000..6db6118d --- /dev/null +++ b/src/Model/PatchLoadBalancerPartIPAddress.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Model/PatchLoadBalancerPartWeights.php b/src/Model/PatchLoadBalancerPartWeights.php new file mode 100644 index 00000000..de49aa0c --- /dev/null +++ b/src/Model/PatchLoadBalancerPartWeights.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $virtualMachineId; + /** + * @var int + */ + protected $weight; + + public function getVirtualMachineId(): string + { + return $this->virtualMachineId; + } + + public function setVirtualMachineId(string $virtualMachineId): self + { + $this->initialized['virtualMachineId'] = true; + $this->virtualMachineId = $virtualMachineId; + + return $this; + } + + public function getWeight(): int + { + return $this->weight; + } + + public function setWeight(int $weight): self + { + $this->initialized['weight'] = true; + $this->weight = $weight; + + return $this; + } +} diff --git a/src/Model/PatchLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule.php b/src/Model/PatchLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule.php new file mode 100644 index 00000000..ec1c7666 --- /dev/null +++ b/src/Model/PatchLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule.php @@ -0,0 +1,336 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $algorithm; + /** + * @var int + */ + protected $destinationPort; + /** + * @var int + */ + protected $listenPort; + /** + * @var string + */ + protected $protocol; + /** + * @var bool + */ + protected $proxyProtocol; + /** + * @var PatchLoadBalancersRulesLoadBalancerRulePartCertificates[] + */ + protected $certificates; + /** + * @var bool + */ + protected $backendSsl; + /** + * @var bool + */ + protected $passthroughSsl; + /** + * @var bool + */ + protected $checkEnabled; + /** + * @var int + */ + protected $checkFall; + /** + * @var int + */ + protected $checkInterval; + /** + * @var string + */ + protected $checkPath; + /** + * @var string + */ + protected $checkProtocol; + /** + * @var int + */ + protected $checkRise; + /** + * @var int + */ + protected $checkTimeout; + /** + * @var string + */ + protected $checkHttpStatuses; + /** + * @var PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer + */ + protected $loadBalancer; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAlgorithm(): string + { + return $this->algorithm; + } + + public function setAlgorithm(string $algorithm): self + { + $this->initialized['algorithm'] = true; + $this->algorithm = $algorithm; + + return $this; + } + + public function getDestinationPort(): int + { + return $this->destinationPort; + } + + public function setDestinationPort(int $destinationPort): self + { + $this->initialized['destinationPort'] = true; + $this->destinationPort = $destinationPort; + + return $this; + } + + public function getListenPort(): int + { + return $this->listenPort; + } + + public function setListenPort(int $listenPort): self + { + $this->initialized['listenPort'] = true; + $this->listenPort = $listenPort; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getProxyProtocol(): bool + { + return $this->proxyProtocol; + } + + public function setProxyProtocol(bool $proxyProtocol): self + { + $this->initialized['proxyProtocol'] = true; + $this->proxyProtocol = $proxyProtocol; + + return $this; + } + + /** + * @return PatchLoadBalancersRulesLoadBalancerRulePartCertificates[] + */ + public function getCertificates(): array + { + return $this->certificates; + } + + /** + * @param PatchLoadBalancersRulesLoadBalancerRulePartCertificates[] $certificates + */ + public function setCertificates(array $certificates): self + { + $this->initialized['certificates'] = true; + $this->certificates = $certificates; + + return $this; + } + + public function getBackendSsl(): bool + { + return $this->backendSsl; + } + + public function setBackendSsl(bool $backendSsl): self + { + $this->initialized['backendSsl'] = true; + $this->backendSsl = $backendSsl; + + return $this; + } + + public function getPassthroughSsl(): bool + { + return $this->passthroughSsl; + } + + public function setPassthroughSsl(bool $passthroughSsl): self + { + $this->initialized['passthroughSsl'] = true; + $this->passthroughSsl = $passthroughSsl; + + return $this; + } + + public function getCheckEnabled(): bool + { + return $this->checkEnabled; + } + + public function setCheckEnabled(bool $checkEnabled): self + { + $this->initialized['checkEnabled'] = true; + $this->checkEnabled = $checkEnabled; + + return $this; + } + + public function getCheckFall(): int + { + return $this->checkFall; + } + + public function setCheckFall(int $checkFall): self + { + $this->initialized['checkFall'] = true; + $this->checkFall = $checkFall; + + return $this; + } + + public function getCheckInterval(): int + { + return $this->checkInterval; + } + + public function setCheckInterval(int $checkInterval): self + { + $this->initialized['checkInterval'] = true; + $this->checkInterval = $checkInterval; + + return $this; + } + + public function getCheckPath(): string + { + return $this->checkPath; + } + + public function setCheckPath(string $checkPath): self + { + $this->initialized['checkPath'] = true; + $this->checkPath = $checkPath; + + return $this; + } + + public function getCheckProtocol(): string + { + return $this->checkProtocol; + } + + public function setCheckProtocol(string $checkProtocol): self + { + $this->initialized['checkProtocol'] = true; + $this->checkProtocol = $checkProtocol; + + return $this; + } + + public function getCheckRise(): int + { + return $this->checkRise; + } + + public function setCheckRise(int $checkRise): self + { + $this->initialized['checkRise'] = true; + $this->checkRise = $checkRise; + + return $this; + } + + public function getCheckTimeout(): int + { + return $this->checkTimeout; + } + + public function setCheckTimeout(int $checkTimeout): self + { + $this->initialized['checkTimeout'] = true; + $this->checkTimeout = $checkTimeout; + + return $this; + } + + public function getCheckHttpStatuses(): string + { + return $this->checkHttpStatuses; + } + + public function setCheckHttpStatuses(string $checkHttpStatuses): self + { + $this->initialized['checkHttpStatuses'] = true; + $this->checkHttpStatuses = $checkHttpStatuses; + + return $this; + } + + public function getLoadBalancer(): PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer + { + return $this->loadBalancer; + } + + public function setLoadBalancer(PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } +} diff --git a/src/Model/PatchLoadBalancersRulesLoadBalancerRulePartCertificates.php b/src/Model/PatchLoadBalancersRulesLoadBalancerRulePartCertificates.php new file mode 100644 index 00000000..ddc1b6ca --- /dev/null +++ b/src/Model/PatchLoadBalancersRulesLoadBalancerRulePartCertificates.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string[] + */ + protected $additionalNames; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * @return string[] + */ + public function getAdditionalNames(): array + { + return $this->additionalNames; + } + + /** + * @param string[] $additionalNames + */ + public function setAdditionalNames(array $additionalNames): self + { + $this->initialized['additionalNames'] = true; + $this->additionalNames = $additionalNames; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer.php b/src/Model/PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer.php new file mode 100644 index 00000000..4f72e722 --- /dev/null +++ b/src/Model/PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/PatchSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule.php b/src/Model/PatchSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule.php new file mode 100644 index 00000000..72d99198 --- /dev/null +++ b/src/Model/PatchSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule.php @@ -0,0 +1,166 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup + */ + protected $securityGroup; + /** + * @var string + */ + protected $direction; + /** + * @var string + */ + protected $protocol; + /** + * @var string + */ + protected $action; + /** + * @var string + */ + protected $ports; + /** + * @var string[] + */ + protected $targets; + /** + * @var string + */ + protected $notes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getSecurityGroup(): PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup + { + return $this->securityGroup; + } + + public function setSecurityGroup(PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } + + public function getDirection(): string + { + return $this->direction; + } + + public function setDirection(string $direction): self + { + $this->initialized['direction'] = true; + $this->direction = $direction; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getAction(): string + { + return $this->action; + } + + public function setAction(string $action): self + { + $this->initialized['action'] = true; + $this->action = $action; + + return $this; + } + + public function getPorts(): string + { + return $this->ports; + } + + public function setPorts(string $ports): self + { + $this->initialized['ports'] = true; + $this->ports = $ports; + + return $this; + } + + /** + * @return string[] + */ + public function getTargets(): array + { + return $this->targets; + } + + /** + * @param string[] $targets + */ + public function setTargets(array $targets): self + { + $this->initialized['targets'] = true; + $this->targets = $targets; + + return $this; + } + + public function getNotes(): string + { + return $this->notes; + } + + public function setNotes(string $notes): self + { + $this->initialized['notes'] = true; + $this->notes = $notes; + + return $this; + } +} diff --git a/src/Model/PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup.php b/src/Model/PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup.php new file mode 100644 index 00000000..8a8775da --- /dev/null +++ b/src/Model/PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachine200ResponseVirtualMachine.php b/src/Model/PatchVirtualMachine200ResponseVirtualMachine.php new file mode 100644 index 00000000..c74c6da9 --- /dev/null +++ b/src/Model/PatchVirtualMachine200ResponseVirtualMachine.php @@ -0,0 +1,388 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $hostname; + /** + * @var string + */ + protected $fqdn; + /** + * @var string + */ + protected $description; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $initialRootPassword; + /** + * @var string + */ + protected $state; + /** + * @var PatchVirtualMachinePartZone + */ + protected $zone; + /** + * @var PatchVirtualMachinePartOrganization + */ + protected $organization; + /** + * @var PatchVirtualMachinePartGroup + */ + protected $group; + /** + * @var PatchVirtualMachinePartPackage + */ + protected $package; + /** + * @var PatchVirtualMachinePartAttachedISO + */ + protected $attachedIso; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $cpuCores; + /** + * @var PatchVirtualMachinePartGPUType + */ + protected $gpuType; + /** + * @var PatchVirtualMachinePartGPUs[] + */ + protected $gpus; + /** + * @var PatchVirtualMachinePartTags[] + */ + protected $tags; + /** + * @var string[] + */ + protected $tagNames; + /** + * @var PatchVirtualMachinePartIPAddresses[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getInitialRootPassword(): string + { + return $this->initialRootPassword; + } + + public function setInitialRootPassword(string $initialRootPassword): self + { + $this->initialized['initialRootPassword'] = true; + $this->initialRootPassword = $initialRootPassword; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getZone(): PatchVirtualMachinePartZone + { + return $this->zone; + } + + public function setZone(PatchVirtualMachinePartZone $zone): self + { + $this->initialized['zone'] = true; + $this->zone = $zone; + + return $this; + } + + public function getOrganization(): PatchVirtualMachinePartOrganization + { + return $this->organization; + } + + public function setOrganization(PatchVirtualMachinePartOrganization $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getGroup(): PatchVirtualMachinePartGroup + { + return $this->group; + } + + public function setGroup(PatchVirtualMachinePartGroup $group): self + { + $this->initialized['group'] = true; + $this->group = $group; + + return $this; + } + + public function getPackage(): PatchVirtualMachinePartPackage + { + return $this->package; + } + + public function setPackage(PatchVirtualMachinePartPackage $package): self + { + $this->initialized['package'] = true; + $this->package = $package; + + return $this; + } + + public function getAttachedIso(): PatchVirtualMachinePartAttachedISO + { + return $this->attachedIso; + } + + public function setAttachedIso(PatchVirtualMachinePartAttachedISO $attachedIso): self + { + $this->initialized['attachedIso'] = true; + $this->attachedIso = $attachedIso; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getGpuType(): PatchVirtualMachinePartGPUType + { + return $this->gpuType; + } + + public function setGpuType(PatchVirtualMachinePartGPUType $gpuType): self + { + $this->initialized['gpuType'] = true; + $this->gpuType = $gpuType; + + return $this; + } + + /** + * @return PatchVirtualMachinePartGPUs[] + */ + public function getGpus(): array + { + return $this->gpus; + } + + /** + * @param PatchVirtualMachinePartGPUs[] $gpus + */ + public function setGpus(array $gpus): self + { + $this->initialized['gpus'] = true; + $this->gpus = $gpus; + + return $this; + } + + /** + * @return PatchVirtualMachinePartTags[] + */ + public function getTags(): array + { + return $this->tags; + } + + /** + * @param PatchVirtualMachinePartTags[] $tags + */ + public function setTags(array $tags): self + { + $this->initialized['tags'] = true; + $this->tags = $tags; + + return $this; + } + + /** + * @return string[] + */ + public function getTagNames(): array + { + return $this->tagNames; + } + + /** + * @param string[] $tagNames + */ + public function setTagNames(array $tagNames): self + { + $this->initialized['tagNames'] = true; + $this->tagNames = $tagNames; + + return $this; + } + + /** + * @return PatchVirtualMachinePartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param PatchVirtualMachinePartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartAttachedISO.php b/src/Model/PatchVirtualMachinePartAttachedISO.php new file mode 100644 index 00000000..da0c37a2 --- /dev/null +++ b/src/Model/PatchVirtualMachinePartAttachedISO.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var PatchVirtualMachinePartOperatingSystem + */ + protected $operatingSystem; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getOperatingSystem(): PatchVirtualMachinePartOperatingSystem + { + return $this->operatingSystem; + } + + public function setOperatingSystem(PatchVirtualMachinePartOperatingSystem $operatingSystem): self + { + $this->initialized['operatingSystem'] = true; + $this->operatingSystem = $operatingSystem; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartBadge.php b/src/Model/PatchVirtualMachinePartBadge.php new file mode 100644 index 00000000..7b4b5a11 --- /dev/null +++ b/src/Model/PatchVirtualMachinePartBadge.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $url; + /** + * @var string + */ + protected $fileName; + /** + * @var string + */ + protected $fileType; + /** + * @var int + */ + protected $fileSize; + /** + * @var string + */ + protected $digest; + /** + * @var string + */ + protected $token; + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } + + public function getFileName(): string + { + return $this->fileName; + } + + public function setFileName(string $fileName): self + { + $this->initialized['fileName'] = true; + $this->fileName = $fileName; + + return $this; + } + + public function getFileType(): string + { + return $this->fileType; + } + + public function setFileType(string $fileType): self + { + $this->initialized['fileType'] = true; + $this->fileType = $fileType; + + return $this; + } + + public function getFileSize(): int + { + return $this->fileSize; + } + + public function setFileSize(int $fileSize): self + { + $this->initialized['fileSize'] = true; + $this->fileSize = $fileSize; + + return $this; + } + + public function getDigest(): string + { + return $this->digest; + } + + public function setDigest(string $digest): self + { + $this->initialized['digest'] = true; + $this->digest = $digest; + + return $this; + } + + public function getToken(): string + { + return $this->token; + } + + public function setToken(string $token): self + { + $this->initialized['token'] = true; + $this->token = $token; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartCountry.php b/src/Model/PatchVirtualMachinePartCountry.php new file mode 100644 index 00000000..d4e9a680 --- /dev/null +++ b/src/Model/PatchVirtualMachinePartCountry.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $isoCode2; + /** + * @var string + */ + protected $isoCode3; + /** + * @var string + */ + protected $timeZone; + /** + * @var bool + */ + protected $eu; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIsoCode2(): string + { + return $this->isoCode2; + } + + public function setIsoCode2(string $isoCode2): self + { + $this->initialized['isoCode2'] = true; + $this->isoCode2 = $isoCode2; + + return $this; + } + + public function getIsoCode3(): string + { + return $this->isoCode3; + } + + public function setIsoCode3(string $isoCode3): self + { + $this->initialized['isoCode3'] = true; + $this->isoCode3 = $isoCode3; + + return $this; + } + + public function getTimeZone(): string + { + return $this->timeZone; + } + + public function setTimeZone(string $timeZone): self + { + $this->initialized['timeZone'] = true; + $this->timeZone = $timeZone; + + return $this; + } + + public function getEu(): bool + { + return $this->eu; + } + + public function setEu(bool $eu): self + { + $this->initialized['eu'] = true; + $this->eu = $eu; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartCountryState.php b/src/Model/PatchVirtualMachinePartCountryState.php new file mode 100644 index 00000000..36c9247c --- /dev/null +++ b/src/Model/PatchVirtualMachinePartCountryState.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $code; + /** + * @var PatchVirtualMachinePartCountry + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getCountry(): PatchVirtualMachinePartCountry + { + return $this->country; + } + + public function setCountry(PatchVirtualMachinePartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartCurrency.php b/src/Model/PatchVirtualMachinePartCurrency.php new file mode 100644 index 00000000..f00712b0 --- /dev/null +++ b/src/Model/PatchVirtualMachinePartCurrency.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $isoCode; + /** + * @var string + */ + protected $symbol; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIsoCode(): string + { + return $this->isoCode; + } + + public function setIsoCode(string $isoCode): self + { + $this->initialized['isoCode'] = true; + $this->isoCode = $isoCode; + + return $this; + } + + public function getSymbol(): string + { + return $this->symbol; + } + + public function setSymbol(string $symbol): self + { + $this->initialized['symbol'] = true; + $this->symbol = $symbol; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartDataCenter.php b/src/Model/PatchVirtualMachinePartDataCenter.php new file mode 100644 index 00000000..17efd553 --- /dev/null +++ b/src/Model/PatchVirtualMachinePartDataCenter.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var PatchVirtualMachinePartCountry + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCountry(): PatchVirtualMachinePartCountry + { + return $this->country; + } + + public function setCountry(PatchVirtualMachinePartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartGPUType.php b/src/Model/PatchVirtualMachinePartGPUType.php new file mode 100644 index 00000000..c8b2c3ee --- /dev/null +++ b/src/Model/PatchVirtualMachinePartGPUType.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $manufacturer; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var string + */ + protected $memoryType; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getManufacturer(): string + { + return $this->manufacturer; + } + + public function setManufacturer(string $manufacturer): self + { + $this->initialized['manufacturer'] = true; + $this->manufacturer = $manufacturer; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getMemoryType(): string + { + return $this->memoryType; + } + + public function setMemoryType(string $memoryType): self + { + $this->initialized['memoryType'] = true; + $this->memoryType = $memoryType; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartGPUs.php b/src/Model/PatchVirtualMachinePartGPUs.php new file mode 100644 index 00000000..72e79b9a --- /dev/null +++ b/src/Model/PatchVirtualMachinePartGPUs.php @@ -0,0 +1,125 @@ +initialized); + } + /** + * Unique ID for this GPU. Not available when status is "detached". + * + * @var string + */ + protected $id; + /** + * @var string + */ + protected $status; + /** + * @var string + */ + protected $pendingAction; + /** + * When pending action is "attach", this indicates if there is a GPU of the relevant type available. + * + * @var bool + */ + protected $available; + /** + * @var PatchVirtualMachinePartType + */ + protected $type; + + /** + * Unique ID for this GPU. Not available when status is "detached". + */ + public function getId(): string + { + return $this->id; + } + + /** + * Unique ID for this GPU. Not available when status is "detached". + */ + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + public function getPendingAction(): string + { + return $this->pendingAction; + } + + public function setPendingAction(string $pendingAction): self + { + $this->initialized['pendingAction'] = true; + $this->pendingAction = $pendingAction; + + return $this; + } + + /** + * When pending action is "attach", this indicates if there is a GPU of the relevant type available. + */ + public function getAvailable(): bool + { + return $this->available; + } + + /** + * When pending action is "attach", this indicates if there is a GPU of the relevant type available. + */ + public function setAvailable(bool $available): self + { + $this->initialized['available'] = true; + $this->available = $available; + + return $this; + } + + public function getType(): PatchVirtualMachinePartType + { + return $this->type; + } + + public function setType(PatchVirtualMachinePartType $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartGroup.php b/src/Model/PatchVirtualMachinePartGroup.php new file mode 100644 index 00000000..f40611b8 --- /dev/null +++ b/src/Model/PatchVirtualMachinePartGroup.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $segregate; + /** + * @var bool + */ + protected $autoSegregate; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSegregate(): bool + { + return $this->segregate; + } + + public function setSegregate(bool $segregate): self + { + $this->initialized['segregate'] = true; + $this->segregate = $segregate; + + return $this; + } + + public function getAutoSegregate(): bool + { + return $this->autoSegregate; + } + + public function setAutoSegregate(bool $autoSegregate): self + { + $this->initialized['autoSegregate'] = true; + $this->autoSegregate = $autoSegregate; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartIPAddresses.php b/src/Model/PatchVirtualMachinePartIPAddresses.php new file mode 100644 index 00000000..7f4e9c5e --- /dev/null +++ b/src/Model/PatchVirtualMachinePartIPAddresses.php @@ -0,0 +1,177 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + /** + * @var string + */ + protected $reverseDns; + /** + * @var bool + */ + protected $vip; + /** + * @var string + */ + protected $label; + /** + * @var string + */ + protected $addressWithMask; + /** + * @var PatchVirtualMachinePartNetwork + */ + protected $network; + /** + * @var string + */ + protected $allocationId; + /** + * @var string + */ + protected $allocationType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } + + public function getReverseDns(): string + { + return $this->reverseDns; + } + + public function setReverseDns(string $reverseDns): self + { + $this->initialized['reverseDns'] = true; + $this->reverseDns = $reverseDns; + + return $this; + } + + public function getVip(): bool + { + return $this->vip; + } + + public function setVip(bool $vip): self + { + $this->initialized['vip'] = true; + $this->vip = $vip; + + return $this; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + public function getAddressWithMask(): string + { + return $this->addressWithMask; + } + + public function setAddressWithMask(string $addressWithMask): self + { + $this->initialized['addressWithMask'] = true; + $this->addressWithMask = $addressWithMask; + + return $this; + } + + public function getNetwork(): PatchVirtualMachinePartNetwork + { + return $this->network; + } + + public function setNetwork(PatchVirtualMachinePartNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getAllocationId(): string + { + return $this->allocationId; + } + + public function setAllocationId(string $allocationId): self + { + $this->initialized['allocationId'] = true; + $this->allocationId = $allocationId; + + return $this; + } + + public function getAllocationType(): string + { + return $this->allocationType; + } + + public function setAllocationType(string $allocationType): self + { + $this->initialized['allocationType'] = true; + $this->allocationType = $allocationType; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartIcon.php b/src/Model/PatchVirtualMachinePartIcon.php new file mode 100644 index 00000000..d2e7e063 --- /dev/null +++ b/src/Model/PatchVirtualMachinePartIcon.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $url; + /** + * @var string + */ + protected $fileName; + /** + * @var string + */ + protected $fileType; + /** + * @var int + */ + protected $fileSize; + /** + * @var string + */ + protected $digest; + /** + * @var string + */ + protected $token; + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } + + public function getFileName(): string + { + return $this->fileName; + } + + public function setFileName(string $fileName): self + { + $this->initialized['fileName'] = true; + $this->fileName = $fileName; + + return $this; + } + + public function getFileType(): string + { + return $this->fileType; + } + + public function setFileType(string $fileType): self + { + $this->initialized['fileType'] = true; + $this->fileType = $fileType; + + return $this; + } + + public function getFileSize(): int + { + return $this->fileSize; + } + + public function setFileSize(int $fileSize): self + { + $this->initialized['fileSize'] = true; + $this->fileSize = $fileSize; + + return $this; + } + + public function getDigest(): string + { + return $this->digest; + } + + public function setDigest(string $digest): self + { + $this->initialized['digest'] = true; + $this->digest = $digest; + + return $this; + } + + public function getToken(): string + { + return $this->token; + } + + public function setToken(string $token): self + { + $this->initialized['token'] = true; + $this->token = $token; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartNetwork.php b/src/Model/PatchVirtualMachinePartNetwork.php new file mode 100644 index 00000000..8c77bda2 --- /dev/null +++ b/src/Model/PatchVirtualMachinePartNetwork.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var PatchVirtualMachinePartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): PatchVirtualMachinePartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(PatchVirtualMachinePartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartOperatingSystem.php b/src/Model/PatchVirtualMachinePartOperatingSystem.php new file mode 100644 index 00000000..7e457f9b --- /dev/null +++ b/src/Model/PatchVirtualMachinePartOperatingSystem.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var PatchVirtualMachinePartBadge + */ + protected $badge; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getBadge(): PatchVirtualMachinePartBadge + { + return $this->badge; + } + + public function setBadge(PatchVirtualMachinePartBadge $badge): self + { + $this->initialized['badge'] = true; + $this->badge = $badge; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartOrganization.php b/src/Model/PatchVirtualMachinePartOrganization.php new file mode 100644 index 00000000..b91e1e22 --- /dev/null +++ b/src/Model/PatchVirtualMachinePartOrganization.php @@ -0,0 +1,330 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $subDomain; + /** + * @var string + */ + protected $infrastructureDomain; + /** + * @var int + */ + protected $createdAt; + /** + * @var bool + */ + protected $suspended; + /** + * @var bool + */ + protected $managed; + /** + * @var string + */ + protected $billingName; + /** + * @var string + */ + protected $address1; + /** + * @var string + */ + protected $address2; + /** + * @var string + */ + protected $address3; + /** + * @var string + */ + protected $address4; + /** + * @var string + */ + protected $postcode; + /** + * @var string + */ + protected $vatNumber; + /** + * @var string + */ + protected $phoneNumber; + /** + * @var PatchVirtualMachinePartCurrency + */ + protected $currency; + /** + * @var PatchVirtualMachinePartCountry + */ + protected $country; + /** + * @var PatchVirtualMachinePartCountryState + */ + protected $countryState; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSubDomain(): string + { + return $this->subDomain; + } + + public function setSubDomain(string $subDomain): self + { + $this->initialized['subDomain'] = true; + $this->subDomain = $subDomain; + + return $this; + } + + public function getInfrastructureDomain(): string + { + return $this->infrastructureDomain; + } + + public function setInfrastructureDomain(string $infrastructureDomain): self + { + $this->initialized['infrastructureDomain'] = true; + $this->infrastructureDomain = $infrastructureDomain; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getSuspended(): bool + { + return $this->suspended; + } + + public function setSuspended(bool $suspended): self + { + $this->initialized['suspended'] = true; + $this->suspended = $suspended; + + return $this; + } + + public function getManaged(): bool + { + return $this->managed; + } + + public function setManaged(bool $managed): self + { + $this->initialized['managed'] = true; + $this->managed = $managed; + + return $this; + } + + public function getBillingName(): string + { + return $this->billingName; + } + + public function setBillingName(string $billingName): self + { + $this->initialized['billingName'] = true; + $this->billingName = $billingName; + + return $this; + } + + public function getAddress1(): string + { + return $this->address1; + } + + public function setAddress1(string $address1): self + { + $this->initialized['address1'] = true; + $this->address1 = $address1; + + return $this; + } + + public function getAddress2(): string + { + return $this->address2; + } + + public function setAddress2(string $address2): self + { + $this->initialized['address2'] = true; + $this->address2 = $address2; + + return $this; + } + + public function getAddress3(): string + { + return $this->address3; + } + + public function setAddress3(string $address3): self + { + $this->initialized['address3'] = true; + $this->address3 = $address3; + + return $this; + } + + public function getAddress4(): string + { + return $this->address4; + } + + public function setAddress4(string $address4): self + { + $this->initialized['address4'] = true; + $this->address4 = $address4; + + return $this; + } + + public function getPostcode(): string + { + return $this->postcode; + } + + public function setPostcode(string $postcode): self + { + $this->initialized['postcode'] = true; + $this->postcode = $postcode; + + return $this; + } + + public function getVatNumber(): string + { + return $this->vatNumber; + } + + public function setVatNumber(string $vatNumber): self + { + $this->initialized['vatNumber'] = true; + $this->vatNumber = $vatNumber; + + return $this; + } + + public function getPhoneNumber(): string + { + return $this->phoneNumber; + } + + public function setPhoneNumber(string $phoneNumber): self + { + $this->initialized['phoneNumber'] = true; + $this->phoneNumber = $phoneNumber; + + return $this; + } + + public function getCurrency(): PatchVirtualMachinePartCurrency + { + return $this->currency; + } + + public function setCurrency(PatchVirtualMachinePartCurrency $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } + + public function getCountry(): PatchVirtualMachinePartCountry + { + return $this->country; + } + + public function setCountry(PatchVirtualMachinePartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } + + public function getCountryState(): PatchVirtualMachinePartCountryState + { + return $this->countryState; + } + + public function setCountryState(PatchVirtualMachinePartCountryState $countryState): self + { + $this->initialized['countryState'] = true; + $this->countryState = $countryState; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartPackage.php b/src/Model/PatchVirtualMachinePartPackage.php new file mode 100644 index 00000000..d9a31819 --- /dev/null +++ b/src/Model/PatchVirtualMachinePartPackage.php @@ -0,0 +1,194 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var int + */ + protected $cpuCores; + /** + * @var int + */ + protected $ipv4Addresses; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $storageInGb; + /** + * @var int + */ + protected $monthlyBandwidthAllowanceInGb; + /** + * @var string + */ + protected $privacy; + /** + * @var PatchVirtualMachinePartIcon + */ + protected $icon; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getIpv4Addresses(): int + { + return $this->ipv4Addresses; + } + + public function setIpv4Addresses(int $ipv4Addresses): self + { + $this->initialized['ipv4Addresses'] = true; + $this->ipv4Addresses = $ipv4Addresses; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getStorageInGb(): int + { + return $this->storageInGb; + } + + public function setStorageInGb(int $storageInGb): self + { + $this->initialized['storageInGb'] = true; + $this->storageInGb = $storageInGb; + + return $this; + } + + public function getMonthlyBandwidthAllowanceInGb(): int + { + return $this->monthlyBandwidthAllowanceInGb; + } + + public function setMonthlyBandwidthAllowanceInGb(int $monthlyBandwidthAllowanceInGb): self + { + $this->initialized['monthlyBandwidthAllowanceInGb'] = true; + $this->monthlyBandwidthAllowanceInGb = $monthlyBandwidthAllowanceInGb; + + return $this; + } + + public function getPrivacy(): string + { + return $this->privacy; + } + + public function setPrivacy(string $privacy): self + { + $this->initialized['privacy'] = true; + $this->privacy = $privacy; + + return $this; + } + + public function getIcon(): PatchVirtualMachinePartIcon + { + return $this->icon; + } + + public function setIcon(PatchVirtualMachinePartIcon $icon): self + { + $this->initialized['icon'] = true; + $this->icon = $icon; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartTags.php b/src/Model/PatchVirtualMachinePartTags.php new file mode 100644 index 00000000..7426c408 --- /dev/null +++ b/src/Model/PatchVirtualMachinePartTags.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $color; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getColor(): string + { + return $this->color; + } + + public function setColor(string $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartType.php b/src/Model/PatchVirtualMachinePartType.php new file mode 100644 index 00000000..498e334b --- /dev/null +++ b/src/Model/PatchVirtualMachinePartType.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $manufacturer; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var string + */ + protected $memoryType; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getManufacturer(): string + { + return $this->manufacturer; + } + + public function setManufacturer(string $manufacturer): self + { + $this->initialized['manufacturer'] = true; + $this->manufacturer = $manufacturer; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getMemoryType(): string + { + return $this->memoryType; + } + + public function setMemoryType(string $memoryType): self + { + $this->initialized['memoryType'] = true; + $this->memoryType = $memoryType; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/PatchVirtualMachinePartZone.php b/src/Model/PatchVirtualMachinePartZone.php new file mode 100644 index 00000000..e3eaf0ae --- /dev/null +++ b/src/Model/PatchVirtualMachinePartZone.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var PatchVirtualMachinePartDataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): PatchVirtualMachinePartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(PatchVirtualMachinePartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/PermissionDenied.php b/src/Model/PermissionDenied.php new file mode 100644 index 00000000..283d7150 --- /dev/null +++ b/src/Model/PermissionDenied.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * Additional information regarding the reason why permission was denied. + * + * @var string + */ + protected $details; + + /** + * Additional information regarding the reason why permission was denied. + */ + public function getDetails(): string + { + return $this->details; + } + + /** + * Additional information regarding the reason why permission was denied. + */ + public function setDetails(string $details): self + { + $this->initialized['details'] = true; + $this->details = $details; + + return $this; + } +} diff --git a/src/Model/PermissionDeniedSchema.php b/src/Model/PermissionDeniedSchema.php new file mode 100644 index 00000000..35203470 --- /dev/null +++ b/src/Model/PermissionDeniedSchema.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var PermissionDenied + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): PermissionDenied + { + return $this->detail; + } + + public function setDetail(PermissionDenied $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/PostDNSZonesDNSZoneRecords200ResponseDNSRecord.php b/src/Model/PostDNSZonesDNSZoneRecords200ResponseDNSRecord.php new file mode 100644 index 00000000..f69f9993 --- /dev/null +++ b/src/Model/PostDNSZonesDNSZoneRecords200ResponseDNSRecord.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var string + */ + protected $recordType; + /** + * @var DNSRecordProperties + */ + protected $properties; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getRecordType(): string + { + return $this->recordType; + } + + public function setRecordType(string $recordType): self + { + $this->initialized['recordType'] = true; + $this->recordType = $recordType; + + return $this; + } + + public function getProperties(): DNSRecordProperties + { + return $this->properties; + } + + public function setProperties(DNSRecordProperties $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/PostDNSZonesDNSZoneUpdateTTL200ResponseDNSZone.php b/src/Model/PostDNSZonesDNSZoneUpdateTTL200ResponseDNSZone.php new file mode 100644 index 00000000..28e30484 --- /dev/null +++ b/src/Model/PostDNSZonesDNSZoneUpdateTTL200ResponseDNSZone.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var bool + */ + protected $verified; + /** + * @var bool + */ + protected $infrastructureZone; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getVerified(): bool + { + return $this->verified; + } + + public function setVerified(bool $verified): self + { + $this->initialized['verified'] = true; + $this->verified = $verified; + + return $this; + } + + public function getInfrastructureZone(): bool + { + return $this->infrastructureZone; + } + + public function setInfrastructureZone(bool $infrastructureZone): self + { + $this->initialized['infrastructureZone'] = true; + $this->infrastructureZone = $infrastructureZone; + + return $this; + } +} diff --git a/src/Model/PostDiskDiskBackupPolicies200ResponseDiskBackupPolicy.php b/src/Model/PostDiskDiskBackupPolicies200ResponseDiskBackupPolicy.php new file mode 100644 index 00000000..1e916df7 --- /dev/null +++ b/src/Model/PostDiskDiskBackupPolicies200ResponseDiskBackupPolicy.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $retention; + /** + * @var float + */ + protected $totalSize; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var PostDiskDiskBackupPoliciesPartSchedule + */ + protected $schedule; + /** + * @var int + */ + protected $autoMoveToTrashAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getRetention(): int + { + return $this->retention; + } + + public function setRetention(int $retention): self + { + $this->initialized['retention'] = true; + $this->retention = $retention; + + return $this; + } + + public function getTotalSize(): float + { + return $this->totalSize; + } + + public function setTotalSize(float $totalSize): self + { + $this->initialized['totalSize'] = true; + $this->totalSize = $totalSize; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + public function getSchedule(): PostDiskDiskBackupPoliciesPartSchedule + { + return $this->schedule; + } + + public function setSchedule(PostDiskDiskBackupPoliciesPartSchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } + + public function getAutoMoveToTrashAt(): int + { + return $this->autoMoveToTrashAt; + } + + public function setAutoMoveToTrashAt(int $autoMoveToTrashAt): self + { + $this->initialized['autoMoveToTrashAt'] = true; + $this->autoMoveToTrashAt = $autoMoveToTrashAt; + + return $this; + } +} diff --git a/src/Model/PostDiskDiskBackupPoliciesPartSchedule.php b/src/Model/PostDiskDiskBackupPoliciesPartSchedule.php new file mode 100644 index 00000000..b1a1b6a0 --- /dev/null +++ b/src/Model/PostDiskDiskBackupPoliciesPartSchedule.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var int + */ + protected $frequency; + /** + * @var string + */ + protected $interval; + /** + * @var int + */ + protected $minute; + /** + * @var int + */ + protected $nextInvocationAt; + /** + * @var int + */ + protected $time; + + public function getFrequency(): int + { + return $this->frequency; + } + + public function setFrequency(int $frequency): self + { + $this->initialized['frequency'] = true; + $this->frequency = $frequency; + + return $this; + } + + public function getInterval(): string + { + return $this->interval; + } + + public function setInterval(string $interval): self + { + $this->initialized['interval'] = true; + $this->interval = $interval; + + return $this; + } + + public function getMinute(): int + { + return $this->minute; + } + + public function setMinute(int $minute): self + { + $this->initialized['minute'] = true; + $this->minute = $minute; + + return $this; + } + + public function getNextInvocationAt(): int + { + return $this->nextInvocationAt; + } + + public function setNextInvocationAt(int $nextInvocationAt): self + { + $this->initialized['nextInvocationAt'] = true; + $this->nextInvocationAt = $nextInvocationAt; + + return $this; + } + + public function getTime(): int + { + return $this->time; + } + + public function setTime(int $time): self + { + $this->initialized['time'] = true; + $this->time = $time; + + return $this; + } +} diff --git a/src/Model/PostLoadBalancerRules200ResponseLoadBalancerRule.php b/src/Model/PostLoadBalancerRules200ResponseLoadBalancerRule.php new file mode 100644 index 00000000..c61e61d8 --- /dev/null +++ b/src/Model/PostLoadBalancerRules200ResponseLoadBalancerRule.php @@ -0,0 +1,336 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $algorithm; + /** + * @var int + */ + protected $destinationPort; + /** + * @var int + */ + protected $listenPort; + /** + * @var string + */ + protected $protocol; + /** + * @var bool + */ + protected $proxyProtocol; + /** + * @var PostLoadBalancerRulesPartCertificates[] + */ + protected $certificates; + /** + * @var bool + */ + protected $backendSsl; + /** + * @var bool + */ + protected $passthroughSsl; + /** + * @var bool + */ + protected $checkEnabled; + /** + * @var int + */ + protected $checkFall; + /** + * @var int + */ + protected $checkInterval; + /** + * @var string + */ + protected $checkPath; + /** + * @var string + */ + protected $checkProtocol; + /** + * @var int + */ + protected $checkRise; + /** + * @var int + */ + protected $checkTimeout; + /** + * @var string + */ + protected $checkHttpStatuses; + /** + * @var PostLoadBalancerRulesPartLoadBalancer + */ + protected $loadBalancer; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAlgorithm(): string + { + return $this->algorithm; + } + + public function setAlgorithm(string $algorithm): self + { + $this->initialized['algorithm'] = true; + $this->algorithm = $algorithm; + + return $this; + } + + public function getDestinationPort(): int + { + return $this->destinationPort; + } + + public function setDestinationPort(int $destinationPort): self + { + $this->initialized['destinationPort'] = true; + $this->destinationPort = $destinationPort; + + return $this; + } + + public function getListenPort(): int + { + return $this->listenPort; + } + + public function setListenPort(int $listenPort): self + { + $this->initialized['listenPort'] = true; + $this->listenPort = $listenPort; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getProxyProtocol(): bool + { + return $this->proxyProtocol; + } + + public function setProxyProtocol(bool $proxyProtocol): self + { + $this->initialized['proxyProtocol'] = true; + $this->proxyProtocol = $proxyProtocol; + + return $this; + } + + /** + * @return PostLoadBalancerRulesPartCertificates[] + */ + public function getCertificates(): array + { + return $this->certificates; + } + + /** + * @param PostLoadBalancerRulesPartCertificates[] $certificates + */ + public function setCertificates(array $certificates): self + { + $this->initialized['certificates'] = true; + $this->certificates = $certificates; + + return $this; + } + + public function getBackendSsl(): bool + { + return $this->backendSsl; + } + + public function setBackendSsl(bool $backendSsl): self + { + $this->initialized['backendSsl'] = true; + $this->backendSsl = $backendSsl; + + return $this; + } + + public function getPassthroughSsl(): bool + { + return $this->passthroughSsl; + } + + public function setPassthroughSsl(bool $passthroughSsl): self + { + $this->initialized['passthroughSsl'] = true; + $this->passthroughSsl = $passthroughSsl; + + return $this; + } + + public function getCheckEnabled(): bool + { + return $this->checkEnabled; + } + + public function setCheckEnabled(bool $checkEnabled): self + { + $this->initialized['checkEnabled'] = true; + $this->checkEnabled = $checkEnabled; + + return $this; + } + + public function getCheckFall(): int + { + return $this->checkFall; + } + + public function setCheckFall(int $checkFall): self + { + $this->initialized['checkFall'] = true; + $this->checkFall = $checkFall; + + return $this; + } + + public function getCheckInterval(): int + { + return $this->checkInterval; + } + + public function setCheckInterval(int $checkInterval): self + { + $this->initialized['checkInterval'] = true; + $this->checkInterval = $checkInterval; + + return $this; + } + + public function getCheckPath(): string + { + return $this->checkPath; + } + + public function setCheckPath(string $checkPath): self + { + $this->initialized['checkPath'] = true; + $this->checkPath = $checkPath; + + return $this; + } + + public function getCheckProtocol(): string + { + return $this->checkProtocol; + } + + public function setCheckProtocol(string $checkProtocol): self + { + $this->initialized['checkProtocol'] = true; + $this->checkProtocol = $checkProtocol; + + return $this; + } + + public function getCheckRise(): int + { + return $this->checkRise; + } + + public function setCheckRise(int $checkRise): self + { + $this->initialized['checkRise'] = true; + $this->checkRise = $checkRise; + + return $this; + } + + public function getCheckTimeout(): int + { + return $this->checkTimeout; + } + + public function setCheckTimeout(int $checkTimeout): self + { + $this->initialized['checkTimeout'] = true; + $this->checkTimeout = $checkTimeout; + + return $this; + } + + public function getCheckHttpStatuses(): string + { + return $this->checkHttpStatuses; + } + + public function setCheckHttpStatuses(string $checkHttpStatuses): self + { + $this->initialized['checkHttpStatuses'] = true; + $this->checkHttpStatuses = $checkHttpStatuses; + + return $this; + } + + public function getLoadBalancer(): PostLoadBalancerRulesPartLoadBalancer + { + return $this->loadBalancer; + } + + public function setLoadBalancer(PostLoadBalancerRulesPartLoadBalancer $loadBalancer): self + { + $this->initialized['loadBalancer'] = true; + $this->loadBalancer = $loadBalancer; + + return $this; + } +} diff --git a/src/Model/PostLoadBalancerRulesPartCertificates.php b/src/Model/PostLoadBalancerRulesPartCertificates.php new file mode 100644 index 00000000..eaec26ec --- /dev/null +++ b/src/Model/PostLoadBalancerRulesPartCertificates.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string[] + */ + protected $additionalNames; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * @return string[] + */ + public function getAdditionalNames(): array + { + return $this->additionalNames; + } + + /** + * @param string[] $additionalNames + */ + public function setAdditionalNames(array $additionalNames): self + { + $this->initialized['additionalNames'] = true; + $this->additionalNames = $additionalNames; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/PostLoadBalancerRulesPartLoadBalancer.php b/src/Model/PostLoadBalancerRulesPartLoadBalancer.php new file mode 100644 index 00000000..d2a40dc0 --- /dev/null +++ b/src/Model/PostLoadBalancerRulesPartLoadBalancer.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/PostOrganizationDNSZones201ResponseDNSZone.php b/src/Model/PostOrganizationDNSZones201ResponseDNSZone.php new file mode 100644 index 00000000..ced603e9 --- /dev/null +++ b/src/Model/PostOrganizationDNSZones201ResponseDNSZone.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $ttl; + /** + * @var bool + */ + protected $verified; + /** + * @var bool + */ + protected $infrastructureZone; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getTtl(): int + { + return $this->ttl; + } + + public function setTtl(int $ttl): self + { + $this->initialized['ttl'] = true; + $this->ttl = $ttl; + + return $this; + } + + public function getVerified(): bool + { + return $this->verified; + } + + public function setVerified(bool $verified): self + { + $this->initialized['verified'] = true; + $this->verified = $verified; + + return $this; + } + + public function getInfrastructureZone(): bool + { + return $this->infrastructureZone; + } + + public function setInfrastructureZone(bool $infrastructureZone): self + { + $this->initialized['infrastructureZone'] = true; + $this->infrastructureZone = $infrastructureZone; + + return $this; + } +} diff --git a/src/Model/PostOrganizationFileStorageVolumes201ResponseFileStorageVolume.php b/src/Model/PostOrganizationFileStorageVolumes201ResponseFileStorageVolume.php new file mode 100644 index 00000000..9e2b8858 --- /dev/null +++ b/src/Model/PostOrganizationFileStorageVolumes201ResponseFileStorageVolume.php @@ -0,0 +1,165 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var PostOrganizationFileStorageVolumesPartDataCenter + */ + protected $dataCenter; + /** + * @var string[] + */ + protected $associations; + /** + * @var string + */ + protected $state; + /** + * The NFS location of where to mount the volume from. + * + * @var string + */ + protected $nfsLocation; + /** + * The size of the volume in bytes. + * + * @var int + */ + protected $size; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDataCenter(): PostOrganizationFileStorageVolumesPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(PostOrganizationFileStorageVolumesPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function getNfsLocation(): string + { + return $this->nfsLocation; + } + + /** + * The NFS location of where to mount the volume from. + */ + public function setNfsLocation(string $nfsLocation): self + { + $this->initialized['nfsLocation'] = true; + $this->nfsLocation = $nfsLocation; + + return $this; + } + + /** + * The size of the volume in bytes. + */ + public function getSize(): int + { + return $this->size; + } + + /** + * The size of the volume in bytes. + */ + public function setSize(int $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } +} diff --git a/src/Model/PostOrganizationFileStorageVolumesPartDataCenter.php b/src/Model/PostOrganizationFileStorageVolumesPartDataCenter.php new file mode 100644 index 00000000..9ddb9b23 --- /dev/null +++ b/src/Model/PostOrganizationFileStorageVolumesPartDataCenter.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/PostOrganizationLoadBalancers200ResponseLoadBalancer.php b/src/Model/PostOrganizationLoadBalancers200ResponseLoadBalancer.php new file mode 100644 index 00000000..16b3acd9 --- /dev/null +++ b/src/Model/PostOrganizationLoadBalancers200ResponseLoadBalancer.php @@ -0,0 +1,292 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $apiReference; + /** + * @var string + */ + protected $resourceType; + /** + * @var LoadBalancerResource[] + */ + protected $resources; + /** + * @var string[] + */ + protected $resourceIds; + /** + * @var PostOrganizationLoadBalancersPartIPAddress[] + */ + protected $ipAddress; + /** + * @var bool + */ + protected $httpsRedirect; + /** + * @var string + */ + protected $backendCertificate; + /** + * @var string + */ + protected $backendCertificateKey; + /** + * @var PostOrganizationLoadBalancersPartDataCenter + */ + protected $dataCenter; + /** + * @var bool + */ + protected $enableWeighting; + /** + * @var PostOrganizationLoadBalancersPartWeights[] + */ + protected $weights; + /** + * @var string[] + */ + protected $standbyVms; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getApiReference(): string + { + return $this->apiReference; + } + + public function setApiReference(string $apiReference): self + { + $this->initialized['apiReference'] = true; + $this->apiReference = $apiReference; + + return $this; + } + + public function getResourceType(): string + { + return $this->resourceType; + } + + public function setResourceType(string $resourceType): self + { + $this->initialized['resourceType'] = true; + $this->resourceType = $resourceType; + + return $this; + } + + /** + * @return LoadBalancerResource[] + */ + public function getResources(): array + { + return $this->resources; + } + + /** + * @param LoadBalancerResource[] $resources + */ + public function setResources(array $resources): self + { + $this->initialized['resources'] = true; + $this->resources = $resources; + + return $this; + } + + /** + * @return string[] + */ + public function getResourceIds(): array + { + return $this->resourceIds; + } + + /** + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds): self + { + $this->initialized['resourceIds'] = true; + $this->resourceIds = $resourceIds; + + return $this; + } + + /** + * @return PostOrganizationLoadBalancersPartIPAddress[] + */ + public function getIpAddress(): array + { + return $this->ipAddress; + } + + /** + * @param PostOrganizationLoadBalancersPartIPAddress[] $ipAddress + */ + public function setIpAddress(array $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } + + public function getHttpsRedirect(): bool + { + return $this->httpsRedirect; + } + + public function setHttpsRedirect(bool $httpsRedirect): self + { + $this->initialized['httpsRedirect'] = true; + $this->httpsRedirect = $httpsRedirect; + + return $this; + } + + public function getBackendCertificate(): string + { + return $this->backendCertificate; + } + + public function setBackendCertificate(string $backendCertificate): self + { + $this->initialized['backendCertificate'] = true; + $this->backendCertificate = $backendCertificate; + + return $this; + } + + public function getBackendCertificateKey(): string + { + return $this->backendCertificateKey; + } + + public function setBackendCertificateKey(string $backendCertificateKey): self + { + $this->initialized['backendCertificateKey'] = true; + $this->backendCertificateKey = $backendCertificateKey; + + return $this; + } + + public function getDataCenter(): PostOrganizationLoadBalancersPartDataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(PostOrganizationLoadBalancersPartDataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } + + public function getEnableWeighting(): bool + { + return $this->enableWeighting; + } + + public function setEnableWeighting(bool $enableWeighting): self + { + $this->initialized['enableWeighting'] = true; + $this->enableWeighting = $enableWeighting; + + return $this; + } + + /** + * @return PostOrganizationLoadBalancersPartWeights[] + */ + public function getWeights(): array + { + return $this->weights; + } + + /** + * @param PostOrganizationLoadBalancersPartWeights[] $weights + */ + public function setWeights(array $weights): self + { + $this->initialized['weights'] = true; + $this->weights = $weights; + + return $this; + } + + /** + * @return string[] + */ + public function getStandbyVms(): array + { + return $this->standbyVms; + } + + /** + * @param string[] $standbyVms + */ + public function setStandbyVms(array $standbyVms): self + { + $this->initialized['standbyVms'] = true; + $this->standbyVms = $standbyVms; + + return $this; + } +} diff --git a/src/Model/PostOrganizationLoadBalancersPartDataCenter.php b/src/Model/PostOrganizationLoadBalancersPartDataCenter.php new file mode 100644 index 00000000..36b30750 --- /dev/null +++ b/src/Model/PostOrganizationLoadBalancersPartDataCenter.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/PostOrganizationLoadBalancersPartIPAddress.php b/src/Model/PostOrganizationLoadBalancersPartIPAddress.php new file mode 100644 index 00000000..81c1522c --- /dev/null +++ b/src/Model/PostOrganizationLoadBalancersPartIPAddress.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Model/PostOrganizationLoadBalancersPartWeights.php b/src/Model/PostOrganizationLoadBalancersPartWeights.php new file mode 100644 index 00000000..84d01000 --- /dev/null +++ b/src/Model/PostOrganizationLoadBalancersPartWeights.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $virtualMachineId; + /** + * @var int + */ + protected $weight; + + public function getVirtualMachineId(): string + { + return $this->virtualMachineId; + } + + public function setVirtualMachineId(string $virtualMachineId): self + { + $this->initialized['virtualMachineId'] = true; + $this->virtualMachineId = $virtualMachineId; + + return $this; + } + + public function getWeight(): int + { + return $this->weight; + } + + public function setWeight(int $weight): self + { + $this->initialized['weight'] = true; + $this->weight = $weight; + + return $this; + } +} diff --git a/src/Model/PostOrganizationManaged201ResponseOrganization.php b/src/Model/PostOrganizationManaged201ResponseOrganization.php new file mode 100644 index 00000000..d98dfbe4 --- /dev/null +++ b/src/Model/PostOrganizationManaged201ResponseOrganization.php @@ -0,0 +1,330 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $subDomain; + /** + * @var string + */ + protected $infrastructureDomain; + /** + * @var int + */ + protected $createdAt; + /** + * @var bool + */ + protected $suspended; + /** + * @var bool + */ + protected $managed; + /** + * @var string + */ + protected $billingName; + /** + * @var string + */ + protected $address1; + /** + * @var string + */ + protected $address2; + /** + * @var string + */ + protected $address3; + /** + * @var string + */ + protected $address4; + /** + * @var string + */ + protected $postcode; + /** + * @var string + */ + protected $vatNumber; + /** + * @var string + */ + protected $phoneNumber; + /** + * @var PostOrganizationManagedPartCurrency + */ + protected $currency; + /** + * @var PostOrganizationManagedPartCountry + */ + protected $country; + /** + * @var PostOrganizationManagedPartCountryState + */ + protected $countryState; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSubDomain(): string + { + return $this->subDomain; + } + + public function setSubDomain(string $subDomain): self + { + $this->initialized['subDomain'] = true; + $this->subDomain = $subDomain; + + return $this; + } + + public function getInfrastructureDomain(): string + { + return $this->infrastructureDomain; + } + + public function setInfrastructureDomain(string $infrastructureDomain): self + { + $this->initialized['infrastructureDomain'] = true; + $this->infrastructureDomain = $infrastructureDomain; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getSuspended(): bool + { + return $this->suspended; + } + + public function setSuspended(bool $suspended): self + { + $this->initialized['suspended'] = true; + $this->suspended = $suspended; + + return $this; + } + + public function getManaged(): bool + { + return $this->managed; + } + + public function setManaged(bool $managed): self + { + $this->initialized['managed'] = true; + $this->managed = $managed; + + return $this; + } + + public function getBillingName(): string + { + return $this->billingName; + } + + public function setBillingName(string $billingName): self + { + $this->initialized['billingName'] = true; + $this->billingName = $billingName; + + return $this; + } + + public function getAddress1(): string + { + return $this->address1; + } + + public function setAddress1(string $address1): self + { + $this->initialized['address1'] = true; + $this->address1 = $address1; + + return $this; + } + + public function getAddress2(): string + { + return $this->address2; + } + + public function setAddress2(string $address2): self + { + $this->initialized['address2'] = true; + $this->address2 = $address2; + + return $this; + } + + public function getAddress3(): string + { + return $this->address3; + } + + public function setAddress3(string $address3): self + { + $this->initialized['address3'] = true; + $this->address3 = $address3; + + return $this; + } + + public function getAddress4(): string + { + return $this->address4; + } + + public function setAddress4(string $address4): self + { + $this->initialized['address4'] = true; + $this->address4 = $address4; + + return $this; + } + + public function getPostcode(): string + { + return $this->postcode; + } + + public function setPostcode(string $postcode): self + { + $this->initialized['postcode'] = true; + $this->postcode = $postcode; + + return $this; + } + + public function getVatNumber(): string + { + return $this->vatNumber; + } + + public function setVatNumber(string $vatNumber): self + { + $this->initialized['vatNumber'] = true; + $this->vatNumber = $vatNumber; + + return $this; + } + + public function getPhoneNumber(): string + { + return $this->phoneNumber; + } + + public function setPhoneNumber(string $phoneNumber): self + { + $this->initialized['phoneNumber'] = true; + $this->phoneNumber = $phoneNumber; + + return $this; + } + + public function getCurrency(): PostOrganizationManagedPartCurrency + { + return $this->currency; + } + + public function setCurrency(PostOrganizationManagedPartCurrency $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } + + public function getCountry(): PostOrganizationManagedPartCountry + { + return $this->country; + } + + public function setCountry(PostOrganizationManagedPartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } + + public function getCountryState(): PostOrganizationManagedPartCountryState + { + return $this->countryState; + } + + public function setCountryState(PostOrganizationManagedPartCountryState $countryState): self + { + $this->initialized['countryState'] = true; + $this->countryState = $countryState; + + return $this; + } +} diff --git a/src/Model/PostOrganizationManagedPartCountry.php b/src/Model/PostOrganizationManagedPartCountry.php new file mode 100644 index 00000000..e9325945 --- /dev/null +++ b/src/Model/PostOrganizationManagedPartCountry.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $isoCode2; + /** + * @var string + */ + protected $isoCode3; + /** + * @var string + */ + protected $timeZone; + /** + * @var bool + */ + protected $eu; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIsoCode2(): string + { + return $this->isoCode2; + } + + public function setIsoCode2(string $isoCode2): self + { + $this->initialized['isoCode2'] = true; + $this->isoCode2 = $isoCode2; + + return $this; + } + + public function getIsoCode3(): string + { + return $this->isoCode3; + } + + public function setIsoCode3(string $isoCode3): self + { + $this->initialized['isoCode3'] = true; + $this->isoCode3 = $isoCode3; + + return $this; + } + + public function getTimeZone(): string + { + return $this->timeZone; + } + + public function setTimeZone(string $timeZone): self + { + $this->initialized['timeZone'] = true; + $this->timeZone = $timeZone; + + return $this; + } + + public function getEu(): bool + { + return $this->eu; + } + + public function setEu(bool $eu): self + { + $this->initialized['eu'] = true; + $this->eu = $eu; + + return $this; + } +} diff --git a/src/Model/PostOrganizationManagedPartCountryState.php b/src/Model/PostOrganizationManagedPartCountryState.php new file mode 100644 index 00000000..c68f6d36 --- /dev/null +++ b/src/Model/PostOrganizationManagedPartCountryState.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $code; + /** + * @var PostOrganizationManagedPartCountry + */ + protected $country; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getCountry(): PostOrganizationManagedPartCountry + { + return $this->country; + } + + public function setCountry(PostOrganizationManagedPartCountry $country): self + { + $this->initialized['country'] = true; + $this->country = $country; + + return $this; + } +} diff --git a/src/Model/PostOrganizationManagedPartCurrency.php b/src/Model/PostOrganizationManagedPartCurrency.php new file mode 100644 index 00000000..8d7c7da1 --- /dev/null +++ b/src/Model/PostOrganizationManagedPartCurrency.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $isoCode; + /** + * @var string + */ + protected $symbol; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getIsoCode(): string + { + return $this->isoCode; + } + + public function setIsoCode(string $isoCode): self + { + $this->initialized['isoCode'] = true; + $this->isoCode = $isoCode; + + return $this; + } + + public function getSymbol(): string + { + return $this->symbol; + } + + public function setSymbol(string $symbol): self + { + $this->initialized['symbol'] = true; + $this->symbol = $symbol; + + return $this; + } +} diff --git a/src/Model/PostOrganizationVirtualMachinesBuild201ResponseBuild.php b/src/Model/PostOrganizationVirtualMachinesBuild201ResponseBuild.php new file mode 100644 index 00000000..f1fd5a74 --- /dev/null +++ b/src/Model/PostOrganizationVirtualMachinesBuild201ResponseBuild.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/PostOrganizationVirtualMachinesBuild201ResponseTask.php b/src/Model/PostOrganizationVirtualMachinesBuild201ResponseTask.php new file mode 100644 index 00000000..5eeda110 --- /dev/null +++ b/src/Model/PostOrganizationVirtualMachinesBuild201ResponseTask.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/PostOrganizationVirtualMachinesBuild201ResponseVirtualMachineBuild.php b/src/Model/PostOrganizationVirtualMachinesBuild201ResponseVirtualMachineBuild.php new file mode 100644 index 00000000..7980df2a --- /dev/null +++ b/src/Model/PostOrganizationVirtualMachinesBuild201ResponseVirtualMachineBuild.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/PostOrganizationVirtualMachinesBuildFromSpec201ResponseBuild.php b/src/Model/PostOrganizationVirtualMachinesBuildFromSpec201ResponseBuild.php new file mode 100644 index 00000000..af72b159 --- /dev/null +++ b/src/Model/PostOrganizationVirtualMachinesBuildFromSpec201ResponseBuild.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/PostOrganizationVirtualMachinesBuildFromSpec201ResponseTask.php b/src/Model/PostOrganizationVirtualMachinesBuildFromSpec201ResponseTask.php new file mode 100644 index 00000000..ca68bcab --- /dev/null +++ b/src/Model/PostOrganizationVirtualMachinesBuildFromSpec201ResponseTask.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/PostOrganizationVirtualMachinesBuildFromSpec201ResponseVirtualMachineBuild.php b/src/Model/PostOrganizationVirtualMachinesBuildFromSpec201ResponseVirtualMachineBuild.php new file mode 100644 index 00000000..8dda59da --- /dev/null +++ b/src/Model/PostOrganizationVirtualMachinesBuildFromSpec201ResponseVirtualMachineBuild.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/PostOrganizationsOrganizationDNSZones201ResponseDNSZone.php b/src/Model/PostOrganizationsOrganizationDNSZones201ResponseDNSZone.php new file mode 100644 index 00000000..c7fe058d --- /dev/null +++ b/src/Model/PostOrganizationsOrganizationDNSZones201ResponseDNSZone.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $defaultTtl; + /** + * @var bool + */ + protected $verified; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDefaultTtl(): int + { + return $this->defaultTtl; + } + + public function setDefaultTtl(int $defaultTtl): self + { + $this->initialized['defaultTtl'] = true; + $this->defaultTtl = $defaultTtl; + + return $this; + } + + public function getVerified(): bool + { + return $this->verified; + } + + public function setVerified(bool $verified): self + { + $this->initialized['verified'] = true; + $this->verified = $verified; + + return $this; + } +} diff --git a/src/Model/PostSecurityGroupRules200ResponseSecurityGroupRule.php b/src/Model/PostSecurityGroupRules200ResponseSecurityGroupRule.php new file mode 100644 index 00000000..a18933d8 --- /dev/null +++ b/src/Model/PostSecurityGroupRules200ResponseSecurityGroupRule.php @@ -0,0 +1,166 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var PostSecurityGroupRulesPartSecurityGroup + */ + protected $securityGroup; + /** + * @var string + */ + protected $direction; + /** + * @var string + */ + protected $protocol; + /** + * @var string + */ + protected $action; + /** + * @var string + */ + protected $ports; + /** + * @var string[] + */ + protected $targets; + /** + * @var string + */ + protected $notes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getSecurityGroup(): PostSecurityGroupRulesPartSecurityGroup + { + return $this->securityGroup; + } + + public function setSecurityGroup(PostSecurityGroupRulesPartSecurityGroup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } + + public function getDirection(): string + { + return $this->direction; + } + + public function setDirection(string $direction): self + { + $this->initialized['direction'] = true; + $this->direction = $direction; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getAction(): string + { + return $this->action; + } + + public function setAction(string $action): self + { + $this->initialized['action'] = true; + $this->action = $action; + + return $this; + } + + public function getPorts(): string + { + return $this->ports; + } + + public function setPorts(string $ports): self + { + $this->initialized['ports'] = true; + $this->ports = $ports; + + return $this; + } + + /** + * @return string[] + */ + public function getTargets(): array + { + return $this->targets; + } + + /** + * @param string[] $targets + */ + public function setTargets(array $targets): self + { + $this->initialized['targets'] = true; + $this->targets = $targets; + + return $this; + } + + public function getNotes(): string + { + return $this->notes; + } + + public function setNotes(string $notes): self + { + $this->initialized['notes'] = true; + $this->notes = $notes; + + return $this; + } +} diff --git a/src/Model/PostSecurityGroupRulesPartSecurityGroup.php b/src/Model/PostSecurityGroupRulesPartSecurityGroup.php new file mode 100644 index 00000000..3446661f --- /dev/null +++ b/src/Model/PostSecurityGroupRulesPartSecurityGroup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/PostVirtualMachineConsoleSessions201ResponseConsoleSession.php b/src/Model/PostVirtualMachineConsoleSessions201ResponseConsoleSession.php new file mode 100644 index 00000000..55ba47d0 --- /dev/null +++ b/src/Model/PostVirtualMachineConsoleSessions201ResponseConsoleSession.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $url; + /** + * @var int + */ + protected $expiresAt; + /** + * @var PostVirtualMachineConsoleSessionsPartVirtualMachine + */ + protected $virtualMachine; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } + + public function getExpiresAt(): int + { + return $this->expiresAt; + } + + public function setExpiresAt(int $expiresAt): self + { + $this->initialized['expiresAt'] = true; + $this->expiresAt = $expiresAt; + + return $this; + } + + public function getVirtualMachine(): PostVirtualMachineConsoleSessionsPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(PostVirtualMachineConsoleSessionsPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/PostVirtualMachineConsoleSessionsPartVirtualMachine.php b/src/Model/PostVirtualMachineConsoleSessionsPartVirtualMachine.php new file mode 100644 index 00000000..158179b9 --- /dev/null +++ b/src/Model/PostVirtualMachineConsoleSessionsPartVirtualMachine.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $hostname; + /** + * @var string + */ + protected $fqdn; + /** + * @var string + */ + protected $state; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/PostVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicy.php b/src/Model/PostVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicy.php new file mode 100644 index 00000000..43363c9d --- /dev/null +++ b/src/Model/PostVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicy.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $retention; + /** + * @var float + */ + protected $totalSize; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var PostVirtualMachineDiskBackupPoliciesPartSchedule + */ + protected $schedule; + /** + * @var int + */ + protected $autoMoveToTrashAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getRetention(): int + { + return $this->retention; + } + + public function setRetention(int $retention): self + { + $this->initialized['retention'] = true; + $this->retention = $retention; + + return $this; + } + + public function getTotalSize(): float + { + return $this->totalSize; + } + + public function setTotalSize(float $totalSize): self + { + $this->initialized['totalSize'] = true; + $this->totalSize = $totalSize; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + public function getSchedule(): PostVirtualMachineDiskBackupPoliciesPartSchedule + { + return $this->schedule; + } + + public function setSchedule(PostVirtualMachineDiskBackupPoliciesPartSchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } + + public function getAutoMoveToTrashAt(): int + { + return $this->autoMoveToTrashAt; + } + + public function setAutoMoveToTrashAt(int $autoMoveToTrashAt): self + { + $this->initialized['autoMoveToTrashAt'] = true; + $this->autoMoveToTrashAt = $autoMoveToTrashAt; + + return $this; + } +} diff --git a/src/Model/PostVirtualMachineDiskBackupPoliciesPartSchedule.php b/src/Model/PostVirtualMachineDiskBackupPoliciesPartSchedule.php new file mode 100644 index 00000000..8bdc3fe1 --- /dev/null +++ b/src/Model/PostVirtualMachineDiskBackupPoliciesPartSchedule.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var int + */ + protected $frequency; + /** + * @var string + */ + protected $interval; + /** + * @var int + */ + protected $minute; + /** + * @var int + */ + protected $nextInvocationAt; + /** + * @var int + */ + protected $time; + + public function getFrequency(): int + { + return $this->frequency; + } + + public function setFrequency(int $frequency): self + { + $this->initialized['frequency'] = true; + $this->frequency = $frequency; + + return $this; + } + + public function getInterval(): string + { + return $this->interval; + } + + public function setInterval(string $interval): self + { + $this->initialized['interval'] = true; + $this->interval = $interval; + + return $this; + } + + public function getMinute(): int + { + return $this->minute; + } + + public function setMinute(int $minute): self + { + $this->initialized['minute'] = true; + $this->minute = $minute; + + return $this; + } + + public function getNextInvocationAt(): int + { + return $this->nextInvocationAt; + } + + public function setNextInvocationAt(int $nextInvocationAt): self + { + $this->initialized['nextInvocationAt'] = true; + $this->nextInvocationAt = $nextInvocationAt; + + return $this; + } + + public function getTime(): int + { + return $this->time; + } + + public function setTime(int $time): self + { + $this->initialized['time'] = true; + $this->time = $time; + + return $this; + } +} diff --git a/src/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface.php b/src/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface.php new file mode 100644 index 00000000..f97c7b79 --- /dev/null +++ b/src/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork + */ + protected $network; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork + { + return $this->network; + } + + public function setNetwork(PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses.php b/src/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses.php new file mode 100644 index 00000000..d47c4202 --- /dev/null +++ b/src/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork.php b/src/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork.php new file mode 100644 index 00000000..0cdd6396 --- /dev/null +++ b/src/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine.php b/src/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine.php new file mode 100644 index 00000000..3f01863b --- /dev/null +++ b/src/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/PostVirtualMachineReset200ResponseTask.php b/src/Model/PostVirtualMachineReset200ResponseTask.php new file mode 100644 index 00000000..4f2077eb --- /dev/null +++ b/src/Model/PostVirtualMachineReset200ResponseTask.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/PostVirtualMachineShutdown200ResponseTask.php b/src/Model/PostVirtualMachineShutdown200ResponseTask.php new file mode 100644 index 00000000..41f93120 --- /dev/null +++ b/src/Model/PostVirtualMachineShutdown200ResponseTask.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/PostVirtualMachineStart200ResponseTask.php b/src/Model/PostVirtualMachineStart200ResponseTask.php new file mode 100644 index 00000000..f6401948 --- /dev/null +++ b/src/Model/PostVirtualMachineStart200ResponseTask.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/PostVirtualMachineStop200ResponseTask.php b/src/Model/PostVirtualMachineStop200ResponseTask.php new file mode 100644 index 00000000..14bc9aff --- /dev/null +++ b/src/Model/PostVirtualMachineStop200ResponseTask.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/RateLimitReached.php b/src/Model/RateLimitReached.php new file mode 100644 index 00000000..f584fcbd --- /dev/null +++ b/src/Model/RateLimitReached.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The total number of requests per minute that are permitted. + * + * @var int + */ + protected $totalPermitted; + + /** + * The total number of requests per minute that are permitted. + */ + public function getTotalPermitted(): int + { + return $this->totalPermitted; + } + + /** + * The total number of requests per minute that are permitted. + */ + public function setTotalPermitted(int $totalPermitted): self + { + $this->initialized['totalPermitted'] = true; + $this->totalPermitted = $totalPermitted; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForA.php b/src/Model/RecordContentAttributesForA.php new file mode 100644 index 00000000..ea7b1aea --- /dev/null +++ b/src/Model/RecordContentAttributesForA.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $ipAddress; + + public function getIpAddress(): string + { + return $this->ipAddress; + } + + public function setIpAddress(string $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForAAAA.php b/src/Model/RecordContentAttributesForAAAA.php new file mode 100644 index 00000000..9a36589a --- /dev/null +++ b/src/Model/RecordContentAttributesForAAAA.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $ipAddress; + + public function getIpAddress(): string + { + return $this->ipAddress; + } + + public function setIpAddress(string $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForALIAS.php b/src/Model/RecordContentAttributesForALIAS.php new file mode 100644 index 00000000..bd3f667b --- /dev/null +++ b/src/Model/RecordContentAttributesForALIAS.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $hostname; + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForCAA.php b/src/Model/RecordContentAttributesForCAA.php new file mode 100644 index 00000000..46913c2c --- /dev/null +++ b/src/Model/RecordContentAttributesForCAA.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $flag; + /** + * @var string + */ + protected $tag; + /** + * @var string + */ + protected $value; + + public function getFlag(): string + { + return $this->flag; + } + + public function setFlag(string $flag): self + { + $this->initialized['flag'] = true; + $this->flag = $flag; + + return $this; + } + + public function getTag(): string + { + return $this->tag; + } + + public function setTag(string $tag): self + { + $this->initialized['tag'] = true; + $this->tag = $tag; + + return $this; + } + + public function getValue(): string + { + return $this->value; + } + + public function setValue(string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForCNAME.php b/src/Model/RecordContentAttributesForCNAME.php new file mode 100644 index 00000000..473ba6cc --- /dev/null +++ b/src/Model/RecordContentAttributesForCNAME.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $hostname; + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForIPS.php b/src/Model/RecordContentAttributesForIPS.php new file mode 100644 index 00000000..0a0ffdb8 --- /dev/null +++ b/src/Model/RecordContentAttributesForIPS.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $ipAddresses; + + public function getIpAddresses(): string + { + return $this->ipAddresses; + } + + public function setIpAddresses(string $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForMX.php b/src/Model/RecordContentAttributesForMX.php new file mode 100644 index 00000000..8daad91f --- /dev/null +++ b/src/Model/RecordContentAttributesForMX.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $hostname; + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForNS.php b/src/Model/RecordContentAttributesForNS.php new file mode 100644 index 00000000..e0102b2f --- /dev/null +++ b/src/Model/RecordContentAttributesForNS.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $hostname; + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForPTR.php b/src/Model/RecordContentAttributesForPTR.php new file mode 100644 index 00000000..dc3c3a4a --- /dev/null +++ b/src/Model/RecordContentAttributesForPTR.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $hostname; + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForSRV.php b/src/Model/RecordContentAttributesForSRV.php new file mode 100644 index 00000000..22a84eb8 --- /dev/null +++ b/src/Model/RecordContentAttributesForSRV.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $weight; + /** + * @var string + */ + protected $port; + /** + * @var string + */ + protected $target; + + public function getWeight(): string + { + return $this->weight; + } + + public function setWeight(string $weight): self + { + $this->initialized['weight'] = true; + $this->weight = $weight; + + return $this; + } + + public function getPort(): string + { + return $this->port; + } + + public function setPort(string $port): self + { + $this->initialized['port'] = true; + $this->port = $port; + + return $this; + } + + public function getTarget(): string + { + return $this->target; + } + + public function setTarget(string $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForSSHFP.php b/src/Model/RecordContentAttributesForSSHFP.php new file mode 100644 index 00000000..498d3b47 --- /dev/null +++ b/src/Model/RecordContentAttributesForSSHFP.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $algorithm; + /** + * @var string + */ + protected $fingerprintType; + /** + * @var string + */ + protected $fingerprint; + + public function getAlgorithm(): string + { + return $this->algorithm; + } + + public function setAlgorithm(string $algorithm): self + { + $this->initialized['algorithm'] = true; + $this->algorithm = $algorithm; + + return $this; + } + + public function getFingerprintType(): string + { + return $this->fingerprintType; + } + + public function setFingerprintType(string $fingerprintType): self + { + $this->initialized['fingerprintType'] = true; + $this->fingerprintType = $fingerprintType; + + return $this; + } + + public function getFingerprint(): string + { + return $this->fingerprint; + } + + public function setFingerprint(string $fingerprint): self + { + $this->initialized['fingerprint'] = true; + $this->fingerprint = $fingerprint; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForTXT.php b/src/Model/RecordContentAttributesForTXT.php new file mode 100644 index 00000000..acb3d362 --- /dev/null +++ b/src/Model/RecordContentAttributesForTXT.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $content; + + public function getContent(): string + { + return $this->content; + } + + public function setContent(string $content): self + { + $this->initialized['content'] = true; + $this->content = $content; + + return $this; + } +} diff --git a/src/Model/RecordContentAttributesForVirtualMachine.php b/src/Model/RecordContentAttributesForVirtualMachine.php new file mode 100644 index 00000000..8ad13c68 --- /dev/null +++ b/src/Model/RecordContentAttributesForVirtualMachine.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $virtualMachine; + + public function getVirtualMachine(): string + { + return $this->virtualMachine; + } + + public function setVirtualMachine(string $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/ResourceCreationRestricted.php b/src/Model/ResourceCreationRestricted.php new file mode 100644 index 00000000..58655acd --- /dev/null +++ b/src/Model/ResourceCreationRestricted.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var string[] + */ + protected $errors; + + /** + * @return string[] + */ + public function getErrors(): array + { + return $this->errors; + } + + /** + * @param string[] $errors + */ + public function setErrors(array $errors): self + { + $this->initialized['errors'] = true; + $this->errors = $errors; + + return $this; + } +} diff --git a/src/Model/ResourceCreationRestrictedSchema.php b/src/Model/ResourceCreationRestrictedSchema.php new file mode 100644 index 00000000..8f1e9798 --- /dev/null +++ b/src/Model/ResourceCreationRestrictedSchema.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var ResourceCreationRestricted + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): ResourceCreationRestricted + { + return $this->detail; + } + + public function setDetail(ResourceCreationRestricted $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseAPIAuthenticator400Response.php b/src/Model/ResponseAPIAuthenticator400Response.php new file mode 100644 index 00000000..11858bd7 --- /dev/null +++ b/src/Model/ResponseAPIAuthenticator400Response.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseAPIAuthenticator429Response.php b/src/Model/ResponseAPIAuthenticator429Response.php new file mode 100644 index 00000000..dda18386 --- /dev/null +++ b/src/Model/ResponseAPIAuthenticator429Response.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var RateLimitReached + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): RateLimitReached + { + return $this->detail; + } + + public function setDetail(RateLimitReached $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseCertificateNotFoundResponse.php b/src/Model/ResponseCertificateNotFoundResponse.php new file mode 100644 index 00000000..93792a59 --- /dev/null +++ b/src/Model/ResponseCertificateNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseCountryNotFoundResponse.php b/src/Model/ResponseCountryNotFoundResponse.php new file mode 100644 index 00000000..b516dc72 --- /dev/null +++ b/src/Model/ResponseCountryNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseCountryStateNotFoundResponse.php b/src/Model/ResponseCountryStateNotFoundResponse.php new file mode 100644 index 00000000..85fa218b --- /dev/null +++ b/src/Model/ResponseCountryStateNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseCurrencyNotFoundResponse.php b/src/Model/ResponseCurrencyNotFoundResponse.php new file mode 100644 index 00000000..5b62ba0d --- /dev/null +++ b/src/Model/ResponseCurrencyNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseDNSRecordNotFoundResponse.php b/src/Model/ResponseDNSRecordNotFoundResponse.php new file mode 100644 index 00000000..3cf3d614 --- /dev/null +++ b/src/Model/ResponseDNSRecordNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseDNSZoneAlreadyVerifiedResponse.php b/src/Model/ResponseDNSZoneAlreadyVerifiedResponse.php new file mode 100644 index 00000000..3c017a0a --- /dev/null +++ b/src/Model/ResponseDNSZoneAlreadyVerifiedResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseDNSZoneNotFoundResponse.php b/src/Model/ResponseDNSZoneNotFoundResponse.php new file mode 100644 index 00000000..e29bdba0 --- /dev/null +++ b/src/Model/ResponseDNSZoneNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseDNSZoneNotVerifiedResponse.php b/src/Model/ResponseDNSZoneNotVerifiedResponse.php new file mode 100644 index 00000000..94d44211 --- /dev/null +++ b/src/Model/ResponseDNSZoneNotVerifiedResponse.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var DNSZoneNotVerified + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): DNSZoneNotVerified + { + return $this->detail; + } + + public function setDetail(DNSZoneNotVerified $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseDataCenterNotFoundResponse.php b/src/Model/ResponseDataCenterNotFoundResponse.php new file mode 100644 index 00000000..ee86be82 --- /dev/null +++ b/src/Model/ResponseDataCenterNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseDeletionRestrictedResponse.php b/src/Model/ResponseDeletionRestrictedResponse.php new file mode 100644 index 00000000..4c268e1a --- /dev/null +++ b/src/Model/ResponseDeletionRestrictedResponse.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var DeletionRestricted + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): DeletionRestricted + { + return $this->detail; + } + + public function setDetail(DeletionRestricted $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseDiskBackupPolicyNotFoundResponse.php b/src/Model/ResponseDiskBackupPolicyNotFoundResponse.php new file mode 100644 index 00000000..dc08901f --- /dev/null +++ b/src/Model/ResponseDiskBackupPolicyNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseDiskNotFoundResponse.php b/src/Model/ResponseDiskNotFoundResponse.php new file mode 100644 index 00000000..1288495f --- /dev/null +++ b/src/Model/ResponseDiskNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseDiskTemplateNotFoundResponse.php b/src/Model/ResponseDiskTemplateNotFoundResponse.php new file mode 100644 index 00000000..dce5d328 --- /dev/null +++ b/src/Model/ResponseDiskTemplateNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseDiskTemplateVersionNotFoundResponse.php b/src/Model/ResponseDiskTemplateVersionNotFoundResponse.php new file mode 100644 index 00000000..b8d4bf0f --- /dev/null +++ b/src/Model/ResponseDiskTemplateVersionNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseFileStorageVolumeNotFoundResponse.php b/src/Model/ResponseFileStorageVolumeNotFoundResponse.php new file mode 100644 index 00000000..b43c9a11 --- /dev/null +++ b/src/Model/ResponseFileStorageVolumeNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseGPUTypeNotFoundResponse.php b/src/Model/ResponseGPUTypeNotFoundResponse.php new file mode 100644 index 00000000..2a4f3008 --- /dev/null +++ b/src/Model/ResponseGPUTypeNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseIPAddressNotFoundResponse.php b/src/Model/ResponseIPAddressNotFoundResponse.php new file mode 100644 index 00000000..f2e48d33 --- /dev/null +++ b/src/Model/ResponseIPAddressNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseLoadBalancerNotFoundResponse.php b/src/Model/ResponseLoadBalancerNotFoundResponse.php new file mode 100644 index 00000000..fbc8f821 --- /dev/null +++ b/src/Model/ResponseLoadBalancerNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseLoadBalancerRuleNotFoundResponse.php b/src/Model/ResponseLoadBalancerRuleNotFoundResponse.php new file mode 100644 index 00000000..9678f61c --- /dev/null +++ b/src/Model/ResponseLoadBalancerRuleNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseNetworkNotFoundResponse.php b/src/Model/ResponseNetworkNotFoundResponse.php new file mode 100644 index 00000000..72dbca36 --- /dev/null +++ b/src/Model/ResponseNetworkNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseNoAllocationResponse.php b/src/Model/ResponseNoAllocationResponse.php new file mode 100644 index 00000000..ed882fcc --- /dev/null +++ b/src/Model/ResponseNoAllocationResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseNoAvailableAddressesResponse.php b/src/Model/ResponseNoAvailableAddressesResponse.php new file mode 100644 index 00000000..f0c0eada --- /dev/null +++ b/src/Model/ResponseNoAvailableAddressesResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseNoUserAssociatedWithIdentityResponse.php b/src/Model/ResponseNoUserAssociatedWithIdentityResponse.php new file mode 100644 index 00000000..57408901 --- /dev/null +++ b/src/Model/ResponseNoUserAssociatedWithIdentityResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseObjectInTrashResponse.php b/src/Model/ResponseObjectInTrashResponse.php new file mode 100644 index 00000000..9f1a54a6 --- /dev/null +++ b/src/Model/ResponseObjectInTrashResponse.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var ObjectInTrash + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): ObjectInTrash + { + return $this->detail; + } + + public function setDetail(ObjectInTrash $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseOperatingSystemNotFoundResponse.php b/src/Model/ResponseOperatingSystemNotFoundResponse.php new file mode 100644 index 00000000..ec19eead --- /dev/null +++ b/src/Model/ResponseOperatingSystemNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseOrganizationNotFoundResponse.php b/src/Model/ResponseOrganizationNotFoundResponse.php new file mode 100644 index 00000000..f716eae0 --- /dev/null +++ b/src/Model/ResponseOrganizationNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseResourceDoesNotSupportUnallocationResponse.php b/src/Model/ResponseResourceDoesNotSupportUnallocationResponse.php new file mode 100644 index 00000000..471f42fe --- /dev/null +++ b/src/Model/ResponseResourceDoesNotSupportUnallocationResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseSSHKeyNotFoundResponse.php b/src/Model/ResponseSSHKeyNotFoundResponse.php new file mode 100644 index 00000000..9e6030e8 --- /dev/null +++ b/src/Model/ResponseSSHKeyNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseSecurityGroupNotFoundResponse.php b/src/Model/ResponseSecurityGroupNotFoundResponse.php new file mode 100644 index 00000000..d761fa42 --- /dev/null +++ b/src/Model/ResponseSecurityGroupNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseSecurityGroupRuleNotFoundResponse.php b/src/Model/ResponseSecurityGroupRuleNotFoundResponse.php new file mode 100644 index 00000000..920de81d --- /dev/null +++ b/src/Model/ResponseSecurityGroupRuleNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseSpeedProfileAlreadyAssignedResponse.php b/src/Model/ResponseSpeedProfileAlreadyAssignedResponse.php new file mode 100644 index 00000000..e8e93f55 --- /dev/null +++ b/src/Model/ResponseSpeedProfileAlreadyAssignedResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseTagNotFoundResponse.php b/src/Model/ResponseTagNotFoundResponse.php new file mode 100644 index 00000000..af8e46e3 --- /dev/null +++ b/src/Model/ResponseTagNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseTaskNotFoundResponse.php b/src/Model/ResponseTaskNotFoundResponse.php new file mode 100644 index 00000000..fc0d4869 --- /dev/null +++ b/src/Model/ResponseTaskNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseTaskQueueingErrorResponse.php b/src/Model/ResponseTaskQueueingErrorResponse.php new file mode 100644 index 00000000..7a12869d --- /dev/null +++ b/src/Model/ResponseTaskQueueingErrorResponse.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var TaskQueueingError + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): TaskQueueingError + { + return $this->detail; + } + + public function setDetail(TaskQueueingError $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseTrashObjectNotFoundResponse.php b/src/Model/ResponseTrashObjectNotFoundResponse.php new file mode 100644 index 00000000..d3a9a0ee --- /dev/null +++ b/src/Model/ResponseTrashObjectNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseValidationErrorResponse.php b/src/Model/ResponseValidationErrorResponse.php new file mode 100644 index 00000000..c4eefc51 --- /dev/null +++ b/src/Model/ResponseValidationErrorResponse.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var ValidationError + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): ValidationError + { + return $this->detail; + } + + public function setDetail(ValidationError $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseVirtualMachineBuildNotFoundResponse.php b/src/Model/ResponseVirtualMachineBuildNotFoundResponse.php new file mode 100644 index 00000000..af82e879 --- /dev/null +++ b/src/Model/ResponseVirtualMachineBuildNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseVirtualMachineGroupNotFoundResponse.php b/src/Model/ResponseVirtualMachineGroupNotFoundResponse.php new file mode 100644 index 00000000..64707683 --- /dev/null +++ b/src/Model/ResponseVirtualMachineGroupNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseVirtualMachineNetworkInterfaceNotFoundResponse.php b/src/Model/ResponseVirtualMachineNetworkInterfaceNotFoundResponse.php new file mode 100644 index 00000000..9d3f1fbe --- /dev/null +++ b/src/Model/ResponseVirtualMachineNetworkInterfaceNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseVirtualMachineNotFoundResponse.php b/src/Model/ResponseVirtualMachineNotFoundResponse.php new file mode 100644 index 00000000..86f1f068 --- /dev/null +++ b/src/Model/ResponseVirtualMachineNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseVirtualMachinePackageNotFoundResponse.php b/src/Model/ResponseVirtualMachinePackageNotFoundResponse.php new file mode 100644 index 00000000..397159e7 --- /dev/null +++ b/src/Model/ResponseVirtualMachinePackageNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ResponseZoneNotFoundResponse.php b/src/Model/ResponseZoneNotFoundResponse.php new file mode 100644 index 00000000..3fcfe347 --- /dev/null +++ b/src/Model/ResponseZoneNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/SRV.php b/src/Model/SRV.php new file mode 100644 index 00000000..418685ff --- /dev/null +++ b/src/Model/SRV.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $priority; + /** + * @var string + */ + protected $weight; + /** + * @var string + */ + protected $port; + /** + * @var string + */ + protected $target; + + public function getPriority(): string + { + return $this->priority; + } + + public function setPriority(string $priority): self + { + $this->initialized['priority'] = true; + $this->priority = $priority; + + return $this; + } + + public function getWeight(): string + { + return $this->weight; + } + + public function setWeight(string $weight): self + { + $this->initialized['weight'] = true; + $this->weight = $weight; + + return $this; + } + + public function getPort(): string + { + return $this->port; + } + + public function setPort(string $port): self + { + $this->initialized['port'] = true; + $this->port = $port; + + return $this; + } + + public function getTarget(): string + { + return $this->target; + } + + public function setTarget(string $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } +} diff --git a/src/Model/SSHFP.php b/src/Model/SSHFP.php new file mode 100644 index 00000000..edd31e1c --- /dev/null +++ b/src/Model/SSHFP.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $algorithm; + /** + * @var string + */ + protected $fingerprintType; + /** + * @var string + */ + protected $fingerprint; + + public function getAlgorithm(): string + { + return $this->algorithm; + } + + public function setAlgorithm(string $algorithm): self + { + $this->initialized['algorithm'] = true; + $this->algorithm = $algorithm; + + return $this; + } + + public function getFingerprintType(): string + { + return $this->fingerprintType; + } + + public function setFingerprintType(string $fingerprintType): self + { + $this->initialized['fingerprintType'] = true; + $this->fingerprintType = $fingerprintType; + + return $this; + } + + public function getFingerprint(): string + { + return $this->fingerprint; + } + + public function setFingerprint(string $fingerprint): self + { + $this->initialized['fingerprint'] = true; + $this->fingerprint = $fingerprint; + + return $this; + } +} diff --git a/src/Model/ScheduleArguments.php b/src/Model/ScheduleArguments.php new file mode 100644 index 00000000..cb6d1e09 --- /dev/null +++ b/src/Model/ScheduleArguments.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var int + */ + protected $frequency; + /** + * @var string + */ + protected $interval; + /** + * @var int + */ + protected $minute; + /** + * @var int + */ + protected $time; + + public function getFrequency(): int + { + return $this->frequency; + } + + public function setFrequency(int $frequency): self + { + $this->initialized['frequency'] = true; + $this->frequency = $frequency; + + return $this; + } + + public function getInterval(): string + { + return $this->interval; + } + + public function setInterval(string $interval): self + { + $this->initialized['interval'] = true; + $this->interval = $interval; + + return $this; + } + + public function getMinute(): int + { + return $this->minute; + } + + public function setMinute(int $minute): self + { + $this->initialized['minute'] = true; + $this->minute = $minute; + + return $this; + } + + public function getTime(): int + { + return $this->time; + } + + public function setTime(int $time): self + { + $this->initialized['time'] = true; + $this->time = $time; + + return $this; + } +} diff --git a/src/Model/ScopeNotGrantedError.php b/src/Model/ScopeNotGrantedError.php new file mode 100644 index 00000000..f20cea96 --- /dev/null +++ b/src/Model/ScopeNotGrantedError.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var string[] + */ + protected $scopes; + + /** + * @return string[] + */ + public function getScopes(): array + { + return $this->scopes; + } + + /** + * @param string[] $scopes + */ + public function setScopes(array $scopes): self + { + $this->initialized['scopes'] = true; + $this->scopes = $scopes; + + return $this; + } +} diff --git a/src/Model/ScopeNotGrantedErrorSchema.php b/src/Model/ScopeNotGrantedErrorSchema.php new file mode 100644 index 00000000..1f0d2a5b --- /dev/null +++ b/src/Model/ScopeNotGrantedErrorSchema.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var ScopeNotGrantedError + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): ScopeNotGrantedError + { + return $this->detail; + } + + public function setDetail(ScopeNotGrantedError $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/SecurityGroup.php b/src/Model/SecurityGroup.php new file mode 100644 index 00000000..cc30429a --- /dev/null +++ b/src/Model/SecurityGroup.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $allowAllInbound; + /** + * @var bool + */ + protected $allowAllOutbound; + /** + * @var string[] + */ + protected $associations; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getAllowAllInbound(): bool + { + return $this->allowAllInbound; + } + + public function setAllowAllInbound(bool $allowAllInbound): self + { + $this->initialized['allowAllInbound'] = true; + $this->allowAllInbound = $allowAllInbound; + + return $this; + } + + public function getAllowAllOutbound(): bool + { + return $this->allowAllOutbound; + } + + public function setAllowAllOutbound(bool $allowAllOutbound): self + { + $this->initialized['allowAllOutbound'] = true; + $this->allowAllOutbound = $allowAllOutbound; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } +} diff --git a/src/Model/SecurityGroupArguments.php b/src/Model/SecurityGroupArguments.php new file mode 100644 index 00000000..d543e42c --- /dev/null +++ b/src/Model/SecurityGroupArguments.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $allowAllInbound; + /** + * @var bool + */ + protected $allowAllOutbound; + /** + * @var string[] + */ + protected $associations; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getAllowAllInbound(): bool + { + return $this->allowAllInbound; + } + + public function setAllowAllInbound(bool $allowAllInbound): self + { + $this->initialized['allowAllInbound'] = true; + $this->allowAllInbound = $allowAllInbound; + + return $this; + } + + public function getAllowAllOutbound(): bool + { + return $this->allowAllOutbound; + } + + public function setAllowAllOutbound(bool $allowAllOutbound): self + { + $this->initialized['allowAllOutbound'] = true; + $this->allowAllOutbound = $allowAllOutbound; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } +} diff --git a/src/Model/SecurityGroupLookup.php b/src/Model/SecurityGroupLookup.php new file mode 100644 index 00000000..20212699 --- /dev/null +++ b/src/Model/SecurityGroupLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/SecurityGroupRuleArguments.php b/src/Model/SecurityGroupRuleArguments.php new file mode 100644 index 00000000..d947d70f --- /dev/null +++ b/src/Model/SecurityGroupRuleArguments.php @@ -0,0 +1,140 @@ +initialized); + } + /** + * @var string + */ + protected $direction; + /** + * @var string + */ + protected $protocol; + /** + * @var string + */ + protected $action; + /** + * Either single port (ie. 80), multi-port (ie. 80,443) or range (ie. 2000-3000). + * + * @var string + */ + protected $ports; + /** + * @var string[] + */ + protected $targets; + /** + * @var string + */ + protected $notes; + + public function getDirection(): string + { + return $this->direction; + } + + public function setDirection(string $direction): self + { + $this->initialized['direction'] = true; + $this->direction = $direction; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getAction(): string + { + return $this->action; + } + + public function setAction(string $action): self + { + $this->initialized['action'] = true; + $this->action = $action; + + return $this; + } + + /** + * Either single port (ie. 80), multi-port (ie. 80,443) or range (ie. 2000-3000). + */ + public function getPorts(): string + { + return $this->ports; + } + + /** + * Either single port (ie. 80), multi-port (ie. 80,443) or range (ie. 2000-3000). + */ + public function setPorts(string $ports): self + { + $this->initialized['ports'] = true; + $this->ports = $ports; + + return $this; + } + + /** + * @return string[] + */ + public function getTargets(): array + { + return $this->targets; + } + + /** + * @param string[] $targets + */ + public function setTargets(array $targets): self + { + $this->initialized['targets'] = true; + $this->targets = $targets; + + return $this; + } + + public function getNotes(): string + { + return $this->notes; + } + + public function setNotes(string $notes): self + { + $this->initialized['notes'] = true; + $this->notes = $notes; + + return $this; + } +} diff --git a/src/Model/SecurityGroupRuleLookup.php b/src/Model/SecurityGroupRuleLookup.php new file mode 100644 index 00000000..cdffa9e4 --- /dev/null +++ b/src/Model/SecurityGroupRuleLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsRulesSecurityGroupRuleDeleteBody.php b/src/Model/SecurityGroupsRulesSecurityGroupRuleDeleteBody.php new file mode 100644 index 00000000..49c63035 --- /dev/null +++ b/src/Model/SecurityGroupsRulesSecurityGroupRuleDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. + * + * @var SecurityGroupRuleLookup + */ + protected $securityGroupRule; + + /** + * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. + */ + public function getSecurityGroupRule(): SecurityGroupRuleLookup + { + return $this->securityGroupRule; + } + + /** + * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. + */ + public function setSecurityGroupRule(SecurityGroupRuleLookup $securityGroupRule): self + { + $this->initialized['securityGroupRule'] = true; + $this->securityGroupRule = $securityGroupRule; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsRulesSecurityGroupRuleDeleteResponse200.php b/src/Model/SecurityGroupsRulesSecurityGroupRuleDeleteResponse200.php new file mode 100644 index 00000000..cf84af87 --- /dev/null +++ b/src/Model/SecurityGroupsRulesSecurityGroupRuleDeleteResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The security group rule that has been destroyed. + * + * @var SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRule + */ + protected $securityGroupRule; + + /** + * The security group rule that has been destroyed. + */ + public function getSecurityGroupRule(): SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRule + { + return $this->securityGroupRule; + } + + /** + * The security group rule that has been destroyed. + */ + public function setSecurityGroupRule(SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRule $securityGroupRule): self + { + $this->initialized['securityGroupRule'] = true; + $this->securityGroupRule = $securityGroupRule; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRule.php b/src/Model/SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRule.php new file mode 100644 index 00000000..967c48fa --- /dev/null +++ b/src/Model/SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRule.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsRulesSecurityGroupRuleGetResponse200.php b/src/Model/SecurityGroupsRulesSecurityGroupRuleGetResponse200.php new file mode 100644 index 00000000..4b039096 --- /dev/null +++ b/src/Model/SecurityGroupsRulesSecurityGroupRuleGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The resolved security group rule. + * + * @var SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRule + */ + protected $securityGroupRule; + + /** + * The resolved security group rule. + */ + public function getSecurityGroupRule(): SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRule + { + return $this->securityGroupRule; + } + + /** + * The resolved security group rule. + */ + public function setSecurityGroupRule(SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRule $securityGroupRule): self + { + $this->initialized['securityGroupRule'] = true; + $this->securityGroupRule = $securityGroupRule; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRule.php b/src/Model/SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRule.php new file mode 100644 index 00000000..dd33bec0 --- /dev/null +++ b/src/Model/SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRule.php @@ -0,0 +1,166 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup + */ + protected $securityGroup; + /** + * @var string + */ + protected $direction; + /** + * @var string + */ + protected $protocol; + /** + * @var string + */ + protected $action; + /** + * @var string + */ + protected $ports; + /** + * @var string[] + */ + protected $targets; + /** + * @var string + */ + protected $notes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getSecurityGroup(): GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup + { + return $this->securityGroup; + } + + public function setSecurityGroup(GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } + + public function getDirection(): string + { + return $this->direction; + } + + public function setDirection(string $direction): self + { + $this->initialized['direction'] = true; + $this->direction = $direction; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getAction(): string + { + return $this->action; + } + + public function setAction(string $action): self + { + $this->initialized['action'] = true; + $this->action = $action; + + return $this; + } + + public function getPorts(): string + { + return $this->ports; + } + + public function setPorts(string $ports): self + { + $this->initialized['ports'] = true; + $this->ports = $ports; + + return $this; + } + + /** + * @return string[] + */ + public function getTargets(): array + { + return $this->targets; + } + + /** + * @param string[] $targets + */ + public function setTargets(array $targets): self + { + $this->initialized['targets'] = true; + $this->targets = $targets; + + return $this; + } + + public function getNotes(): string + { + return $this->notes; + } + + public function setNotes(string $notes): self + { + $this->initialized['notes'] = true; + $this->notes = $notes; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsRulesSecurityGroupRulePatchBody.php b/src/Model/SecurityGroupsRulesSecurityGroupRulePatchBody.php new file mode 100644 index 00000000..1eeff927 --- /dev/null +++ b/src/Model/SecurityGroupsRulesSecurityGroupRulePatchBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. + * + * @var SecurityGroupRuleLookup + */ + protected $securityGroupRule; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var SecurityGroupRuleArguments + */ + protected $properties; + + /** + * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. + */ + public function getSecurityGroupRule(): SecurityGroupRuleLookup + { + return $this->securityGroupRule; + } + + /** + * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. + */ + public function setSecurityGroupRule(SecurityGroupRuleLookup $securityGroupRule): self + { + $this->initialized['securityGroupRule'] = true; + $this->securityGroupRule = $securityGroupRule; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): SecurityGroupRuleArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(SecurityGroupRuleArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsRulesSecurityGroupRulePatchResponse200.php b/src/Model/SecurityGroupsRulesSecurityGroupRulePatchResponse200.php new file mode 100644 index 00000000..4cbfc643 --- /dev/null +++ b/src/Model/SecurityGroupsRulesSecurityGroupRulePatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The security group that has been updated. + * + * @var SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRule + */ + protected $securityGroupRule; + + /** + * The security group that has been updated. + */ + public function getSecurityGroupRule(): SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRule + { + return $this->securityGroupRule; + } + + /** + * The security group that has been updated. + */ + public function setSecurityGroupRule(SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRule $securityGroupRule): self + { + $this->initialized['securityGroupRule'] = true; + $this->securityGroupRule = $securityGroupRule; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRule.php b/src/Model/SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRule.php new file mode 100644 index 00000000..df801516 --- /dev/null +++ b/src/Model/SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRule.php @@ -0,0 +1,166 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup + */ + protected $securityGroup; + /** + * @var string + */ + protected $direction; + /** + * @var string + */ + protected $protocol; + /** + * @var string + */ + protected $action; + /** + * @var string + */ + protected $ports; + /** + * @var string[] + */ + protected $targets; + /** + * @var string + */ + protected $notes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getSecurityGroup(): PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup + { + return $this->securityGroup; + } + + public function setSecurityGroup(PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } + + public function getDirection(): string + { + return $this->direction; + } + + public function setDirection(string $direction): self + { + $this->initialized['direction'] = true; + $this->direction = $direction; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getAction(): string + { + return $this->action; + } + + public function setAction(string $action): self + { + $this->initialized['action'] = true; + $this->action = $action; + + return $this; + } + + public function getPorts(): string + { + return $this->ports; + } + + public function setPorts(string $ports): self + { + $this->initialized['ports'] = true; + $this->ports = $ports; + + return $this; + } + + /** + * @return string[] + */ + public function getTargets(): array + { + return $this->targets; + } + + /** + * @param string[] $targets + */ + public function setTargets(array $targets): self + { + $this->initialized['targets'] = true; + $this->targets = $targets; + + return $this; + } + + public function getNotes(): string + { + return $this->notes; + } + + public function setNotes(string $notes): self + { + $this->initialized['notes'] = true; + $this->notes = $notes; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupDeleteBody.php b/src/Model/SecurityGroupsSecurityGroupDeleteBody.php new file mode 100644 index 00000000..1a552224 --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'security_group[]' params are mutually exclusive, only one can be provided. + * + * @var SecurityGroupLookup + */ + protected $securityGroup; + + /** + * All 'security_group[]' params are mutually exclusive, only one can be provided. + */ + public function getSecurityGroup(): SecurityGroupLookup + { + return $this->securityGroup; + } + + /** + * All 'security_group[]' params are mutually exclusive, only one can be provided. + */ + public function setSecurityGroup(SecurityGroupLookup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupDeleteResponse200.php b/src/Model/SecurityGroupsSecurityGroupDeleteResponse200.php new file mode 100644 index 00000000..bab9bcbd --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupDeleteResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The security group that has been destroyed. + * + * @var SecurityGroupsSecurityGroupDeleteResponse200SecurityGroup + */ + protected $securityGroup; + + /** + * The security group that has been destroyed. + */ + public function getSecurityGroup(): SecurityGroupsSecurityGroupDeleteResponse200SecurityGroup + { + return $this->securityGroup; + } + + /** + * The security group that has been destroyed. + */ + public function setSecurityGroup(SecurityGroupsSecurityGroupDeleteResponse200SecurityGroup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupDeleteResponse200SecurityGroup.php b/src/Model/SecurityGroupsSecurityGroupDeleteResponse200SecurityGroup.php new file mode 100644 index 00000000..34973eac --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupDeleteResponse200SecurityGroup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupGetResponse200.php b/src/Model/SecurityGroupsSecurityGroupGetResponse200.php new file mode 100644 index 00000000..2148503f --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The security group. + * + * @var SecurityGroupsSecurityGroupGetResponse200SecurityGroup + */ + protected $securityGroup; + + /** + * The security group. + */ + public function getSecurityGroup(): SecurityGroupsSecurityGroupGetResponse200SecurityGroup + { + return $this->securityGroup; + } + + /** + * The security group. + */ + public function setSecurityGroup(SecurityGroupsSecurityGroupGetResponse200SecurityGroup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupGetResponse200SecurityGroup.php b/src/Model/SecurityGroupsSecurityGroupGetResponse200SecurityGroup.php new file mode 100644 index 00000000..d6870d99 --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupGetResponse200SecurityGroup.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $allowAllInbound; + /** + * @var bool + */ + protected $allowAllOutbound; + /** + * @var string[] + */ + protected $associations; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getAllowAllInbound(): bool + { + return $this->allowAllInbound; + } + + public function setAllowAllInbound(bool $allowAllInbound): self + { + $this->initialized['allowAllInbound'] = true; + $this->allowAllInbound = $allowAllInbound; + + return $this; + } + + public function getAllowAllOutbound(): bool + { + return $this->allowAllOutbound; + } + + public function setAllowAllOutbound(bool $allowAllOutbound): self + { + $this->initialized['allowAllOutbound'] = true; + $this->allowAllOutbound = $allowAllOutbound; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupPatchBody.php b/src/Model/SecurityGroupsSecurityGroupPatchBody.php new file mode 100644 index 00000000..c4aad956 --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupPatchBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'security_group[]' params are mutually exclusive, only one can be provided. + * + * @var SecurityGroupLookup + */ + protected $securityGroup; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var SecurityGroupArguments + */ + protected $properties; + + /** + * All 'security_group[]' params are mutually exclusive, only one can be provided. + */ + public function getSecurityGroup(): SecurityGroupLookup + { + return $this->securityGroup; + } + + /** + * All 'security_group[]' params are mutually exclusive, only one can be provided. + */ + public function setSecurityGroup(SecurityGroupLookup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): SecurityGroupArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(SecurityGroupArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupPatchResponse200.php b/src/Model/SecurityGroupsSecurityGroupPatchResponse200.php new file mode 100644 index 00000000..5f4c5f11 --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupPatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The security group that has been updated. + * + * @var SecurityGroupsSecurityGroupPatchResponse200SecurityGroup + */ + protected $securityGroup; + + /** + * The security group that has been updated. + */ + public function getSecurityGroup(): SecurityGroupsSecurityGroupPatchResponse200SecurityGroup + { + return $this->securityGroup; + } + + /** + * The security group that has been updated. + */ + public function setSecurityGroup(SecurityGroupsSecurityGroupPatchResponse200SecurityGroup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupPatchResponse200SecurityGroup.php b/src/Model/SecurityGroupsSecurityGroupPatchResponse200SecurityGroup.php new file mode 100644 index 00000000..efb34862 --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupPatchResponse200SecurityGroup.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $allowAllInbound; + /** + * @var bool + */ + protected $allowAllOutbound; + /** + * @var string[] + */ + protected $associations; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getAllowAllInbound(): bool + { + return $this->allowAllInbound; + } + + public function setAllowAllInbound(bool $allowAllInbound): self + { + $this->initialized['allowAllInbound'] = true; + $this->allowAllInbound = $allowAllInbound; + + return $this; + } + + public function getAllowAllOutbound(): bool + { + return $this->allowAllOutbound; + } + + public function setAllowAllOutbound(bool $allowAllOutbound): self + { + $this->initialized['allowAllOutbound'] = true; + $this->allowAllOutbound = $allowAllOutbound; + + return $this; + } + + /** + * @return string[] + */ + public function getAssociations(): array + { + return $this->associations; + } + + /** + * @param string[] $associations + */ + public function setAssociations(array $associations): self + { + $this->initialized['associations'] = true; + $this->associations = $associations; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupRulesGetResponse200.php b/src/Model/SecurityGroupsSecurityGroupRulesGetResponse200.php new file mode 100644 index 00000000..8daad007 --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupRulesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var SecurityGroupsSecurityGroupRulesGetResponse200Pagination + */ + protected $pagination; + /** + * The security group rules for this security group. + * + * @var GetSecurityGroupRules200ResponseSecurityGroupRules[] + */ + protected $securityGroupRules; + + public function getPagination(): SecurityGroupsSecurityGroupRulesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(SecurityGroupsSecurityGroupRulesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The security group rules for this security group. + * + * @return GetSecurityGroupRules200ResponseSecurityGroupRules[] + */ + public function getSecurityGroupRules(): array + { + return $this->securityGroupRules; + } + + /** + * The security group rules for this security group. + * + * @param GetSecurityGroupRules200ResponseSecurityGroupRules[] $securityGroupRules + */ + public function setSecurityGroupRules(array $securityGroupRules): self + { + $this->initialized['securityGroupRules'] = true; + $this->securityGroupRules = $securityGroupRules; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupRulesGetResponse200Pagination.php b/src/Model/SecurityGroupsSecurityGroupRulesGetResponse200Pagination.php new file mode 100644 index 00000000..a56303c7 --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupRulesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupRulesPostBody.php b/src/Model/SecurityGroupsSecurityGroupRulesPostBody.php new file mode 100644 index 00000000..446baa6a --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupRulesPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'security_group[]' params are mutually exclusive, only one can be provided. + * + * @var SecurityGroupLookup + */ + protected $securityGroup; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var SecurityGroupRuleArguments + */ + protected $properties; + + /** + * All 'security_group[]' params are mutually exclusive, only one can be provided. + */ + public function getSecurityGroup(): SecurityGroupLookup + { + return $this->securityGroup; + } + + /** + * All 'security_group[]' params are mutually exclusive, only one can be provided. + */ + public function setSecurityGroup(SecurityGroupLookup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): SecurityGroupRuleArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(SecurityGroupRuleArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupRulesPostResponse200.php b/src/Model/SecurityGroupsSecurityGroupRulesPostResponse200.php new file mode 100644 index 00000000..23f854cf --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupRulesPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The security group rule that has been created. + * + * @var SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRule + */ + protected $securityGroupRule; + + /** + * The security group rule that has been created. + */ + public function getSecurityGroupRule(): SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRule + { + return $this->securityGroupRule; + } + + /** + * The security group rule that has been created. + */ + public function setSecurityGroupRule(SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRule $securityGroupRule): self + { + $this->initialized['securityGroupRule'] = true; + $this->securityGroupRule = $securityGroupRule; + + return $this; + } +} diff --git a/src/Model/SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRule.php b/src/Model/SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRule.php new file mode 100644 index 00000000..44601128 --- /dev/null +++ b/src/Model/SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRule.php @@ -0,0 +1,166 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var PostSecurityGroupRulesPartSecurityGroup + */ + protected $securityGroup; + /** + * @var string + */ + protected $direction; + /** + * @var string + */ + protected $protocol; + /** + * @var string + */ + protected $action; + /** + * @var string + */ + protected $ports; + /** + * @var string[] + */ + protected $targets; + /** + * @var string + */ + protected $notes; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getSecurityGroup(): PostSecurityGroupRulesPartSecurityGroup + { + return $this->securityGroup; + } + + public function setSecurityGroup(PostSecurityGroupRulesPartSecurityGroup $securityGroup): self + { + $this->initialized['securityGroup'] = true; + $this->securityGroup = $securityGroup; + + return $this; + } + + public function getDirection(): string + { + return $this->direction; + } + + public function setDirection(string $direction): self + { + $this->initialized['direction'] = true; + $this->direction = $direction; + + return $this; + } + + public function getProtocol(): string + { + return $this->protocol; + } + + public function setProtocol(string $protocol): self + { + $this->initialized['protocol'] = true; + $this->protocol = $protocol; + + return $this; + } + + public function getAction(): string + { + return $this->action; + } + + public function setAction(string $action): self + { + $this->initialized['action'] = true; + $this->action = $action; + + return $this; + } + + public function getPorts(): string + { + return $this->ports; + } + + public function setPorts(string $ports): self + { + $this->initialized['ports'] = true; + $this->ports = $ports; + + return $this; + } + + /** + * @return string[] + */ + public function getTargets(): array + { + return $this->targets; + } + + /** + * @param string[] $targets + */ + public function setTargets(array $targets): self + { + $this->initialized['targets'] = true; + $this->targets = $targets; + + return $this; + } + + public function getNotes(): string + { + return $this->notes; + } + + public function setNotes(string $notes): self + { + $this->initialized['notes'] = true; + $this->notes = $notes; + + return $this; + } +} diff --git a/src/Model/SshKeysSshKeyDeleteBody.php b/src/Model/SshKeysSshKeyDeleteBody.php new file mode 100644 index 00000000..efcafd2a --- /dev/null +++ b/src/Model/SshKeysSshKeyDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'ssh_key[]' params are mutually exclusive, only one can be provided. + * + * @var AuthSSHKeyLookup + */ + protected $sshKey; + + /** + * All 'ssh_key[]' params are mutually exclusive, only one can be provided. + */ + public function getSshKey(): AuthSSHKeyLookup + { + return $this->sshKey; + } + + /** + * All 'ssh_key[]' params are mutually exclusive, only one can be provided. + */ + public function setSshKey(AuthSSHKeyLookup $sshKey): self + { + $this->initialized['sshKey'] = true; + $this->sshKey = $sshKey; + + return $this; + } +} diff --git a/src/Model/SshKeysSshKeyDeleteResponse200.php b/src/Model/SshKeysSshKeyDeleteResponse200.php new file mode 100644 index 00000000..17767c2f --- /dev/null +++ b/src/Model/SshKeysSshKeyDeleteResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var SshKeysSshKeyDeleteResponse200SshKey + */ + protected $sshKey; + + public function getSshKey(): SshKeysSshKeyDeleteResponse200SshKey + { + return $this->sshKey; + } + + public function setSshKey(SshKeysSshKeyDeleteResponse200SshKey $sshKey): self + { + $this->initialized['sshKey'] = true; + $this->sshKey = $sshKey; + + return $this; + } +} diff --git a/src/Model/SshKeysSshKeyDeleteResponse200SshKey.php b/src/Model/SshKeysSshKeyDeleteResponse200SshKey.php new file mode 100644 index 00000000..7453cd48 --- /dev/null +++ b/src/Model/SshKeysSshKeyDeleteResponse200SshKey.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $fingerprint; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getFingerprint(): string + { + return $this->fingerprint; + } + + public function setFingerprint(string $fingerprint): self + { + $this->initialized['fingerprint'] = true; + $this->fingerprint = $fingerprint; + + return $this; + } +} diff --git a/src/Model/TXT.php b/src/Model/TXT.php new file mode 100644 index 00000000..7d1159f4 --- /dev/null +++ b/src/Model/TXT.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $data; + + public function getData(): string + { + return $this->data; + } + + public function setData(string $data): self + { + $this->initialized['data'] = true; + $this->data = $data; + + return $this; + } +} diff --git a/src/Model/Tag.php b/src/Model/Tag.php new file mode 100644 index 00000000..b1cada89 --- /dev/null +++ b/src/Model/Tag.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $color; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getColor(): string + { + return $this->color; + } + + public function setColor(string $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/TagArguments.php b/src/Model/TagArguments.php new file mode 100644 index 00000000..f54c404c --- /dev/null +++ b/src/Model/TagArguments.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $color; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getColor(): string + { + return $this->color; + } + + public function setColor(string $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } +} diff --git a/src/Model/TagLookup.php b/src/Model/TagLookup.php new file mode 100644 index 00000000..c792d829 --- /dev/null +++ b/src/Model/TagLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/TagsTagDeleteBody.php b/src/Model/TagsTagDeleteBody.php new file mode 100644 index 00000000..3331dd6b --- /dev/null +++ b/src/Model/TagsTagDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'tag[]' params are mutually exclusive, only one can be provided. + * + * @var TagLookup + */ + protected $tag; + + /** + * All 'tag[]' params are mutually exclusive, only one can be provided. + */ + public function getTag(): TagLookup + { + return $this->tag; + } + + /** + * All 'tag[]' params are mutually exclusive, only one can be provided. + */ + public function setTag(TagLookup $tag): self + { + $this->initialized['tag'] = true; + $this->tag = $tag; + + return $this; + } +} diff --git a/src/Model/TagsTagDeleteResponse200.php b/src/Model/TagsTagDeleteResponse200.php new file mode 100644 index 00000000..a8c7200e --- /dev/null +++ b/src/Model/TagsTagDeleteResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The newly deleted tag. + * + * @var TagsTagDeleteResponse200Tag + */ + protected $tag; + + /** + * The newly deleted tag. + */ + public function getTag(): TagsTagDeleteResponse200Tag + { + return $this->tag; + } + + /** + * The newly deleted tag. + */ + public function setTag(TagsTagDeleteResponse200Tag $tag): self + { + $this->initialized['tag'] = true; + $this->tag = $tag; + + return $this; + } +} diff --git a/src/Model/TagsTagDeleteResponse200Tag.php b/src/Model/TagsTagDeleteResponse200Tag.php new file mode 100644 index 00000000..f313822f --- /dev/null +++ b/src/Model/TagsTagDeleteResponse200Tag.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $color; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getColor(): string + { + return $this->color; + } + + public function setColor(string $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/TagsTagGetResponse200.php b/src/Model/TagsTagGetResponse200.php new file mode 100644 index 00000000..1dffaf9f --- /dev/null +++ b/src/Model/TagsTagGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The details for the requested tag. + * + * @var TagsTagGetResponse200Tag + */ + protected $tag; + + /** + * The details for the requested tag. + */ + public function getTag(): TagsTagGetResponse200Tag + { + return $this->tag; + } + + /** + * The details for the requested tag. + */ + public function setTag(TagsTagGetResponse200Tag $tag): self + { + $this->initialized['tag'] = true; + $this->tag = $tag; + + return $this; + } +} diff --git a/src/Model/TagsTagGetResponse200Tag.php b/src/Model/TagsTagGetResponse200Tag.php new file mode 100644 index 00000000..e6504569 --- /dev/null +++ b/src/Model/TagsTagGetResponse200Tag.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $color; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getColor(): string + { + return $this->color; + } + + public function setColor(string $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/TagsTagPatchBody.php b/src/Model/TagsTagPatchBody.php new file mode 100644 index 00000000..96f19888 --- /dev/null +++ b/src/Model/TagsTagPatchBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'tag[]' params are mutually exclusive, only one can be provided. + * + * @var TagLookup + */ + protected $tag; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var TagArguments + */ + protected $properties; + + /** + * All 'tag[]' params are mutually exclusive, only one can be provided. + */ + public function getTag(): TagLookup + { + return $this->tag; + } + + /** + * All 'tag[]' params are mutually exclusive, only one can be provided. + */ + public function setTag(TagLookup $tag): self + { + $this->initialized['tag'] = true; + $this->tag = $tag; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): TagArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(TagArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/TagsTagPatchResponse200.php b/src/Model/TagsTagPatchResponse200.php new file mode 100644 index 00000000..f99a3e19 --- /dev/null +++ b/src/Model/TagsTagPatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The newly updated tag. + * + * @var TagsTagPatchResponse200Tag + */ + protected $tag; + + /** + * The newly updated tag. + */ + public function getTag(): TagsTagPatchResponse200Tag + { + return $this->tag; + } + + /** + * The newly updated tag. + */ + public function setTag(TagsTagPatchResponse200Tag $tag): self + { + $this->initialized['tag'] = true; + $this->tag = $tag; + + return $this; + } +} diff --git a/src/Model/TagsTagPatchResponse200Tag.php b/src/Model/TagsTagPatchResponse200Tag.php new file mode 100644 index 00000000..f2fbe890 --- /dev/null +++ b/src/Model/TagsTagPatchResponse200Tag.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $color; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getColor(): string + { + return $this->color; + } + + public function setColor(string $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/Task.php b/src/Model/Task.php new file mode 100644 index 00000000..2e96fb78 --- /dev/null +++ b/src/Model/Task.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + /** + * @var int + */ + protected $createdAt; + /** + * @var int + */ + protected $startedAt; + /** + * @var int + */ + protected $finishedAt; + /** + * @var int + */ + protected $progress; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getStartedAt(): int + { + return $this->startedAt; + } + + public function setStartedAt(int $startedAt): self + { + $this->initialized['startedAt'] = true; + $this->startedAt = $startedAt; + + return $this; + } + + public function getFinishedAt(): int + { + return $this->finishedAt; + } + + public function setFinishedAt(int $finishedAt): self + { + $this->initialized['finishedAt'] = true; + $this->finishedAt = $finishedAt; + + return $this; + } + + public function getProgress(): int + { + return $this->progress; + } + + public function setProgress(int $progress): self + { + $this->initialized['progress'] = true; + $this->progress = $progress; + + return $this; + } +} diff --git a/src/Model/TaskQueueingError.php b/src/Model/TaskQueueingError.php new file mode 100644 index 00000000..6c186b60 --- /dev/null +++ b/src/Model/TaskQueueingError.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $details; + + public function getDetails(): string + { + return $this->details; + } + + public function setDetails(string $details): self + { + $this->initialized['details'] = true; + $this->details = $details; + + return $this; + } +} diff --git a/src/Model/TaskQueueingErrorSchema.php b/src/Model/TaskQueueingErrorSchema.php new file mode 100644 index 00000000..45a42485 --- /dev/null +++ b/src/Model/TaskQueueingErrorSchema.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var TaskQueueingError + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): TaskQueueingError + { + return $this->detail; + } + + public function setDetail(TaskQueueingError $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/TasksTaskGetResponse200.php b/src/Model/TasksTaskGetResponse200.php new file mode 100644 index 00000000..0b906804 --- /dev/null +++ b/src/Model/TasksTaskGetResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var TasksTaskGetResponse200Task + */ + protected $task; + + public function getTask(): TasksTaskGetResponse200Task + { + return $this->task; + } + + public function setTask(TasksTaskGetResponse200Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } +} diff --git a/src/Model/TasksTaskGetResponse200Task.php b/src/Model/TasksTaskGetResponse200Task.php new file mode 100644 index 00000000..19a9c10d --- /dev/null +++ b/src/Model/TasksTaskGetResponse200Task.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + /** + * @var int + */ + protected $createdAt; + /** + * @var int + */ + protected $startedAt; + /** + * @var int + */ + protected $finishedAt; + /** + * @var int + */ + protected $progress; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getStartedAt(): int + { + return $this->startedAt; + } + + public function setStartedAt(int $startedAt): self + { + $this->initialized['startedAt'] = true; + $this->startedAt = $startedAt; + + return $this; + } + + public function getFinishedAt(): int + { + return $this->finishedAt; + } + + public function setFinishedAt(int $finishedAt): self + { + $this->initialized['finishedAt'] = true; + $this->finishedAt = $finishedAt; + + return $this; + } + + public function getProgress(): int + { + return $this->progress; + } + + public function setProgress(int $progress): self + { + $this->initialized['progress'] = true; + $this->progress = $progress; + + return $this; + } +} diff --git a/src/Model/TemplateSpec.php b/src/Model/TemplateSpec.php new file mode 100644 index 00000000..f770fe98 --- /dev/null +++ b/src/Model/TemplateSpec.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var TemplateSpecField[] + */ + protected $fields; + + /** + * @return TemplateSpecField[] + */ + public function getFields(): array + { + return $this->fields; + } + + /** + * @param TemplateSpecField[] $fields + */ + public function setFields(array $fields): self + { + $this->initialized['fields'] = true; + $this->fields = $fields; + + return $this; + } +} diff --git a/src/Model/TemplateSpecField.php b/src/Model/TemplateSpecField.php new file mode 100644 index 00000000..5ab737a6 --- /dev/null +++ b/src/Model/TemplateSpecField.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $type; + /** + * @var string + */ + protected $label; + /** + * @var string + */ + protected $description; + /** + * @var bool + */ + protected $required; + /** + * @var string + */ + protected $placeholder; + /** + * @var string + */ + protected $prefill; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getType(): string + { + return $this->type; + } + + public function setType(string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getRequired(): bool + { + return $this->required; + } + + public function setRequired(bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } + + public function getPlaceholder(): string + { + return $this->placeholder; + } + + public function setPlaceholder(string $placeholder): self + { + $this->initialized['placeholder'] = true; + $this->placeholder = $placeholder; + + return $this; + } + + public function getPrefill(): string + { + return $this->prefill; + } + + public function setPrefill(string $prefill): self + { + $this->initialized['prefill'] = true; + $this->prefill = $prefill; + + return $this; + } +} diff --git a/src/Model/TrashObject.php b/src/Model/TrashObject.php new file mode 100644 index 00000000..c55057fc --- /dev/null +++ b/src/Model/TrashObject.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $keepUntil; + /** + * @var string + */ + protected $objectId; + /** + * @var string + */ + protected $objectType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getKeepUntil(): int + { + return $this->keepUntil; + } + + public function setKeepUntil(int $keepUntil): self + { + $this->initialized['keepUntil'] = true; + $this->keepUntil = $keepUntil; + + return $this; + } + + public function getObjectId(): string + { + return $this->objectId; + } + + public function setObjectId(string $objectId): self + { + $this->initialized['objectId'] = true; + $this->objectId = $objectId; + + return $this; + } + + public function getObjectType(): string + { + return $this->objectType; + } + + public function setObjectType(string $objectType): self + { + $this->initialized['objectType'] = true; + $this->objectType = $objectType; + + return $this; + } +} diff --git a/src/Model/TrashObjectLookup.php b/src/Model/TrashObjectLookup.php new file mode 100644 index 00000000..295f31d9 --- /dev/null +++ b/src/Model/TrashObjectLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $objectId; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getObjectId(): string + { + return $this->objectId; + } + + public function setObjectId(string $objectId): self + { + $this->initialized['objectId'] = true; + $this->objectId = $objectId; + + return $this; + } +} diff --git a/src/Model/TrashObjectsTrashObjectDeleteBody.php b/src/Model/TrashObjectsTrashObjectDeleteBody.php new file mode 100644 index 00000000..d7e791d3 --- /dev/null +++ b/src/Model/TrashObjectsTrashObjectDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'trash_object[]' params are mutually exclusive, only one can be provided. + * + * @var TrashObjectLookup + */ + protected $trashObject; + + /** + * All 'trash_object[]' params are mutually exclusive, only one can be provided. + */ + public function getTrashObject(): TrashObjectLookup + { + return $this->trashObject; + } + + /** + * All 'trash_object[]' params are mutually exclusive, only one can be provided. + */ + public function setTrashObject(TrashObjectLookup $trashObject): self + { + $this->initialized['trashObject'] = true; + $this->trashObject = $trashObject; + + return $this; + } +} diff --git a/src/Model/TrashObjectsTrashObjectDeleteResponse200.php b/src/Model/TrashObjectsTrashObjectDeleteResponse200.php new file mode 100644 index 00000000..83c2a9f1 --- /dev/null +++ b/src/Model/TrashObjectsTrashObjectDeleteResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var TrashObjectsTrashObjectDeleteResponse200Task + */ + protected $task; + + public function getTask(): TrashObjectsTrashObjectDeleteResponse200Task + { + return $this->task; + } + + public function setTask(TrashObjectsTrashObjectDeleteResponse200Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } +} diff --git a/src/Model/TrashObjectsTrashObjectDeleteResponse200Task.php b/src/Model/TrashObjectsTrashObjectDeleteResponse200Task.php new file mode 100644 index 00000000..07f7feb1 --- /dev/null +++ b/src/Model/TrashObjectsTrashObjectDeleteResponse200Task.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + /** + * @var int + */ + protected $createdAt; + /** + * @var int + */ + protected $startedAt; + /** + * @var int + */ + protected $finishedAt; + /** + * @var int + */ + protected $progress; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getStartedAt(): int + { + return $this->startedAt; + } + + public function setStartedAt(int $startedAt): self + { + $this->initialized['startedAt'] = true; + $this->startedAt = $startedAt; + + return $this; + } + + public function getFinishedAt(): int + { + return $this->finishedAt; + } + + public function setFinishedAt(int $finishedAt): self + { + $this->initialized['finishedAt'] = true; + $this->finishedAt = $finishedAt; + + return $this; + } + + public function getProgress(): int + { + return $this->progress; + } + + public function setProgress(int $progress): self + { + $this->initialized['progress'] = true; + $this->progress = $progress; + + return $this; + } +} diff --git a/src/Model/TrashObjectsTrashObjectGetResponse200.php b/src/Model/TrashObjectsTrashObjectGetResponse200.php new file mode 100644 index 00000000..2df7f238 --- /dev/null +++ b/src/Model/TrashObjectsTrashObjectGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The requested trash object. + * + * @var TrashObjectsTrashObjectGetResponse200TrashObject + */ + protected $trashObject; + + /** + * The requested trash object. + */ + public function getTrashObject(): TrashObjectsTrashObjectGetResponse200TrashObject + { + return $this->trashObject; + } + + /** + * The requested trash object. + */ + public function setTrashObject(TrashObjectsTrashObjectGetResponse200TrashObject $trashObject): self + { + $this->initialized['trashObject'] = true; + $this->trashObject = $trashObject; + + return $this; + } +} diff --git a/src/Model/TrashObjectsTrashObjectGetResponse200TrashObject.php b/src/Model/TrashObjectsTrashObjectGetResponse200TrashObject.php new file mode 100644 index 00000000..7e092ab1 --- /dev/null +++ b/src/Model/TrashObjectsTrashObjectGetResponse200TrashObject.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $keepUntil; + /** + * @var string + */ + protected $objectId; + /** + * @var string + */ + protected $objectType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getKeepUntil(): int + { + return $this->keepUntil; + } + + public function setKeepUntil(int $keepUntil): self + { + $this->initialized['keepUntil'] = true; + $this->keepUntil = $keepUntil; + + return $this; + } + + public function getObjectId(): string + { + return $this->objectId; + } + + public function setObjectId(string $objectId): self + { + $this->initialized['objectId'] = true; + $this->objectId = $objectId; + + return $this; + } + + public function getObjectType(): string + { + return $this->objectType; + } + + public function setObjectType(string $objectType): self + { + $this->initialized['objectType'] = true; + $this->objectType = $objectType; + + return $this; + } +} diff --git a/src/Model/TrashObjectsTrashObjectRestorePostBody.php b/src/Model/TrashObjectsTrashObjectRestorePostBody.php new file mode 100644 index 00000000..e0edb548 --- /dev/null +++ b/src/Model/TrashObjectsTrashObjectRestorePostBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'trash_object[]' params are mutually exclusive, only one can be provided. + * + * @var TrashObjectLookup + */ + protected $trashObject; + + /** + * All 'trash_object[]' params are mutually exclusive, only one can be provided. + */ + public function getTrashObject(): TrashObjectLookup + { + return $this->trashObject; + } + + /** + * All 'trash_object[]' params are mutually exclusive, only one can be provided. + */ + public function setTrashObject(TrashObjectLookup $trashObject): self + { + $this->initialized['trashObject'] = true; + $this->trashObject = $trashObject; + + return $this; + } +} diff --git a/src/Model/TrashObjectsTrashObjectRestorePostResponse200.php b/src/Model/TrashObjectsTrashObjectRestorePostResponse200.php new file mode 100644 index 00000000..3db5e56a --- /dev/null +++ b/src/Model/TrashObjectsTrashObjectRestorePostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The requested trash object. + * + * @var TrashObjectsTrashObjectRestorePostResponse200TrashObject + */ + protected $trashObject; + + /** + * The requested trash object. + */ + public function getTrashObject(): TrashObjectsTrashObjectRestorePostResponse200TrashObject + { + return $this->trashObject; + } + + /** + * The requested trash object. + */ + public function setTrashObject(TrashObjectsTrashObjectRestorePostResponse200TrashObject $trashObject): self + { + $this->initialized['trashObject'] = true; + $this->trashObject = $trashObject; + + return $this; + } +} diff --git a/src/Model/TrashObjectsTrashObjectRestorePostResponse200TrashObject.php b/src/Model/TrashObjectsTrashObjectRestorePostResponse200TrashObject.php new file mode 100644 index 00000000..9c313be9 --- /dev/null +++ b/src/Model/TrashObjectsTrashObjectRestorePostResponse200TrashObject.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $keepUntil; + /** + * @var string + */ + protected $objectId; + /** + * @var string + */ + protected $objectType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getKeepUntil(): int + { + return $this->keepUntil; + } + + public function setKeepUntil(int $keepUntil): self + { + $this->initialized['keepUntil'] = true; + $this->keepUntil = $keepUntil; + + return $this; + } + + public function getObjectId(): string + { + return $this->objectId; + } + + public function setObjectId(string $objectId): self + { + $this->initialized['objectId'] = true; + $this->objectId = $objectId; + + return $this; + } + + public function getObjectType(): string + { + return $this->objectType; + } + + public function setObjectType(string $objectType): self + { + $this->initialized['objectType'] = true; + $this->objectType = $objectType; + + return $this; + } +} diff --git a/src/Model/UnauthorizedNetworkForAPIToken.php b/src/Model/UnauthorizedNetworkForAPIToken.php new file mode 100644 index 00000000..900a44bf --- /dev/null +++ b/src/Model/UnauthorizedNetworkForAPIToken.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The IP address the request was received from. + * + * @var string + */ + protected $ipAddress; + + /** + * The IP address the request was received from. + */ + public function getIpAddress(): string + { + return $this->ipAddress; + } + + /** + * The IP address the request was received from. + */ + public function setIpAddress(string $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } +} diff --git a/src/Model/UnauthorizedNetworkForAPITokenSchema.php b/src/Model/UnauthorizedNetworkForAPITokenSchema.php new file mode 100644 index 00000000..7ff15fbe --- /dev/null +++ b/src/Model/UnauthorizedNetworkForAPITokenSchema.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var UnauthorizedNetworkForAPIToken + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): UnauthorizedNetworkForAPIToken + { + return $this->detail; + } + + public function setDetail(UnauthorizedNetworkForAPIToken $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/User.php b/src/Model/User.php new file mode 100644 index 00000000..4bf062ef --- /dev/null +++ b/src/Model/User.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $firstName; + /** + * @var string + */ + protected $lastName; + /** + * @var string + */ + protected $avatarUrl; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getFirstName(): string + { + return $this->firstName; + } + + public function setFirstName(string $firstName): self + { + $this->initialized['firstName'] = true; + $this->firstName = $firstName; + + return $this; + } + + public function getLastName(): string + { + return $this->lastName; + } + + public function setLastName(string $lastName): self + { + $this->initialized['lastName'] = true; + $this->lastName = $lastName; + + return $this; + } + + public function getAvatarUrl(): string + { + return $this->avatarUrl; + } + + public function setAvatarUrl(string $avatarUrl): self + { + $this->initialized['avatarUrl'] = true; + $this->avatarUrl = $avatarUrl; + + return $this; + } +} diff --git a/src/Model/UsersCurrentGetResponse200.php b/src/Model/UsersCurrentGetResponse200.php new file mode 100644 index 00000000..6b016f87 --- /dev/null +++ b/src/Model/UsersCurrentGetResponse200.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var UsersCurrentGetResponse200User + */ + protected $user; + /** + * @var GetUsersCurrent200ResponseOrganizations[] + */ + protected $organizations; + /** + * @var string + */ + protected $apiTokenId; + + public function getUser(): UsersCurrentGetResponse200User + { + return $this->user; + } + + public function setUser(UsersCurrentGetResponse200User $user): self + { + $this->initialized['user'] = true; + $this->user = $user; + + return $this; + } + + /** + * @return GetUsersCurrent200ResponseOrganizations[] + */ + public function getOrganizations(): array + { + return $this->organizations; + } + + /** + * @param GetUsersCurrent200ResponseOrganizations[] $organizations + */ + public function setOrganizations(array $organizations): self + { + $this->initialized['organizations'] = true; + $this->organizations = $organizations; + + return $this; + } + + public function getApiTokenId(): string + { + return $this->apiTokenId; + } + + public function setApiTokenId(string $apiTokenId): self + { + $this->initialized['apiTokenId'] = true; + $this->apiTokenId = $apiTokenId; + + return $this; + } +} diff --git a/src/Model/UsersCurrentGetResponse200User.php b/src/Model/UsersCurrentGetResponse200User.php new file mode 100644 index 00000000..405fbe9b --- /dev/null +++ b/src/Model/UsersCurrentGetResponse200User.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $firstName; + /** + * @var string + */ + protected $lastName; + /** + * @var string + */ + protected $avatarUrl; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getFirstName(): string + { + return $this->firstName; + } + + public function setFirstName(string $firstName): self + { + $this->initialized['firstName'] = true; + $this->firstName = $firstName; + + return $this; + } + + public function getLastName(): string + { + return $this->lastName; + } + + public function setLastName(string $lastName): self + { + $this->initialized['lastName'] = true; + $this->lastName = $lastName; + + return $this; + } + + public function getAvatarUrl(): string + { + return $this->avatarUrl; + } + + public function setAvatarUrl(string $avatarUrl): self + { + $this->initialized['avatarUrl'] = true; + $this->avatarUrl = $avatarUrl; + + return $this; + } +} diff --git a/src/Model/ValidationError.php b/src/Model/ValidationError.php new file mode 100644 index 00000000..3c1b9b28 --- /dev/null +++ b/src/Model/ValidationError.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var string[] + */ + protected $errors; + + /** + * @return string[] + */ + public function getErrors(): array + { + return $this->errors; + } + + /** + * @param string[] $errors + */ + public function setErrors(array $errors): self + { + $this->initialized['errors'] = true; + $this->errors = $errors; + + return $this; + } +} diff --git a/src/Model/ValidationErrorSchema.php b/src/Model/ValidationErrorSchema.php new file mode 100644 index 00000000..c90a4c8b --- /dev/null +++ b/src/Model/ValidationErrorSchema.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var ValidationError + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): ValidationError + { + return $this->detail; + } + + public function setDetail(ValidationError $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/VirtualMachine.php b/src/Model/VirtualMachine.php new file mode 100644 index 00000000..6ebd1222 --- /dev/null +++ b/src/Model/VirtualMachine.php @@ -0,0 +1,388 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $hostname; + /** + * @var string + */ + protected $fqdn; + /** + * @var string + */ + protected $description; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $initialRootPassword; + /** + * @var string + */ + protected $state; + /** + * @var Zone + */ + protected $zone; + /** + * @var Organization + */ + protected $organization; + /** + * @var VirtualMachineGroup + */ + protected $group; + /** + * @var VirtualMachinePackage + */ + protected $package; + /** + * @var ISO + */ + protected $attachedIso; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $cpuCores; + /** + * @var GPUType + */ + protected $gpuType; + /** + * @var VirtualMachineGPU[] + */ + protected $gpus; + /** + * @var Tag[] + */ + protected $tags; + /** + * @var string[] + */ + protected $tagNames; + /** + * @var IPAddress[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getInitialRootPassword(): string + { + return $this->initialRootPassword; + } + + public function setInitialRootPassword(string $initialRootPassword): self + { + $this->initialized['initialRootPassword'] = true; + $this->initialRootPassword = $initialRootPassword; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getZone(): Zone + { + return $this->zone; + } + + public function setZone(Zone $zone): self + { + $this->initialized['zone'] = true; + $this->zone = $zone; + + return $this; + } + + public function getOrganization(): Organization + { + return $this->organization; + } + + public function setOrganization(Organization $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getGroup(): VirtualMachineGroup + { + return $this->group; + } + + public function setGroup(VirtualMachineGroup $group): self + { + $this->initialized['group'] = true; + $this->group = $group; + + return $this; + } + + public function getPackage(): VirtualMachinePackage + { + return $this->package; + } + + public function setPackage(VirtualMachinePackage $package): self + { + $this->initialized['package'] = true; + $this->package = $package; + + return $this; + } + + public function getAttachedIso(): ISO + { + return $this->attachedIso; + } + + public function setAttachedIso(ISO $attachedIso): self + { + $this->initialized['attachedIso'] = true; + $this->attachedIso = $attachedIso; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getGpuType(): GPUType + { + return $this->gpuType; + } + + public function setGpuType(GPUType $gpuType): self + { + $this->initialized['gpuType'] = true; + $this->gpuType = $gpuType; + + return $this; + } + + /** + * @return VirtualMachineGPU[] + */ + public function getGpus(): array + { + return $this->gpus; + } + + /** + * @param VirtualMachineGPU[] $gpus + */ + public function setGpus(array $gpus): self + { + $this->initialized['gpus'] = true; + $this->gpus = $gpus; + + return $this; + } + + /** + * @return Tag[] + */ + public function getTags(): array + { + return $this->tags; + } + + /** + * @param Tag[] $tags + */ + public function setTags(array $tags): self + { + $this->initialized['tags'] = true; + $this->tags = $tags; + + return $this; + } + + /** + * @return string[] + */ + public function getTagNames(): array + { + return $this->tagNames; + } + + /** + * @param string[] $tagNames + */ + public function setTagNames(array $tagNames): self + { + $this->initialized['tagNames'] = true; + $this->tagNames = $tagNames; + + return $this; + } + + /** + * @return IPAddress[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param IPAddress[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/VirtualMachineArguments.php b/src/Model/VirtualMachineArguments.php new file mode 100644 index 00000000..26f25328 --- /dev/null +++ b/src/Model/VirtualMachineArguments.php @@ -0,0 +1,148 @@ +initialized); + } + /** + * @var string + */ + protected $hostname; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $description; + /** + * @var string[] + */ + protected $tagNames; + /** + * All 'gpu_type[]' params are mutually exclusive, only one can be provided. + * + * @var GPUTypeLookup + */ + protected $gpuType; + /** + * All 'group[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineGroupLookup + */ + protected $group; + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return string[] + */ + public function getTagNames(): array + { + return $this->tagNames; + } + + /** + * @param string[] $tagNames + */ + public function setTagNames(array $tagNames): self + { + $this->initialized['tagNames'] = true; + $this->tagNames = $tagNames; + + return $this; + } + + /** + * All 'gpu_type[]' params are mutually exclusive, only one can be provided. + */ + public function getGpuType(): GPUTypeLookup + { + return $this->gpuType; + } + + /** + * All 'gpu_type[]' params are mutually exclusive, only one can be provided. + */ + public function setGpuType(GPUTypeLookup $gpuType): self + { + $this->initialized['gpuType'] = true; + $this->gpuType = $gpuType; + + return $this; + } + + /** + * All 'group[]' params are mutually exclusive, only one can be provided. + */ + public function getGroup(): VirtualMachineGroupLookup + { + return $this->group; + } + + /** + * All 'group[]' params are mutually exclusive, only one can be provided. + */ + public function setGroup(VirtualMachineGroupLookup $group): self + { + $this->initialized['group'] = true; + $this->group = $group; + + return $this; + } +} diff --git a/src/Model/VirtualMachineDisk.php b/src/Model/VirtualMachineDisk.php new file mode 100644 index 00000000..be686dba --- /dev/null +++ b/src/Model/VirtualMachineDisk.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var VirtualMachine + */ + protected $virtualMachine; + /** + * @var Disk + */ + protected $disk; + /** + * @var bool + */ + protected $attachOnBoot; + /** + * @var bool + */ + protected $boot; + /** + * @var string + */ + protected $state; + + public function getVirtualMachine(): VirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(VirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getDisk(): Disk + { + return $this->disk; + } + + public function setDisk(Disk $disk): self + { + $this->initialized['disk'] = true; + $this->disk = $disk; + + return $this; + } + + public function getAttachOnBoot(): bool + { + return $this->attachOnBoot; + } + + public function setAttachOnBoot(bool $attachOnBoot): self + { + $this->initialized['attachOnBoot'] = true; + $this->attachOnBoot = $attachOnBoot; + + return $this; + } + + public function getBoot(): bool + { + return $this->boot; + } + + public function setBoot(bool $boot): self + { + $this->initialized['boot'] = true; + $this->boot = $boot; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } +} diff --git a/src/Model/VirtualMachineFlexibleResources.php b/src/Model/VirtualMachineFlexibleResources.php new file mode 100644 index 00000000..347fdb0e --- /dev/null +++ b/src/Model/VirtualMachineFlexibleResources.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var int + */ + protected $cpuCores; + /** + * @var int + */ + protected $memoryInGb; + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } +} diff --git a/src/Model/VirtualMachineGPU.php b/src/Model/VirtualMachineGPU.php new file mode 100644 index 00000000..af36984d --- /dev/null +++ b/src/Model/VirtualMachineGPU.php @@ -0,0 +1,125 @@ +initialized); + } + /** + * Unique ID for this GPU. Not available when status is "detached". + * + * @var string + */ + protected $id; + /** + * @var string + */ + protected $status; + /** + * @var string + */ + protected $pendingAction; + /** + * When pending action is "attach", this indicates if there is a GPU of the relevant type available. + * + * @var bool + */ + protected $available; + /** + * @var GPUType + */ + protected $type; + + /** + * Unique ID for this GPU. Not available when status is "detached". + */ + public function getId(): string + { + return $this->id; + } + + /** + * Unique ID for this GPU. Not available when status is "detached". + */ + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + public function getPendingAction(): string + { + return $this->pendingAction; + } + + public function setPendingAction(string $pendingAction): self + { + $this->initialized['pendingAction'] = true; + $this->pendingAction = $pendingAction; + + return $this; + } + + /** + * When pending action is "attach", this indicates if there is a GPU of the relevant type available. + */ + public function getAvailable(): bool + { + return $this->available; + } + + /** + * When pending action is "attach", this indicates if there is a GPU of the relevant type available. + */ + public function setAvailable(bool $available): self + { + $this->initialized['available'] = true; + $this->available = $available; + + return $this; + } + + public function getType(): GPUType + { + return $this->type; + } + + public function setType(GPUType $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/VirtualMachineGroup.php b/src/Model/VirtualMachineGroup.php new file mode 100644 index 00000000..ef94771e --- /dev/null +++ b/src/Model/VirtualMachineGroup.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $segregate; + /** + * @var bool + */ + protected $autoSegregate; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSegregate(): bool + { + return $this->segregate; + } + + public function setSegregate(bool $segregate): self + { + $this->initialized['segregate'] = true; + $this->segregate = $segregate; + + return $this; + } + + public function getAutoSegregate(): bool + { + return $this->autoSegregate; + } + + public function setAutoSegregate(bool $autoSegregate): self + { + $this->initialized['autoSegregate'] = true; + $this->autoSegregate = $autoSegregate; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/VirtualMachineGroupArguments.php b/src/Model/VirtualMachineGroupArguments.php new file mode 100644 index 00000000..ff199699 --- /dev/null +++ b/src/Model/VirtualMachineGroupArguments.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $segregate; + /** + * @var bool + */ + protected $autoSegregate; + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSegregate(): bool + { + return $this->segregate; + } + + public function setSegregate(bool $segregate): self + { + $this->initialized['segregate'] = true; + $this->segregate = $segregate; + + return $this; + } + + public function getAutoSegregate(): bool + { + return $this->autoSegregate; + } + + public function setAutoSegregate(bool $autoSegregate): self + { + $this->initialized['autoSegregate'] = true; + $this->autoSegregate = $autoSegregate; + + return $this; + } +} diff --git a/src/Model/VirtualMachineGroupLookup.php b/src/Model/VirtualMachineGroupLookup.php new file mode 100644 index 00000000..87f7ade7 --- /dev/null +++ b/src/Model/VirtualMachineGroupLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/VirtualMachineGroupsVirtualMachineGroupDeleteBody.php b/src/Model/VirtualMachineGroupsVirtualMachineGroupDeleteBody.php new file mode 100644 index 00000000..9dc9a8f2 --- /dev/null +++ b/src/Model/VirtualMachineGroupsVirtualMachineGroupDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'group[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineGroupLookup + */ + protected $virtualMachineGroup; + + /** + * All 'group[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachineGroup(): VirtualMachineGroupLookup + { + return $this->virtualMachineGroup; + } + + /** + * All 'group[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachineGroup(VirtualMachineGroupLookup $virtualMachineGroup): self + { + $this->initialized['virtualMachineGroup'] = true; + $this->virtualMachineGroup = $virtualMachineGroup; + + return $this; + } +} diff --git a/src/Model/VirtualMachineGroupsVirtualMachineGroupDeleteResponse200.php b/src/Model/VirtualMachineGroupsVirtualMachineGroupDeleteResponse200.php new file mode 100644 index 00000000..8a7564a9 --- /dev/null +++ b/src/Model/VirtualMachineGroupsVirtualMachineGroupDeleteResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The details for the deleted virtual machine group. + * + * @var VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroup + */ + protected $virtualMachineGroup; + + /** + * The details for the deleted virtual machine group. + */ + public function getVirtualMachineGroup(): VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroup + { + return $this->virtualMachineGroup; + } + + /** + * The details for the deleted virtual machine group. + */ + public function setVirtualMachineGroup(VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroup $virtualMachineGroup): self + { + $this->initialized['virtualMachineGroup'] = true; + $this->virtualMachineGroup = $virtualMachineGroup; + + return $this; + } +} diff --git a/src/Model/VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroup.php b/src/Model/VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroup.php new file mode 100644 index 00000000..40d08cd8 --- /dev/null +++ b/src/Model/VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroup.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $segregate; + /** + * @var bool + */ + protected $autoSegregate; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSegregate(): bool + { + return $this->segregate; + } + + public function setSegregate(bool $segregate): self + { + $this->initialized['segregate'] = true; + $this->segregate = $segregate; + + return $this; + } + + public function getAutoSegregate(): bool + { + return $this->autoSegregate; + } + + public function setAutoSegregate(bool $autoSegregate): self + { + $this->initialized['autoSegregate'] = true; + $this->autoSegregate = $autoSegregate; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/VirtualMachineGroupsVirtualMachineGroupGetResponse200.php b/src/Model/VirtualMachineGroupsVirtualMachineGroupGetResponse200.php new file mode 100644 index 00000000..94c2e95e --- /dev/null +++ b/src/Model/VirtualMachineGroupsVirtualMachineGroupGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The virtual machine group details. + * + * @var VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroup + */ + protected $virtualMachineGroup; + + /** + * The virtual machine group details. + */ + public function getVirtualMachineGroup(): VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroup + { + return $this->virtualMachineGroup; + } + + /** + * The virtual machine group details. + */ + public function setVirtualMachineGroup(VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroup $virtualMachineGroup): self + { + $this->initialized['virtualMachineGroup'] = true; + $this->virtualMachineGroup = $virtualMachineGroup; + + return $this; + } +} diff --git a/src/Model/VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroup.php b/src/Model/VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroup.php new file mode 100644 index 00000000..c58f0f53 --- /dev/null +++ b/src/Model/VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroup.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $segregate; + /** + * @var bool + */ + protected $autoSegregate; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSegregate(): bool + { + return $this->segregate; + } + + public function setSegregate(bool $segregate): self + { + $this->initialized['segregate'] = true; + $this->segregate = $segregate; + + return $this; + } + + public function getAutoSegregate(): bool + { + return $this->autoSegregate; + } + + public function setAutoSegregate(bool $autoSegregate): self + { + $this->initialized['autoSegregate'] = true; + $this->autoSegregate = $autoSegregate; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/VirtualMachineGroupsVirtualMachineGroupPatchBody.php b/src/Model/VirtualMachineGroupsVirtualMachineGroupPatchBody.php new file mode 100644 index 00000000..1b43d0b8 --- /dev/null +++ b/src/Model/VirtualMachineGroupsVirtualMachineGroupPatchBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'group[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineGroupLookup + */ + protected $virtualMachineGroup; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineGroupArguments + */ + protected $properties; + + /** + * All 'group[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachineGroup(): VirtualMachineGroupLookup + { + return $this->virtualMachineGroup; + } + + /** + * All 'group[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachineGroup(VirtualMachineGroupLookup $virtualMachineGroup): self + { + $this->initialized['virtualMachineGroup'] = true; + $this->virtualMachineGroup = $virtualMachineGroup; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): VirtualMachineGroupArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(VirtualMachineGroupArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/VirtualMachineGroupsVirtualMachineGroupPatchResponse200.php b/src/Model/VirtualMachineGroupsVirtualMachineGroupPatchResponse200.php new file mode 100644 index 00000000..a962be7d --- /dev/null +++ b/src/Model/VirtualMachineGroupsVirtualMachineGroupPatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The updated virtual machine group details. + * + * @var VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroup + */ + protected $virtualMachineGroup; + + /** + * The updated virtual machine group details. + */ + public function getVirtualMachineGroup(): VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroup + { + return $this->virtualMachineGroup; + } + + /** + * The updated virtual machine group details. + */ + public function setVirtualMachineGroup(VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroup $virtualMachineGroup): self + { + $this->initialized['virtualMachineGroup'] = true; + $this->virtualMachineGroup = $virtualMachineGroup; + + return $this; + } +} diff --git a/src/Model/VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroup.php b/src/Model/VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroup.php new file mode 100644 index 00000000..ab4f122e --- /dev/null +++ b/src/Model/VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroup.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var bool + */ + protected $segregate; + /** + * @var bool + */ + protected $autoSegregate; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSegregate(): bool + { + return $this->segregate; + } + + public function setSegregate(bool $segregate): self + { + $this->initialized['segregate'] = true; + $this->segregate = $segregate; + + return $this; + } + + public function getAutoSegregate(): bool + { + return $this->autoSegregate; + } + + public function setAutoSegregate(bool $autoSegregate): self + { + $this->initialized['autoSegregate'] = true; + $this->autoSegregate = $autoSegregate; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/VirtualMachineLookup.php b/src/Model/VirtualMachineLookup.php new file mode 100644 index 00000000..8383e6ed --- /dev/null +++ b/src/Model/VirtualMachineLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $fqdn; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } +} diff --git a/src/Model/VirtualMachineMustBeStarted.php b/src/Model/VirtualMachineMustBeStarted.php new file mode 100644 index 00000000..4c2457c0 --- /dev/null +++ b/src/Model/VirtualMachineMustBeStarted.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $currentState; + + public function getCurrentState(): string + { + return $this->currentState; + } + + public function setCurrentState(string $currentState): self + { + $this->initialized['currentState'] = true; + $this->currentState = $currentState; + + return $this; + } +} diff --git a/src/Model/VirtualMachineMustBeStartedSchema.php b/src/Model/VirtualMachineMustBeStartedSchema.php new file mode 100644 index 00000000..e15042b4 --- /dev/null +++ b/src/Model/VirtualMachineMustBeStartedSchema.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var VirtualMachineMustBeStarted + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getDetail(): VirtualMachineMustBeStarted + { + return $this->detail; + } + + public function setDetail(VirtualMachineMustBeStarted $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfaceLookup.php b/src/Model/VirtualMachineNetworkInterfaceLookup.php new file mode 100644 index 00000000..55e0cdbe --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfaceLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfaceNotFoundSchema.php b/src/Model/VirtualMachineNetworkInterfaceNotFoundSchema.php new file mode 100644 index 00000000..9313ff3d --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfaceNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBody.php b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBody.php new file mode 100644 index 00000000..461d79fb --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineNetworkInterfaceLookup + */ + protected $virtualMachineNetworkInterface; + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + * + * @var IPAddressLookup + */ + protected $ipAddress; + + /** + * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfaceLookup + { + return $this->virtualMachineNetworkInterface; + } + + /** + * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfaceLookup $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } + + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + */ + public function getIpAddress(): IPAddressLookup + { + return $this->ipAddress; + } + + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + */ + public function setIpAddress(IPAddressLookup $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200.php b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200.php new file mode 100644 index 00000000..8e8a13e6 --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The network interface details. + * + * @var VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface + */ + protected $virtualMachineNetworkInterface; + + /** + * The network interface details. + */ + public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface + { + return $this->virtualMachineNetworkInterface; + } + + /** + * The network interface details. + */ + public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface.php b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface.php new file mode 100644 index 00000000..2b82f355 --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork + */ + protected $network; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork + { + return $this->network; + } + + public function setNetwork(PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBody.php b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBody.php new file mode 100644 index 00000000..0de08134 --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBody.php @@ -0,0 +1,66 @@ +initialized); + } + /** + * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineNetworkInterfaceLookup + */ + protected $virtualMachineNetworkInterface; + /** + * @var string + */ + protected $addressVersion; + + /** + * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfaceLookup + { + return $this->virtualMachineNetworkInterface; + } + + /** + * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfaceLookup $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } + + public function getAddressVersion(): string + { + return $this->addressVersion; + } + + public function setAddressVersion(string $addressVersion): self + { + $this->initialized['addressVersion'] = true; + $this->addressVersion = $addressVersion; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200.php b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200.php new file mode 100644 index 00000000..f585f18a --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The newly allocated IP address. + * + * @var VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddress + */ + protected $ipAddress; + + /** + * The newly allocated IP address. + */ + public function getIpAddress(): VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddress + { + return $this->ipAddress; + } + + /** + * The newly allocated IP address. + */ + public function setIpAddress(VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddress $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddress.php b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddress.php new file mode 100644 index 00000000..c103f9a3 --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddress.php @@ -0,0 +1,177 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + /** + * @var string + */ + protected $reverseDns; + /** + * @var bool + */ + protected $vip; + /** + * @var string + */ + protected $label; + /** + * @var string + */ + protected $addressWithMask; + /** + * @var Network + */ + protected $network; + /** + * @var string + */ + protected $allocationId; + /** + * @var string + */ + protected $allocationType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } + + public function getReverseDns(): string + { + return $this->reverseDns; + } + + public function setReverseDns(string $reverseDns): self + { + $this->initialized['reverseDns'] = true; + $this->reverseDns = $reverseDns; + + return $this; + } + + public function getVip(): bool + { + return $this->vip; + } + + public function setVip(bool $vip): self + { + $this->initialized['vip'] = true; + $this->vip = $vip; + + return $this; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + public function getAddressWithMask(): string + { + return $this->addressWithMask; + } + + public function setAddressWithMask(string $addressWithMask): self + { + $this->initialized['addressWithMask'] = true; + $this->addressWithMask = $addressWithMask; + + return $this; + } + + public function getNetwork(): Network + { + return $this->network; + } + + public function setNetwork(Network $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getAllocationId(): string + { + return $this->allocationId; + } + + public function setAllocationId(string $allocationId): self + { + $this->initialized['allocationId'] = true; + $this->allocationId = $allocationId; + + return $this; + } + + public function getAllocationType(): string + { + return $this->allocationType; + } + + public function setAllocationType(string $allocationType): self + { + $this->initialized['allocationType'] = true; + $this->allocationType = $allocationType; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200.php b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200.php new file mode 100644 index 00000000..ac75df41 --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200.php @@ -0,0 +1,53 @@ +initialized); + } + /** + * The IP addresses available for this network interface. + * + * @var IPAddress[] + */ + protected $ipAddresses; + + /** + * The IP addresses available for this network interface. + * + * @return IPAddress[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * The IP addresses available for this network interface. + * + * @param IPAddress[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200.php b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200.php new file mode 100644 index 00000000..89483b3c --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The network interface details. + * + * @var VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface + */ + protected $virtualMachineNetworkInterface; + + /** + * The network interface details. + */ + public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface + { + return $this->virtualMachineNetworkInterface; + } + + /** + * The network interface details. + */ + public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php new file mode 100644 index 00000000..bf802128 --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php @@ -0,0 +1,166 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var GetVMNIVMNIPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var GetVMNIVMNIPartNetwork + */ + protected $network; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var GetVMNIVMNIPartIPAddresses[] + */ + protected $ipAddresses; + /** + * @var GetVMNIVMNIPartSpeedProfile + */ + protected $speedProfile; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): GetVMNIVMNIPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(GetVMNIVMNIPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): GetVMNIVMNIPartNetwork + { + return $this->network; + } + + public function setNetwork(GetVMNIVMNIPartNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return GetVMNIVMNIPartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param GetVMNIVMNIPartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } + + public function getSpeedProfile(): GetVMNIVMNIPartSpeedProfile + { + return $this->speedProfile; + } + + public function setSpeedProfile(GetVMNIVMNIPartSpeedProfile $speedProfile): self + { + $this->initialized['speedProfile'] = true; + $this->speedProfile = $speedProfile; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody.php b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody.php new file mode 100644 index 00000000..0d51118a --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineNetworkInterfaceLookup + */ + protected $virtualMachineNetworkInterface; + /** + * All 'speed_profile[]' params are mutually exclusive, only one can be provided. + * + * @var NetworkSpeedProfileLookup + */ + protected $speedProfile; + + /** + * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfaceLookup + { + return $this->virtualMachineNetworkInterface; + } + + /** + * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfaceLookup $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } + + /** + * All 'speed_profile[]' params are mutually exclusive, only one can be provided. + */ + public function getSpeedProfile(): NetworkSpeedProfileLookup + { + return $this->speedProfile; + } + + /** + * All 'speed_profile[]' params are mutually exclusive, only one can be provided. + */ + public function setSpeedProfile(NetworkSpeedProfileLookup $speedProfile): self + { + $this->initialized['speedProfile'] = true; + $this->speedProfile = $speedProfile; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200.php b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200.php new file mode 100644 index 00000000..0086fcdf --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The task responsible for updating the virtual machine network interface speed profile. + * + * @var VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task + */ + protected $task; + + /** + * The task responsible for updating the virtual machine network interface speed profile. + */ + public function getTask(): VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task + { + return $this->task; + } + + /** + * The task responsible for updating the virtual machine network interface speed profile. + */ + public function setTask(VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task.php b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task.php new file mode 100644 index 00000000..b7eea1ad --- /dev/null +++ b/src/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + /** + * @var int + */ + protected $createdAt; + /** + * @var int + */ + protected $startedAt; + /** + * @var int + */ + protected $finishedAt; + /** + * @var int + */ + protected $progress; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getStartedAt(): int + { + return $this->startedAt; + } + + public function setStartedAt(int $startedAt): self + { + $this->initialized['startedAt'] = true; + $this->startedAt = $startedAt; + + return $this; + } + + public function getFinishedAt(): int + { + return $this->finishedAt; + } + + public function setFinishedAt(int $finishedAt): self + { + $this->initialized['finishedAt'] = true; + $this->finishedAt = $finishedAt; + + return $this; + } + + public function getProgress(): int + { + return $this->progress; + } + + public function setProgress(int $progress): self + { + $this->initialized['progress'] = true; + $this->progress = $progress; + + return $this; + } +} diff --git a/src/Model/VirtualMachineNotFoundSchema.php b/src/Model/VirtualMachineNotFoundSchema.php new file mode 100644 index 00000000..844ca788 --- /dev/null +++ b/src/Model/VirtualMachineNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/VirtualMachinePackage.php b/src/Model/VirtualMachinePackage.php new file mode 100644 index 00000000..f4e0d6dc --- /dev/null +++ b/src/Model/VirtualMachinePackage.php @@ -0,0 +1,194 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var int + */ + protected $cpuCores; + /** + * @var int + */ + protected $ipv4Addresses; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $storageInGb; + /** + * @var int + */ + protected $monthlyBandwidthAllowanceInGb; + /** + * @var string + */ + protected $privacy; + /** + * @var Attachment + */ + protected $icon; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getIpv4Addresses(): int + { + return $this->ipv4Addresses; + } + + public function setIpv4Addresses(int $ipv4Addresses): self + { + $this->initialized['ipv4Addresses'] = true; + $this->ipv4Addresses = $ipv4Addresses; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getStorageInGb(): int + { + return $this->storageInGb; + } + + public function setStorageInGb(int $storageInGb): self + { + $this->initialized['storageInGb'] = true; + $this->storageInGb = $storageInGb; + + return $this; + } + + public function getMonthlyBandwidthAllowanceInGb(): int + { + return $this->monthlyBandwidthAllowanceInGb; + } + + public function setMonthlyBandwidthAllowanceInGb(int $monthlyBandwidthAllowanceInGb): self + { + $this->initialized['monthlyBandwidthAllowanceInGb'] = true; + $this->monthlyBandwidthAllowanceInGb = $monthlyBandwidthAllowanceInGb; + + return $this; + } + + public function getPrivacy(): string + { + return $this->privacy; + } + + public function setPrivacy(string $privacy): self + { + $this->initialized['privacy'] = true; + $this->privacy = $privacy; + + return $this; + } + + public function getIcon(): Attachment + { + return $this->icon; + } + + public function setIcon(Attachment $icon): self + { + $this->initialized['icon'] = true; + $this->icon = $icon; + + return $this; + } +} diff --git a/src/Model/VirtualMachinePackageLookup.php b/src/Model/VirtualMachinePackageLookup.php new file mode 100644 index 00000000..1ed2797a --- /dev/null +++ b/src/Model/VirtualMachinePackageLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/VirtualMachinePackageNotFoundSchema.php b/src/Model/VirtualMachinePackageNotFoundSchema.php new file mode 100644 index 00000000..f22b05c6 --- /dev/null +++ b/src/Model/VirtualMachinePackageNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/VirtualMachinePackagesGetResponse200.php b/src/Model/VirtualMachinePackagesGetResponse200.php new file mode 100644 index 00000000..c8faadfc --- /dev/null +++ b/src/Model/VirtualMachinePackagesGetResponse200.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * @var VirtualMachinePackagesGetResponse200Pagination + */ + protected $pagination; + /** + * @var GetVirtualMachinePackages200ResponseVirtualMachinePackages[] + */ + protected $virtualMachinePackages; + + public function getPagination(): VirtualMachinePackagesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(VirtualMachinePackagesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * @return GetVirtualMachinePackages200ResponseVirtualMachinePackages[] + */ + public function getVirtualMachinePackages(): array + { + return $this->virtualMachinePackages; + } + + /** + * @param GetVirtualMachinePackages200ResponseVirtualMachinePackages[] $virtualMachinePackages + */ + public function setVirtualMachinePackages(array $virtualMachinePackages): self + { + $this->initialized['virtualMachinePackages'] = true; + $this->virtualMachinePackages = $virtualMachinePackages; + + return $this; + } +} diff --git a/src/Model/VirtualMachinePackagesGetResponse200Pagination.php b/src/Model/VirtualMachinePackagesGetResponse200Pagination.php new file mode 100644 index 00000000..913285f8 --- /dev/null +++ b/src/Model/VirtualMachinePackagesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/VirtualMachinePackagesVirtualMachinePackageGetResponse200.php b/src/Model/VirtualMachinePackagesVirtualMachinePackageGetResponse200.php new file mode 100644 index 00000000..ff193111 --- /dev/null +++ b/src/Model/VirtualMachinePackagesVirtualMachinePackageGetResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackage + */ + protected $virtualMachinePackage; + + public function getVirtualMachinePackage(): VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackage + { + return $this->virtualMachinePackage; + } + + public function setVirtualMachinePackage(VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackage $virtualMachinePackage): self + { + $this->initialized['virtualMachinePackage'] = true; + $this->virtualMachinePackage = $virtualMachinePackage; + + return $this; + } +} diff --git a/src/Model/VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackage.php b/src/Model/VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackage.php new file mode 100644 index 00000000..990abad4 --- /dev/null +++ b/src/Model/VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackage.php @@ -0,0 +1,194 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var int + */ + protected $cpuCores; + /** + * @var int + */ + protected $ipv4Addresses; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $storageInGb; + /** + * @var int + */ + protected $monthlyBandwidthAllowanceInGb; + /** + * @var string + */ + protected $privacy; + /** + * @var Attachment + */ + protected $icon; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getIpv4Addresses(): int + { + return $this->ipv4Addresses; + } + + public function setIpv4Addresses(int $ipv4Addresses): self + { + $this->initialized['ipv4Addresses'] = true; + $this->ipv4Addresses = $ipv4Addresses; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getStorageInGb(): int + { + return $this->storageInGb; + } + + public function setStorageInGb(int $storageInGb): self + { + $this->initialized['storageInGb'] = true; + $this->storageInGb = $storageInGb; + + return $this; + } + + public function getMonthlyBandwidthAllowanceInGb(): int + { + return $this->monthlyBandwidthAllowanceInGb; + } + + public function setMonthlyBandwidthAllowanceInGb(int $monthlyBandwidthAllowanceInGb): self + { + $this->initialized['monthlyBandwidthAllowanceInGb'] = true; + $this->monthlyBandwidthAllowanceInGb = $monthlyBandwidthAllowanceInGb; + + return $this; + } + + public function getPrivacy(): string + { + return $this->privacy; + } + + public function setPrivacy(string $privacy): self + { + $this->initialized['privacy'] = true; + $this->privacy = $privacy; + + return $this; + } + + public function getIcon(): Attachment + { + return $this->icon; + } + + public function setIcon(Attachment $icon): self + { + $this->initialized['icon'] = true; + $this->icon = $icon; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesBuildsVirtualMachineBuildGetResponse200.php b/src/Model/VirtualMachinesBuildsVirtualMachineBuildGetResponse200.php new file mode 100644 index 00000000..2207189c --- /dev/null +++ b/src/Model/VirtualMachinesBuildsVirtualMachineBuildGetResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuild + */ + protected $virtualMachineBuild; + + public function getVirtualMachineBuild(): VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuild + { + return $this->virtualMachineBuild; + } + + public function setVirtualMachineBuild(VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuild $virtualMachineBuild): self + { + $this->initialized['virtualMachineBuild'] = true; + $this->virtualMachineBuild = $virtualMachineBuild; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuild.php b/src/Model/VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuild.php new file mode 100644 index 00000000..75db94a5 --- /dev/null +++ b/src/Model/VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuild.php @@ -0,0 +1,109 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $specXml; + /** + * @var string + */ + protected $state; + /** + * @var GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var int + */ + protected $createdAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getSpecXml(): string + { + return $this->specXml; + } + + public function setSpecXml(string $specXml): self + { + $this->initialized['specXml'] = true; + $this->specXml = $specXml; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getVirtualMachine(): GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineAllocateIpPostBody.php b/src/Model/VirtualMachinesVirtualMachineAllocateIpPostBody.php new file mode 100644 index 00000000..9d95678a --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineAllocateIpPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + * + * @var IPAddressLookup + */ + protected $ipAddress; + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + */ + public function getIpAddress(): IPAddressLookup + { + return $this->ipAddress; + } + + /** + * All 'ip_address[]' params are mutually exclusive, only one can be provided. + */ + public function setIpAddress(IPAddressLookup $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineAllocateIpPostResponse200.php b/src/Model/VirtualMachinesVirtualMachineAllocateIpPostResponse200.php new file mode 100644 index 00000000..5c1f26c3 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineAllocateIpPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The newly allocated IP address. + * + * @var VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddress + */ + protected $ipAddress; + + /** + * The newly allocated IP address. + */ + public function getIpAddress(): VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddress + { + return $this->ipAddress; + } + + /** + * The newly allocated IP address. + */ + public function setIpAddress(VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddress $ipAddress): self + { + $this->initialized['ipAddress'] = true; + $this->ipAddress = $ipAddress; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddress.php b/src/Model/VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddress.php new file mode 100644 index 00000000..82706054 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddress.php @@ -0,0 +1,177 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + /** + * @var string + */ + protected $reverseDns; + /** + * @var bool + */ + protected $vip; + /** + * @var string + */ + protected $label; + /** + * @var string + */ + protected $addressWithMask; + /** + * @var Network + */ + protected $network; + /** + * @var string + */ + protected $allocationId; + /** + * @var string + */ + protected $allocationType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } + + public function getReverseDns(): string + { + return $this->reverseDns; + } + + public function setReverseDns(string $reverseDns): self + { + $this->initialized['reverseDns'] = true; + $this->reverseDns = $reverseDns; + + return $this; + } + + public function getVip(): bool + { + return $this->vip; + } + + public function setVip(bool $vip): self + { + $this->initialized['vip'] = true; + $this->vip = $vip; + + return $this; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + public function getAddressWithMask(): string + { + return $this->addressWithMask; + } + + public function setAddressWithMask(string $addressWithMask): self + { + $this->initialized['addressWithMask'] = true; + $this->addressWithMask = $addressWithMask; + + return $this; + } + + public function getNetwork(): Network + { + return $this->network; + } + + public function setNetwork(Network $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getAllocationId(): string + { + return $this->allocationId; + } + + public function setAllocationId(string $allocationId): self + { + $this->initialized['allocationId'] = true; + $this->allocationId = $allocationId; + + return $this; + } + + public function getAllocationType(): string + { + return $this->allocationType; + } + + public function setAllocationType(string $allocationType): self + { + $this->initialized['allocationType'] = true; + $this->allocationType = $allocationType; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineConsoleSessionsPostBody.php b/src/Model/VirtualMachinesVirtualMachineConsoleSessionsPostBody.php new file mode 100644 index 00000000..39d4cc7f --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineConsoleSessionsPostBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineConsoleSessionsPostResponse201.php b/src/Model/VirtualMachinesVirtualMachineConsoleSessionsPostResponse201.php new file mode 100644 index 00000000..c521af7e --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineConsoleSessionsPostResponse201.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSession + */ + protected $consoleSession; + + public function getConsoleSession(): VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSession + { + return $this->consoleSession; + } + + public function setConsoleSession(VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSession $consoleSession): self + { + $this->initialized['consoleSession'] = true; + $this->consoleSession = $consoleSession; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSession.php b/src/Model/VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSession.php new file mode 100644 index 00000000..e2412c7c --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSession.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $url; + /** + * @var int + */ + protected $expiresAt; + /** + * @var PostVirtualMachineConsoleSessionsPartVirtualMachine + */ + protected $virtualMachine; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } + + public function getExpiresAt(): int + { + return $this->expiresAt; + } + + public function setExpiresAt(int $expiresAt): self + { + $this->initialized['expiresAt'] = true; + $this->expiresAt = $expiresAt; + + return $this; + } + + public function getVirtualMachine(): PostVirtualMachineConsoleSessionsPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(PostVirtualMachineConsoleSessionsPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineDeleteBody.php b/src/Model/VirtualMachinesVirtualMachineDeleteBody.php new file mode 100644 index 00000000..face7fda --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineDeleteBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineDeleteResponse200.php b/src/Model/VirtualMachinesVirtualMachineDeleteResponse200.php new file mode 100644 index 00000000..e61cf8cf --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineDeleteResponse200.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var VirtualMachinesVirtualMachineDeleteResponse200TrashObject + */ + protected $trashObject; + /** + * @var VirtualMachinesVirtualMachineDeleteResponse200VirtualMachine + */ + protected $virtualMachine; + + public function getTrashObject(): VirtualMachinesVirtualMachineDeleteResponse200TrashObject + { + return $this->trashObject; + } + + public function setTrashObject(VirtualMachinesVirtualMachineDeleteResponse200TrashObject $trashObject): self + { + $this->initialized['trashObject'] = true; + $this->trashObject = $trashObject; + + return $this; + } + + public function getVirtualMachine(): VirtualMachinesVirtualMachineDeleteResponse200VirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(VirtualMachinesVirtualMachineDeleteResponse200VirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineDeleteResponse200TrashObject.php b/src/Model/VirtualMachinesVirtualMachineDeleteResponse200TrashObject.php new file mode 100644 index 00000000..000792c9 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineDeleteResponse200TrashObject.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $keepUntil; + /** + * @var string + */ + protected $objectId; + /** + * @var string + */ + protected $objectType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getKeepUntil(): int + { + return $this->keepUntil; + } + + public function setKeepUntil(int $keepUntil): self + { + $this->initialized['keepUntil'] = true; + $this->keepUntil = $keepUntil; + + return $this; + } + + public function getObjectId(): string + { + return $this->objectId; + } + + public function setObjectId(string $objectId): self + { + $this->initialized['objectId'] = true; + $this->objectId = $objectId; + + return $this; + } + + public function getObjectType(): string + { + return $this->objectType; + } + + public function setObjectType(string $objectType): self + { + $this->initialized['objectType'] = true; + $this->objectType = $objectType; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineDeleteResponse200VirtualMachine.php b/src/Model/VirtualMachinesVirtualMachineDeleteResponse200VirtualMachine.php new file mode 100644 index 00000000..1044ac12 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineDeleteResponse200VirtualMachine.php @@ -0,0 +1,388 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $hostname; + /** + * @var string + */ + protected $fqdn; + /** + * @var string + */ + protected $description; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $initialRootPassword; + /** + * @var string + */ + protected $state; + /** + * @var DeleteVirtualMachinePartZone + */ + protected $zone; + /** + * @var DeleteVirtualMachinePartOrganization + */ + protected $organization; + /** + * @var DeleteVirtualMachinePartGroup + */ + protected $group; + /** + * @var DeleteVirtualMachinePartPackage + */ + protected $package; + /** + * @var DeleteVirtualMachinePartAttachedISO + */ + protected $attachedIso; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $cpuCores; + /** + * @var DeleteVirtualMachinePartGPUType + */ + protected $gpuType; + /** + * @var DeleteVirtualMachinePartGPUs[] + */ + protected $gpus; + /** + * @var DeleteVirtualMachinePartTags[] + */ + protected $tags; + /** + * @var string[] + */ + protected $tagNames; + /** + * @var DeleteVirtualMachinePartIPAddresses[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getInitialRootPassword(): string + { + return $this->initialRootPassword; + } + + public function setInitialRootPassword(string $initialRootPassword): self + { + $this->initialized['initialRootPassword'] = true; + $this->initialRootPassword = $initialRootPassword; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getZone(): DeleteVirtualMachinePartZone + { + return $this->zone; + } + + public function setZone(DeleteVirtualMachinePartZone $zone): self + { + $this->initialized['zone'] = true; + $this->zone = $zone; + + return $this; + } + + public function getOrganization(): DeleteVirtualMachinePartOrganization + { + return $this->organization; + } + + public function setOrganization(DeleteVirtualMachinePartOrganization $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getGroup(): DeleteVirtualMachinePartGroup + { + return $this->group; + } + + public function setGroup(DeleteVirtualMachinePartGroup $group): self + { + $this->initialized['group'] = true; + $this->group = $group; + + return $this; + } + + public function getPackage(): DeleteVirtualMachinePartPackage + { + return $this->package; + } + + public function setPackage(DeleteVirtualMachinePartPackage $package): self + { + $this->initialized['package'] = true; + $this->package = $package; + + return $this; + } + + public function getAttachedIso(): DeleteVirtualMachinePartAttachedISO + { + return $this->attachedIso; + } + + public function setAttachedIso(DeleteVirtualMachinePartAttachedISO $attachedIso): self + { + $this->initialized['attachedIso'] = true; + $this->attachedIso = $attachedIso; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getGpuType(): DeleteVirtualMachinePartGPUType + { + return $this->gpuType; + } + + public function setGpuType(DeleteVirtualMachinePartGPUType $gpuType): self + { + $this->initialized['gpuType'] = true; + $this->gpuType = $gpuType; + + return $this; + } + + /** + * @return DeleteVirtualMachinePartGPUs[] + */ + public function getGpus(): array + { + return $this->gpus; + } + + /** + * @param DeleteVirtualMachinePartGPUs[] $gpus + */ + public function setGpus(array $gpus): self + { + $this->initialized['gpus'] = true; + $this->gpus = $gpus; + + return $this; + } + + /** + * @return DeleteVirtualMachinePartTags[] + */ + public function getTags(): array + { + return $this->tags; + } + + /** + * @param DeleteVirtualMachinePartTags[] $tags + */ + public function setTags(array $tags): self + { + $this->initialized['tags'] = true; + $this->tags = $tags; + + return $this; + } + + /** + * @return string[] + */ + public function getTagNames(): array + { + return $this->tagNames; + } + + /** + * @param string[] $tagNames + */ + public function setTagNames(array $tagNames): self + { + $this->initialized['tagNames'] = true; + $this->tagNames = $tagNames; + + return $this; + } + + /** + * @return DeleteVirtualMachinePartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param DeleteVirtualMachinePartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200.php b/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200.php new file mode 100644 index 00000000..618cade2 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Pagination + */ + protected $pagination; + /** + * The disk backup policies for the provided virtual machine. + * + * @var GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicies[] + */ + protected $diskBackupPolicies; + + public function getPagination(): VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The disk backup policies for the provided virtual machine. + * + * @return GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicies[] + */ + public function getDiskBackupPolicies(): array + { + return $this->diskBackupPolicies; + } + + /** + * The disk backup policies for the provided virtual machine. + * + * @param GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicies[] $diskBackupPolicies + */ + public function setDiskBackupPolicies(array $diskBackupPolicies): self + { + $this->initialized['diskBackupPolicies'] = true; + $this->diskBackupPolicies = $diskBackupPolicies; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Pagination.php b/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Pagination.php new file mode 100644 index 00000000..3658ce0d --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostBody.php b/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostBody.php new file mode 100644 index 00000000..6070b3ec --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var DiskBackupPolicyArguments + */ + protected $properties; + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): DiskBackupPolicyArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(DiskBackupPolicyArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200.php b/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200.php new file mode 100644 index 00000000..3f41a961 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The new disk backup policy that has been created. + * + * @var VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicy + */ + protected $diskBackupPolicy; + + /** + * The new disk backup policy that has been created. + */ + public function getDiskBackupPolicy(): VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicy + { + return $this->diskBackupPolicy; + } + + /** + * The new disk backup policy that has been created. + */ + public function setDiskBackupPolicy(VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicy $diskBackupPolicy): self + { + $this->initialized['diskBackupPolicy'] = true; + $this->diskBackupPolicy = $diskBackupPolicy; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicy.php b/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicy.php new file mode 100644 index 00000000..4c69eede --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicy.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $retention; + /** + * @var float + */ + protected $totalSize; + /** + * @var DiskBackupPolicyTarget + */ + protected $target; + /** + * @var PostVirtualMachineDiskBackupPoliciesPartSchedule + */ + protected $schedule; + /** + * @var int + */ + protected $autoMoveToTrashAt; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getRetention(): int + { + return $this->retention; + } + + public function setRetention(int $retention): self + { + $this->initialized['retention'] = true; + $this->retention = $retention; + + return $this; + } + + public function getTotalSize(): float + { + return $this->totalSize; + } + + public function setTotalSize(float $totalSize): self + { + $this->initialized['totalSize'] = true; + $this->totalSize = $totalSize; + + return $this; + } + + public function getTarget(): DiskBackupPolicyTarget + { + return $this->target; + } + + public function setTarget(DiskBackupPolicyTarget $target): self + { + $this->initialized['target'] = true; + $this->target = $target; + + return $this; + } + + public function getSchedule(): PostVirtualMachineDiskBackupPoliciesPartSchedule + { + return $this->schedule; + } + + public function setSchedule(PostVirtualMachineDiskBackupPoliciesPartSchedule $schedule): self + { + $this->initialized['schedule'] = true; + $this->schedule = $schedule; + + return $this; + } + + public function getAutoMoveToTrashAt(): int + { + return $this->autoMoveToTrashAt; + } + + public function setAutoMoveToTrashAt(int $autoMoveToTrashAt): self + { + $this->initialized['autoMoveToTrashAt'] = true; + $this->autoMoveToTrashAt = $autoMoveToTrashAt; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineDisksGetResponse200.php b/src/Model/VirtualMachinesVirtualMachineDisksGetResponse200.php new file mode 100644 index 00000000..d081a9fc --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineDisksGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var VirtualMachinesVirtualMachineDisksGetResponse200Pagination + */ + protected $pagination; + /** + * The list of disks. + * + * @var GetVirtualMachineDisks200ResponseDisks[] + */ + protected $disks; + + public function getPagination(): VirtualMachinesVirtualMachineDisksGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(VirtualMachinesVirtualMachineDisksGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The list of disks. + * + * @return GetVirtualMachineDisks200ResponseDisks[] + */ + public function getDisks(): array + { + return $this->disks; + } + + /** + * The list of disks. + * + * @param GetVirtualMachineDisks200ResponseDisks[] $disks + */ + public function setDisks(array $disks): self + { + $this->initialized['disks'] = true; + $this->disks = $disks; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineDisksGetResponse200Pagination.php b/src/Model/VirtualMachinesVirtualMachineDisksGetResponse200Pagination.php new file mode 100644 index 00000000..62145438 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineDisksGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutBody.php b/src/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutBody.php new file mode 100644 index 00000000..e54bd2ce --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + /** + * All 'resources[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineFlexibleResources + */ + protected $resources; + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + /** + * All 'resources[]' params are mutually exclusive, only one can be provided. + */ + public function getResources(): VirtualMachineFlexibleResources + { + return $this->resources; + } + + /** + * All 'resources[]' params are mutually exclusive, only one can be provided. + */ + public function setResources(VirtualMachineFlexibleResources $resources): self + { + $this->initialized['resources'] = true; + $this->resources = $resources; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200.php b/src/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200.php new file mode 100644 index 00000000..4094cfbc --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Task + */ + protected $task; + + public function getTask(): VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Task + { + return $this->task; + } + + public function setTask(VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Task.php b/src/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Task.php new file mode 100644 index 00000000..912d4fda --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Task.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + /** + * @var int + */ + protected $createdAt; + /** + * @var int + */ + protected $startedAt; + /** + * @var int + */ + protected $finishedAt; + /** + * @var int + */ + protected $progress; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getStartedAt(): int + { + return $this->startedAt; + } + + public function setStartedAt(int $startedAt): self + { + $this->initialized['startedAt'] = true; + $this->startedAt = $startedAt; + + return $this; + } + + public function getFinishedAt(): int + { + return $this->finishedAt; + } + + public function setFinishedAt(int $finishedAt): self + { + $this->initialized['finishedAt'] = true; + $this->finishedAt = $finishedAt; + + return $this; + } + + public function getProgress(): int + { + return $this->progress; + } + + public function setProgress(int $progress): self + { + $this->initialized['progress'] = true; + $this->progress = $progress; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineGetResponse200.php b/src/Model/VirtualMachinesVirtualMachineGetResponse200.php new file mode 100644 index 00000000..d46f0cb9 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineGetResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachinesVirtualMachineGetResponse200VirtualMachine + */ + protected $virtualMachine; + + public function getVirtualMachine(): VirtualMachinesVirtualMachineGetResponse200VirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(VirtualMachinesVirtualMachineGetResponse200VirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineGetResponse200VirtualMachine.php b/src/Model/VirtualMachinesVirtualMachineGetResponse200VirtualMachine.php new file mode 100644 index 00000000..2dc4901d --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineGetResponse200VirtualMachine.php @@ -0,0 +1,388 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $hostname; + /** + * @var string + */ + protected $fqdn; + /** + * @var string + */ + protected $description; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $initialRootPassword; + /** + * @var string + */ + protected $state; + /** + * @var GetVirtualMachinePartZone + */ + protected $zone; + /** + * @var GetVirtualMachinePartOrganization + */ + protected $organization; + /** + * @var GetVirtualMachinePartGroup + */ + protected $group; + /** + * @var GetVirtualMachinePartPackage + */ + protected $package; + /** + * @var GetVirtualMachinePartAttachedISO + */ + protected $attachedIso; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $cpuCores; + /** + * @var GetVirtualMachinePartGPUType + */ + protected $gpuType; + /** + * @var GetVirtualMachinePartGPUs[] + */ + protected $gpus; + /** + * @var GetVirtualMachinePartTags[] + */ + protected $tags; + /** + * @var string[] + */ + protected $tagNames; + /** + * @var GetVirtualMachinePartIPAddresses[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getInitialRootPassword(): string + { + return $this->initialRootPassword; + } + + public function setInitialRootPassword(string $initialRootPassword): self + { + $this->initialized['initialRootPassword'] = true; + $this->initialRootPassword = $initialRootPassword; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getZone(): GetVirtualMachinePartZone + { + return $this->zone; + } + + public function setZone(GetVirtualMachinePartZone $zone): self + { + $this->initialized['zone'] = true; + $this->zone = $zone; + + return $this; + } + + public function getOrganization(): GetVirtualMachinePartOrganization + { + return $this->organization; + } + + public function setOrganization(GetVirtualMachinePartOrganization $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getGroup(): GetVirtualMachinePartGroup + { + return $this->group; + } + + public function setGroup(GetVirtualMachinePartGroup $group): self + { + $this->initialized['group'] = true; + $this->group = $group; + + return $this; + } + + public function getPackage(): GetVirtualMachinePartPackage + { + return $this->package; + } + + public function setPackage(GetVirtualMachinePartPackage $package): self + { + $this->initialized['package'] = true; + $this->package = $package; + + return $this; + } + + public function getAttachedIso(): GetVirtualMachinePartAttachedISO + { + return $this->attachedIso; + } + + public function setAttachedIso(GetVirtualMachinePartAttachedISO $attachedIso): self + { + $this->initialized['attachedIso'] = true; + $this->attachedIso = $attachedIso; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getGpuType(): GetVirtualMachinePartGPUType + { + return $this->gpuType; + } + + public function setGpuType(GetVirtualMachinePartGPUType $gpuType): self + { + $this->initialized['gpuType'] = true; + $this->gpuType = $gpuType; + + return $this; + } + + /** + * @return GetVirtualMachinePartGPUs[] + */ + public function getGpus(): array + { + return $this->gpus; + } + + /** + * @param GetVirtualMachinePartGPUs[] $gpus + */ + public function setGpus(array $gpus): self + { + $this->initialized['gpus'] = true; + $this->gpus = $gpus; + + return $this; + } + + /** + * @return GetVirtualMachinePartTags[] + */ + public function getTags(): array + { + return $this->tags; + } + + /** + * @param GetVirtualMachinePartTags[] $tags + */ + public function setTags(array $tags): self + { + $this->initialized['tags'] = true; + $this->tags = $tags; + + return $this; + } + + /** + * @return string[] + */ + public function getTagNames(): array + { + return $this->tagNames; + } + + /** + * @param string[] $tagNames + */ + public function setTagNames(array $tagNames): self + { + $this->initialized['tagNames'] = true; + $this->tagNames = $tagNames; + + return $this; + } + + /** + * @return GetVirtualMachinePartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param GetVirtualMachinePartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200.php b/src/Model/VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200.php new file mode 100644 index 00000000..48bce8c4 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Pagination + */ + protected $pagination; + /** + * The network interfaces for this virtual machine. + * + * @var GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces[] + */ + protected $virtualMachineNetworkInterfaces; + + public function getPagination(): VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Pagination + { + return $this->pagination; + } + + public function setPagination(VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Pagination $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The network interfaces for this virtual machine. + * + * @return GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces[] + */ + public function getVirtualMachineNetworkInterfaces(): array + { + return $this->virtualMachineNetworkInterfaces; + } + + /** + * The network interfaces for this virtual machine. + * + * @param GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces[] $virtualMachineNetworkInterfaces + */ + public function setVirtualMachineNetworkInterfaces(array $virtualMachineNetworkInterfaces): self + { + $this->initialized['virtualMachineNetworkInterfaces'] = true; + $this->virtualMachineNetworkInterfaces = $virtualMachineNetworkInterfaces; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Pagination.php b/src/Model/VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Pagination.php new file mode 100644 index 00000000..f6fc1d60 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Pagination.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * The current page. + * + * @var int + */ + protected $currentPage; + /** + * The total number of pages. + * + * @var int + */ + protected $totalPages; + /** + * The total number of items across all pages. + * + * @var int + */ + protected $total; + /** + * The number of items per page. + * + * @var int + */ + protected $perPage; + /** + * Is this a large set and therefore the total number of records cannot be returned? + * + * @var bool + */ + protected $largeSet; + + /** + * The current page. + */ + public function getCurrentPage(): int + { + return $this->currentPage; + } + + /** + * The current page. + */ + public function setCurrentPage(int $currentPage): self + { + $this->initialized['currentPage'] = true; + $this->currentPage = $currentPage; + + return $this; + } + + /** + * The total number of pages. + */ + public function getTotalPages(): int + { + return $this->totalPages; + } + + /** + * The total number of pages. + */ + public function setTotalPages(int $totalPages): self + { + $this->initialized['totalPages'] = true; + $this->totalPages = $totalPages; + + return $this; + } + + /** + * The total number of items across all pages. + */ + public function getTotal(): int + { + return $this->total; + } + + /** + * The total number of items across all pages. + */ + public function setTotal(int $total): self + { + $this->initialized['total'] = true; + $this->total = $total; + + return $this; + } + + /** + * The number of items per page. + */ + public function getPerPage(): int + { + return $this->perPage; + } + + /** + * The number of items per page. + */ + public function setPerPage(int $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function getLargeSet(): bool + { + return $this->largeSet; + } + + /** + * Is this a large set and therefore the total number of records cannot be returned? + */ + public function setLargeSet(bool $largeSet): self + { + $this->initialized['largeSet'] = true; + $this->largeSet = $largeSet; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200.php b/src/Model/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200.php new file mode 100644 index 00000000..6fc65c6b --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The network interface details. + * + * @var VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface + */ + protected $virtualMachineNetworkInterface; + + /** + * The network interface details. + */ + public function getVirtualMachineNetworkInterface(): VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface + { + return $this->virtualMachineNetworkInterface; + } + + /** + * The network interface details. + */ + public function setVirtualMachineNetworkInterface(VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php b/src/Model/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php new file mode 100644 index 00000000..183122b7 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var GetVirtualMachineNetworkInterfacePartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var GetVirtualMachineNetworkInterfacePartNetwork + */ + protected $network; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var GetVirtualMachineNetworkInterfacePartIPAddresses[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): GetVirtualMachineNetworkInterfacePartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(GetVirtualMachineNetworkInterfacePartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): GetVirtualMachineNetworkInterfacePartNetwork + { + return $this->network; + } + + public function setNetwork(GetVirtualMachineNetworkInterfacePartNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return GetVirtualMachineNetworkInterfacePartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param GetVirtualMachineNetworkInterfacePartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachinePackagePutBody.php b/src/Model/VirtualMachinesVirtualMachinePackagePutBody.php new file mode 100644 index 00000000..9f5d702e --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachinePackagePutBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + /** + * All 'virtual_machine_package[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachinePackageLookup + */ + protected $virtualMachinePackage; + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + /** + * All 'virtual_machine_package[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachinePackage(): VirtualMachinePackageLookup + { + return $this->virtualMachinePackage; + } + + /** + * All 'virtual_machine_package[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachinePackage(VirtualMachinePackageLookup $virtualMachinePackage): self + { + $this->initialized['virtualMachinePackage'] = true; + $this->virtualMachinePackage = $virtualMachinePackage; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachinePackagePutResponse200.php b/src/Model/VirtualMachinesVirtualMachinePackagePutResponse200.php new file mode 100644 index 00000000..c9fa5839 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachinePackagePutResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachinesVirtualMachinePackagePutResponse200Task + */ + protected $task; + + public function getTask(): VirtualMachinesVirtualMachinePackagePutResponse200Task + { + return $this->task; + } + + public function setTask(VirtualMachinesVirtualMachinePackagePutResponse200Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachinePackagePutResponse200Task.php b/src/Model/VirtualMachinesVirtualMachinePackagePutResponse200Task.php new file mode 100644 index 00000000..6ff60c80 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachinePackagePutResponse200Task.php @@ -0,0 +1,143 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + /** + * @var int + */ + protected $createdAt; + /** + * @var int + */ + protected $startedAt; + /** + * @var int + */ + protected $finishedAt; + /** + * @var int + */ + protected $progress; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getStartedAt(): int + { + return $this->startedAt; + } + + public function setStartedAt(int $startedAt): self + { + $this->initialized['startedAt'] = true; + $this->startedAt = $startedAt; + + return $this; + } + + public function getFinishedAt(): int + { + return $this->finishedAt; + } + + public function setFinishedAt(int $finishedAt): self + { + $this->initialized['finishedAt'] = true; + $this->finishedAt = $finishedAt; + + return $this; + } + + public function getProgress(): int + { + return $this->progress; + } + + public function setProgress(int $progress): self + { + $this->initialized['progress'] = true; + $this->progress = $progress; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachinePatchBody.php b/src/Model/VirtualMachinesVirtualMachinePatchBody.php new file mode 100644 index 00000000..d5c52b19 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachinePatchBody.php @@ -0,0 +1,74 @@ +initialized); + } + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineArguments + */ + protected $properties; + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function getProperties(): VirtualMachineArguments + { + return $this->properties; + } + + /** + * All 'properties[]' params are mutually exclusive, only one can be provided. + */ + public function setProperties(VirtualMachineArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachinePatchResponse200.php b/src/Model/VirtualMachinesVirtualMachinePatchResponse200.php new file mode 100644 index 00000000..b11ab888 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachinePatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The newly updated virtual machine. + * + * @var VirtualMachinesVirtualMachinePatchResponse200VirtualMachine + */ + protected $virtualMachine; + + /** + * The newly updated virtual machine. + */ + public function getVirtualMachine(): VirtualMachinesVirtualMachinePatchResponse200VirtualMachine + { + return $this->virtualMachine; + } + + /** + * The newly updated virtual machine. + */ + public function setVirtualMachine(VirtualMachinesVirtualMachinePatchResponse200VirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachinePatchResponse200VirtualMachine.php b/src/Model/VirtualMachinesVirtualMachinePatchResponse200VirtualMachine.php new file mode 100644 index 00000000..8b5be3ad --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachinePatchResponse200VirtualMachine.php @@ -0,0 +1,388 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $hostname; + /** + * @var string + */ + protected $fqdn; + /** + * @var string + */ + protected $description; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $initialRootPassword; + /** + * @var string + */ + protected $state; + /** + * @var PatchVirtualMachinePartZone + */ + protected $zone; + /** + * @var PatchVirtualMachinePartOrganization + */ + protected $organization; + /** + * @var PatchVirtualMachinePartGroup + */ + protected $group; + /** + * @var PatchVirtualMachinePartPackage + */ + protected $package; + /** + * @var PatchVirtualMachinePartAttachedISO + */ + protected $attachedIso; + /** + * @var int + */ + protected $memoryInGb; + /** + * @var int + */ + protected $cpuCores; + /** + * @var PatchVirtualMachinePartGPUType + */ + protected $gpuType; + /** + * @var PatchVirtualMachinePartGPUs[] + */ + protected $gpus; + /** + * @var PatchVirtualMachinePartTags[] + */ + protected $tags; + /** + * @var string[] + */ + protected $tagNames; + /** + * @var PatchVirtualMachinePartIPAddresses[] + */ + protected $ipAddresses; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getHostname(): string + { + return $this->hostname; + } + + public function setHostname(string $hostname): self + { + $this->initialized['hostname'] = true; + $this->hostname = $hostname; + + return $this; + } + + public function getFqdn(): string + { + return $this->fqdn; + } + + public function setFqdn(string $fqdn): self + { + $this->initialized['fqdn'] = true; + $this->fqdn = $fqdn; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getInitialRootPassword(): string + { + return $this->initialRootPassword; + } + + public function setInitialRootPassword(string $initialRootPassword): self + { + $this->initialized['initialRootPassword'] = true; + $this->initialRootPassword = $initialRootPassword; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + public function getZone(): PatchVirtualMachinePartZone + { + return $this->zone; + } + + public function setZone(PatchVirtualMachinePartZone $zone): self + { + $this->initialized['zone'] = true; + $this->zone = $zone; + + return $this; + } + + public function getOrganization(): PatchVirtualMachinePartOrganization + { + return $this->organization; + } + + public function setOrganization(PatchVirtualMachinePartOrganization $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getGroup(): PatchVirtualMachinePartGroup + { + return $this->group; + } + + public function setGroup(PatchVirtualMachinePartGroup $group): self + { + $this->initialized['group'] = true; + $this->group = $group; + + return $this; + } + + public function getPackage(): PatchVirtualMachinePartPackage + { + return $this->package; + } + + public function setPackage(PatchVirtualMachinePartPackage $package): self + { + $this->initialized['package'] = true; + $this->package = $package; + + return $this; + } + + public function getAttachedIso(): PatchVirtualMachinePartAttachedISO + { + return $this->attachedIso; + } + + public function setAttachedIso(PatchVirtualMachinePartAttachedISO $attachedIso): self + { + $this->initialized['attachedIso'] = true; + $this->attachedIso = $attachedIso; + + return $this; + } + + public function getMemoryInGb(): int + { + return $this->memoryInGb; + } + + public function setMemoryInGb(int $memoryInGb): self + { + $this->initialized['memoryInGb'] = true; + $this->memoryInGb = $memoryInGb; + + return $this; + } + + public function getCpuCores(): int + { + return $this->cpuCores; + } + + public function setCpuCores(int $cpuCores): self + { + $this->initialized['cpuCores'] = true; + $this->cpuCores = $cpuCores; + + return $this; + } + + public function getGpuType(): PatchVirtualMachinePartGPUType + { + return $this->gpuType; + } + + public function setGpuType(PatchVirtualMachinePartGPUType $gpuType): self + { + $this->initialized['gpuType'] = true; + $this->gpuType = $gpuType; + + return $this; + } + + /** + * @return PatchVirtualMachinePartGPUs[] + */ + public function getGpus(): array + { + return $this->gpus; + } + + /** + * @param PatchVirtualMachinePartGPUs[] $gpus + */ + public function setGpus(array $gpus): self + { + $this->initialized['gpus'] = true; + $this->gpus = $gpus; + + return $this; + } + + /** + * @return PatchVirtualMachinePartTags[] + */ + public function getTags(): array + { + return $this->tags; + } + + /** + * @param PatchVirtualMachinePartTags[] $tags + */ + public function setTags(array $tags): self + { + $this->initialized['tags'] = true; + $this->tags = $tags; + + return $this; + } + + /** + * @return string[] + */ + public function getTagNames(): array + { + return $this->tagNames; + } + + /** + * @param string[] $tagNames + */ + public function setTagNames(array $tagNames): self + { + $this->initialized['tagNames'] = true; + $this->tagNames = $tagNames; + + return $this; + } + + /** + * @return PatchVirtualMachinePartIPAddresses[] + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param PatchVirtualMachinePartIPAddresses[] $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineResetPostBody.php b/src/Model/VirtualMachinesVirtualMachineResetPostBody.php new file mode 100644 index 00000000..51dfee14 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineResetPostBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineResetPostResponse200.php b/src/Model/VirtualMachinesVirtualMachineResetPostResponse200.php new file mode 100644 index 00000000..7cae0d9e --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineResetPostResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachinesVirtualMachineResetPostResponse200Task + */ + protected $task; + + public function getTask(): VirtualMachinesVirtualMachineResetPostResponse200Task + { + return $this->task; + } + + public function setTask(VirtualMachinesVirtualMachineResetPostResponse200Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineResetPostResponse200Task.php b/src/Model/VirtualMachinesVirtualMachineResetPostResponse200Task.php new file mode 100644 index 00000000..621013df --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineResetPostResponse200Task.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineShutdownPostBody.php b/src/Model/VirtualMachinesVirtualMachineShutdownPostBody.php new file mode 100644 index 00000000..1abc2a94 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineShutdownPostBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineShutdownPostResponse200.php b/src/Model/VirtualMachinesVirtualMachineShutdownPostResponse200.php new file mode 100644 index 00000000..04b1bbb2 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineShutdownPostResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachinesVirtualMachineShutdownPostResponse200Task + */ + protected $task; + + public function getTask(): VirtualMachinesVirtualMachineShutdownPostResponse200Task + { + return $this->task; + } + + public function setTask(VirtualMachinesVirtualMachineShutdownPostResponse200Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineShutdownPostResponse200Task.php b/src/Model/VirtualMachinesVirtualMachineShutdownPostResponse200Task.php new file mode 100644 index 00000000..c9b4317f --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineShutdownPostResponse200Task.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineStartPostBody.php b/src/Model/VirtualMachinesVirtualMachineStartPostBody.php new file mode 100644 index 00000000..f335fb05 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineStartPostBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineStartPostResponse200.php b/src/Model/VirtualMachinesVirtualMachineStartPostResponse200.php new file mode 100644 index 00000000..9ba7f614 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineStartPostResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachinesVirtualMachineStartPostResponse200Task + */ + protected $task; + + public function getTask(): VirtualMachinesVirtualMachineStartPostResponse200Task + { + return $this->task; + } + + public function setTask(VirtualMachinesVirtualMachineStartPostResponse200Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineStartPostResponse200Task.php b/src/Model/VirtualMachinesVirtualMachineStartPostResponse200Task.php new file mode 100644 index 00000000..2ed056aa --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineStartPostResponse200Task.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineStopPostBody.php b/src/Model/VirtualMachinesVirtualMachineStopPostBody.php new file mode 100644 index 00000000..7df77a1e --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineStopPostBody.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineStopPostResponse200.php b/src/Model/VirtualMachinesVirtualMachineStopPostResponse200.php new file mode 100644 index 00000000..8bd31999 --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineStopPostResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachinesVirtualMachineStopPostResponse200Task + */ + protected $task; + + public function getTask(): VirtualMachinesVirtualMachineStopPostResponse200Task + { + return $this->task; + } + + public function setTask(VirtualMachinesVirtualMachineStopPostResponse200Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } +} diff --git a/src/Model/VirtualMachinesVirtualMachineStopPostResponse200Task.php b/src/Model/VirtualMachinesVirtualMachineStopPostResponse200Task.php new file mode 100644 index 00000000..fb60f8ae --- /dev/null +++ b/src/Model/VirtualMachinesVirtualMachineStopPostResponse200Task.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $status; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } +} diff --git a/src/Model/Zone.php b/src/Model/Zone.php new file mode 100644 index 00000000..33c86249 --- /dev/null +++ b/src/Model/Zone.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var DataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): DataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(DataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Model/ZoneLookup.php b/src/Model/ZoneLookup.php new file mode 100644 index 00000000..86206d14 --- /dev/null +++ b/src/Model/ZoneLookup.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Model/ZoneNotFoundSchema.php b/src/Model/ZoneNotFoundSchema.php new file mode 100644 index 00000000..50078d3a --- /dev/null +++ b/src/Model/ZoneNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Model/ZonesGetResponse200.php b/src/Model/ZonesGetResponse200.php new file mode 100644 index 00000000..daf8b725 --- /dev/null +++ b/src/Model/ZonesGetResponse200.php @@ -0,0 +1,53 @@ +initialized); + } + /** + * The zones available to the current identity. + * + * @var GetZones200ResponseZones[] + */ + protected $zones; + + /** + * The zones available to the current identity. + * + * @return GetZones200ResponseZones[] + */ + public function getZones(): array + { + return $this->zones; + } + + /** + * The zones available to the current identity. + * + * @param GetZones200ResponseZones[] $zones + */ + public function setZones(array $zones): self + { + $this->initialized['zones'] = true; + $this->zones = $zones; + + return $this; + } +} diff --git a/src/Model/ZonesZoneGetResponse200.php b/src/Model/ZonesZoneGetResponse200.php new file mode 100644 index 00000000..6125d9c8 --- /dev/null +++ b/src/Model/ZonesZoneGetResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The zone details. + * + * @var ZonesZoneGetResponse200Zone + */ + protected $zone; + + /** + * The zone details. + */ + public function getZone(): ZonesZoneGetResponse200Zone + { + return $this->zone; + } + + /** + * The zone details. + */ + public function setZone(ZonesZoneGetResponse200Zone $zone): self + { + $this->initialized['zone'] = true; + $this->zone = $zone; + + return $this; + } +} diff --git a/src/Model/ZonesZoneGetResponse200Zone.php b/src/Model/ZonesZoneGetResponse200Zone.php new file mode 100644 index 00000000..1cd0f397 --- /dev/null +++ b/src/Model/ZonesZoneGetResponse200Zone.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + /** + * @var DataCenter + */ + protected $dataCenter; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } + + public function getDataCenter(): DataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(DataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Normalizer/AAAANormalizer.php b/src/Normalizer/AAAANormalizer.php new file mode 100644 index 00000000..fee518eb --- /dev/null +++ b/src/Normalizer/AAAANormalizer.php @@ -0,0 +1,87 @@ +setIp($data['ip']); + unset($data['ip']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('ip') && null !== $object->getIp()) { + $data['ip'] = $object->getIp(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\AAAA' => false]; + } +} diff --git a/src/Normalizer/ALIASNormalizer.php b/src/Normalizer/ALIASNormalizer.php new file mode 100644 index 00000000..fab4b6f8 --- /dev/null +++ b/src/Normalizer/ALIASNormalizer.php @@ -0,0 +1,87 @@ +setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ALIAS' => false]; + } +} diff --git a/src/Normalizer/ANormalizer.php b/src/Normalizer/ANormalizer.php new file mode 100644 index 00000000..32814231 --- /dev/null +++ b/src/Normalizer/ANormalizer.php @@ -0,0 +1,87 @@ +setIp($data['ip']); + unset($data['ip']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('ip') && null !== $object->getIp()) { + $data['ip'] = $object->getIp(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\A' => false]; + } +} diff --git a/src/Normalizer/APIAuthenticator400SchemaNormalizer.php b/src/Normalizer/APIAuthenticator400SchemaNormalizer.php new file mode 100644 index 00000000..87828a1c --- /dev/null +++ b/src/Normalizer/APIAuthenticator400SchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\APIAuthenticator400Schema' => false]; + } +} diff --git a/src/Normalizer/AttachmentNormalizer.php b/src/Normalizer/AttachmentNormalizer.php new file mode 100644 index 00000000..8ceb0e5b --- /dev/null +++ b/src/Normalizer/AttachmentNormalizer.php @@ -0,0 +1,122 @@ +setUrl($data['url']); + unset($data['url']); + } + if (\array_key_exists('file_name', $data)) { + $object->setFileName($data['file_name']); + unset($data['file_name']); + } + if (\array_key_exists('file_type', $data)) { + $object->setFileType($data['file_type']); + unset($data['file_type']); + } + if (\array_key_exists('file_size', $data)) { + $object->setFileSize($data['file_size']); + unset($data['file_size']); + } + if (\array_key_exists('digest', $data)) { + $object->setDigest($data['digest']); + unset($data['digest']); + } + if (\array_key_exists('token', $data)) { + $object->setToken($data['token']); + unset($data['token']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + if ($object->isInitialized('fileName') && null !== $object->getFileName()) { + $data['file_name'] = $object->getFileName(); + } + if ($object->isInitialized('fileType') && null !== $object->getFileType()) { + $data['file_type'] = $object->getFileType(); + } + if ($object->isInitialized('fileSize') && null !== $object->getFileSize()) { + $data['file_size'] = $object->getFileSize(); + } + if ($object->isInitialized('digest') && null !== $object->getDigest()) { + $data['digest'] = $object->getDigest(); + } + if ($object->isInitialized('token') && null !== $object->getToken()) { + $data['token'] = $object->getToken(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\Attachment' => false]; + } +} diff --git a/src/Normalizer/AuthSSHKeyLookupNormalizer.php b/src/Normalizer/AuthSSHKeyLookupNormalizer.php new file mode 100644 index 00000000..912880d3 --- /dev/null +++ b/src/Normalizer/AuthSSHKeyLookupNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\AuthSSHKeyLookup' => false]; + } +} diff --git a/src/Normalizer/AuthSSHKeyNormalizer.php b/src/Normalizer/AuthSSHKeyNormalizer.php new file mode 100644 index 00000000..cf7a7ac2 --- /dev/null +++ b/src/Normalizer/AuthSSHKeyNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('fingerprint', $data)) { + $object->setFingerprint($data['fingerprint']); + unset($data['fingerprint']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('fingerprint') && null !== $object->getFingerprint()) { + $data['fingerprint'] = $object->getFingerprint(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\AuthSSHKey' => false]; + } +} diff --git a/src/Normalizer/AuthSSHKeyPropertiesNormalizer.php b/src/Normalizer/AuthSSHKeyPropertiesNormalizer.php new file mode 100644 index 00000000..90a3b39a --- /dev/null +++ b/src/Normalizer/AuthSSHKeyPropertiesNormalizer.php @@ -0,0 +1,94 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('key', $data)) { + $object->setKey($data['key']); + unset($data['key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('key') && null !== $object->getKey()) { + $data['key'] = $object->getKey(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\AuthSSHKeyProperties' => false]; + } +} diff --git a/src/Normalizer/CAANormalizer.php b/src/Normalizer/CAANormalizer.php new file mode 100644 index 00000000..a4b06b19 --- /dev/null +++ b/src/Normalizer/CAANormalizer.php @@ -0,0 +1,101 @@ +setFlags($data['flags']); + unset($data['flags']); + } + if (\array_key_exists('property_type', $data)) { + $object->setPropertyType($data['property_type']); + unset($data['property_type']); + } + if (\array_key_exists('property_value', $data)) { + $object->setPropertyValue($data['property_value']); + unset($data['property_value']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('flags') && null !== $object->getFlags()) { + $data['flags'] = $object->getFlags(); + } + if ($object->isInitialized('propertyType') && null !== $object->getPropertyType()) { + $data['property_type'] = $object->getPropertyType(); + } + if ($object->isInitialized('propertyValue') && null !== $object->getPropertyValue()) { + $data['property_value'] = $object->getPropertyValue(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CAA' => false]; + } +} diff --git a/src/Normalizer/CNAMENormalizer.php b/src/Normalizer/CNAMENormalizer.php new file mode 100644 index 00000000..416ea1b1 --- /dev/null +++ b/src/Normalizer/CNAMENormalizer.php @@ -0,0 +1,87 @@ +setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CNAME' => false]; + } +} diff --git a/src/Normalizer/CertificateLookupNormalizer.php b/src/Normalizer/CertificateLookupNormalizer.php new file mode 100644 index 00000000..40e9deea --- /dev/null +++ b/src/Normalizer/CertificateLookupNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CertificateLookup' => false]; + } +} diff --git a/src/Normalizer/CertificateNormalizer.php b/src/Normalizer/CertificateNormalizer.php new file mode 100644 index 00000000..d383b155 --- /dev/null +++ b/src/Normalizer/CertificateNormalizer.php @@ -0,0 +1,186 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('additional_names', $data)) { + $values = []; + foreach ($data['additional_names'] as $value) { + $values[] = $value; + } + $object->setAdditionalNames($values); + unset($data['additional_names']); + } + if (\array_key_exists('issuer', $data)) { + $object->setIssuer($data['issuer']); + unset($data['issuer']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('expires_at', $data)) { + $object->setExpiresAt($data['expires_at']); + unset($data['expires_at']); + } + if (\array_key_exists('last_issued_at', $data)) { + $object->setLastIssuedAt($data['last_issued_at']); + unset($data['last_issued_at']); + } + if (\array_key_exists('issue_error', $data)) { + $object->setIssueError($data['issue_error']); + unset($data['issue_error']); + } + if (\array_key_exists('authorization_method', $data)) { + $object->setAuthorizationMethod($data['authorization_method']); + unset($data['authorization_method']); + } + if (\array_key_exists('certificate_api_url', $data)) { + $object->setCertificateApiUrl($data['certificate_api_url']); + unset($data['certificate_api_url']); + } + if (\array_key_exists('certificate', $data)) { + $object->setCertificate($data['certificate']); + unset($data['certificate']); + } + if (\array_key_exists('chain', $data)) { + $object->setChain($data['chain']); + unset($data['chain']); + } + if (\array_key_exists('private_key', $data)) { + $object->setPrivateKey($data['private_key']); + unset($data['private_key']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('additionalNames') && null !== $object->getAdditionalNames()) { + $values = []; + foreach ($object->getAdditionalNames() as $value) { + $values[] = $value; + } + $data['additional_names'] = $values; + } + if ($object->isInitialized('issuer') && null !== $object->getIssuer()) { + $data['issuer'] = $object->getIssuer(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('expiresAt') && null !== $object->getExpiresAt()) { + $data['expires_at'] = $object->getExpiresAt(); + } + if ($object->isInitialized('lastIssuedAt') && null !== $object->getLastIssuedAt()) { + $data['last_issued_at'] = $object->getLastIssuedAt(); + } + if ($object->isInitialized('issueError') && null !== $object->getIssueError()) { + $data['issue_error'] = $object->getIssueError(); + } + if ($object->isInitialized('authorizationMethod') && null !== $object->getAuthorizationMethod()) { + $data['authorization_method'] = $object->getAuthorizationMethod(); + } + if ($object->isInitialized('certificateApiUrl') && null !== $object->getCertificateApiUrl()) { + $data['certificate_api_url'] = $object->getCertificateApiUrl(); + } + if ($object->isInitialized('certificate') && null !== $object->getCertificate()) { + $data['certificate'] = $object->getCertificate(); + } + if ($object->isInitialized('chain') && null !== $object->getChain()) { + $data['chain'] = $object->getChain(); + } + if ($object->isInitialized('privateKey') && null !== $object->getPrivateKey()) { + $data['private_key'] = $object->getPrivateKey(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\Certificate' => false]; + } +} diff --git a/src/Normalizer/CertificatesCertificateGetResponse200Normalizer.php b/src/Normalizer/CertificatesCertificateGetResponse200Normalizer.php new file mode 100644 index 00000000..c3c448b1 --- /dev/null +++ b/src/Normalizer/CertificatesCertificateGetResponse200Normalizer.php @@ -0,0 +1,93 @@ +denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\Certificate', 'json', $context); + } + $object->setCertificate($values); + unset($data['certificate']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getCertificate() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['certificate'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CertificatesCertificateGetResponse200' => false]; + } +} diff --git a/src/Normalizer/CountriesCountryCountryStatesGetResponse200Normalizer.php b/src/Normalizer/CountriesCountryCountryStatesGetResponse200Normalizer.php new file mode 100644 index 00000000..37a87e8f --- /dev/null +++ b/src/Normalizer/CountriesCountryCountryStatesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryCountryStatesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('country_states', $data)) { + $values = []; + foreach ($data['country_states'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetCountryCountryStates200ResponseCountryStates', 'json', $context); + } + $object->setCountryStates($values); + unset($data['country_states']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getCountryStates() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['country_states'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryCountryStatesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/CountriesCountryCountryStatesGetResponse200PaginationNormalizer.php b/src/Normalizer/CountriesCountryCountryStatesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..4e594dd8 --- /dev/null +++ b/src/Normalizer/CountriesCountryCountryStatesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryCountryStatesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/CountriesCountryGetResponse200CountryNormalizer.php b/src/Normalizer/CountriesCountryGetResponse200CountryNormalizer.php new file mode 100644 index 00000000..e8e8ce22 --- /dev/null +++ b/src/Normalizer/CountriesCountryGetResponse200CountryNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('iso_code2', $data)) { + $object->setIsoCode2($data['iso_code2']); + unset($data['iso_code2']); + } + if (\array_key_exists('iso_code3', $data)) { + $object->setIsoCode3($data['iso_code3']); + unset($data['iso_code3']); + } + if (\array_key_exists('time_zone', $data)) { + $object->setTimeZone($data['time_zone']); + unset($data['time_zone']); + } + if (\array_key_exists('eu', $data)) { + $object->setEu($data['eu']); + unset($data['eu']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('isoCode2') && null !== $object->getIsoCode2()) { + $data['iso_code2'] = $object->getIsoCode2(); + } + if ($object->isInitialized('isoCode3') && null !== $object->getIsoCode3()) { + $data['iso_code3'] = $object->getIsoCode3(); + } + if ($object->isInitialized('timeZone') && null !== $object->getTimeZone()) { + $data['time_zone'] = $object->getTimeZone(); + } + if ($object->isInitialized('eu') && null !== $object->getEu()) { + $data['eu'] = $object->getEu(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryGetResponse200Country' => false]; + } +} diff --git a/src/Normalizer/CountriesCountryGetResponse200Normalizer.php b/src/Normalizer/CountriesCountryGetResponse200Normalizer.php new file mode 100644 index 00000000..3ddd9ece --- /dev/null +++ b/src/Normalizer/CountriesCountryGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryGetResponse200Country', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryGetResponse200' => false]; + } +} diff --git a/src/Normalizer/CountriesGetResponse200Normalizer.php b/src/Normalizer/CountriesGetResponse200Normalizer.php new file mode 100644 index 00000000..2bc3e56f --- /dev/null +++ b/src/Normalizer/CountriesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('countries', $data)) { + $values = []; + foreach ($data['countries'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetCountries200ResponseCountries', 'json', $context); + } + $object->setCountries($values); + unset($data['countries']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getCountries() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['countries'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CountriesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/CountriesGetResponse200PaginationNormalizer.php b/src/Normalizer/CountriesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..7c5f9f23 --- /dev/null +++ b/src/Normalizer/CountriesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CountriesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/CountryNormalizer.php b/src/Normalizer/CountryNormalizer.php new file mode 100644 index 00000000..7cae3848 --- /dev/null +++ b/src/Normalizer/CountryNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('iso_code2', $data)) { + $object->setIsoCode2($data['iso_code2']); + unset($data['iso_code2']); + } + if (\array_key_exists('iso_code3', $data)) { + $object->setIsoCode3($data['iso_code3']); + unset($data['iso_code3']); + } + if (\array_key_exists('time_zone', $data)) { + $object->setTimeZone($data['time_zone']); + unset($data['time_zone']); + } + if (\array_key_exists('eu', $data)) { + $object->setEu($data['eu']); + unset($data['eu']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('isoCode2') && null !== $object->getIsoCode2()) { + $data['iso_code2'] = $object->getIsoCode2(); + } + if ($object->isInitialized('isoCode3') && null !== $object->getIsoCode3()) { + $data['iso_code3'] = $object->getIsoCode3(); + } + if ($object->isInitialized('timeZone') && null !== $object->getTimeZone()) { + $data['time_zone'] = $object->getTimeZone(); + } + if ($object->isInitialized('eu') && null !== $object->getEu()) { + $data['eu'] = $object->getEu(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\Country' => false]; + } +} diff --git a/src/Normalizer/CountryStateNormalizer.php b/src/Normalizer/CountryStateNormalizer.php new file mode 100644 index 00000000..92961546 --- /dev/null +++ b/src/Normalizer/CountryStateNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Country', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CountryState' => false]; + } +} diff --git a/src/Normalizer/CountryStatesCountryStateGetResponse200CountryStateNormalizer.php b/src/Normalizer/CountryStatesCountryStateGetResponse200CountryStateNormalizer.php new file mode 100644 index 00000000..4a145977 --- /dev/null +++ b/src/Normalizer/CountryStatesCountryStateGetResponse200CountryStateNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Country', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CountryStatesCountryStateGetResponse200CountryState' => false]; + } +} diff --git a/src/Normalizer/CountryStatesCountryStateGetResponse200Normalizer.php b/src/Normalizer/CountryStatesCountryStateGetResponse200Normalizer.php new file mode 100644 index 00000000..b2e9970f --- /dev/null +++ b/src/Normalizer/CountryStatesCountryStateGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setCountryState($this->denormalizer->denormalize($data['country_state'], 'Krystal\\Katapult\\KatapultAPI\\Model\\CountryStatesCountryStateGetResponse200CountryState', 'json', $context)); + unset($data['country_state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['country_state'] = $this->normalizer->normalize($object->getCountryState(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CountryStatesCountryStateGetResponse200' => false]; + } +} diff --git a/src/Normalizer/CurrenciesCurrencyGetResponse200CurrencyNormalizer.php b/src/Normalizer/CurrenciesCurrencyGetResponse200CurrencyNormalizer.php new file mode 100644 index 00000000..56b2d6ac --- /dev/null +++ b/src/Normalizer/CurrenciesCurrencyGetResponse200CurrencyNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('iso_code', $data)) { + $object->setIsoCode($data['iso_code']); + unset($data['iso_code']); + } + if (\array_key_exists('symbol', $data)) { + $object->setSymbol($data['symbol']); + unset($data['symbol']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('isoCode') && null !== $object->getIsoCode()) { + $data['iso_code'] = $object->getIsoCode(); + } + if ($object->isInitialized('symbol') && null !== $object->getSymbol()) { + $data['symbol'] = $object->getSymbol(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesCurrencyGetResponse200Currency' => false]; + } +} diff --git a/src/Normalizer/CurrenciesCurrencyGetResponse200Normalizer.php b/src/Normalizer/CurrenciesCurrencyGetResponse200Normalizer.php new file mode 100644 index 00000000..a26d69b0 --- /dev/null +++ b/src/Normalizer/CurrenciesCurrencyGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setCurrency($this->denormalizer->denormalize($data['currency'], 'Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesCurrencyGetResponse200Currency', 'json', $context)); + unset($data['currency']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['currency'] = $this->normalizer->normalize($object->getCurrency(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesCurrencyGetResponse200' => false]; + } +} diff --git a/src/Normalizer/CurrenciesGetResponse200Normalizer.php b/src/Normalizer/CurrenciesGetResponse200Normalizer.php new file mode 100644 index 00000000..4e60ebee --- /dev/null +++ b/src/Normalizer/CurrenciesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('currencies', $data)) { + $values = []; + foreach ($data['currencies'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetCurrencies200ResponseCurrencies', 'json', $context); + } + $object->setCurrencies($values); + unset($data['currencies']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getCurrencies() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['currencies'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/CurrenciesGetResponse200PaginationNormalizer.php b/src/Normalizer/CurrenciesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..d148369c --- /dev/null +++ b/src/Normalizer/CurrenciesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/CurrencyNormalizer.php b/src/Normalizer/CurrencyNormalizer.php new file mode 100644 index 00000000..01ff0908 --- /dev/null +++ b/src/Normalizer/CurrencyNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('iso_code', $data)) { + $object->setIsoCode($data['iso_code']); + unset($data['iso_code']); + } + if (\array_key_exists('symbol', $data)) { + $object->setSymbol($data['symbol']); + unset($data['symbol']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('isoCode') && null !== $object->getIsoCode()) { + $data['iso_code'] = $object->getIsoCode(); + } + if ($object->isInitialized('symbol') && null !== $object->getSymbol()) { + $data['symbol'] = $object->getSymbol(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\Currency' => false]; + } +} diff --git a/src/Normalizer/DNSRecordArgumentsNormalizer.php b/src/Normalizer/DNSRecordArgumentsNormalizer.php new file mode 100644 index 00000000..4e12e7d8 --- /dev/null +++ b/src/Normalizer/DNSRecordArgumentsNormalizer.php @@ -0,0 +1,108 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('record_type', $data)) { + $object->setRecordType($data['record_type']); + unset($data['record_type']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordPropertiesArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('recordType') && null !== $object->getRecordType()) { + $data['record_type'] = $object->getRecordType(); + } + if ($object->isInitialized('properties') && null !== $object->getProperties()) { + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordArguments' => false]; + } +} diff --git a/src/Normalizer/DNSRecordContentAttributesNormalizer.php b/src/Normalizer/DNSRecordContentAttributesNormalizer.php new file mode 100644 index 00000000..07d6ffd4 --- /dev/null +++ b/src/Normalizer/DNSRecordContentAttributesNormalizer.php @@ -0,0 +1,186 @@ +setA($this->denormalizer->denormalize($data['A'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForA', 'json', $context)); + unset($data['A']); + } + if (\array_key_exists('AAAA', $data)) { + $object->setAAAA($this->denormalizer->denormalize($data['AAAA'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForAAAA', 'json', $context)); + unset($data['AAAA']); + } + if (\array_key_exists('ALIAS', $data)) { + $object->setALIAS($this->denormalizer->denormalize($data['ALIAS'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForALIAS', 'json', $context)); + unset($data['ALIAS']); + } + if (\array_key_exists('CAA', $data)) { + $object->setCAA($this->denormalizer->denormalize($data['CAA'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForCAA', 'json', $context)); + unset($data['CAA']); + } + if (\array_key_exists('CNAME', $data)) { + $object->setCNAME($this->denormalizer->denormalize($data['CNAME'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForCNAME', 'json', $context)); + unset($data['CNAME']); + } + if (\array_key_exists('IPS', $data)) { + $object->setIPS($this->denormalizer->denormalize($data['IPS'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForIPS', 'json', $context)); + unset($data['IPS']); + } + if (\array_key_exists('MX', $data)) { + $object->setMX($this->denormalizer->denormalize($data['MX'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForMX', 'json', $context)); + unset($data['MX']); + } + if (\array_key_exists('NS', $data)) { + $object->setNS($this->denormalizer->denormalize($data['NS'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForNS', 'json', $context)); + unset($data['NS']); + } + if (\array_key_exists('PTR', $data)) { + $object->setPTR($this->denormalizer->denormalize($data['PTR'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForPTR', 'json', $context)); + unset($data['PTR']); + } + if (\array_key_exists('SOA', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['SOA'] as $key => $value) { + $values[$key] = $value; + } + $object->setSOA($values); + unset($data['SOA']); + } + if (\array_key_exists('SRV', $data)) { + $object->setSRV($this->denormalizer->denormalize($data['SRV'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForSRV', 'json', $context)); + unset($data['SRV']); + } + if (\array_key_exists('SSHFP', $data)) { + $object->setSSHFP($this->denormalizer->denormalize($data['SSHFP'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForSSHFP', 'json', $context)); + unset($data['SSHFP']); + } + if (\array_key_exists('TXT', $data)) { + $object->setTXT($this->denormalizer->denormalize($data['TXT'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForTXT', 'json', $context)); + unset($data['TXT']); + } + if (\array_key_exists('VirtualMachine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['VirtualMachine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForVirtualMachine', 'json', $context)); + unset($data['VirtualMachine']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('a') && null !== $object->getA()) { + $data['A'] = $this->normalizer->normalize($object->getA(), 'json', $context); + } + if ($object->isInitialized('aAAA') && null !== $object->getAAAA()) { + $data['AAAA'] = $this->normalizer->normalize($object->getAAAA(), 'json', $context); + } + if ($object->isInitialized('aLIAS') && null !== $object->getALIAS()) { + $data['ALIAS'] = $this->normalizer->normalize($object->getALIAS(), 'json', $context); + } + if ($object->isInitialized('cAA') && null !== $object->getCAA()) { + $data['CAA'] = $this->normalizer->normalize($object->getCAA(), 'json', $context); + } + if ($object->isInitialized('cNAME') && null !== $object->getCNAME()) { + $data['CNAME'] = $this->normalizer->normalize($object->getCNAME(), 'json', $context); + } + if ($object->isInitialized('iPS') && null !== $object->getIPS()) { + $data['IPS'] = $this->normalizer->normalize($object->getIPS(), 'json', $context); + } + if ($object->isInitialized('mX') && null !== $object->getMX()) { + $data['MX'] = $this->normalizer->normalize($object->getMX(), 'json', $context); + } + if ($object->isInitialized('nS') && null !== $object->getNS()) { + $data['NS'] = $this->normalizer->normalize($object->getNS(), 'json', $context); + } + if ($object->isInitialized('pTR') && null !== $object->getPTR()) { + $data['PTR'] = $this->normalizer->normalize($object->getPTR(), 'json', $context); + } + if ($object->isInitialized('sOA') && null !== $object->getSOA()) { + $values = []; + foreach ($object->getSOA() as $key => $value) { + $values[$key] = $value; + } + $data['SOA'] = $values; + } + if ($object->isInitialized('sRV') && null !== $object->getSRV()) { + $data['SRV'] = $this->normalizer->normalize($object->getSRV(), 'json', $context); + } + if ($object->isInitialized('sSHFP') && null !== $object->getSSHFP()) { + $data['SSHFP'] = $this->normalizer->normalize($object->getSSHFP(), 'json', $context); + } + if ($object->isInitialized('tXT') && null !== $object->getTXT()) { + $data['TXT'] = $this->normalizer->normalize($object->getTXT(), 'json', $context); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['VirtualMachine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordContentAttributes' => false]; + } +} diff --git a/src/Normalizer/DNSRecordLookupNormalizer.php b/src/Normalizer/DNSRecordLookupNormalizer.php new file mode 100644 index 00000000..2131c0a6 --- /dev/null +++ b/src/Normalizer/DNSRecordLookupNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordLookup' => false]; + } +} diff --git a/src/Normalizer/DNSRecordNormalizer.php b/src/Normalizer/DNSRecordNormalizer.php new file mode 100644 index 00000000..c879bbd4 --- /dev/null +++ b/src/Normalizer/DNSRecordNormalizer.php @@ -0,0 +1,136 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('full_name', $data)) { + $object->setFullName($data['full_name']); + unset($data['full_name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('type', $data)) { + $object->setType($data['type']); + unset($data['type']); + } + if (\array_key_exists('priority', $data)) { + $object->setPriority($data['priority']); + unset($data['priority']); + } + if (\array_key_exists('content', $data)) { + $object->setContent($data['content']); + unset($data['content']); + } + if (\array_key_exists('content_attributes', $data)) { + $object->setContentAttributes($this->denormalizer->denormalize($data['content_attributes'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordContentAttributes', 'json', $context)); + unset($data['content_attributes']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('fullName') && null !== $object->getFullName()) { + $data['full_name'] = $object->getFullName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $object->getType(); + } + if ($object->isInitialized('priority') && null !== $object->getPriority()) { + $data['priority'] = $object->getPriority(); + } + if ($object->isInitialized('content') && null !== $object->getContent()) { + $data['content'] = $object->getContent(); + } + if ($object->isInitialized('contentAttributes') && null !== $object->getContentAttributes()) { + $data['content_attributes'] = $this->normalizer->normalize($object->getContentAttributes(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecord' => false]; + } +} diff --git a/src/Normalizer/DNSRecordPropertiesArgumentsNormalizer.php b/src/Normalizer/DNSRecordPropertiesArgumentsNormalizer.php new file mode 100644 index 00000000..c16e27f9 --- /dev/null +++ b/src/Normalizer/DNSRecordPropertiesArgumentsNormalizer.php @@ -0,0 +1,185 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ip', $data)) { + $object->setIp($data['ip']); + unset($data['ip']); + } + if (\array_key_exists('flags', $data)) { + $object->setFlags($data['flags']); + unset($data['flags']); + } + if (\array_key_exists('property_type', $data)) { + $object->setPropertyType($data['property_type']); + unset($data['property_type']); + } + if (\array_key_exists('property_value', $data)) { + $object->setPropertyValue($data['property_value']); + unset($data['property_value']); + } + if (\array_key_exists('host', $data)) { + $object->setHost($data['host']); + unset($data['host']); + } + if (\array_key_exists('priority', $data)) { + $object->setPriority($data['priority']); + unset($data['priority']); + } + if (\array_key_exists('weight', $data)) { + $object->setWeight($data['weight']); + unset($data['weight']); + } + if (\array_key_exists('port', $data)) { + $object->setPort($data['port']); + unset($data['port']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($data['target']); + unset($data['target']); + } + if (\array_key_exists('algorithm', $data)) { + $object->setAlgorithm($data['algorithm']); + unset($data['algorithm']); + } + if (\array_key_exists('fingerprint_type', $data)) { + $object->setFingerprintType($data['fingerprint_type']); + unset($data['fingerprint_type']); + } + if (\array_key_exists('fingerprint', $data)) { + $object->setFingerprint($data['fingerprint']); + unset($data['fingerprint']); + } + if (\array_key_exists('data', $data)) { + $object->setData($data['data']); + unset($data['data']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ip') && null !== $object->getIp()) { + $data['ip'] = $object->getIp(); + } + if ($object->isInitialized('flags') && null !== $object->getFlags()) { + $data['flags'] = $object->getFlags(); + } + if ($object->isInitialized('propertyType') && null !== $object->getPropertyType()) { + $data['property_type'] = $object->getPropertyType(); + } + if ($object->isInitialized('propertyValue') && null !== $object->getPropertyValue()) { + $data['property_value'] = $object->getPropertyValue(); + } + if ($object->isInitialized('host') && null !== $object->getHost()) { + $data['host'] = $object->getHost(); + } + if ($object->isInitialized('priority') && null !== $object->getPriority()) { + $data['priority'] = $object->getPriority(); + } + if ($object->isInitialized('weight') && null !== $object->getWeight()) { + $data['weight'] = $object->getWeight(); + } + if ($object->isInitialized('port') && null !== $object->getPort()) { + $data['port'] = $object->getPort(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $object->getTarget(); + } + if ($object->isInitialized('algorithm') && null !== $object->getAlgorithm()) { + $data['algorithm'] = $object->getAlgorithm(); + } + if ($object->isInitialized('fingerprintType') && null !== $object->getFingerprintType()) { + $data['fingerprint_type'] = $object->getFingerprintType(); + } + if ($object->isInitialized('fingerprint') && null !== $object->getFingerprint()) { + $data['fingerprint'] = $object->getFingerprint(); + } + if ($object->isInitialized('data') && null !== $object->getData()) { + $data['data'] = $object->getData(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordPropertiesArguments' => false]; + } +} diff --git a/src/Normalizer/DNSRecordPropertiesNormalizer.php b/src/Normalizer/DNSRecordPropertiesNormalizer.php new file mode 100644 index 00000000..2f1f1495 --- /dev/null +++ b/src/Normalizer/DNSRecordPropertiesNormalizer.php @@ -0,0 +1,87 @@ +setProperties($data['properties']); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('properties') && null !== $object->getProperties()) { + $data['properties'] = $object->getProperties(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordProperties' => false]; + } +} diff --git a/src/Normalizer/DNSZoneArgumentsNormalizer.php b/src/Normalizer/DNSZoneArgumentsNormalizer.php new file mode 100644 index 00000000..702df744 --- /dev/null +++ b/src/Normalizer/DNSZoneArgumentsNormalizer.php @@ -0,0 +1,92 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneArguments' => false]; + } +} diff --git a/src/Normalizer/DNSZoneLookupNormalizer.php b/src/Normalizer/DNSZoneLookupNormalizer.php new file mode 100644 index 00000000..b7e6039c --- /dev/null +++ b/src/Normalizer/DNSZoneLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneLookup' => false]; + } +} diff --git a/src/Normalizer/DNSZoneNormalizer.php b/src/Normalizer/DNSZoneNormalizer.php new file mode 100644 index 00000000..fef2e0ae --- /dev/null +++ b/src/Normalizer/DNSZoneNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('verified', $data)) { + $object->setVerified($data['verified']); + unset($data['verified']); + } + if (\array_key_exists('infrastructure_zone', $data)) { + $object->setInfrastructureZone($data['infrastructure_zone']); + unset($data['infrastructure_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('verified') && null !== $object->getVerified()) { + $data['verified'] = $object->getVerified(); + } + if ($object->isInitialized('infrastructureZone') && null !== $object->getInfrastructureZone()) { + $data['infrastructure_zone'] = $object->getInfrastructureZone(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DNSZone' => false]; + } +} diff --git a/src/Normalizer/DNSZoneNotVerifiedNormalizer.php b/src/Normalizer/DNSZoneNotVerifiedNormalizer.php new file mode 100644 index 00000000..cbc9901a --- /dev/null +++ b/src/Normalizer/DNSZoneNotVerifiedNormalizer.php @@ -0,0 +1,87 @@ +setVerificationDetails($this->denormalizer->denormalize($data['verification_details'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneVerificationDetails', 'json', $context)); + unset($data['verification_details']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('verificationDetails') && null !== $object->getVerificationDetails()) { + $data['verification_details'] = $this->normalizer->normalize($object->getVerificationDetails(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneNotVerified' => false]; + } +} diff --git a/src/Normalizer/DNSZoneVerificationDetailsNormalizer.php b/src/Normalizer/DNSZoneVerificationDetailsNormalizer.php new file mode 100644 index 00000000..bb0de814 --- /dev/null +++ b/src/Normalizer/DNSZoneVerificationDetailsNormalizer.php @@ -0,0 +1,95 @@ +setNameservers($values); + unset($data['nameservers']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('nameservers') && null !== $object->getNameservers()) { + $values = []; + foreach ($object->getNameservers() as $value) { + $values[] = $value; + } + $data['nameservers'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneVerificationDetails' => false]; + } +} diff --git a/src/Normalizer/DataCenterLookupNormalizer.php b/src/Normalizer/DataCenterLookupNormalizer.php new file mode 100644 index 00000000..eb5ead93 --- /dev/null +++ b/src/Normalizer/DataCenterLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DataCenterLookup' => false]; + } +} diff --git a/src/Normalizer/DataCenterNormalizer.php b/src/Normalizer/DataCenterNormalizer.php new file mode 100644 index 00000000..9975bdf0 --- /dev/null +++ b/src/Normalizer/DataCenterNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Country', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DataCenter' => false]; + } +} diff --git a/src/Normalizer/DataCenterNotFoundSchemaNormalizer.php b/src/Normalizer/DataCenterNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..28523ae4 --- /dev/null +++ b/src/Normalizer/DataCenterNotFoundSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DataCenterNotFoundSchema' => false]; + } +} diff --git a/src/Normalizer/DataCentersDataCenterDefaultNetworkGetResponse200NetworkNormalizer.php b/src/Normalizer/DataCentersDataCenterDefaultNetworkGetResponse200NetworkNormalizer.php new file mode 100644 index 00000000..982a475a --- /dev/null +++ b/src/Normalizer/DataCentersDataCenterDefaultNetworkGetResponse200NetworkNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterDefaultNetworkPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterDefaultNetworkGetResponse200Network' => false]; + } +} diff --git a/src/Normalizer/DataCentersDataCenterDefaultNetworkGetResponse200Normalizer.php b/src/Normalizer/DataCentersDataCenterDefaultNetworkGetResponse200Normalizer.php new file mode 100644 index 00000000..9cf41af8 --- /dev/null +++ b/src/Normalizer/DataCentersDataCenterDefaultNetworkGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterDefaultNetworkGetResponse200Network', 'json', $context)); + unset($data['network']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterDefaultNetworkGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DataCentersDataCenterGetResponse200DataCenterNormalizer.php b/src/Normalizer/DataCentersDataCenterGetResponse200DataCenterNormalizer.php new file mode 100644 index 00000000..899b236f --- /dev/null +++ b/src/Normalizer/DataCentersDataCenterGetResponse200DataCenterNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterPartCountry', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGetResponse200DataCenter' => false]; + } +} diff --git a/src/Normalizer/DataCentersDataCenterGetResponse200Normalizer.php b/src/Normalizer/DataCentersDataCenterGetResponse200Normalizer.php new file mode 100644 index 00000000..9f10f594 --- /dev/null +++ b/src/Normalizer/DataCentersDataCenterGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGetResponse200DataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DataCentersDataCenterGpuTypesGetResponse200Normalizer.php b/src/Normalizer/DataCentersDataCenterGpuTypesGetResponse200Normalizer.php new file mode 100644 index 00000000..085a6eca --- /dev/null +++ b/src/Normalizer/DataCentersDataCenterGpuTypesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGpuTypesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('gpu_types', $data)) { + $values = []; + foreach ($data['gpu_types'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterGPUTypes200ResponseGPUTypes', 'json', $context); + } + $object->setGpuTypes($values); + unset($data['gpu_types']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getGpuTypes() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['gpu_types'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGpuTypesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DataCentersDataCenterGpuTypesGetResponse200PaginationNormalizer.php b/src/Normalizer/DataCentersDataCenterGpuTypesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..4218fc55 --- /dev/null +++ b/src/Normalizer/DataCentersDataCenterGpuTypesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGpuTypesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/DataCentersGetResponse200Normalizer.php b/src/Normalizer/DataCentersGetResponse200Normalizer.php new file mode 100644 index 00000000..898a4bf0 --- /dev/null +++ b/src/Normalizer/DataCentersGetResponse200Normalizer.php @@ -0,0 +1,93 @@ +denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenters200ResponseDataCenters', 'json', $context); + } + $object->setDataCenters($values); + unset($data['data_centers']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getDataCenters() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['data_centers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DeleteDNSZonesDNSZone200ResponseDNSZoneNormalizer.php b/src/Normalizer/DeleteDNSZonesDNSZone200ResponseDNSZoneNormalizer.php new file mode 100644 index 00000000..cf2bf5f7 --- /dev/null +++ b/src/Normalizer/DeleteDNSZonesDNSZone200ResponseDNSZoneNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('verified', $data)) { + $object->setVerified($data['verified']); + unset($data['verified']); + } + if (\array_key_exists('infrastructure_zone', $data)) { + $object->setInfrastructureZone($data['infrastructure_zone']); + unset($data['infrastructure_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('verified') && null !== $object->getVerified()) { + $data['verified'] = $object->getVerified(); + } + if ($object->isInitialized('infrastructureZone') && null !== $object->getInfrastructureZone()) { + $data['infrastructure_zone'] = $object->getInfrastructureZone(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteDNSZonesDNSZone200ResponseDNSZone' => false]; + } +} diff --git a/src/Normalizer/DeleteDiskBackupPolicy200ResponseDiskBackupPolicyNormalizer.php b/src/Normalizer/DeleteDiskBackupPolicy200ResponseDiskBackupPolicyNormalizer.php new file mode 100644 index 00000000..1c8401b0 --- /dev/null +++ b/src/Normalizer/DeleteDiskBackupPolicy200ResponseDiskBackupPolicyNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteDiskBackupPolicy200ResponseDiskBackupPolicy' => false]; + } +} diff --git a/src/Normalizer/DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicyNormalizer.php b/src/Normalizer/DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicyNormalizer.php new file mode 100644 index 00000000..a675b07a --- /dev/null +++ b/src/Normalizer/DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicyNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('auto_move_to_trash_at', $data)) { + $object->setAutoMoveToTrashAt($data['auto_move_to_trash_at']); + unset($data['auto_move_to_trash_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('autoMoveToTrashAt') && null !== $object->getAutoMoveToTrashAt()) { + $data['auto_move_to_trash_at'] = $object->getAutoMoveToTrashAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicy' => false]; + } +} diff --git a/src/Normalizer/DeleteFileStorageVolume200ResponseFileStorageVolumeNormalizer.php b/src/Normalizer/DeleteFileStorageVolume200ResponseFileStorageVolumeNormalizer.php new file mode 100644 index 00000000..7e2608fa --- /dev/null +++ b/src/Normalizer/DeleteFileStorageVolume200ResponseFileStorageVolumeNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteFileStorageVolumePartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('nfs_location', $data)) { + $object->setNfsLocation($data['nfs_location']); + unset($data['nfs_location']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('nfsLocation') && null !== $object->getNfsLocation()) { + $data['nfs_location'] = $object->getNfsLocation(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteFileStorageVolume200ResponseFileStorageVolume' => false]; + } +} diff --git a/src/Normalizer/DeleteFileStorageVolumePartDataCenterNormalizer.php b/src/Normalizer/DeleteFileStorageVolumePartDataCenterNormalizer.php new file mode 100644 index 00000000..e793f13e --- /dev/null +++ b/src/Normalizer/DeleteFileStorageVolumePartDataCenterNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteFileStorageVolumePartDataCenter' => false]; + } +} diff --git a/src/Normalizer/DeleteLoadBalancer200ResponseLoadBalancerNormalizer.php b/src/Normalizer/DeleteLoadBalancer200ResponseLoadBalancerNormalizer.php new file mode 100644 index 00000000..8a452cc0 --- /dev/null +++ b/src/Normalizer/DeleteLoadBalancer200ResponseLoadBalancerNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('api_reference', $data)) { + $object->setApiReference($data['api_reference']); + unset($data['api_reference']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('apiReference') && null !== $object->getApiReference()) { + $data['api_reference'] = $object->getApiReference(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteLoadBalancer200ResponseLoadBalancer' => false]; + } +} diff --git a/src/Normalizer/DeleteLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRuleNormalizer.php b/src/Normalizer/DeleteLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRuleNormalizer.php new file mode 100644 index 00000000..0a38d6a7 --- /dev/null +++ b/src/Normalizer/DeleteLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRuleNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule' => false]; + } +} diff --git a/src/Normalizer/DeleteSecurityGroup200ResponseSecurityGroupNormalizer.php b/src/Normalizer/DeleteSecurityGroup200ResponseSecurityGroupNormalizer.php new file mode 100644 index 00000000..78cdb3a0 --- /dev/null +++ b/src/Normalizer/DeleteSecurityGroup200ResponseSecurityGroupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteSecurityGroup200ResponseSecurityGroup' => false]; + } +} diff --git a/src/Normalizer/DeleteSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRuleNormalizer.php b/src/Normalizer/DeleteSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRuleNormalizer.php new file mode 100644 index 00000000..372b67e6 --- /dev/null +++ b/src/Normalizer/DeleteSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRuleNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachine200ResponseVirtualMachineNormalizer.php b/src/Normalizer/DeleteVirtualMachine200ResponseVirtualMachineNormalizer.php new file mode 100644 index 00000000..5116fd47 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachine200ResponseVirtualMachineNormalizer.php @@ -0,0 +1,252 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('initial_root_password', $data)) { + $object->setInitialRootPassword($data['initial_root_password']); + unset($data['initial_root_password']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('zone', $data)) { + $object->setZone($this->denormalizer->denormalize($data['zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartZone', 'json', $context)); + unset($data['zone']); + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartOrganization', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('group', $data)) { + $object->setGroup($this->denormalizer->denormalize($data['group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGroup', 'json', $context)); + unset($data['group']); + } + if (\array_key_exists('package', $data)) { + $object->setPackage($this->denormalizer->denormalize($data['package'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartPackage', 'json', $context)); + unset($data['package']); + } + if (\array_key_exists('attached_iso', $data)) { + $object->setAttachedIso($this->denormalizer->denormalize($data['attached_iso'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartAttachedISO', 'json', $context)); + unset($data['attached_iso']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('gpu_type', $data)) { + $object->setGpuType($this->denormalizer->denormalize($data['gpu_type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGPUType', 'json', $context)); + unset($data['gpu_type']); + } + if (\array_key_exists('gpus', $data)) { + $values = []; + foreach ($data['gpus'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGPUs', 'json', $context); + } + $object->setGpus($values); + unset($data['gpus']); + } + if (\array_key_exists('tags', $data)) { + $values_1 = []; + foreach ($data['tags'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartTags', 'json', $context); + } + $object->setTags($values_1); + unset($data['tags']); + } + if (\array_key_exists('tag_names', $data)) { + $values_2 = []; + foreach ($data['tag_names'] as $value_2) { + $values_2[] = $value_2; + } + $object->setTagNames($values_2); + unset($data['tag_names']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values_3 = []; + foreach ($data['ip_addresses'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values_3); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_4; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('initialRootPassword') && null !== $object->getInitialRootPassword()) { + $data['initial_root_password'] = $object->getInitialRootPassword(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('zone') && null !== $object->getZone()) { + $data['zone'] = $this->normalizer->normalize($object->getZone(), 'json', $context); + } + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + } + if ($object->isInitialized('group') && null !== $object->getGroup()) { + $data['group'] = $this->normalizer->normalize($object->getGroup(), 'json', $context); + } + if ($object->isInitialized('package') && null !== $object->getPackage()) { + $data['package'] = $this->normalizer->normalize($object->getPackage(), 'json', $context); + } + if ($object->isInitialized('attachedIso') && null !== $object->getAttachedIso()) { + $data['attached_iso'] = $this->normalizer->normalize($object->getAttachedIso(), 'json', $context); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('gpuType') && null !== $object->getGpuType()) { + $data['gpu_type'] = $this->normalizer->normalize($object->getGpuType(), 'json', $context); + } + if ($object->isInitialized('gpus') && null !== $object->getGpus()) { + $values = []; + foreach ($object->getGpus() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['gpus'] = $values; + } + if ($object->isInitialized('tags') && null !== $object->getTags()) { + $values_1 = []; + foreach ($object->getTags() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['tags'] = $values_1; + } + if ($object->isInitialized('tagNames') && null !== $object->getTagNames()) { + $values_2 = []; + foreach ($object->getTagNames() as $value_2) { + $values_2[] = $value_2; + } + $data['tag_names'] = $values_2; + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values_3 = []; + foreach ($object->getIpAddresses() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['ip_addresses'] = $values_3; + } + foreach ($object as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_4; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachine200ResponseVirtualMachine' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartAttachedISONormalizer.php b/src/Normalizer/DeleteVirtualMachinePartAttachedISONormalizer.php new file mode 100644 index 00000000..3040ad24 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartAttachedISONormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('operating_system', $data)) { + $object->setOperatingSystem($this->denormalizer->denormalize($data['operating_system'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartOperatingSystem', 'json', $context)); + unset($data['operating_system']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('operatingSystem') && null !== $object->getOperatingSystem()) { + $data['operating_system'] = $this->normalizer->normalize($object->getOperatingSystem(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartAttachedISO' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartBadgeNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartBadgeNormalizer.php new file mode 100644 index 00000000..cb4c3448 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartBadgeNormalizer.php @@ -0,0 +1,122 @@ +setUrl($data['url']); + unset($data['url']); + } + if (\array_key_exists('file_name', $data)) { + $object->setFileName($data['file_name']); + unset($data['file_name']); + } + if (\array_key_exists('file_type', $data)) { + $object->setFileType($data['file_type']); + unset($data['file_type']); + } + if (\array_key_exists('file_size', $data)) { + $object->setFileSize($data['file_size']); + unset($data['file_size']); + } + if (\array_key_exists('digest', $data)) { + $object->setDigest($data['digest']); + unset($data['digest']); + } + if (\array_key_exists('token', $data)) { + $object->setToken($data['token']); + unset($data['token']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + if ($object->isInitialized('fileName') && null !== $object->getFileName()) { + $data['file_name'] = $object->getFileName(); + } + if ($object->isInitialized('fileType') && null !== $object->getFileType()) { + $data['file_type'] = $object->getFileType(); + } + if ($object->isInitialized('fileSize') && null !== $object->getFileSize()) { + $data['file_size'] = $object->getFileSize(); + } + if ($object->isInitialized('digest') && null !== $object->getDigest()) { + $data['digest'] = $object->getDigest(); + } + if ($object->isInitialized('token') && null !== $object->getToken()) { + $data['token'] = $object->getToken(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartBadge' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartCountryNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartCountryNormalizer.php new file mode 100644 index 00000000..0a5c8178 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartCountryNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('iso_code2', $data)) { + $object->setIsoCode2($data['iso_code2']); + unset($data['iso_code2']); + } + if (\array_key_exists('iso_code3', $data)) { + $object->setIsoCode3($data['iso_code3']); + unset($data['iso_code3']); + } + if (\array_key_exists('time_zone', $data)) { + $object->setTimeZone($data['time_zone']); + unset($data['time_zone']); + } + if (\array_key_exists('eu', $data)) { + $object->setEu($data['eu']); + unset($data['eu']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('isoCode2') && null !== $object->getIsoCode2()) { + $data['iso_code2'] = $object->getIsoCode2(); + } + if ($object->isInitialized('isoCode3') && null !== $object->getIsoCode3()) { + $data['iso_code3'] = $object->getIsoCode3(); + } + if ($object->isInitialized('timeZone') && null !== $object->getTimeZone()) { + $data['time_zone'] = $object->getTimeZone(); + } + if ($object->isInitialized('eu') && null !== $object->getEu()) { + $data['eu'] = $object->getEu(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCountry' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartCountryStateNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartCountryStateNormalizer.php new file mode 100644 index 00000000..dae14eda --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartCountryStateNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCountry', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCountryState' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartCurrencyNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartCurrencyNormalizer.php new file mode 100644 index 00000000..5bca102f --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartCurrencyNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('iso_code', $data)) { + $object->setIsoCode($data['iso_code']); + unset($data['iso_code']); + } + if (\array_key_exists('symbol', $data)) { + $object->setSymbol($data['symbol']); + unset($data['symbol']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('isoCode') && null !== $object->getIsoCode()) { + $data['iso_code'] = $object->getIsoCode(); + } + if ($object->isInitialized('symbol') && null !== $object->getSymbol()) { + $data['symbol'] = $object->getSymbol(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCurrency' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartDataCenterNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartDataCenterNormalizer.php new file mode 100644 index 00000000..cb25236e --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartDataCenterNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCountry', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartDataCenter' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartGPUTypeNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartGPUTypeNormalizer.php new file mode 100644 index 00000000..158ec786 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartGPUTypeNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('manufacturer', $data)) { + $object->setManufacturer($data['manufacturer']); + unset($data['manufacturer']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('memory_type', $data)) { + $object->setMemoryType($data['memory_type']); + unset($data['memory_type']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('manufacturer') && null !== $object->getManufacturer()) { + $data['manufacturer'] = $object->getManufacturer(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('memoryType') && null !== $object->getMemoryType()) { + $data['memory_type'] = $object->getMemoryType(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGPUType' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartGPUsNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartGPUsNormalizer.php new file mode 100644 index 00000000..80c9813e --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartGPUsNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + if (\array_key_exists('pending_action', $data)) { + $object->setPendingAction($data['pending_action']); + unset($data['pending_action']); + } + if (\array_key_exists('available', $data)) { + $object->setAvailable($data['available']); + unset($data['available']); + } + if (\array_key_exists('type', $data)) { + $object->setType($this->denormalizer->denormalize($data['type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartType', 'json', $context)); + unset($data['type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + if ($object->isInitialized('pendingAction') && null !== $object->getPendingAction()) { + $data['pending_action'] = $object->getPendingAction(); + } + if ($object->isInitialized('available') && null !== $object->getAvailable()) { + $data['available'] = $object->getAvailable(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $this->normalizer->normalize($object->getType(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGPUs' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartGroupNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartGroupNormalizer.php new file mode 100644 index 00000000..7c2f0b46 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartGroupNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('segregate', $data)) { + $object->setSegregate($data['segregate']); + unset($data['segregate']); + } + if (\array_key_exists('auto_segregate', $data)) { + $object->setAutoSegregate($data['auto_segregate']); + unset($data['auto_segregate']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('segregate') && null !== $object->getSegregate()) { + $data['segregate'] = $object->getSegregate(); + } + if ($object->isInitialized('autoSegregate') && null !== $object->getAutoSegregate()) { + $data['auto_segregate'] = $object->getAutoSegregate(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGroup' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartIPAddressesNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartIPAddressesNormalizer.php new file mode 100644 index 00000000..ea87b3f5 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartIPAddressesNormalizer.php @@ -0,0 +1,143 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + if (\array_key_exists('reverse_dns', $data)) { + $object->setReverseDns($data['reverse_dns']); + unset($data['reverse_dns']); + } + if (\array_key_exists('vip', $data)) { + $object->setVip($data['vip']); + unset($data['vip']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('address_with_mask', $data)) { + $object->setAddressWithMask($data['address_with_mask']); + unset($data['address_with_mask']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartNetwork', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('allocation_id', $data)) { + $object->setAllocationId($data['allocation_id']); + unset($data['allocation_id']); + } + if (\array_key_exists('allocation_type', $data)) { + $object->setAllocationType($data['allocation_type']); + unset($data['allocation_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + if ($object->isInitialized('reverseDns') && null !== $object->getReverseDns()) { + $data['reverse_dns'] = $object->getReverseDns(); + } + if ($object->isInitialized('vip') && null !== $object->getVip()) { + $data['vip'] = $object->getVip(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('addressWithMask') && null !== $object->getAddressWithMask()) { + $data['address_with_mask'] = $object->getAddressWithMask(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('allocationId') && null !== $object->getAllocationId()) { + $data['allocation_id'] = $object->getAllocationId(); + } + if ($object->isInitialized('allocationType') && null !== $object->getAllocationType()) { + $data['allocation_type'] = $object->getAllocationType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartIPAddresses' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartIconNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartIconNormalizer.php new file mode 100644 index 00000000..244ae72b --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartIconNormalizer.php @@ -0,0 +1,122 @@ +setUrl($data['url']); + unset($data['url']); + } + if (\array_key_exists('file_name', $data)) { + $object->setFileName($data['file_name']); + unset($data['file_name']); + } + if (\array_key_exists('file_type', $data)) { + $object->setFileType($data['file_type']); + unset($data['file_type']); + } + if (\array_key_exists('file_size', $data)) { + $object->setFileSize($data['file_size']); + unset($data['file_size']); + } + if (\array_key_exists('digest', $data)) { + $object->setDigest($data['digest']); + unset($data['digest']); + } + if (\array_key_exists('token', $data)) { + $object->setToken($data['token']); + unset($data['token']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + if ($object->isInitialized('fileName') && null !== $object->getFileName()) { + $data['file_name'] = $object->getFileName(); + } + if ($object->isInitialized('fileType') && null !== $object->getFileType()) { + $data['file_type'] = $object->getFileType(); + } + if ($object->isInitialized('fileSize') && null !== $object->getFileSize()) { + $data['file_size'] = $object->getFileSize(); + } + if ($object->isInitialized('digest') && null !== $object->getDigest()) { + $data['digest'] = $object->getDigest(); + } + if ($object->isInitialized('token') && null !== $object->getToken()) { + $data['token'] = $object->getToken(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartIcon' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartNetworkNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartNetworkNormalizer.php new file mode 100644 index 00000000..e00271a1 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartNetworkNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartNetwork' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartOperatingSystemNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartOperatingSystemNormalizer.php new file mode 100644 index 00000000..77d33b0f --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartOperatingSystemNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('badge', $data)) { + $object->setBadge($this->denormalizer->denormalize($data['badge'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartBadge', 'json', $context)); + unset($data['badge']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('badge') && null !== $object->getBadge()) { + $data['badge'] = $this->normalizer->normalize($object->getBadge(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartOperatingSystem' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartOrganizationNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartOrganizationNormalizer.php new file mode 100644 index 00000000..18efdc49 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartOrganizationNormalizer.php @@ -0,0 +1,206 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('sub_domain', $data)) { + $object->setSubDomain($data['sub_domain']); + unset($data['sub_domain']); + } + if (\array_key_exists('infrastructure_domain', $data)) { + $object->setInfrastructureDomain($data['infrastructure_domain']); + unset($data['infrastructure_domain']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('suspended', $data)) { + $object->setSuspended($data['suspended']); + unset($data['suspended']); + } + if (\array_key_exists('managed', $data)) { + $object->setManaged($data['managed']); + unset($data['managed']); + } + if (\array_key_exists('billing_name', $data)) { + $object->setBillingName($data['billing_name']); + unset($data['billing_name']); + } + if (\array_key_exists('address1', $data)) { + $object->setAddress1($data['address1']); + unset($data['address1']); + } + if (\array_key_exists('address2', $data)) { + $object->setAddress2($data['address2']); + unset($data['address2']); + } + if (\array_key_exists('address3', $data)) { + $object->setAddress3($data['address3']); + unset($data['address3']); + } + if (\array_key_exists('address4', $data)) { + $object->setAddress4($data['address4']); + unset($data['address4']); + } + if (\array_key_exists('postcode', $data)) { + $object->setPostcode($data['postcode']); + unset($data['postcode']); + } + if (\array_key_exists('vat_number', $data)) { + $object->setVatNumber($data['vat_number']); + unset($data['vat_number']); + } + if (\array_key_exists('phone_number', $data)) { + $object->setPhoneNumber($data['phone_number']); + unset($data['phone_number']); + } + if (\array_key_exists('currency', $data)) { + $object->setCurrency($this->denormalizer->denormalize($data['currency'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCurrency', 'json', $context)); + unset($data['currency']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCountry', 'json', $context)); + unset($data['country']); + } + if (\array_key_exists('country_state', $data)) { + $object->setCountryState($this->denormalizer->denormalize($data['country_state'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCountryState', 'json', $context)); + unset($data['country_state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('subDomain') && null !== $object->getSubDomain()) { + $data['sub_domain'] = $object->getSubDomain(); + } + if ($object->isInitialized('infrastructureDomain') && null !== $object->getInfrastructureDomain()) { + $data['infrastructure_domain'] = $object->getInfrastructureDomain(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('suspended') && null !== $object->getSuspended()) { + $data['suspended'] = $object->getSuspended(); + } + if ($object->isInitialized('managed') && null !== $object->getManaged()) { + $data['managed'] = $object->getManaged(); + } + if ($object->isInitialized('billingName') && null !== $object->getBillingName()) { + $data['billing_name'] = $object->getBillingName(); + } + if ($object->isInitialized('address1') && null !== $object->getAddress1()) { + $data['address1'] = $object->getAddress1(); + } + if ($object->isInitialized('address2') && null !== $object->getAddress2()) { + $data['address2'] = $object->getAddress2(); + } + if ($object->isInitialized('address3') && null !== $object->getAddress3()) { + $data['address3'] = $object->getAddress3(); + } + if ($object->isInitialized('address4') && null !== $object->getAddress4()) { + $data['address4'] = $object->getAddress4(); + } + if ($object->isInitialized('postcode') && null !== $object->getPostcode()) { + $data['postcode'] = $object->getPostcode(); + } + if ($object->isInitialized('vatNumber') && null !== $object->getVatNumber()) { + $data['vat_number'] = $object->getVatNumber(); + } + if ($object->isInitialized('phoneNumber') && null !== $object->getPhoneNumber()) { + $data['phone_number'] = $object->getPhoneNumber(); + } + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { + $data['currency'] = $this->normalizer->normalize($object->getCurrency(), 'json', $context); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + if ($object->isInitialized('countryState') && null !== $object->getCountryState()) { + $data['country_state'] = $this->normalizer->normalize($object->getCountryState(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartOrganization' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartPackageNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartPackageNormalizer.php new file mode 100644 index 00000000..042b1ea3 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartPackageNormalizer.php @@ -0,0 +1,150 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('ipv4_addresses', $data)) { + $object->setIpv4Addresses($data['ipv4_addresses']); + unset($data['ipv4_addresses']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('storage_in_gb', $data)) { + $object->setStorageInGb($data['storage_in_gb']); + unset($data['storage_in_gb']); + } + if (\array_key_exists('monthly_bandwidth_allowance_in_gb', $data)) { + $object->setMonthlyBandwidthAllowanceInGb($data['monthly_bandwidth_allowance_in_gb']); + unset($data['monthly_bandwidth_allowance_in_gb']); + } + if (\array_key_exists('privacy', $data)) { + $object->setPrivacy($data['privacy']); + unset($data['privacy']); + } + if (\array_key_exists('icon', $data)) { + $object->setIcon($this->denormalizer->denormalize($data['icon'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartIcon', 'json', $context)); + unset($data['icon']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('ipv4Addresses') && null !== $object->getIpv4Addresses()) { + $data['ipv4_addresses'] = $object->getIpv4Addresses(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('storageInGb') && null !== $object->getStorageInGb()) { + $data['storage_in_gb'] = $object->getStorageInGb(); + } + if ($object->isInitialized('monthlyBandwidthAllowanceInGb') && null !== $object->getMonthlyBandwidthAllowanceInGb()) { + $data['monthly_bandwidth_allowance_in_gb'] = $object->getMonthlyBandwidthAllowanceInGb(); + } + if ($object->isInitialized('privacy') && null !== $object->getPrivacy()) { + $data['privacy'] = $object->getPrivacy(); + } + if ($object->isInitialized('icon') && null !== $object->getIcon()) { + $data['icon'] = $this->normalizer->normalize($object->getIcon(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartPackage' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartTagsNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartTagsNormalizer.php new file mode 100644 index 00000000..79ec3097 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartTagsNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('color', $data)) { + $object->setColor($data['color']); + unset($data['color']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('color') && null !== $object->getColor()) { + $data['color'] = $object->getColor(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartTags' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartTypeNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartTypeNormalizer.php new file mode 100644 index 00000000..fdca79e0 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartTypeNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('manufacturer', $data)) { + $object->setManufacturer($data['manufacturer']); + unset($data['manufacturer']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('memory_type', $data)) { + $object->setMemoryType($data['memory_type']); + unset($data['memory_type']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('manufacturer') && null !== $object->getManufacturer()) { + $data['manufacturer'] = $object->getManufacturer(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('memoryType') && null !== $object->getMemoryType()) { + $data['memory_type'] = $object->getMemoryType(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartType' => false]; + } +} diff --git a/src/Normalizer/DeleteVirtualMachinePartZoneNormalizer.php b/src/Normalizer/DeleteVirtualMachinePartZoneNormalizer.php new file mode 100644 index 00000000..d728a563 --- /dev/null +++ b/src/Normalizer/DeleteVirtualMachinePartZoneNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartZone' => false]; + } +} diff --git a/src/Normalizer/DeletionRestrictedNormalizer.php b/src/Normalizer/DeletionRestrictedNormalizer.php new file mode 100644 index 00000000..3c2578c0 --- /dev/null +++ b/src/Normalizer/DeletionRestrictedNormalizer.php @@ -0,0 +1,95 @@ +setErrors($values); + unset($data['errors']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('errors') && null !== $object->getErrors()) { + $values = []; + foreach ($object->getErrors() as $value) { + $values[] = $value; + } + $data['errors'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DeletionRestricted' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyDeleteBodyNormalizer.php b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyDeleteBodyNormalizer.php new file mode 100644 index 00000000..8bf36111 --- /dev/null +++ b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setDiskBackupPolicy($this->denormalizer->denormalize($data['disk_backup_policy'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyLookup', 'json', $context)); + unset($data['disk_backup_policy']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_backup_policy'] = $this->normalizer->normalize($object->getDiskBackupPolicy(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyDeleteBody' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicyNormalizer.php b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicyNormalizer.php new file mode 100644 index 00000000..26a5db9d --- /dev/null +++ b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicyNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicy' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyDeleteResponse200Normalizer.php b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyDeleteResponse200Normalizer.php new file mode 100644 index 00000000..49dcecdd --- /dev/null +++ b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyDeleteResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDiskBackupPolicy($this->denormalizer->denormalize($data['disk_backup_policy'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicy', 'json', $context)); + unset($data['disk_backup_policy']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_backup_policy'] = $this->normalizer->normalize($object->getDiskBackupPolicy(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicyNormalizer.php b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicyNormalizer.php new file mode 100644 index 00000000..152407d6 --- /dev/null +++ b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicyNormalizer.php @@ -0,0 +1,125 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('retention', $data)) { + $object->setRetention($data['retention']); + unset($data['retention']); + } + if (\array_key_exists('total_size', $data)) { + $object->setTotalSize($data['total_size']); + unset($data['total_size']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskBackupPolicyPartSchedule', 'json', $context)); + unset($data['schedule']); + } + if (\array_key_exists('auto_move_to_trash_at', $data)) { + $object->setAutoMoveToTrashAt($data['auto_move_to_trash_at']); + unset($data['auto_move_to_trash_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('retention') && null !== $object->getRetention()) { + $data['retention'] = $object->getRetention(); + } + if ($object->isInitialized('totalSize') && null !== $object->getTotalSize()) { + $data['total_size'] = $object->getTotalSize(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + if ($object->isInitialized('autoMoveToTrashAt') && null !== $object->getAutoMoveToTrashAt()) { + $data['auto_move_to_trash_at'] = $object->getAutoMoveToTrashAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicy' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyGetResponse200Normalizer.php b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyGetResponse200Normalizer.php new file mode 100644 index 00000000..3ba2d287 --- /dev/null +++ b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDiskBackupPolicy($this->denormalizer->denormalize($data['disk_backup_policy'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicy', 'json', $context)); + unset($data['disk_backup_policy']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_backup_policy'] = $this->normalizer->normalize($object->getDiskBackupPolicy(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyPatchBodyNormalizer.php b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyPatchBodyNormalizer.php new file mode 100644 index 00000000..bab1abab --- /dev/null +++ b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyPatchBodyNormalizer.php @@ -0,0 +1,90 @@ +setDiskBackupPolicy($this->denormalizer->denormalize($data['disk_backup_policy'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyLookup', 'json', $context)); + unset($data['disk_backup_policy']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_backup_policy'] = $this->normalizer->normalize($object->getDiskBackupPolicy(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyPatchBody' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicyNormalizer.php b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicyNormalizer.php new file mode 100644 index 00000000..8fe95d8c --- /dev/null +++ b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicyNormalizer.php @@ -0,0 +1,116 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('retention', $data)) { + $object->setRetention($data['retention']); + unset($data['retention']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('schedule', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['schedule'] as $key => $value) { + $values[$key] = $value; + } + $object->setSchedule($values); + unset($data['schedule']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('retention') && null !== $object->getRetention()) { + $data['retention'] = $object->getRetention(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $values = []; + foreach ($object->getSchedule() as $key => $value) { + $values[$key] = $value; + } + $data['schedule'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicy' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyPatchResponse200Normalizer.php b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyPatchResponse200Normalizer.php new file mode 100644 index 00000000..184f804f --- /dev/null +++ b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyPatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDiskBackupPolicy($this->denormalizer->denormalize($data['disk_backup_policy'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicy', 'json', $context)); + unset($data['disk_backup_policy']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_backup_policy'] = $this->normalizer->normalize($object->getDiskBackupPolicy(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyPatchResponse200' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBodyNormalizer.php b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBodyNormalizer.php new file mode 100644 index 00000000..65a71d49 --- /dev/null +++ b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBodyNormalizer.php @@ -0,0 +1,90 @@ +setDiskBackupPolicy($this->denormalizer->denormalize($data['disk_backup_policy'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyLookup', 'json', $context)); + unset($data['disk_backup_policy']); + } + if (\array_key_exists('timestamp', $data)) { + $object->setTimestamp($data['timestamp']); + unset($data['timestamp']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_backup_policy'] = $this->normalizer->normalize($object->getDiskBackupPolicy(), 'json', $context); + $data['timestamp'] = $object->getTimestamp(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBody' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicyNormalizer.php b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicyNormalizer.php new file mode 100644 index 00000000..e71d1757 --- /dev/null +++ b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicyNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('auto_move_to_trash_at', $data)) { + $object->setAutoMoveToTrashAt($data['auto_move_to_trash_at']); + unset($data['auto_move_to_trash_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('autoMoveToTrashAt') && null !== $object->getAutoMoveToTrashAt()) { + $data['auto_move_to_trash_at'] = $object->getAutoMoveToTrashAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicy' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200Normalizer.php b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200Normalizer.php new file mode 100644 index 00000000..56fa899a --- /dev/null +++ b/src/Normalizer/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDiskBackupPolicy($this->denormalizer->denormalize($data['disk_backup_policy'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicy', 'json', $context)); + unset($data['disk_backup_policy']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_backup_policy'] = $this->normalizer->normalize($object->getDiskBackupPolicy(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPolicyArgumentsNormalizer.php b/src/Normalizer/DiskBackupPolicyArgumentsNormalizer.php new file mode 100644 index 00000000..fd0f3d30 --- /dev/null +++ b/src/Normalizer/DiskBackupPolicyArgumentsNormalizer.php @@ -0,0 +1,94 @@ +setRetention($data['retention']); + unset($data['retention']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\ScheduleArguments', 'json', $context)); + unset($data['schedule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('retention') && null !== $object->getRetention()) { + $data['retention'] = $object->getRetention(); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyArguments' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPolicyLookupNormalizer.php b/src/Normalizer/DiskBackupPolicyLookupNormalizer.php new file mode 100644 index 00000000..10cae4b8 --- /dev/null +++ b/src/Normalizer/DiskBackupPolicyLookupNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyLookup' => false]; + } +} diff --git a/src/Normalizer/DiskBackupPolicyTargetNormalizer.php b/src/Normalizer/DiskBackupPolicyTargetNormalizer.php new file mode 100644 index 00000000..bfb94665 --- /dev/null +++ b/src/Normalizer/DiskBackupPolicyTargetNormalizer.php @@ -0,0 +1,87 @@ +setTarget($data['target']); + unset($data['target']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $object->getTarget(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget' => false]; + } +} diff --git a/src/Normalizer/DiskIOProfileNormalizer.php b/src/Normalizer/DiskIOProfileNormalizer.php new file mode 100644 index 00000000..896a995f --- /dev/null +++ b/src/Normalizer/DiskIOProfileNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('speed_in_mb', $data)) { + $object->setSpeedInMb($data['speed_in_mb']); + unset($data['speed_in_mb']); + } + if (\array_key_exists('iops', $data)) { + $object->setIops($data['iops']); + unset($data['iops']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('speedInMb') && null !== $object->getSpeedInMb()) { + $data['speed_in_mb'] = $object->getSpeedInMb(); + } + if ($object->isInitialized('iops') && null !== $object->getIops()) { + $data['iops'] = $object->getIops(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskIOProfile' => false]; + } +} diff --git a/src/Normalizer/DiskInstallationAttributeNormalizer.php b/src/Normalizer/DiskInstallationAttributeNormalizer.php new file mode 100644 index 00000000..227f9603 --- /dev/null +++ b/src/Normalizer/DiskInstallationAttributeNormalizer.php @@ -0,0 +1,115 @@ +setKey($data['key']); + unset($data['key']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('value', $data)) { + $object->setValue($data['value']); + unset($data['value']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('protect', $data)) { + $object->setProtect($data['protect']); + unset($data['protect']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('key') && null !== $object->getKey()) { + $data['key'] = $object->getKey(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('value') && null !== $object->getValue()) { + $data['value'] = $object->getValue(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('protect') && null !== $object->getProtect()) { + $data['protect'] = $object->getProtect(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskInstallationAttribute' => false]; + } +} diff --git a/src/Normalizer/DiskInstallationNormalizer.php b/src/Normalizer/DiskInstallationNormalizer.php new file mode 100644 index 00000000..cfb624ab --- /dev/null +++ b/src/Normalizer/DiskInstallationNormalizer.php @@ -0,0 +1,109 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('disk_template_version', $data)) { + $object->setDiskTemplateVersion($this->denormalizer->denormalize($data['disk_template_version'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersion', 'json', $context)); + unset($data['disk_template_version']); + } + if (\array_key_exists('attributes', $data)) { + $values = []; + foreach ($data['attributes'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskInstallationAttribute', 'json', $context); + } + $object->setAttributes($values); + unset($data['attributes']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('diskTemplateVersion') && null !== $object->getDiskTemplateVersion()) { + $data['disk_template_version'] = $this->normalizer->normalize($object->getDiskTemplateVersion(), 'json', $context); + } + if ($object->isInitialized('attributes') && null !== $object->getAttributes()) { + $values = []; + foreach ($object->getAttributes() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['attributes'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskInstallation' => false]; + } +} diff --git a/src/Normalizer/DiskLookupNormalizer.php b/src/Normalizer/DiskLookupNormalizer.php new file mode 100644 index 00000000..57734b68 --- /dev/null +++ b/src/Normalizer/DiskLookupNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskLookup' => false]; + } +} diff --git a/src/Normalizer/DiskNormalizer.php b/src/Normalizer/DiskNormalizer.php new file mode 100644 index 00000000..cd2f3b6a --- /dev/null +++ b/src/Normalizer/DiskNormalizer.php @@ -0,0 +1,150 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('size_in_gb', $data)) { + $object->setSizeInGb($data['size_in_gb']); + unset($data['size_in_gb']); + } + if (\array_key_exists('wwn', $data)) { + $object->setWwn($data['wwn']); + unset($data['wwn']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('storage_speed', $data)) { + $object->setStorageSpeed($data['storage_speed']); + unset($data['storage_speed']); + } + if (\array_key_exists('io_profile', $data)) { + $object->setIoProfile($this->denormalizer->denormalize($data['io_profile'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskIOProfile', 'json', $context)); + unset($data['io_profile']); + } + if (\array_key_exists('virtual_machine_disk', $data)) { + $object->setVirtualMachineDisk($this->denormalizer->denormalize($data['virtual_machine_disk'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineDisk', 'json', $context)); + unset($data['virtual_machine_disk']); + } + if (\array_key_exists('installation', $data)) { + $object->setInstallation($this->denormalizer->denormalize($data['installation'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskInstallation', 'json', $context)); + unset($data['installation']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('sizeInGb') && null !== $object->getSizeInGb()) { + $data['size_in_gb'] = $object->getSizeInGb(); + } + if ($object->isInitialized('wwn') && null !== $object->getWwn()) { + $data['wwn'] = $object->getWwn(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('storageSpeed') && null !== $object->getStorageSpeed()) { + $data['storage_speed'] = $object->getStorageSpeed(); + } + if ($object->isInitialized('ioProfile') && null !== $object->getIoProfile()) { + $data['io_profile'] = $this->normalizer->normalize($object->getIoProfile(), 'json', $context); + } + if ($object->isInitialized('virtualMachineDisk') && null !== $object->getVirtualMachineDisk()) { + $data['virtual_machine_disk'] = $this->normalizer->normalize($object->getVirtualMachineDisk(), 'json', $context); + } + if ($object->isInitialized('installation') && null !== $object->getInstallation()) { + $data['installation'] = $this->normalizer->normalize($object->getInstallation(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\Disk' => false]; + } +} diff --git a/src/Normalizer/DiskTemplateLookupNormalizer.php b/src/Normalizer/DiskTemplateLookupNormalizer.php new file mode 100644 index 00000000..3571851d --- /dev/null +++ b/src/Normalizer/DiskTemplateLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateLookup' => false]; + } +} diff --git a/src/Normalizer/DiskTemplateNormalizer.php b/src/Normalizer/DiskTemplateNormalizer.php new file mode 100644 index 00000000..7037e753 --- /dev/null +++ b/src/Normalizer/DiskTemplateNormalizer.php @@ -0,0 +1,129 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('universal', $data)) { + $object->setUniversal($data['universal']); + unset($data['universal']); + } + if (\array_key_exists('latest_version', $data)) { + $object->setLatestVersion($this->denormalizer->denormalize($data['latest_version'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersion', 'json', $context)); + unset($data['latest_version']); + } + if (\array_key_exists('operating_system', $data)) { + $object->setOperatingSystem($this->denormalizer->denormalize($data['operating_system'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystem', 'json', $context)); + unset($data['operating_system']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('universal') && null !== $object->getUniversal()) { + $data['universal'] = $object->getUniversal(); + } + if ($object->isInitialized('latestVersion') && null !== $object->getLatestVersion()) { + $data['latest_version'] = $this->normalizer->normalize($object->getLatestVersion(), 'json', $context); + } + if ($object->isInitialized('operatingSystem') && null !== $object->getOperatingSystem()) { + $data['operating_system'] = $this->normalizer->normalize($object->getOperatingSystem(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplate' => false]; + } +} diff --git a/src/Normalizer/DiskTemplateNotFoundSchemaNormalizer.php b/src/Normalizer/DiskTemplateNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..842eb799 --- /dev/null +++ b/src/Normalizer/DiskTemplateNotFoundSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateNotFoundSchema' => false]; + } +} diff --git a/src/Normalizer/DiskTemplateVersionNormalizer.php b/src/Normalizer/DiskTemplateVersionNormalizer.php new file mode 100644 index 00000000..06ac32a3 --- /dev/null +++ b/src/Normalizer/DiskTemplateVersionNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('number', $data)) { + $object->setNumber($data['number']); + unset($data['number']); + } + if (\array_key_exists('stable', $data)) { + $object->setStable($data['stable']); + unset($data['stable']); + } + if (\array_key_exists('size_in_gb', $data)) { + $object->setSizeInGb($data['size_in_gb']); + unset($data['size_in_gb']); + } + if (\array_key_exists('disk_template', $data)) { + $object->setDiskTemplate($this->denormalizer->denormalize($data['disk_template'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplate', 'json', $context)); + unset($data['disk_template']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('number') && null !== $object->getNumber()) { + $data['number'] = $object->getNumber(); + } + if ($object->isInitialized('stable') && null !== $object->getStable()) { + $data['stable'] = $object->getStable(); + } + if ($object->isInitialized('sizeInGb') && null !== $object->getSizeInGb()) { + $data['size_in_gb'] = $object->getSizeInGb(); + } + if ($object->isInitialized('diskTemplate') && null !== $object->getDiskTemplate()) { + $data['disk_template'] = $this->normalizer->normalize($object->getDiskTemplate(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersion' => false]; + } +} diff --git a/src/Normalizer/DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersionNormalizer.php b/src/Normalizer/DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersionNormalizer.php new file mode 100644 index 00000000..328ac1d6 --- /dev/null +++ b/src/Normalizer/DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersionNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('number', $data)) { + $object->setNumber($data['number']); + unset($data['number']); + } + if (\array_key_exists('stable', $data)) { + $object->setStable($data['stable']); + unset($data['stable']); + } + if (\array_key_exists('size_in_gb', $data)) { + $object->setSizeInGb($data['size_in_gb']); + unset($data['size_in_gb']); + } + if (\array_key_exists('disk_template', $data)) { + $object->setDiskTemplate($this->denormalizer->denormalize($data['disk_template'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionPartDiskTemplate', 'json', $context)); + unset($data['disk_template']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('number') && null !== $object->getNumber()) { + $data['number'] = $object->getNumber(); + } + if ($object->isInitialized('stable') && null !== $object->getStable()) { + $data['stable'] = $object->getStable(); + } + if ($object->isInitialized('sizeInGb') && null !== $object->getSizeInGb()) { + $data['size_in_gb'] = $object->getSizeInGb(); + } + if ($object->isInitialized('diskTemplate') && null !== $object->getDiskTemplate()) { + $data['disk_template'] = $this->normalizer->normalize($object->getDiskTemplate(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersion' => false]; + } +} diff --git a/src/Normalizer/DiskTemplateVersionsDiskTemplateVersionGetResponse200Normalizer.php b/src/Normalizer/DiskTemplateVersionsDiskTemplateVersionGetResponse200Normalizer.php new file mode 100644 index 00000000..4264e0b0 --- /dev/null +++ b/src/Normalizer/DiskTemplateVersionsDiskTemplateVersionGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDiskTemplateVersion($this->denormalizer->denormalize($data['disk_template_version'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersion', 'json', $context)); + unset($data['disk_template_version']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_template_version'] = $this->normalizer->normalize($object->getDiskTemplateVersion(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersionNormalizer.php b/src/Normalizer/DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersionNormalizer.php new file mode 100644 index 00000000..06ed3bc5 --- /dev/null +++ b/src/Normalizer/DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersionNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('number', $data)) { + $object->setNumber($data['number']); + unset($data['number']); + } + if (\array_key_exists('stable', $data)) { + $object->setStable($data['stable']); + unset($data['stable']); + } + if (\array_key_exists('size_in_gb', $data)) { + $object->setSizeInGb($data['size_in_gb']); + unset($data['size_in_gb']); + } + if (\array_key_exists('disk_template', $data)) { + $object->setDiskTemplate($this->denormalizer->denormalize($data['disk_template'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionSpecPartDiskTemplate', 'json', $context)); + unset($data['disk_template']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('number') && null !== $object->getNumber()) { + $data['number'] = $object->getNumber(); + } + if ($object->isInitialized('stable') && null !== $object->getStable()) { + $data['stable'] = $object->getStable(); + } + if ($object->isInitialized('sizeInGb') && null !== $object->getSizeInGb()) { + $data['size_in_gb'] = $object->getSizeInGb(); + } + if ($object->isInitialized('diskTemplate') && null !== $object->getDiskTemplate()) { + $data['disk_template'] = $this->normalizer->normalize($object->getDiskTemplate(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersion' => false]; + } +} diff --git a/src/Normalizer/DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200Normalizer.php b/src/Normalizer/DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200Normalizer.php new file mode 100644 index 00000000..550dccd2 --- /dev/null +++ b/src/Normalizer/DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200Normalizer.php @@ -0,0 +1,90 @@ +setDiskTemplateVersion($this->denormalizer->denormalize($data['disk_template_version'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersion', 'json', $context)); + unset($data['disk_template_version']); + } + if (\array_key_exists('spec', $data)) { + $object->setSpec($data['spec']); + unset($data['spec']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_template_version'] = $this->normalizer->normalize($object->getDiskTemplateVersion(), 'json', $context); + $data['spec'] = $object->getSpec(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DiskTemplatesDiskTemplateGetResponse200DiskTemplateNormalizer.php b/src/Normalizer/DiskTemplatesDiskTemplateGetResponse200DiskTemplateNormalizer.php new file mode 100644 index 00000000..4d9a6f85 --- /dev/null +++ b/src/Normalizer/DiskTemplatesDiskTemplateGetResponse200DiskTemplateNormalizer.php @@ -0,0 +1,129 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('universal', $data)) { + $object->setUniversal($data['universal']); + unset($data['universal']); + } + if (\array_key_exists('latest_version', $data)) { + $object->setLatestVersion($this->denormalizer->denormalize($data['latest_version'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartLatestVersion', 'json', $context)); + unset($data['latest_version']); + } + if (\array_key_exists('operating_system', $data)) { + $object->setOperatingSystem($this->denormalizer->denormalize($data['operating_system'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartOperatingSystem', 'json', $context)); + unset($data['operating_system']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('universal') && null !== $object->getUniversal()) { + $data['universal'] = $object->getUniversal(); + } + if ($object->isInitialized('latestVersion') && null !== $object->getLatestVersion()) { + $data['latest_version'] = $this->normalizer->normalize($object->getLatestVersion(), 'json', $context); + } + if ($object->isInitialized('operatingSystem') && null !== $object->getOperatingSystem()) { + $data['operating_system'] = $this->normalizer->normalize($object->getOperatingSystem(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateGetResponse200DiskTemplate' => false]; + } +} diff --git a/src/Normalizer/DiskTemplatesDiskTemplateGetResponse200Normalizer.php b/src/Normalizer/DiskTemplatesDiskTemplateGetResponse200Normalizer.php new file mode 100644 index 00000000..82f44532 --- /dev/null +++ b/src/Normalizer/DiskTemplatesDiskTemplateGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDiskTemplate($this->denormalizer->denormalize($data['disk_template'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateGetResponse200DiskTemplate', 'json', $context)); + unset($data['disk_template']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_template'] = $this->normalizer->normalize($object->getDiskTemplate(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplateNormalizer.php b/src/Normalizer/DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplateNormalizer.php new file mode 100644 index 00000000..429c8ecd --- /dev/null +++ b/src/Normalizer/DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplateNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplate' => false]; + } +} diff --git a/src/Normalizer/DiskTemplatesDiskTemplateVersionsGetResponse200Normalizer.php b/src/Normalizer/DiskTemplatesDiskTemplateVersionsGetResponse200Normalizer.php new file mode 100644 index 00000000..d2639d7f --- /dev/null +++ b/src/Normalizer/DiskTemplatesDiskTemplateVersionsGetResponse200Normalizer.php @@ -0,0 +1,103 @@ +setDiskTemplate($this->denormalizer->denormalize($data['disk_template'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplate', 'json', $context)); + unset($data['disk_template']); + } + if (\array_key_exists('pagination', $data)) { + $object->setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateVersionsGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('disk_template_versions', $data)) { + $values = []; + foreach ($data['disk_template_versions'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersions200ResponseDiskTemplateVersions', 'json', $context); + } + $object->setDiskTemplateVersions($values); + unset($data['disk_template_versions']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_template'] = $this->normalizer->normalize($object->getDiskTemplate(), 'json', $context); + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getDiskTemplateVersions() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['disk_template_versions'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateVersionsGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DiskTemplatesDiskTemplateVersionsGetResponse200PaginationNormalizer.php b/src/Normalizer/DiskTemplatesDiskTemplateVersionsGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..893b5eeb --- /dev/null +++ b/src/Normalizer/DiskTemplatesDiskTemplateVersionsGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateVersionsGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/DisksDiskDiskBackupPoliciesGetResponse200Normalizer.php b/src/Normalizer/DisksDiskDiskBackupPoliciesGetResponse200Normalizer.php new file mode 100644 index 00000000..6b2ac5b1 --- /dev/null +++ b/src/Normalizer/DisksDiskDiskBackupPoliciesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('disk_backup_policies', $data)) { + $values = []; + foreach ($data['disk_backup_policies'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskDiskBackupPolicies200ResponseDiskBackupPolicies', 'json', $context); + } + $object->setDiskBackupPolicies($values); + unset($data['disk_backup_policies']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getDiskBackupPolicies() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['disk_backup_policies'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DisksDiskDiskBackupPoliciesGetResponse200PaginationNormalizer.php b/src/Normalizer/DisksDiskDiskBackupPoliciesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..a9ff395b --- /dev/null +++ b/src/Normalizer/DisksDiskDiskBackupPoliciesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/DisksDiskDiskBackupPoliciesPostBodyNormalizer.php b/src/Normalizer/DisksDiskDiskBackupPoliciesPostBodyNormalizer.php new file mode 100644 index 00000000..04629af4 --- /dev/null +++ b/src/Normalizer/DisksDiskDiskBackupPoliciesPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setDisk($this->denormalizer->denormalize($data['disk'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskLookup', 'json', $context)); + unset($data['disk']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk'] = $this->normalizer->normalize($object->getDisk(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesPostBody' => false]; + } +} diff --git a/src/Normalizer/DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicyNormalizer.php b/src/Normalizer/DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicyNormalizer.php new file mode 100644 index 00000000..e124a62d --- /dev/null +++ b/src/Normalizer/DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicyNormalizer.php @@ -0,0 +1,125 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('retention', $data)) { + $object->setRetention($data['retention']); + unset($data['retention']); + } + if (\array_key_exists('total_size', $data)) { + $object->setTotalSize($data['total_size']); + unset($data['total_size']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostDiskDiskBackupPoliciesPartSchedule', 'json', $context)); + unset($data['schedule']); + } + if (\array_key_exists('auto_move_to_trash_at', $data)) { + $object->setAutoMoveToTrashAt($data['auto_move_to_trash_at']); + unset($data['auto_move_to_trash_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('retention') && null !== $object->getRetention()) { + $data['retention'] = $object->getRetention(); + } + if ($object->isInitialized('totalSize') && null !== $object->getTotalSize()) { + $data['total_size'] = $object->getTotalSize(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + if ($object->isInitialized('autoMoveToTrashAt') && null !== $object->getAutoMoveToTrashAt()) { + $data['auto_move_to_trash_at'] = $object->getAutoMoveToTrashAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicy' => false]; + } +} diff --git a/src/Normalizer/DisksDiskDiskBackupPoliciesPostResponse200Normalizer.php b/src/Normalizer/DisksDiskDiskBackupPoliciesPostResponse200Normalizer.php new file mode 100644 index 00000000..088d01ff --- /dev/null +++ b/src/Normalizer/DisksDiskDiskBackupPoliciesPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDiskBackupPolicy($this->denormalizer->denormalize($data['disk_backup_policy'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicy', 'json', $context)); + unset($data['disk_backup_policy']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_backup_policy'] = $this->normalizer->normalize($object->getDiskBackupPolicy(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesPostResponse200' => false]; + } +} diff --git a/src/Normalizer/DisksDiskGetResponse200DiskNormalizer.php b/src/Normalizer/DisksDiskGetResponse200DiskNormalizer.php new file mode 100644 index 00000000..e7fc2dc7 --- /dev/null +++ b/src/Normalizer/DisksDiskGetResponse200DiskNormalizer.php @@ -0,0 +1,150 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('size_in_gb', $data)) { + $object->setSizeInGb($data['size_in_gb']); + unset($data['size_in_gb']); + } + if (\array_key_exists('wwn', $data)) { + $object->setWwn($data['wwn']); + unset($data['wwn']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('storage_speed', $data)) { + $object->setStorageSpeed($data['storage_speed']); + unset($data['storage_speed']); + } + if (\array_key_exists('io_profile', $data)) { + $object->setIoProfile($this->denormalizer->denormalize($data['io_profile'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartIOProfile', 'json', $context)); + unset($data['io_profile']); + } + if (\array_key_exists('virtual_machine_disk', $data)) { + $object->setVirtualMachineDisk($this->denormalizer->denormalize($data['virtual_machine_disk'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartVirtualMachineDisk', 'json', $context)); + unset($data['virtual_machine_disk']); + } + if (\array_key_exists('installation', $data)) { + $object->setInstallation($this->denormalizer->denormalize($data['installation'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartInstallation', 'json', $context)); + unset($data['installation']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('sizeInGb') && null !== $object->getSizeInGb()) { + $data['size_in_gb'] = $object->getSizeInGb(); + } + if ($object->isInitialized('wwn') && null !== $object->getWwn()) { + $data['wwn'] = $object->getWwn(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('storageSpeed') && null !== $object->getStorageSpeed()) { + $data['storage_speed'] = $object->getStorageSpeed(); + } + if ($object->isInitialized('ioProfile') && null !== $object->getIoProfile()) { + $data['io_profile'] = $this->normalizer->normalize($object->getIoProfile(), 'json', $context); + } + if ($object->isInitialized('virtualMachineDisk') && null !== $object->getVirtualMachineDisk()) { + $data['virtual_machine_disk'] = $this->normalizer->normalize($object->getVirtualMachineDisk(), 'json', $context); + } + if ($object->isInitialized('installation') && null !== $object->getInstallation()) { + $data['installation'] = $this->normalizer->normalize($object->getInstallation(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskGetResponse200Disk' => false]; + } +} diff --git a/src/Normalizer/DisksDiskGetResponse200Normalizer.php b/src/Normalizer/DisksDiskGetResponse200Normalizer.php new file mode 100644 index 00000000..5bae32ba --- /dev/null +++ b/src/Normalizer/DisksDiskGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDisk($this->denormalizer->denormalize($data['disk'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskGetResponse200Disk', 'json', $context)); + unset($data['disk']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk'] = $this->normalizer->normalize($object->getDisk(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DnsRecordsDnsRecordDeleteBodyNormalizer.php b/src/Normalizer/DnsRecordsDnsRecordDeleteBodyNormalizer.php new file mode 100644 index 00000000..a7092b9a --- /dev/null +++ b/src/Normalizer/DnsRecordsDnsRecordDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setDnsRecord($this->denormalizer->denormalize($data['dns_record'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordLookup', 'json', $context)); + unset($data['dns_record']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_record'] = $this->normalizer->normalize($object->getDnsRecord(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordDeleteBody' => false]; + } +} diff --git a/src/Normalizer/DnsRecordsDnsRecordDeleteResponse200Normalizer.php b/src/Normalizer/DnsRecordsDnsRecordDeleteResponse200Normalizer.php new file mode 100644 index 00000000..f932a9af --- /dev/null +++ b/src/Normalizer/DnsRecordsDnsRecordDeleteResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDeleted($data['deleted']); + unset($data['deleted']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['deleted'] = $object->getDeleted(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/DnsRecordsDnsRecordGetResponse200DnsRecordNormalizer.php b/src/Normalizer/DnsRecordsDnsRecordGetResponse200DnsRecordNormalizer.php new file mode 100644 index 00000000..89a4cd23 --- /dev/null +++ b/src/Normalizer/DnsRecordsDnsRecordGetResponse200DnsRecordNormalizer.php @@ -0,0 +1,136 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('full_name', $data)) { + $object->setFullName($data['full_name']); + unset($data['full_name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('type', $data)) { + $object->setType($data['type']); + unset($data['type']); + } + if (\array_key_exists('priority', $data)) { + $object->setPriority($data['priority']); + unset($data['priority']); + } + if (\array_key_exists('content', $data)) { + $object->setContent($data['content']); + unset($data['content']); + } + if (\array_key_exists('content_attributes', $data)) { + $object->setContentAttributes($this->denormalizer->denormalize($data['content_attributes'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordContentAttributes', 'json', $context)); + unset($data['content_attributes']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('fullName') && null !== $object->getFullName()) { + $data['full_name'] = $object->getFullName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $object->getType(); + } + if ($object->isInitialized('priority') && null !== $object->getPriority()) { + $data['priority'] = $object->getPriority(); + } + if ($object->isInitialized('content') && null !== $object->getContent()) { + $data['content'] = $object->getContent(); + } + if ($object->isInitialized('contentAttributes') && null !== $object->getContentAttributes()) { + $data['content_attributes'] = $this->normalizer->normalize($object->getContentAttributes(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordGetResponse200DnsRecord' => false]; + } +} diff --git a/src/Normalizer/DnsRecordsDnsRecordGetResponse200Normalizer.php b/src/Normalizer/DnsRecordsDnsRecordGetResponse200Normalizer.php new file mode 100644 index 00000000..6626245b --- /dev/null +++ b/src/Normalizer/DnsRecordsDnsRecordGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDnsRecord($this->denormalizer->denormalize($data['dns_record'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordGetResponse200DnsRecord', 'json', $context)); + unset($data['dns_record']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_record'] = $this->normalizer->normalize($object->getDnsRecord(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DnsRecordsDnsRecordPatchBodyNormalizer.php b/src/Normalizer/DnsRecordsDnsRecordPatchBodyNormalizer.php new file mode 100644 index 00000000..dbc1817d --- /dev/null +++ b/src/Normalizer/DnsRecordsDnsRecordPatchBodyNormalizer.php @@ -0,0 +1,90 @@ +setDnsRecord($this->denormalizer->denormalize($data['dns_record'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordLookup', 'json', $context)); + unset($data['dns_record']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_record'] = $this->normalizer->normalize($object->getDnsRecord(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordPatchBody' => false]; + } +} diff --git a/src/Normalizer/DnsRecordsDnsRecordPatchResponse200DnsRecordNormalizer.php b/src/Normalizer/DnsRecordsDnsRecordPatchResponse200DnsRecordNormalizer.php new file mode 100644 index 00000000..80d9fc18 --- /dev/null +++ b/src/Normalizer/DnsRecordsDnsRecordPatchResponse200DnsRecordNormalizer.php @@ -0,0 +1,136 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('full_name', $data)) { + $object->setFullName($data['full_name']); + unset($data['full_name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('type', $data)) { + $object->setType($data['type']); + unset($data['type']); + } + if (\array_key_exists('priority', $data)) { + $object->setPriority($data['priority']); + unset($data['priority']); + } + if (\array_key_exists('content', $data)) { + $object->setContent($data['content']); + unset($data['content']); + } + if (\array_key_exists('content_attributes', $data)) { + $object->setContentAttributes($this->denormalizer->denormalize($data['content_attributes'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordContentAttributes', 'json', $context)); + unset($data['content_attributes']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('fullName') && null !== $object->getFullName()) { + $data['full_name'] = $object->getFullName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $object->getType(); + } + if ($object->isInitialized('priority') && null !== $object->getPriority()) { + $data['priority'] = $object->getPriority(); + } + if ($object->isInitialized('content') && null !== $object->getContent()) { + $data['content'] = $object->getContent(); + } + if ($object->isInitialized('contentAttributes') && null !== $object->getContentAttributes()) { + $data['content_attributes'] = $this->normalizer->normalize($object->getContentAttributes(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordPatchResponse200DnsRecord' => false]; + } +} diff --git a/src/Normalizer/DnsRecordsDnsRecordPatchResponse200Normalizer.php b/src/Normalizer/DnsRecordsDnsRecordPatchResponse200Normalizer.php new file mode 100644 index 00000000..40534052 --- /dev/null +++ b/src/Normalizer/DnsRecordsDnsRecordPatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDnsRecord($this->denormalizer->denormalize($data['dns_record'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordPatchResponse200DnsRecord', 'json', $context)); + unset($data['dns_record']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_record'] = $this->normalizer->normalize($object->getDnsRecord(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordPatchResponse200' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneDeleteBodyNormalizer.php b/src/Normalizer/DnsZonesDnsZoneDeleteBodyNormalizer.php new file mode 100644 index 00000000..4cf3ed25 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setDnsZone($this->denormalizer->denormalize($data['dns_zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneLookup', 'json', $context)); + unset($data['dns_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_zone'] = $this->normalizer->normalize($object->getDnsZone(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneDeleteBody' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneDeleteResponse200DnsZoneNormalizer.php b/src/Normalizer/DnsZonesDnsZoneDeleteResponse200DnsZoneNormalizer.php new file mode 100644 index 00000000..8912c308 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneDeleteResponse200DnsZoneNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('verified', $data)) { + $object->setVerified($data['verified']); + unset($data['verified']); + } + if (\array_key_exists('infrastructure_zone', $data)) { + $object->setInfrastructureZone($data['infrastructure_zone']); + unset($data['infrastructure_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('verified') && null !== $object->getVerified()) { + $data['verified'] = $object->getVerified(); + } + if ($object->isInitialized('infrastructureZone') && null !== $object->getInfrastructureZone()) { + $data['infrastructure_zone'] = $object->getInfrastructureZone(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneDeleteResponse200DnsZone' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneDeleteResponse200Normalizer.php b/src/Normalizer/DnsZonesDnsZoneDeleteResponse200Normalizer.php new file mode 100644 index 00000000..c3dd5f42 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneDeleteResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDeleted($data['deleted']); + unset($data['deleted']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['deleted'] = $object->getDeleted(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneGetResponse200DnsZoneNormalizer.php b/src/Normalizer/DnsZonesDnsZoneGetResponse200DnsZoneNormalizer.php new file mode 100644 index 00000000..2d42ba3f --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneGetResponse200DnsZoneNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('verified', $data)) { + $object->setVerified($data['verified']); + unset($data['verified']); + } + if (\array_key_exists('infrastructure_zone', $data)) { + $object->setInfrastructureZone($data['infrastructure_zone']); + unset($data['infrastructure_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('verified') && null !== $object->getVerified()) { + $data['verified'] = $object->getVerified(); + } + if ($object->isInitialized('infrastructureZone') && null !== $object->getInfrastructureZone()) { + $data['infrastructure_zone'] = $object->getInfrastructureZone(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneGetResponse200DnsZone' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneGetResponse200Normalizer.php b/src/Normalizer/DnsZonesDnsZoneGetResponse200Normalizer.php new file mode 100644 index 00000000..9dbc4c01 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDnsZone($this->denormalizer->denormalize($data['dns_zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneGetResponse200DnsZone', 'json', $context)); + unset($data['dns_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_zone'] = $this->normalizer->normalize($object->getDnsZone(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZonePatchBodyNormalizer.php b/src/Normalizer/DnsZonesDnsZonePatchBodyNormalizer.php new file mode 100644 index 00000000..f7088253 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZonePatchBodyNormalizer.php @@ -0,0 +1,90 @@ +setDnsZone($this->denormalizer->denormalize($data['dns_zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneLookup', 'json', $context)); + unset($data['dns_zone']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_zone'] = $this->normalizer->normalize($object->getDnsZone(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZonePatchBody' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZonePatchResponse200DnsZoneNormalizer.php b/src/Normalizer/DnsZonesDnsZonePatchResponse200DnsZoneNormalizer.php new file mode 100644 index 00000000..a1459d33 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZonePatchResponse200DnsZoneNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('verified', $data)) { + $object->setVerified($data['verified']); + unset($data['verified']); + } + if (\array_key_exists('infrastructure_zone', $data)) { + $object->setInfrastructureZone($data['infrastructure_zone']); + unset($data['infrastructure_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('verified') && null !== $object->getVerified()) { + $data['verified'] = $object->getVerified(); + } + if ($object->isInitialized('infrastructureZone') && null !== $object->getInfrastructureZone()) { + $data['infrastructure_zone'] = $object->getInfrastructureZone(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZonePatchResponse200DnsZone' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZonePatchResponse200Normalizer.php b/src/Normalizer/DnsZonesDnsZonePatchResponse200Normalizer.php new file mode 100644 index 00000000..bab18aaf --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZonePatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDnsZone($this->denormalizer->denormalize($data['dns_zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZonePatchResponse200DnsZone', 'json', $context)); + unset($data['dns_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_zone'] = $this->normalizer->normalize($object->getDnsZone(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZonePatchResponse200' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneRecordsGetResponse200Normalizer.php b/src/Normalizer/DnsZonesDnsZoneRecordsGetResponse200Normalizer.php new file mode 100644 index 00000000..e39a1f59 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneRecordsGetResponse200Normalizer.php @@ -0,0 +1,93 @@ +denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecord', 'json', $context); + } + $object->setDnsRecords($values); + unset($data['dns_records']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getDnsRecords() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['dns_records'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneRecordsPostBodyNormalizer.php b/src/Normalizer/DnsZonesDnsZoneRecordsPostBodyNormalizer.php new file mode 100644 index 00000000..5c50a98b --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneRecordsPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setDnsZone($this->denormalizer->denormalize($data['dns_zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneLookup', 'json', $context)); + unset($data['dns_zone']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_zone'] = $this->normalizer->normalize($object->getDnsZone(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsPostBody' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneRecordsPostResponse200DnsRecordNormalizer.php b/src/Normalizer/DnsZonesDnsZoneRecordsPostResponse200DnsRecordNormalizer.php new file mode 100644 index 00000000..6acc5801 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneRecordsPostResponse200DnsRecordNormalizer.php @@ -0,0 +1,136 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('full_name', $data)) { + $object->setFullName($data['full_name']); + unset($data['full_name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('type', $data)) { + $object->setType($data['type']); + unset($data['type']); + } + if (\array_key_exists('priority', $data)) { + $object->setPriority($data['priority']); + unset($data['priority']); + } + if (\array_key_exists('content', $data)) { + $object->setContent($data['content']); + unset($data['content']); + } + if (\array_key_exists('content_attributes', $data)) { + $object->setContentAttributes($this->denormalizer->denormalize($data['content_attributes'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordContentAttributes', 'json', $context)); + unset($data['content_attributes']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('fullName') && null !== $object->getFullName()) { + $data['full_name'] = $object->getFullName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $object->getType(); + } + if ($object->isInitialized('priority') && null !== $object->getPriority()) { + $data['priority'] = $object->getPriority(); + } + if ($object->isInitialized('content') && null !== $object->getContent()) { + $data['content'] = $object->getContent(); + } + if ($object->isInitialized('contentAttributes') && null !== $object->getContentAttributes()) { + $data['content_attributes'] = $this->normalizer->normalize($object->getContentAttributes(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsPostResponse200DnsRecord' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneRecordsPostResponse200Normalizer.php b/src/Normalizer/DnsZonesDnsZoneRecordsPostResponse200Normalizer.php new file mode 100644 index 00000000..4ed9b0ec --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneRecordsPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDnsRecord($this->denormalizer->denormalize($data['dns_record'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsPostResponse200DnsRecord', 'json', $context)); + unset($data['dns_record']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_record'] = $this->normalizer->normalize($object->getDnsRecord(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsPostResponse200' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneUpdateTtlPostBodyNormalizer.php b/src/Normalizer/DnsZonesDnsZoneUpdateTtlPostBodyNormalizer.php new file mode 100644 index 00000000..5e43aacc --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneUpdateTtlPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setDnsZone($this->denormalizer->denormalize($data['dns_zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneLookup', 'json', $context)); + unset($data['dns_zone']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_zone'] = $this->normalizer->normalize($object->getDnsZone(), 'json', $context); + $data['ttl'] = $object->getTtl(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneUpdateTtlPostBody' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneUpdateTtlPostResponse200DnsZoneNormalizer.php b/src/Normalizer/DnsZonesDnsZoneUpdateTtlPostResponse200DnsZoneNormalizer.php new file mode 100644 index 00000000..53b6d8f3 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneUpdateTtlPostResponse200DnsZoneNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('verified', $data)) { + $object->setVerified($data['verified']); + unset($data['verified']); + } + if (\array_key_exists('infrastructure_zone', $data)) { + $object->setInfrastructureZone($data['infrastructure_zone']); + unset($data['infrastructure_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('verified') && null !== $object->getVerified()) { + $data['verified'] = $object->getVerified(); + } + if ($object->isInitialized('infrastructureZone') && null !== $object->getInfrastructureZone()) { + $data['infrastructure_zone'] = $object->getInfrastructureZone(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneUpdateTtlPostResponse200DnsZone' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneUpdateTtlPostResponse200Normalizer.php b/src/Normalizer/DnsZonesDnsZoneUpdateTtlPostResponse200Normalizer.php new file mode 100644 index 00000000..d539a12e --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneUpdateTtlPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDnsZone($this->denormalizer->denormalize($data['dns_zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneUpdateTtlPostResponse200DnsZone', 'json', $context)); + unset($data['dns_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_zone'] = $this->normalizer->normalize($object->getDnsZone(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneUpdateTtlPostResponse200' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneVerificationDetailsGetResponse200Normalizer.php b/src/Normalizer/DnsZonesDnsZoneVerificationDetailsGetResponse200Normalizer.php new file mode 100644 index 00000000..f16c40d6 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneVerificationDetailsGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDetails($data['details']); + unset($data['details']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['details'] = $object->getDetails(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerificationDetailsGetResponse200' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneVerifyPostBodyNormalizer.php b/src/Normalizer/DnsZonesDnsZoneVerifyPostBodyNormalizer.php new file mode 100644 index 00000000..2c7377d5 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneVerifyPostBodyNormalizer.php @@ -0,0 +1,85 @@ +setDnsZone($this->denormalizer->denormalize($data['dns_zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneLookup', 'json', $context)); + unset($data['dns_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_zone'] = $this->normalizer->normalize($object->getDnsZone(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerifyPostBody' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneVerifyPostResponse200DnsZoneNormalizer.php b/src/Normalizer/DnsZonesDnsZoneVerifyPostResponse200DnsZoneNormalizer.php new file mode 100644 index 00000000..32f140c5 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneVerifyPostResponse200DnsZoneNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('verified', $data)) { + $object->setVerified($data['verified']); + unset($data['verified']); + } + if (\array_key_exists('infrastructure_zone', $data)) { + $object->setInfrastructureZone($data['infrastructure_zone']); + unset($data['infrastructure_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('verified') && null !== $object->getVerified()) { + $data['verified'] = $object->getVerified(); + } + if ($object->isInitialized('infrastructureZone') && null !== $object->getInfrastructureZone()) { + $data['infrastructure_zone'] = $object->getInfrastructureZone(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerifyPostResponse200DnsZone' => false]; + } +} diff --git a/src/Normalizer/DnsZonesDnsZoneVerifyPostResponse200Normalizer.php b/src/Normalizer/DnsZonesDnsZoneVerifyPostResponse200Normalizer.php new file mode 100644 index 00000000..b8607235 --- /dev/null +++ b/src/Normalizer/DnsZonesDnsZoneVerifyPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDnsZone($this->denormalizer->denormalize($data['dns_zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerifyPostResponse200DnsZone', 'json', $context)); + unset($data['dns_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_zone'] = $this->normalizer->normalize($object->getDnsZone(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerifyPostResponse200' => false]; + } +} diff --git a/src/Normalizer/FileStorageVolumeArgumentsNormalizer.php b/src/Normalizer/FileStorageVolumeArgumentsNormalizer.php new file mode 100644 index 00000000..5c949903 --- /dev/null +++ b/src/Normalizer/FileStorageVolumeArgumentsNormalizer.php @@ -0,0 +1,109 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenterLookup', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumeArguments' => false]; + } +} diff --git a/src/Normalizer/FileStorageVolumeLookupNormalizer.php b/src/Normalizer/FileStorageVolumeLookupNormalizer.php new file mode 100644 index 00000000..3387071e --- /dev/null +++ b/src/Normalizer/FileStorageVolumeLookupNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumeLookup' => false]; + } +} diff --git a/src/Normalizer/FileStorageVolumesFileStorageVolumeDeleteBodyNormalizer.php b/src/Normalizer/FileStorageVolumesFileStorageVolumeDeleteBodyNormalizer.php new file mode 100644 index 00000000..56b9bdfc --- /dev/null +++ b/src/Normalizer/FileStorageVolumesFileStorageVolumeDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setFileStorageVolume($this->denormalizer->denormalize($data['file_storage_volume'], 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumeLookup', 'json', $context)); + unset($data['file_storage_volume']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['file_storage_volume'] = $this->normalizer->normalize($object->getFileStorageVolume(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteBody' => false]; + } +} diff --git a/src/Normalizer/FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolumeNormalizer.php b/src/Normalizer/FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolumeNormalizer.php new file mode 100644 index 00000000..e3a41dc0 --- /dev/null +++ b/src/Normalizer/FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolumeNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteFileStorageVolumePartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('nfs_location', $data)) { + $object->setNfsLocation($data['nfs_location']); + unset($data['nfs_location']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('nfsLocation') && null !== $object->getNfsLocation()) { + $data['nfs_location'] = $object->getNfsLocation(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolume' => false]; + } +} diff --git a/src/Normalizer/FileStorageVolumesFileStorageVolumeDeleteResponse200Normalizer.php b/src/Normalizer/FileStorageVolumesFileStorageVolumeDeleteResponse200Normalizer.php new file mode 100644 index 00000000..91d7f901 --- /dev/null +++ b/src/Normalizer/FileStorageVolumesFileStorageVolumeDeleteResponse200Normalizer.php @@ -0,0 +1,90 @@ +setTrashObject($this->denormalizer->denormalize($data['trash_object'], 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObject', 'json', $context)); + unset($data['trash_object']); + } + if (\array_key_exists('file_storage_volume', $data)) { + $object->setFileStorageVolume($this->denormalizer->denormalize($data['file_storage_volume'], 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolume', 'json', $context)); + unset($data['file_storage_volume']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['trash_object'] = $this->normalizer->normalize($object->getTrashObject(), 'json', $context); + $data['file_storage_volume'] = $this->normalizer->normalize($object->getFileStorageVolume(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObjectNormalizer.php b/src/Normalizer/FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObjectNormalizer.php new file mode 100644 index 00000000..d799e7f5 --- /dev/null +++ b/src/Normalizer/FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObjectNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('keep_until', $data)) { + $object->setKeepUntil($data['keep_until']); + unset($data['keep_until']); + } + if (\array_key_exists('object_id', $data)) { + $object->setObjectId($data['object_id']); + unset($data['object_id']); + } + if (\array_key_exists('object_type', $data)) { + $object->setObjectType($data['object_type']); + unset($data['object_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('keepUntil') && null !== $object->getKeepUntil()) { + $data['keep_until'] = $object->getKeepUntil(); + } + if ($object->isInitialized('objectId') && null !== $object->getObjectId()) { + $data['object_id'] = $object->getObjectId(); + } + if ($object->isInitialized('objectType') && null !== $object->getObjectType()) { + $data['object_type'] = $object->getObjectType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObject' => false]; + } +} diff --git a/src/Normalizer/FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolumeNormalizer.php b/src/Normalizer/FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolumeNormalizer.php new file mode 100644 index 00000000..abce00c4 --- /dev/null +++ b/src/Normalizer/FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolumeNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetFileStorageVolumePartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('nfs_location', $data)) { + $object->setNfsLocation($data['nfs_location']); + unset($data['nfs_location']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('nfsLocation') && null !== $object->getNfsLocation()) { + $data['nfs_location'] = $object->getNfsLocation(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolume' => false]; + } +} diff --git a/src/Normalizer/FileStorageVolumesFileStorageVolumeGetResponse200Normalizer.php b/src/Normalizer/FileStorageVolumesFileStorageVolumeGetResponse200Normalizer.php new file mode 100644 index 00000000..05b6323f --- /dev/null +++ b/src/Normalizer/FileStorageVolumesFileStorageVolumeGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setFileStorageVolume($this->denormalizer->denormalize($data['file_storage_volume'], 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolume', 'json', $context)); + unset($data['file_storage_volume']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['file_storage_volume'] = $this->normalizer->normalize($object->getFileStorageVolume(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeGetResponse200' => false]; + } +} diff --git a/src/Normalizer/FileStorageVolumesFileStorageVolumePatchBodyNormalizer.php b/src/Normalizer/FileStorageVolumesFileStorageVolumePatchBodyNormalizer.php new file mode 100644 index 00000000..ee68045c --- /dev/null +++ b/src/Normalizer/FileStorageVolumesFileStorageVolumePatchBodyNormalizer.php @@ -0,0 +1,90 @@ +setFileStorageVolume($this->denormalizer->denormalize($data['file_storage_volume'], 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumeLookup', 'json', $context)); + unset($data['file_storage_volume']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumeArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['file_storage_volume'] = $this->normalizer->normalize($object->getFileStorageVolume(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumePatchBody' => false]; + } +} diff --git a/src/Normalizer/FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolumeNormalizer.php b/src/Normalizer/FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolumeNormalizer.php new file mode 100644 index 00000000..4cad376a --- /dev/null +++ b/src/Normalizer/FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolumeNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchFileStorageVolumePartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('nfs_location', $data)) { + $object->setNfsLocation($data['nfs_location']); + unset($data['nfs_location']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('nfsLocation') && null !== $object->getNfsLocation()) { + $data['nfs_location'] = $object->getNfsLocation(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolume' => false]; + } +} diff --git a/src/Normalizer/FileStorageVolumesFileStorageVolumePatchResponse200Normalizer.php b/src/Normalizer/FileStorageVolumesFileStorageVolumePatchResponse200Normalizer.php new file mode 100644 index 00000000..80a6940b --- /dev/null +++ b/src/Normalizer/FileStorageVolumesFileStorageVolumePatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setFileStorageVolume($this->denormalizer->denormalize($data['file_storage_volume'], 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolume', 'json', $context)); + unset($data['file_storage_volume']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['file_storage_volume'] = $this->normalizer->normalize($object->getFileStorageVolume(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumePatchResponse200' => false]; + } +} diff --git a/src/Normalizer/FlexibleResourcesUnavailableToOrganizationSchemaNormalizer.php b/src/Normalizer/FlexibleResourcesUnavailableToOrganizationSchemaNormalizer.php new file mode 100644 index 00000000..edf60117 --- /dev/null +++ b/src/Normalizer/FlexibleResourcesUnavailableToOrganizationSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\FlexibleResourcesUnavailableToOrganizationSchema' => false]; + } +} diff --git a/src/Normalizer/GPUTypeLookupNormalizer.php b/src/Normalizer/GPUTypeLookupNormalizer.php new file mode 100644 index 00000000..7488ef8d --- /dev/null +++ b/src/Normalizer/GPUTypeLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GPUTypeLookup' => false]; + } +} diff --git a/src/Normalizer/GPUTypeNormalizer.php b/src/Normalizer/GPUTypeNormalizer.php new file mode 100644 index 00000000..0d2e2084 --- /dev/null +++ b/src/Normalizer/GPUTypeNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('manufacturer', $data)) { + $object->setManufacturer($data['manufacturer']); + unset($data['manufacturer']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('memory_type', $data)) { + $object->setMemoryType($data['memory_type']); + unset($data['memory_type']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_centers', $data)) { + $values = []; + foreach ($data['data_centers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenter', 'json', $context); + } + $object->setDataCenters($values); + unset($data['data_centers']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('manufacturer') && null !== $object->getManufacturer()) { + $data['manufacturer'] = $object->getManufacturer(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('memoryType') && null !== $object->getMemoryType()) { + $data['memory_type'] = $object->getMemoryType(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenters') && null !== $object->getDataCenters()) { + $values = []; + foreach ($object->getDataCenters() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['data_centers'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GPUType' => false]; + } +} diff --git a/src/Normalizer/GetCountries200ResponseCountriesNormalizer.php b/src/Normalizer/GetCountries200ResponseCountriesNormalizer.php new file mode 100644 index 00000000..93bb8db9 --- /dev/null +++ b/src/Normalizer/GetCountries200ResponseCountriesNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetCountries200ResponseCountries' => false]; + } +} diff --git a/src/Normalizer/GetCountryCountryStates200ResponseCountryStatesNormalizer.php b/src/Normalizer/GetCountryCountryStates200ResponseCountryStatesNormalizer.php new file mode 100644 index 00000000..94dde65e --- /dev/null +++ b/src/Normalizer/GetCountryCountryStates200ResponseCountryStatesNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetCountryCountryStates200ResponseCountryStates' => false]; + } +} diff --git a/src/Normalizer/GetCurrencies200ResponseCurrenciesNormalizer.php b/src/Normalizer/GetCurrencies200ResponseCurrenciesNormalizer.php new file mode 100644 index 00000000..0fab14cd --- /dev/null +++ b/src/Normalizer/GetCurrencies200ResponseCurrenciesNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetCurrencies200ResponseCurrencies' => false]; + } +} diff --git a/src/Normalizer/GetDNSRecordsDNSRecord200ResponseDNSRecordNormalizer.php b/src/Normalizer/GetDNSRecordsDNSRecord200ResponseDNSRecordNormalizer.php new file mode 100644 index 00000000..7a42d5f3 --- /dev/null +++ b/src/Normalizer/GetDNSRecordsDNSRecord200ResponseDNSRecordNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('record_type', $data)) { + $object->setRecordType($data['record_type']); + unset($data['record_type']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordProperties', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('recordType') && null !== $object->getRecordType()) { + $data['record_type'] = $object->getRecordType(); + } + if ($object->isInitialized('properties') && null !== $object->getProperties()) { + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDNSRecordsDNSRecord200ResponseDNSRecord' => false]; + } +} diff --git a/src/Normalizer/GetDNSZonesDNSZoneRecords200ResponseDNSRecordsNormalizer.php b/src/Normalizer/GetDNSZonesDNSZoneRecords200ResponseDNSRecordsNormalizer.php new file mode 100644 index 00000000..37e21a99 --- /dev/null +++ b/src/Normalizer/GetDNSZonesDNSZoneRecords200ResponseDNSRecordsNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('record_type', $data)) { + $object->setRecordType($data['record_type']); + unset($data['record_type']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordProperties', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('recordType') && null !== $object->getRecordType()) { + $data['record_type'] = $object->getRecordType(); + } + if ($object->isInitialized('properties') && null !== $object->getProperties()) { + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDNSZonesDNSZoneRecords200ResponseDNSRecords' => false]; + } +} diff --git a/src/Normalizer/GetDataCenter200ResponseDataCenterNormalizer.php b/src/Normalizer/GetDataCenter200ResponseDataCenterNormalizer.php new file mode 100644 index 00000000..3b296a73 --- /dev/null +++ b/src/Normalizer/GetDataCenter200ResponseDataCenterNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterPartCountry', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenter200ResponseDataCenter' => false]; + } +} diff --git a/src/Normalizer/GetDataCenterDefaultNetwork200ResponseNetworkNormalizer.php b/src/Normalizer/GetDataCenterDefaultNetwork200ResponseNetworkNormalizer.php new file mode 100644 index 00000000..63cd0b1b --- /dev/null +++ b/src/Normalizer/GetDataCenterDefaultNetwork200ResponseNetworkNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterDefaultNetworkPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterDefaultNetwork200ResponseNetwork' => false]; + } +} diff --git a/src/Normalizer/GetDataCenterDefaultNetworkPartDataCenterNormalizer.php b/src/Normalizer/GetDataCenterDefaultNetworkPartDataCenterNormalizer.php new file mode 100644 index 00000000..63d3f927 --- /dev/null +++ b/src/Normalizer/GetDataCenterDefaultNetworkPartDataCenterNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterDefaultNetworkPartDataCenter' => false]; + } +} diff --git a/src/Normalizer/GetDataCenterGPUTypes200ResponseGPUTypesNormalizer.php b/src/Normalizer/GetDataCenterGPUTypes200ResponseGPUTypesNormalizer.php new file mode 100644 index 00000000..7c807e43 --- /dev/null +++ b/src/Normalizer/GetDataCenterGPUTypes200ResponseGPUTypesNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('manufacturer', $data)) { + $object->setManufacturer($data['manufacturer']); + unset($data['manufacturer']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('memory_type', $data)) { + $object->setMemoryType($data['memory_type']); + unset($data['memory_type']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('manufacturer') && null !== $object->getManufacturer()) { + $data['manufacturer'] = $object->getManufacturer(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('memoryType') && null !== $object->getMemoryType()) { + $data['memory_type'] = $object->getMemoryType(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterGPUTypes200ResponseGPUTypes' => false]; + } +} diff --git a/src/Normalizer/GetDataCenterPartCountryNormalizer.php b/src/Normalizer/GetDataCenterPartCountryNormalizer.php new file mode 100644 index 00000000..0b126d83 --- /dev/null +++ b/src/Normalizer/GetDataCenterPartCountryNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterPartCountry' => false]; + } +} diff --git a/src/Normalizer/GetDataCenters200ResponseDataCentersNormalizer.php b/src/Normalizer/GetDataCenters200ResponseDataCentersNormalizer.php new file mode 100644 index 00000000..b714225b --- /dev/null +++ b/src/Normalizer/GetDataCenters200ResponseDataCentersNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCentersPartCountry', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenters200ResponseDataCenters' => false]; + } +} diff --git a/src/Normalizer/GetDataCentersPartCountryNormalizer.php b/src/Normalizer/GetDataCentersPartCountryNormalizer.php new file mode 100644 index 00000000..6d4c9c3f --- /dev/null +++ b/src/Normalizer/GetDataCentersPartCountryNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCentersPartCountry' => false]; + } +} diff --git a/src/Normalizer/GetDisk200ResponseDiskNormalizer.php b/src/Normalizer/GetDisk200ResponseDiskNormalizer.php new file mode 100644 index 00000000..8226596b --- /dev/null +++ b/src/Normalizer/GetDisk200ResponseDiskNormalizer.php @@ -0,0 +1,150 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('size_in_gb', $data)) { + $object->setSizeInGb($data['size_in_gb']); + unset($data['size_in_gb']); + } + if (\array_key_exists('wwn', $data)) { + $object->setWwn($data['wwn']); + unset($data['wwn']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('storage_speed', $data)) { + $object->setStorageSpeed($data['storage_speed']); + unset($data['storage_speed']); + } + if (\array_key_exists('io_profile', $data)) { + $object->setIoProfile($this->denormalizer->denormalize($data['io_profile'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartIOProfile', 'json', $context)); + unset($data['io_profile']); + } + if (\array_key_exists('virtual_machine_disk', $data)) { + $object->setVirtualMachineDisk($this->denormalizer->denormalize($data['virtual_machine_disk'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartVirtualMachineDisk', 'json', $context)); + unset($data['virtual_machine_disk']); + } + if (\array_key_exists('installation', $data)) { + $object->setInstallation($this->denormalizer->denormalize($data['installation'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartInstallation', 'json', $context)); + unset($data['installation']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('sizeInGb') && null !== $object->getSizeInGb()) { + $data['size_in_gb'] = $object->getSizeInGb(); + } + if ($object->isInitialized('wwn') && null !== $object->getWwn()) { + $data['wwn'] = $object->getWwn(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('storageSpeed') && null !== $object->getStorageSpeed()) { + $data['storage_speed'] = $object->getStorageSpeed(); + } + if ($object->isInitialized('ioProfile') && null !== $object->getIoProfile()) { + $data['io_profile'] = $this->normalizer->normalize($object->getIoProfile(), 'json', $context); + } + if ($object->isInitialized('virtualMachineDisk') && null !== $object->getVirtualMachineDisk()) { + $data['virtual_machine_disk'] = $this->normalizer->normalize($object->getVirtualMachineDisk(), 'json', $context); + } + if ($object->isInitialized('installation') && null !== $object->getInstallation()) { + $data['installation'] = $this->normalizer->normalize($object->getInstallation(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDisk200ResponseDisk' => false]; + } +} diff --git a/src/Normalizer/GetDiskBackupPolicy200ResponseDiskBackupPolicyNormalizer.php b/src/Normalizer/GetDiskBackupPolicy200ResponseDiskBackupPolicyNormalizer.php new file mode 100644 index 00000000..0dc4ee4b --- /dev/null +++ b/src/Normalizer/GetDiskBackupPolicy200ResponseDiskBackupPolicyNormalizer.php @@ -0,0 +1,125 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('retention', $data)) { + $object->setRetention($data['retention']); + unset($data['retention']); + } + if (\array_key_exists('total_size', $data)) { + $object->setTotalSize($data['total_size']); + unset($data['total_size']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskBackupPolicyPartSchedule', 'json', $context)); + unset($data['schedule']); + } + if (\array_key_exists('auto_move_to_trash_at', $data)) { + $object->setAutoMoveToTrashAt($data['auto_move_to_trash_at']); + unset($data['auto_move_to_trash_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('retention') && null !== $object->getRetention()) { + $data['retention'] = $object->getRetention(); + } + if ($object->isInitialized('totalSize') && null !== $object->getTotalSize()) { + $data['total_size'] = $object->getTotalSize(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + if ($object->isInitialized('autoMoveToTrashAt') && null !== $object->getAutoMoveToTrashAt()) { + $data['auto_move_to_trash_at'] = $object->getAutoMoveToTrashAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskBackupPolicy200ResponseDiskBackupPolicy' => false]; + } +} diff --git a/src/Normalizer/GetDiskBackupPolicyPartScheduleNormalizer.php b/src/Normalizer/GetDiskBackupPolicyPartScheduleNormalizer.php new file mode 100644 index 00000000..c983bc49 --- /dev/null +++ b/src/Normalizer/GetDiskBackupPolicyPartScheduleNormalizer.php @@ -0,0 +1,115 @@ +setFrequency($data['frequency']); + unset($data['frequency']); + } + if (\array_key_exists('interval', $data)) { + $object->setInterval($data['interval']); + unset($data['interval']); + } + if (\array_key_exists('minute', $data)) { + $object->setMinute($data['minute']); + unset($data['minute']); + } + if (\array_key_exists('next_invocation_at', $data)) { + $object->setNextInvocationAt($data['next_invocation_at']); + unset($data['next_invocation_at']); + } + if (\array_key_exists('time', $data)) { + $object->setTime($data['time']); + unset($data['time']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('frequency') && null !== $object->getFrequency()) { + $data['frequency'] = $object->getFrequency(); + } + if ($object->isInitialized('interval') && null !== $object->getInterval()) { + $data['interval'] = $object->getInterval(); + } + if ($object->isInitialized('minute') && null !== $object->getMinute()) { + $data['minute'] = $object->getMinute(); + } + if ($object->isInitialized('nextInvocationAt') && null !== $object->getNextInvocationAt()) { + $data['next_invocation_at'] = $object->getNextInvocationAt(); + } + if ($object->isInitialized('time') && null !== $object->getTime()) { + $data['time'] = $object->getTime(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskBackupPolicyPartSchedule' => false]; + } +} diff --git a/src/Normalizer/GetDiskDiskBackupPolicies200ResponseDiskBackupPoliciesNormalizer.php b/src/Normalizer/GetDiskDiskBackupPolicies200ResponseDiskBackupPoliciesNormalizer.php new file mode 100644 index 00000000..205eda68 --- /dev/null +++ b/src/Normalizer/GetDiskDiskBackupPolicies200ResponseDiskBackupPoliciesNormalizer.php @@ -0,0 +1,118 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('retention', $data)) { + $object->setRetention($data['retention']); + unset($data['retention']); + } + if (\array_key_exists('total_size', $data)) { + $object->setTotalSize($data['total_size']); + unset($data['total_size']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskDiskBackupPoliciesPartSchedule', 'json', $context)); + unset($data['schedule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('retention') && null !== $object->getRetention()) { + $data['retention'] = $object->getRetention(); + } + if ($object->isInitialized('totalSize') && null !== $object->getTotalSize()) { + $data['total_size'] = $object->getTotalSize(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskDiskBackupPolicies200ResponseDiskBackupPolicies' => false]; + } +} diff --git a/src/Normalizer/GetDiskDiskBackupPoliciesPartScheduleNormalizer.php b/src/Normalizer/GetDiskDiskBackupPoliciesPartScheduleNormalizer.php new file mode 100644 index 00000000..a9c47365 --- /dev/null +++ b/src/Normalizer/GetDiskDiskBackupPoliciesPartScheduleNormalizer.php @@ -0,0 +1,94 @@ +setInterval($data['interval']); + unset($data['interval']); + } + if (\array_key_exists('next_invocation_at', $data)) { + $object->setNextInvocationAt($data['next_invocation_at']); + unset($data['next_invocation_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('interval') && null !== $object->getInterval()) { + $data['interval'] = $object->getInterval(); + } + if ($object->isInitialized('nextInvocationAt') && null !== $object->getNextInvocationAt()) { + $data['next_invocation_at'] = $object->getNextInvocationAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskDiskBackupPoliciesPartSchedule' => false]; + } +} diff --git a/src/Normalizer/GetDiskPartAttributesNormalizer.php b/src/Normalizer/GetDiskPartAttributesNormalizer.php new file mode 100644 index 00000000..42a60a59 --- /dev/null +++ b/src/Normalizer/GetDiskPartAttributesNormalizer.php @@ -0,0 +1,115 @@ +setKey($data['key']); + unset($data['key']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('value', $data)) { + $object->setValue($data['value']); + unset($data['value']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('protect', $data)) { + $object->setProtect($data['protect']); + unset($data['protect']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('key') && null !== $object->getKey()) { + $data['key'] = $object->getKey(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('value') && null !== $object->getValue()) { + $data['value'] = $object->getValue(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('protect') && null !== $object->getProtect()) { + $data['protect'] = $object->getProtect(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartAttributes' => false]; + } +} diff --git a/src/Normalizer/GetDiskPartDiskTemplateNormalizer.php b/src/Normalizer/GetDiskPartDiskTemplateNormalizer.php new file mode 100644 index 00000000..a0479ec9 --- /dev/null +++ b/src/Normalizer/GetDiskPartDiskTemplateNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('operating_system', $data)) { + $object->setOperatingSystem($this->denormalizer->denormalize($data['operating_system'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartOperatingSystem', 'json', $context)); + unset($data['operating_system']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('operatingSystem') && null !== $object->getOperatingSystem()) { + $data['operating_system'] = $this->normalizer->normalize($object->getOperatingSystem(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartDiskTemplate' => false]; + } +} diff --git a/src/Normalizer/GetDiskPartDiskTemplateVersionNormalizer.php b/src/Normalizer/GetDiskPartDiskTemplateVersionNormalizer.php new file mode 100644 index 00000000..add9a4e9 --- /dev/null +++ b/src/Normalizer/GetDiskPartDiskTemplateVersionNormalizer.php @@ -0,0 +1,101 @@ +setNumber($data['number']); + unset($data['number']); + } + if (\array_key_exists('stable', $data)) { + $object->setStable($data['stable']); + unset($data['stable']); + } + if (\array_key_exists('disk_template', $data)) { + $object->setDiskTemplate($this->denormalizer->denormalize($data['disk_template'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartDiskTemplate', 'json', $context)); + unset($data['disk_template']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('number') && null !== $object->getNumber()) { + $data['number'] = $object->getNumber(); + } + if ($object->isInitialized('stable') && null !== $object->getStable()) { + $data['stable'] = $object->getStable(); + } + if ($object->isInitialized('diskTemplate') && null !== $object->getDiskTemplate()) { + $data['disk_template'] = $this->normalizer->normalize($object->getDiskTemplate(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartDiskTemplateVersion' => false]; + } +} diff --git a/src/Normalizer/GetDiskPartIOProfileNormalizer.php b/src/Normalizer/GetDiskPartIOProfileNormalizer.php new file mode 100644 index 00000000..39464178 --- /dev/null +++ b/src/Normalizer/GetDiskPartIOProfileNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('speed_in_mb', $data)) { + $object->setSpeedInMb($data['speed_in_mb']); + unset($data['speed_in_mb']); + } + if (\array_key_exists('iops', $data)) { + $object->setIops($data['iops']); + unset($data['iops']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('speedInMb') && null !== $object->getSpeedInMb()) { + $data['speed_in_mb'] = $object->getSpeedInMb(); + } + if ($object->isInitialized('iops') && null !== $object->getIops()) { + $data['iops'] = $object->getIops(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartIOProfile' => false]; + } +} diff --git a/src/Normalizer/GetDiskPartInstallationNormalizer.php b/src/Normalizer/GetDiskPartInstallationNormalizer.php new file mode 100644 index 00000000..6d0b18fa --- /dev/null +++ b/src/Normalizer/GetDiskPartInstallationNormalizer.php @@ -0,0 +1,109 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('disk_template_version', $data)) { + $object->setDiskTemplateVersion($this->denormalizer->denormalize($data['disk_template_version'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartDiskTemplateVersion', 'json', $context)); + unset($data['disk_template_version']); + } + if (\array_key_exists('attributes', $data)) { + $values = []; + foreach ($data['attributes'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartAttributes', 'json', $context); + } + $object->setAttributes($values); + unset($data['attributes']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('diskTemplateVersion') && null !== $object->getDiskTemplateVersion()) { + $data['disk_template_version'] = $this->normalizer->normalize($object->getDiskTemplateVersion(), 'json', $context); + } + if ($object->isInitialized('attributes') && null !== $object->getAttributes()) { + $values = []; + foreach ($object->getAttributes() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['attributes'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartInstallation' => false]; + } +} diff --git a/src/Normalizer/GetDiskPartOperatingSystemNormalizer.php b/src/Normalizer/GetDiskPartOperatingSystemNormalizer.php new file mode 100644 index 00000000..c7bc632f --- /dev/null +++ b/src/Normalizer/GetDiskPartOperatingSystemNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartOperatingSystem' => false]; + } +} diff --git a/src/Normalizer/GetDiskPartVirtualMachineDiskNormalizer.php b/src/Normalizer/GetDiskPartVirtualMachineDiskNormalizer.php new file mode 100644 index 00000000..0dbd2403 --- /dev/null +++ b/src/Normalizer/GetDiskPartVirtualMachineDiskNormalizer.php @@ -0,0 +1,108 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartVirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('attach_on_boot', $data)) { + $object->setAttachOnBoot($data['attach_on_boot']); + unset($data['attach_on_boot']); + } + if (\array_key_exists('boot', $data)) { + $object->setBoot($data['boot']); + unset($data['boot']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('attachOnBoot') && null !== $object->getAttachOnBoot()) { + $data['attach_on_boot'] = $object->getAttachOnBoot(); + } + if ($object->isInitialized('boot') && null !== $object->getBoot()) { + $data['boot'] = $object->getBoot(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartVirtualMachineDisk' => false]; + } +} diff --git a/src/Normalizer/GetDiskPartVirtualMachineNormalizer.php b/src/Normalizer/GetDiskPartVirtualMachineNormalizer.php new file mode 100644 index 00000000..5dd99b78 --- /dev/null +++ b/src/Normalizer/GetDiskPartVirtualMachineNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartVirtualMachine' => false]; + } +} diff --git a/src/Normalizer/GetDiskTemplate200ResponseDiskTemplateNormalizer.php b/src/Normalizer/GetDiskTemplate200ResponseDiskTemplateNormalizer.php new file mode 100644 index 00000000..43277ea0 --- /dev/null +++ b/src/Normalizer/GetDiskTemplate200ResponseDiskTemplateNormalizer.php @@ -0,0 +1,129 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('universal', $data)) { + $object->setUniversal($data['universal']); + unset($data['universal']); + } + if (\array_key_exists('latest_version', $data)) { + $object->setLatestVersion($this->denormalizer->denormalize($data['latest_version'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartLatestVersion', 'json', $context)); + unset($data['latest_version']); + } + if (\array_key_exists('operating_system', $data)) { + $object->setOperatingSystem($this->denormalizer->denormalize($data['operating_system'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartOperatingSystem', 'json', $context)); + unset($data['operating_system']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('universal') && null !== $object->getUniversal()) { + $data['universal'] = $object->getUniversal(); + } + if ($object->isInitialized('latestVersion') && null !== $object->getLatestVersion()) { + $data['latest_version'] = $this->normalizer->normalize($object->getLatestVersion(), 'json', $context); + } + if ($object->isInitialized('operatingSystem') && null !== $object->getOperatingSystem()) { + $data['operating_system'] = $this->normalizer->normalize($object->getOperatingSystem(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplate200ResponseDiskTemplate' => false]; + } +} diff --git a/src/Normalizer/GetDiskTemplatePartBadgeNormalizer.php b/src/Normalizer/GetDiskTemplatePartBadgeNormalizer.php new file mode 100644 index 00000000..1d47ff1b --- /dev/null +++ b/src/Normalizer/GetDiskTemplatePartBadgeNormalizer.php @@ -0,0 +1,87 @@ +setUrl($data['url']); + unset($data['url']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartBadge' => false]; + } +} diff --git a/src/Normalizer/GetDiskTemplatePartLatestVersionNormalizer.php b/src/Normalizer/GetDiskTemplatePartLatestVersionNormalizer.php new file mode 100644 index 00000000..e7b35881 --- /dev/null +++ b/src/Normalizer/GetDiskTemplatePartLatestVersionNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartLatestVersion' => false]; + } +} diff --git a/src/Normalizer/GetDiskTemplatePartOperatingSystemNormalizer.php b/src/Normalizer/GetDiskTemplatePartOperatingSystemNormalizer.php new file mode 100644 index 00000000..fa3a9523 --- /dev/null +++ b/src/Normalizer/GetDiskTemplatePartOperatingSystemNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('badge', $data)) { + $object->setBadge($this->denormalizer->denormalize($data['badge'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartBadge', 'json', $context)); + unset($data['badge']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('badge') && null !== $object->getBadge()) { + $data['badge'] = $this->normalizer->normalize($object->getBadge(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartOperatingSystem' => false]; + } +} diff --git a/src/Normalizer/GetDiskTemplateVersion200ResponseDiskTemplateVersionNormalizer.php b/src/Normalizer/GetDiskTemplateVersion200ResponseDiskTemplateVersionNormalizer.php new file mode 100644 index 00000000..029c4082 --- /dev/null +++ b/src/Normalizer/GetDiskTemplateVersion200ResponseDiskTemplateVersionNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('number', $data)) { + $object->setNumber($data['number']); + unset($data['number']); + } + if (\array_key_exists('stable', $data)) { + $object->setStable($data['stable']); + unset($data['stable']); + } + if (\array_key_exists('size_in_gb', $data)) { + $object->setSizeInGb($data['size_in_gb']); + unset($data['size_in_gb']); + } + if (\array_key_exists('disk_template', $data)) { + $object->setDiskTemplate($this->denormalizer->denormalize($data['disk_template'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionPartDiskTemplate', 'json', $context)); + unset($data['disk_template']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('number') && null !== $object->getNumber()) { + $data['number'] = $object->getNumber(); + } + if ($object->isInitialized('stable') && null !== $object->getStable()) { + $data['stable'] = $object->getStable(); + } + if ($object->isInitialized('sizeInGb') && null !== $object->getSizeInGb()) { + $data['size_in_gb'] = $object->getSizeInGb(); + } + if ($object->isInitialized('diskTemplate') && null !== $object->getDiskTemplate()) { + $data['disk_template'] = $this->normalizer->normalize($object->getDiskTemplate(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersion200ResponseDiskTemplateVersion' => false]; + } +} diff --git a/src/Normalizer/GetDiskTemplateVersionPartDiskTemplateNormalizer.php b/src/Normalizer/GetDiskTemplateVersionPartDiskTemplateNormalizer.php new file mode 100644 index 00000000..b8037b5d --- /dev/null +++ b/src/Normalizer/GetDiskTemplateVersionPartDiskTemplateNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionPartDiskTemplate' => false]; + } +} diff --git a/src/Normalizer/GetDiskTemplateVersionSpec200ResponseDiskTemplateVersionNormalizer.php b/src/Normalizer/GetDiskTemplateVersionSpec200ResponseDiskTemplateVersionNormalizer.php new file mode 100644 index 00000000..3c0b6250 --- /dev/null +++ b/src/Normalizer/GetDiskTemplateVersionSpec200ResponseDiskTemplateVersionNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('number', $data)) { + $object->setNumber($data['number']); + unset($data['number']); + } + if (\array_key_exists('stable', $data)) { + $object->setStable($data['stable']); + unset($data['stable']); + } + if (\array_key_exists('size_in_gb', $data)) { + $object->setSizeInGb($data['size_in_gb']); + unset($data['size_in_gb']); + } + if (\array_key_exists('disk_template', $data)) { + $object->setDiskTemplate($this->denormalizer->denormalize($data['disk_template'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionSpecPartDiskTemplate', 'json', $context)); + unset($data['disk_template']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('number') && null !== $object->getNumber()) { + $data['number'] = $object->getNumber(); + } + if ($object->isInitialized('stable') && null !== $object->getStable()) { + $data['stable'] = $object->getStable(); + } + if ($object->isInitialized('sizeInGb') && null !== $object->getSizeInGb()) { + $data['size_in_gb'] = $object->getSizeInGb(); + } + if ($object->isInitialized('diskTemplate') && null !== $object->getDiskTemplate()) { + $data['disk_template'] = $this->normalizer->normalize($object->getDiskTemplate(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionSpec200ResponseDiskTemplateVersion' => false]; + } +} diff --git a/src/Normalizer/GetDiskTemplateVersionSpecPartDiskTemplateNormalizer.php b/src/Normalizer/GetDiskTemplateVersionSpecPartDiskTemplateNormalizer.php new file mode 100644 index 00000000..ecb36969 --- /dev/null +++ b/src/Normalizer/GetDiskTemplateVersionSpecPartDiskTemplateNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionSpecPartDiskTemplate' => false]; + } +} diff --git a/src/Normalizer/GetDiskTemplateVersions200ResponseDiskTemplateNormalizer.php b/src/Normalizer/GetDiskTemplateVersions200ResponseDiskTemplateNormalizer.php new file mode 100644 index 00000000..f1c2bfb8 --- /dev/null +++ b/src/Normalizer/GetDiskTemplateVersions200ResponseDiskTemplateNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersions200ResponseDiskTemplate' => false]; + } +} diff --git a/src/Normalizer/GetDiskTemplateVersions200ResponseDiskTemplateVersionsNormalizer.php b/src/Normalizer/GetDiskTemplateVersions200ResponseDiskTemplateVersionsNormalizer.php new file mode 100644 index 00000000..d26958eb --- /dev/null +++ b/src/Normalizer/GetDiskTemplateVersions200ResponseDiskTemplateVersionsNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('number', $data)) { + $object->setNumber($data['number']); + unset($data['number']); + } + if (\array_key_exists('stable', $data)) { + $object->setStable($data['stable']); + unset($data['stable']); + } + if (\array_key_exists('size_in_gb', $data)) { + $object->setSizeInGb($data['size_in_gb']); + unset($data['size_in_gb']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('number') && null !== $object->getNumber()) { + $data['number'] = $object->getNumber(); + } + if ($object->isInitialized('stable') && null !== $object->getStable()) { + $data['stable'] = $object->getStable(); + } + if ($object->isInitialized('sizeInGb') && null !== $object->getSizeInGb()) { + $data['size_in_gb'] = $object->getSizeInGb(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersions200ResponseDiskTemplateVersions' => false]; + } +} diff --git a/src/Normalizer/GetFileStorageVolume200ResponseFileStorageVolumeNormalizer.php b/src/Normalizer/GetFileStorageVolume200ResponseFileStorageVolumeNormalizer.php new file mode 100644 index 00000000..936617c9 --- /dev/null +++ b/src/Normalizer/GetFileStorageVolume200ResponseFileStorageVolumeNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetFileStorageVolumePartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('nfs_location', $data)) { + $object->setNfsLocation($data['nfs_location']); + unset($data['nfs_location']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('nfsLocation') && null !== $object->getNfsLocation()) { + $data['nfs_location'] = $object->getNfsLocation(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetFileStorageVolume200ResponseFileStorageVolume' => false]; + } +} diff --git a/src/Normalizer/GetFileStorageVolumePartDataCenterNormalizer.php b/src/Normalizer/GetFileStorageVolumePartDataCenterNormalizer.php new file mode 100644 index 00000000..bdf6936d --- /dev/null +++ b/src/Normalizer/GetFileStorageVolumePartDataCenterNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetFileStorageVolumePartDataCenter' => false]; + } +} diff --git a/src/Normalizer/GetGPUType200ResponseGPUTypeNormalizer.php b/src/Normalizer/GetGPUType200ResponseGPUTypeNormalizer.php new file mode 100644 index 00000000..0acb58e4 --- /dev/null +++ b/src/Normalizer/GetGPUType200ResponseGPUTypeNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('manufacturer', $data)) { + $object->setManufacturer($data['manufacturer']); + unset($data['manufacturer']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('memory_type', $data)) { + $object->setMemoryType($data['memory_type']); + unset($data['memory_type']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_centers', $data)) { + $values = []; + foreach ($data['data_centers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypePartDataCenters', 'json', $context); + } + $object->setDataCenters($values); + unset($data['data_centers']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('manufacturer') && null !== $object->getManufacturer()) { + $data['manufacturer'] = $object->getManufacturer(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('memoryType') && null !== $object->getMemoryType()) { + $data['memory_type'] = $object->getMemoryType(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenters') && null !== $object->getDataCenters()) { + $values = []; + foreach ($object->getDataCenters() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['data_centers'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUType200ResponseGPUType' => false]; + } +} diff --git a/src/Normalizer/GetGPUTypePartDataCentersNormalizer.php b/src/Normalizer/GetGPUTypePartDataCentersNormalizer.php new file mode 100644 index 00000000..7109ad9d --- /dev/null +++ b/src/Normalizer/GetGPUTypePartDataCentersNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypePartDataCenters' => false]; + } +} diff --git a/src/Normalizer/GetGPUTypes200ResponseGPUTypesNormalizer.php b/src/Normalizer/GetGPUTypes200ResponseGPUTypesNormalizer.php new file mode 100644 index 00000000..c99f384f --- /dev/null +++ b/src/Normalizer/GetGPUTypes200ResponseGPUTypesNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('manufacturer', $data)) { + $object->setManufacturer($data['manufacturer']); + unset($data['manufacturer']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('memory_type', $data)) { + $object->setMemoryType($data['memory_type']); + unset($data['memory_type']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_centers', $data)) { + $values = []; + foreach ($data['data_centers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypesPartDataCenters', 'json', $context); + } + $object->setDataCenters($values); + unset($data['data_centers']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('manufacturer') && null !== $object->getManufacturer()) { + $data['manufacturer'] = $object->getManufacturer(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('memoryType') && null !== $object->getMemoryType()) { + $data['memory_type'] = $object->getMemoryType(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenters') && null !== $object->getDataCenters()) { + $values = []; + foreach ($object->getDataCenters() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['data_centers'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypes200ResponseGPUTypes' => false]; + } +} diff --git a/src/Normalizer/GetGPUTypesPartDataCentersNormalizer.php b/src/Normalizer/GetGPUTypesPartDataCentersNormalizer.php new file mode 100644 index 00000000..e85d3ada --- /dev/null +++ b/src/Normalizer/GetGPUTypesPartDataCentersNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypesPartDataCenters' => false]; + } +} diff --git a/src/Normalizer/GetIPAddress200ResponseAllocationNormalizer.php b/src/Normalizer/GetIPAddress200ResponseAllocationNormalizer.php new file mode 100644 index 00000000..e7cede28 --- /dev/null +++ b/src/Normalizer/GetIPAddress200ResponseAllocationNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetIPAddress200ResponseAllocation' => false]; + } +} diff --git a/src/Normalizer/GetLoadBalancer200ResponseLoadBalancerNormalizer.php b/src/Normalizer/GetLoadBalancer200ResponseLoadBalancerNormalizer.php new file mode 100644 index 00000000..89eba17a --- /dev/null +++ b/src/Normalizer/GetLoadBalancer200ResponseLoadBalancerNormalizer.php @@ -0,0 +1,218 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('api_reference', $data)) { + $object->setApiReference($data['api_reference']); + unset($data['api_reference']); + } + if (\array_key_exists('resource_type', $data)) { + $object->setResourceType($data['resource_type']); + unset($data['resource_type']); + } + if (\array_key_exists('resources', $data)) { + $values = []; + foreach ($data['resources'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerResource', 'json', $context); + } + $object->setResources($values); + unset($data['resources']); + } + if (\array_key_exists('resource_ids', $data)) { + $values_1 = []; + foreach ($data['resource_ids'] as $value_1) { + $values_1[] = $value_1; + } + $object->setResourceIds($values_1); + unset($data['resource_ids']); + } + if (\array_key_exists('ip_address', $data)) { + $values_2 = []; + foreach ($data['ip_address'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartIPAddress', 'json', $context); + } + $object->setIpAddress($values_2); + unset($data['ip_address']); + } + if (\array_key_exists('https_redirect', $data)) { + $object->setHttpsRedirect($data['https_redirect']); + unset($data['https_redirect']); + } + if (\array_key_exists('backend_certificate', $data)) { + $object->setBackendCertificate($data['backend_certificate']); + unset($data['backend_certificate']); + } + if (\array_key_exists('backend_certificate_key', $data)) { + $object->setBackendCertificateKey($data['backend_certificate_key']); + unset($data['backend_certificate_key']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('enable_weighting', $data)) { + $object->setEnableWeighting($data['enable_weighting']); + unset($data['enable_weighting']); + } + if (\array_key_exists('weights', $data)) { + $values_3 = []; + foreach ($data['weights'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartWeights', 'json', $context); + } + $object->setWeights($values_3); + unset($data['weights']); + } + if (\array_key_exists('standby_vms', $data)) { + $values_4 = []; + foreach ($data['standby_vms'] as $value_4) { + $values_4[] = $value_4; + } + $object->setStandbyVms($values_4); + unset($data['standby_vms']); + } + foreach ($data as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_5; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('apiReference') && null !== $object->getApiReference()) { + $data['api_reference'] = $object->getApiReference(); + } + if ($object->isInitialized('resourceType') && null !== $object->getResourceType()) { + $data['resource_type'] = $object->getResourceType(); + } + if ($object->isInitialized('resources') && null !== $object->getResources()) { + $values = []; + foreach ($object->getResources() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['resources'] = $values; + } + if ($object->isInitialized('resourceIds') && null !== $object->getResourceIds()) { + $values_1 = []; + foreach ($object->getResourceIds() as $value_1) { + $values_1[] = $value_1; + } + $data['resource_ids'] = $values_1; + } + if ($object->isInitialized('ipAddress') && null !== $object->getIpAddress()) { + $values_2 = []; + foreach ($object->getIpAddress() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['ip_address'] = $values_2; + } + if ($object->isInitialized('httpsRedirect') && null !== $object->getHttpsRedirect()) { + $data['https_redirect'] = $object->getHttpsRedirect(); + } + if ($object->isInitialized('backendCertificate') && null !== $object->getBackendCertificate()) { + $data['backend_certificate'] = $object->getBackendCertificate(); + } + if ($object->isInitialized('backendCertificateKey') && null !== $object->getBackendCertificateKey()) { + $data['backend_certificate_key'] = $object->getBackendCertificateKey(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('enableWeighting') && null !== $object->getEnableWeighting()) { + $data['enable_weighting'] = $object->getEnableWeighting(); + } + if ($object->isInitialized('weights') && null !== $object->getWeights()) { + $values_3 = []; + foreach ($object->getWeights() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['weights'] = $values_3; + } + if ($object->isInitialized('standbyVms') && null !== $object->getStandbyVms()) { + $values_4 = []; + foreach ($object->getStandbyVms() as $value_4) { + $values_4[] = $value_4; + } + $data['standby_vms'] = $values_4; + } + foreach ($object as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_5; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancer200ResponseLoadBalancer' => false]; + } +} diff --git a/src/Normalizer/GetLoadBalancerPartDataCenterNormalizer.php b/src/Normalizer/GetLoadBalancerPartDataCenterNormalizer.php new file mode 100644 index 00000000..c391819b --- /dev/null +++ b/src/Normalizer/GetLoadBalancerPartDataCenterNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartDataCenter' => false]; + } +} diff --git a/src/Normalizer/GetLoadBalancerPartIPAddressNormalizer.php b/src/Normalizer/GetLoadBalancerPartIPAddressNormalizer.php new file mode 100644 index 00000000..3c03479e --- /dev/null +++ b/src/Normalizer/GetLoadBalancerPartIPAddressNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartIPAddress' => false]; + } +} diff --git a/src/Normalizer/GetLoadBalancerPartWeightsNormalizer.php b/src/Normalizer/GetLoadBalancerPartWeightsNormalizer.php new file mode 100644 index 00000000..f4e2673f --- /dev/null +++ b/src/Normalizer/GetLoadBalancerPartWeightsNormalizer.php @@ -0,0 +1,94 @@ +setVirtualMachineId($data['virtual_machine_id']); + unset($data['virtual_machine_id']); + } + if (\array_key_exists('weight', $data)) { + $object->setWeight($data['weight']); + unset($data['weight']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('virtualMachineId') && null !== $object->getVirtualMachineId()) { + $data['virtual_machine_id'] = $object->getVirtualMachineId(); + } + if ($object->isInitialized('weight') && null !== $object->getWeight()) { + $data['weight'] = $object->getWeight(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartWeights' => false]; + } +} diff --git a/src/Normalizer/GetLoadBalancerRules200ResponseLoadBalancerRulesNormalizer.php b/src/Normalizer/GetLoadBalancerRules200ResponseLoadBalancerRulesNormalizer.php new file mode 100644 index 00000000..514f238e --- /dev/null +++ b/src/Normalizer/GetLoadBalancerRules200ResponseLoadBalancerRulesNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('algorithm', $data)) { + $object->setAlgorithm($data['algorithm']); + unset($data['algorithm']); + } + if (\array_key_exists('destination_port', $data)) { + $object->setDestinationPort($data['destination_port']); + unset($data['destination_port']); + } + if (\array_key_exists('listen_port', $data)) { + $object->setListenPort($data['listen_port']); + unset($data['listen_port']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('certificates', $data)) { + $values = []; + foreach ($data['certificates'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerRulesPartCertificates', 'json', $context); + } + $object->setCertificates($values); + unset($data['certificates']); + } + if (\array_key_exists('check_enabled', $data)) { + $object->setCheckEnabled($data['check_enabled']); + unset($data['check_enabled']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('algorithm') && null !== $object->getAlgorithm()) { + $data['algorithm'] = $object->getAlgorithm(); + } + if ($object->isInitialized('destinationPort') && null !== $object->getDestinationPort()) { + $data['destination_port'] = $object->getDestinationPort(); + } + if ($object->isInitialized('listenPort') && null !== $object->getListenPort()) { + $data['listen_port'] = $object->getListenPort(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('certificates') && null !== $object->getCertificates()) { + $values = []; + foreach ($object->getCertificates() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['certificates'] = $values; + } + if ($object->isInitialized('checkEnabled') && null !== $object->getCheckEnabled()) { + $data['check_enabled'] = $object->getCheckEnabled(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerRules200ResponseLoadBalancerRules' => false]; + } +} diff --git a/src/Normalizer/GetLoadBalancerRulesPartCertificatesNormalizer.php b/src/Normalizer/GetLoadBalancerRulesPartCertificatesNormalizer.php new file mode 100644 index 00000000..9dae78a4 --- /dev/null +++ b/src/Normalizer/GetLoadBalancerRulesPartCertificatesNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerRulesPartCertificates' => false]; + } +} diff --git a/src/Normalizer/GetLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRuleNormalizer.php b/src/Normalizer/GetLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRuleNormalizer.php new file mode 100644 index 00000000..8212e5a8 --- /dev/null +++ b/src/Normalizer/GetLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRuleNormalizer.php @@ -0,0 +1,214 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('algorithm', $data)) { + $object->setAlgorithm($data['algorithm']); + unset($data['algorithm']); + } + if (\array_key_exists('destination_port', $data)) { + $object->setDestinationPort($data['destination_port']); + unset($data['destination_port']); + } + if (\array_key_exists('listen_port', $data)) { + $object->setListenPort($data['listen_port']); + unset($data['listen_port']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('proxy_protocol', $data)) { + $object->setProxyProtocol($data['proxy_protocol']); + unset($data['proxy_protocol']); + } + if (\array_key_exists('certificates', $data)) { + $values = []; + foreach ($data['certificates'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRulePartCertificates', 'json', $context); + } + $object->setCertificates($values); + unset($data['certificates']); + } + if (\array_key_exists('backend_ssl', $data)) { + $object->setBackendSsl($data['backend_ssl']); + unset($data['backend_ssl']); + } + if (\array_key_exists('passthrough_ssl', $data)) { + $object->setPassthroughSsl($data['passthrough_ssl']); + unset($data['passthrough_ssl']); + } + if (\array_key_exists('check_enabled', $data)) { + $object->setCheckEnabled($data['check_enabled']); + unset($data['check_enabled']); + } + if (\array_key_exists('check_fall', $data)) { + $object->setCheckFall($data['check_fall']); + unset($data['check_fall']); + } + if (\array_key_exists('check_interval', $data)) { + $object->setCheckInterval($data['check_interval']); + unset($data['check_interval']); + } + if (\array_key_exists('check_path', $data)) { + $object->setCheckPath($data['check_path']); + unset($data['check_path']); + } + if (\array_key_exists('check_protocol', $data)) { + $object->setCheckProtocol($data['check_protocol']); + unset($data['check_protocol']); + } + if (\array_key_exists('check_rise', $data)) { + $object->setCheckRise($data['check_rise']); + unset($data['check_rise']); + } + if (\array_key_exists('check_timeout', $data)) { + $object->setCheckTimeout($data['check_timeout']); + unset($data['check_timeout']); + } + if (\array_key_exists('check_http_statuses', $data)) { + $object->setCheckHttpStatuses($data['check_http_statuses']); + unset($data['check_http_statuses']); + } + if (\array_key_exists('load_balancer', $data)) { + $object->setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer', 'json', $context)); + unset($data['load_balancer']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('algorithm') && null !== $object->getAlgorithm()) { + $data['algorithm'] = $object->getAlgorithm(); + } + if ($object->isInitialized('destinationPort') && null !== $object->getDestinationPort()) { + $data['destination_port'] = $object->getDestinationPort(); + } + if ($object->isInitialized('listenPort') && null !== $object->getListenPort()) { + $data['listen_port'] = $object->getListenPort(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('proxyProtocol') && null !== $object->getProxyProtocol()) { + $data['proxy_protocol'] = $object->getProxyProtocol(); + } + if ($object->isInitialized('certificates') && null !== $object->getCertificates()) { + $values = []; + foreach ($object->getCertificates() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['certificates'] = $values; + } + if ($object->isInitialized('backendSsl') && null !== $object->getBackendSsl()) { + $data['backend_ssl'] = $object->getBackendSsl(); + } + if ($object->isInitialized('passthroughSsl') && null !== $object->getPassthroughSsl()) { + $data['passthrough_ssl'] = $object->getPassthroughSsl(); + } + if ($object->isInitialized('checkEnabled') && null !== $object->getCheckEnabled()) { + $data['check_enabled'] = $object->getCheckEnabled(); + } + if ($object->isInitialized('checkFall') && null !== $object->getCheckFall()) { + $data['check_fall'] = $object->getCheckFall(); + } + if ($object->isInitialized('checkInterval') && null !== $object->getCheckInterval()) { + $data['check_interval'] = $object->getCheckInterval(); + } + if ($object->isInitialized('checkPath') && null !== $object->getCheckPath()) { + $data['check_path'] = $object->getCheckPath(); + } + if ($object->isInitialized('checkProtocol') && null !== $object->getCheckProtocol()) { + $data['check_protocol'] = $object->getCheckProtocol(); + } + if ($object->isInitialized('checkRise') && null !== $object->getCheckRise()) { + $data['check_rise'] = $object->getCheckRise(); + } + if ($object->isInitialized('checkTimeout') && null !== $object->getCheckTimeout()) { + $data['check_timeout'] = $object->getCheckTimeout(); + } + if ($object->isInitialized('checkHttpStatuses') && null !== $object->getCheckHttpStatuses()) { + $data['check_http_statuses'] = $object->getCheckHttpStatuses(); + } + if ($object->isInitialized('loadBalancer') && null !== $object->getLoadBalancer()) { + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule' => false]; + } +} diff --git a/src/Normalizer/GetLoadBalancersRulesLoadBalancerRulePartCertificatesNormalizer.php b/src/Normalizer/GetLoadBalancersRulesLoadBalancerRulePartCertificatesNormalizer.php new file mode 100644 index 00000000..dfda2e91 --- /dev/null +++ b/src/Normalizer/GetLoadBalancersRulesLoadBalancerRulePartCertificatesNormalizer.php @@ -0,0 +1,116 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('additional_names', $data)) { + $values = []; + foreach ($data['additional_names'] as $value) { + $values[] = $value; + } + $object->setAdditionalNames($values); + unset($data['additional_names']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('additionalNames') && null !== $object->getAdditionalNames()) { + $values = []; + foreach ($object->getAdditionalNames() as $value) { + $values[] = $value; + } + $data['additional_names'] = $values; + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRulePartCertificates' => false]; + } +} diff --git a/src/Normalizer/GetLoadBalancersRulesLoadBalancerRulePartLoadBalancerNormalizer.php b/src/Normalizer/GetLoadBalancersRulesLoadBalancerRulePartLoadBalancerNormalizer.php new file mode 100644 index 00000000..e7ff7109 --- /dev/null +++ b/src/Normalizer/GetLoadBalancersRulesLoadBalancerRulePartLoadBalancerNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer' => false]; + } +} diff --git a/src/Normalizer/GetOperatingSystems200ResponseOperatingSystemsNormalizer.php b/src/Normalizer/GetOperatingSystems200ResponseOperatingSystemsNormalizer.php new file mode 100644 index 00000000..f3701edd --- /dev/null +++ b/src/Normalizer/GetOperatingSystems200ResponseOperatingSystemsNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOperatingSystems200ResponseOperatingSystems' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationAvailableNetworks200ResponseNetworksNormalizer.php b/src/Normalizer/GetOrganizationAvailableNetworks200ResponseNetworksNormalizer.php new file mode 100644 index 00000000..19d8909d --- /dev/null +++ b/src/Normalizer/GetOrganizationAvailableNetworks200ResponseNetworksNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworksPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworks200ResponseNetworks' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationAvailableNetworks200ResponseVirtualNetworksNormalizer.php b/src/Normalizer/GetOrganizationAvailableNetworks200ResponseVirtualNetworksNormalizer.php new file mode 100644 index 00000000..6d4c1f3b --- /dev/null +++ b/src/Normalizer/GetOrganizationAvailableNetworks200ResponseVirtualNetworksNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworksPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworks200ResponseVirtualNetworks' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationAvailableNetworksPartDataCenterNormalizer.php b/src/Normalizer/GetOrganizationAvailableNetworksPartDataCenterNormalizer.php new file mode 100644 index 00000000..d3092e05 --- /dev/null +++ b/src/Normalizer/GetOrganizationAvailableNetworksPartDataCenterNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworksPartDataCenter' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationCertificates200ResponseCertificatesNormalizer.php b/src/Normalizer/GetOrganizationCertificates200ResponseCertificatesNormalizer.php new file mode 100644 index 00000000..123edc16 --- /dev/null +++ b/src/Normalizer/GetOrganizationCertificates200ResponseCertificatesNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('issuer', $data)) { + $object->setIssuer($data['issuer']); + unset($data['issuer']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('expires_at', $data)) { + $object->setExpiresAt($data['expires_at']); + unset($data['expires_at']); + } + if (\array_key_exists('last_issued_at', $data)) { + $object->setLastIssuedAt($data['last_issued_at']); + unset($data['last_issued_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('issuer') && null !== $object->getIssuer()) { + $data['issuer'] = $object->getIssuer(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('expiresAt') && null !== $object->getExpiresAt()) { + $data['expires_at'] = $object->getExpiresAt(); + } + if ($object->isInitialized('lastIssuedAt') && null !== $object->getLastIssuedAt()) { + $data['last_issued_at'] = $object->getLastIssuedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationCertificates200ResponseCertificates' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationDiskBackupPolicies200ResponseDiskBackupPoliciesNormalizer.php b/src/Normalizer/GetOrganizationDiskBackupPolicies200ResponseDiskBackupPoliciesNormalizer.php new file mode 100644 index 00000000..319d2fb2 --- /dev/null +++ b/src/Normalizer/GetOrganizationDiskBackupPolicies200ResponseDiskBackupPoliciesNormalizer.php @@ -0,0 +1,118 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('retention', $data)) { + $object->setRetention($data['retention']); + unset($data['retention']); + } + if (\array_key_exists('total_size', $data)) { + $object->setTotalSize($data['total_size']); + unset($data['total_size']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskBackupPoliciesPartSchedule', 'json', $context)); + unset($data['schedule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('retention') && null !== $object->getRetention()) { + $data['retention'] = $object->getRetention(); + } + if ($object->isInitialized('totalSize') && null !== $object->getTotalSize()) { + $data['total_size'] = $object->getTotalSize(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationDiskBackupPoliciesPartScheduleNormalizer.php b/src/Normalizer/GetOrganizationDiskBackupPoliciesPartScheduleNormalizer.php new file mode 100644 index 00000000..f4e1135d --- /dev/null +++ b/src/Normalizer/GetOrganizationDiskBackupPoliciesPartScheduleNormalizer.php @@ -0,0 +1,94 @@ +setInterval($data['interval']); + unset($data['interval']); + } + if (\array_key_exists('next_invocation_at', $data)) { + $object->setNextInvocationAt($data['next_invocation_at']); + unset($data['next_invocation_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('interval') && null !== $object->getInterval()) { + $data['interval'] = $object->getInterval(); + } + if ($object->isInitialized('nextInvocationAt') && null !== $object->getNextInvocationAt()) { + $data['next_invocation_at'] = $object->getNextInvocationAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskBackupPoliciesPartSchedule' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationDiskTemplates200ResponseDiskTemplatesNormalizer.php b/src/Normalizer/GetOrganizationDiskTemplates200ResponseDiskTemplatesNormalizer.php new file mode 100644 index 00000000..7ba3c28c --- /dev/null +++ b/src/Normalizer/GetOrganizationDiskTemplates200ResponseDiskTemplatesNormalizer.php @@ -0,0 +1,129 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('universal', $data)) { + $object->setUniversal($data['universal']); + unset($data['universal']); + } + if (\array_key_exists('latest_version', $data)) { + $object->setLatestVersion($this->denormalizer->denormalize($data['latest_version'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskTemplatesPartLatestVersion', 'json', $context)); + unset($data['latest_version']); + } + if (\array_key_exists('operating_system', $data)) { + $object->setOperatingSystem($this->denormalizer->denormalize($data['operating_system'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskTemplatesPartOperatingSystem', 'json', $context)); + unset($data['operating_system']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('universal') && null !== $object->getUniversal()) { + $data['universal'] = $object->getUniversal(); + } + if ($object->isInitialized('latestVersion') && null !== $object->getLatestVersion()) { + $data['latest_version'] = $this->normalizer->normalize($object->getLatestVersion(), 'json', $context); + } + if ($object->isInitialized('operatingSystem') && null !== $object->getOperatingSystem()) { + $data['operating_system'] = $this->normalizer->normalize($object->getOperatingSystem(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskTemplates200ResponseDiskTemplates' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationDiskTemplatesPartLatestVersionNormalizer.php b/src/Normalizer/GetOrganizationDiskTemplatesPartLatestVersionNormalizer.php new file mode 100644 index 00000000..147e02be --- /dev/null +++ b/src/Normalizer/GetOrganizationDiskTemplatesPartLatestVersionNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('number', $data)) { + $object->setNumber($data['number']); + unset($data['number']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('number') && null !== $object->getNumber()) { + $data['number'] = $object->getNumber(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskTemplatesPartLatestVersion' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationDiskTemplatesPartOperatingSystemNormalizer.php b/src/Normalizer/GetOrganizationDiskTemplatesPartOperatingSystemNormalizer.php new file mode 100644 index 00000000..bae7558e --- /dev/null +++ b/src/Normalizer/GetOrganizationDiskTemplatesPartOperatingSystemNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskTemplatesPartOperatingSystem' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationDisks200ResponseDiskNormalizer.php b/src/Normalizer/GetOrganizationDisks200ResponseDiskNormalizer.php new file mode 100644 index 00000000..560ba3fd --- /dev/null +++ b/src/Normalizer/GetOrganizationDisks200ResponseDiskNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('size_in_gb', $data)) { + $object->setSizeInGb($data['size_in_gb']); + unset($data['size_in_gb']); + } + if (\array_key_exists('wwn', $data)) { + $object->setWwn($data['wwn']); + unset($data['wwn']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('virtual_machine_disk', $data)) { + $object->setVirtualMachineDisk($this->denormalizer->denormalize($data['virtual_machine_disk'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDisksPartVirtualMachineDisk', 'json', $context)); + unset($data['virtual_machine_disk']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('sizeInGb') && null !== $object->getSizeInGb()) { + $data['size_in_gb'] = $object->getSizeInGb(); + } + if ($object->isInitialized('wwn') && null !== $object->getWwn()) { + $data['wwn'] = $object->getWwn(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('virtualMachineDisk') && null !== $object->getVirtualMachineDisk()) { + $data['virtual_machine_disk'] = $this->normalizer->normalize($object->getVirtualMachineDisk(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDisks200ResponseDisk' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationDisksPartVirtualMachineDiskNormalizer.php b/src/Normalizer/GetOrganizationDisksPartVirtualMachineDiskNormalizer.php new file mode 100644 index 00000000..80483320 --- /dev/null +++ b/src/Normalizer/GetOrganizationDisksPartVirtualMachineDiskNormalizer.php @@ -0,0 +1,87 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDisksPartVirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDisksPartVirtualMachineDisk' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationDisksPartVirtualMachineNormalizer.php b/src/Normalizer/GetOrganizationDisksPartVirtualMachineNormalizer.php new file mode 100644 index 00000000..c661af9c --- /dev/null +++ b/src/Normalizer/GetOrganizationDisksPartVirtualMachineNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDisksPartVirtualMachine' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationFileStorageVolumes200ResponseFileStorageVolumesNormalizer.php b/src/Normalizer/GetOrganizationFileStorageVolumes200ResponseFileStorageVolumesNormalizer.php new file mode 100644 index 00000000..a13615a5 --- /dev/null +++ b/src/Normalizer/GetOrganizationFileStorageVolumes200ResponseFileStorageVolumesNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationFileStorageVolumesPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('nfs_location', $data)) { + $object->setNfsLocation($data['nfs_location']); + unset($data['nfs_location']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('nfsLocation') && null !== $object->getNfsLocation()) { + $data['nfs_location'] = $object->getNfsLocation(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationFileStorageVolumesPartDataCenterNormalizer.php b/src/Normalizer/GetOrganizationFileStorageVolumesPartDataCenterNormalizer.php new file mode 100644 index 00000000..456d955b --- /dev/null +++ b/src/Normalizer/GetOrganizationFileStorageVolumesPartDataCenterNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationFileStorageVolumesPartDataCenter' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationIPAddresses200ResponseIPAddressesNormalizer.php b/src/Normalizer/GetOrganizationIPAddresses200ResponseIPAddressesNormalizer.php new file mode 100644 index 00000000..6fc97088 --- /dev/null +++ b/src/Normalizer/GetOrganizationIPAddresses200ResponseIPAddressesNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + if (\array_key_exists('reverse_dns', $data)) { + $object->setReverseDns($data['reverse_dns']); + unset($data['reverse_dns']); + } + if (\array_key_exists('vip', $data)) { + $object->setVip($data['vip']); + unset($data['vip']); + } + if (\array_key_exists('allocation_id', $data)) { + $object->setAllocationId($data['allocation_id']); + unset($data['allocation_id']); + } + if (\array_key_exists('allocation_type', $data)) { + $object->setAllocationType($data['allocation_type']); + unset($data['allocation_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + if ($object->isInitialized('reverseDns') && null !== $object->getReverseDns()) { + $data['reverse_dns'] = $object->getReverseDns(); + } + if ($object->isInitialized('vip') && null !== $object->getVip()) { + $data['vip'] = $object->getVip(); + } + if ($object->isInitialized('allocationId') && null !== $object->getAllocationId()) { + $data['allocation_id'] = $object->getAllocationId(); + } + if ($object->isInitialized('allocationType') && null !== $object->getAllocationType()) { + $data['allocation_type'] = $object->getAllocationType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationIPAddresses200ResponseIPAddresses' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationLoadBalancers200ResponseLoadBalancersNormalizer.php b/src/Normalizer/GetOrganizationLoadBalancers200ResponseLoadBalancersNormalizer.php new file mode 100644 index 00000000..fbab97c7 --- /dev/null +++ b/src/Normalizer/GetOrganizationLoadBalancers200ResponseLoadBalancersNormalizer.php @@ -0,0 +1,160 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('api_reference', $data)) { + $object->setApiReference($data['api_reference']); + unset($data['api_reference']); + } + if (\array_key_exists('resource_type', $data)) { + $object->setResourceType($data['resource_type']); + unset($data['resource_type']); + } + if (\array_key_exists('resources', $data)) { + $values = []; + foreach ($data['resources'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerResource', 'json', $context); + } + $object->setResources($values); + unset($data['resources']); + } + if (\array_key_exists('resource_ids', $data)) { + $values_1 = []; + foreach ($data['resource_ids'] as $value_1) { + $values_1[] = $value_1; + } + $object->setResourceIds($values_1); + unset($data['resource_ids']); + } + if (\array_key_exists('ip_address', $data)) { + $values_2 = []; + foreach ($data['ip_address'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationLoadBalancersPartIPAddress', 'json', $context); + } + $object->setIpAddress($values_2); + unset($data['ip_address']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationLoadBalancersPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_3; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('apiReference') && null !== $object->getApiReference()) { + $data['api_reference'] = $object->getApiReference(); + } + if ($object->isInitialized('resourceType') && null !== $object->getResourceType()) { + $data['resource_type'] = $object->getResourceType(); + } + if ($object->isInitialized('resources') && null !== $object->getResources()) { + $values = []; + foreach ($object->getResources() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['resources'] = $values; + } + if ($object->isInitialized('resourceIds') && null !== $object->getResourceIds()) { + $values_1 = []; + foreach ($object->getResourceIds() as $value_1) { + $values_1[] = $value_1; + } + $data['resource_ids'] = $values_1; + } + if ($object->isInitialized('ipAddress') && null !== $object->getIpAddress()) { + $values_2 = []; + foreach ($object->getIpAddress() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['ip_address'] = $values_2; + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_3; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationLoadBalancers200ResponseLoadBalancers' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationLoadBalancersPartDataCenterNormalizer.php b/src/Normalizer/GetOrganizationLoadBalancersPartDataCenterNormalizer.php new file mode 100644 index 00000000..332bfd7f --- /dev/null +++ b/src/Normalizer/GetOrganizationLoadBalancersPartDataCenterNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationLoadBalancersPartDataCenter' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationLoadBalancersPartIPAddressNormalizer.php b/src/Normalizer/GetOrganizationLoadBalancersPartIPAddressNormalizer.php new file mode 100644 index 00000000..3df82052 --- /dev/null +++ b/src/Normalizer/GetOrganizationLoadBalancersPartIPAddressNormalizer.php @@ -0,0 +1,87 @@ +setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationLoadBalancersPartIPAddress' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationManaged200ResponseOrganizationsNormalizer.php b/src/Normalizer/GetOrganizationManaged200ResponseOrganizationsNormalizer.php new file mode 100644 index 00000000..e7499c0d --- /dev/null +++ b/src/Normalizer/GetOrganizationManaged200ResponseOrganizationsNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('sub_domain', $data)) { + $object->setSubDomain($data['sub_domain']); + unset($data['sub_domain']); + } + if (\array_key_exists('infrastructure_domain', $data)) { + $object->setInfrastructureDomain($data['infrastructure_domain']); + unset($data['infrastructure_domain']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('managed', $data)) { + $object->setManaged($data['managed']); + unset($data['managed']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('subDomain') && null !== $object->getSubDomain()) { + $data['sub_domain'] = $object->getSubDomain(); + } + if ($object->isInitialized('infrastructureDomain') && null !== $object->getInfrastructureDomain()) { + $data['infrastructure_domain'] = $object->getInfrastructureDomain(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('managed') && null !== $object->getManaged()) { + $data['managed'] = $object->getManaged(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationManaged200ResponseOrganizations' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationTags200ResponseTagsNormalizer.php b/src/Normalizer/GetOrganizationTags200ResponseTagsNormalizer.php new file mode 100644 index 00000000..710de530 --- /dev/null +++ b/src/Normalizer/GetOrganizationTags200ResponseTagsNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationTags200ResponseTags' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationUsersWithAccess200ResponseUsersNormalizer.php b/src/Normalizer/GetOrganizationUsersWithAccess200ResponseUsersNormalizer.php new file mode 100644 index 00000000..a8ae91ce --- /dev/null +++ b/src/Normalizer/GetOrganizationUsersWithAccess200ResponseUsersNormalizer.php @@ -0,0 +1,87 @@ +setUser($this->denormalizer->denormalize($data['user'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationUsersWithAccessPartUser', 'json', $context)); + unset($data['user']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('user') && null !== $object->getUser()) { + $data['user'] = $this->normalizer->normalize($object->getUser(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationUsersWithAccess200ResponseUsers' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationUsersWithAccessPartUserNormalizer.php b/src/Normalizer/GetOrganizationUsersWithAccessPartUserNormalizer.php new file mode 100644 index 00000000..743fee72 --- /dev/null +++ b/src/Normalizer/GetOrganizationUsersWithAccessPartUserNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('first_name', $data)) { + $object->setFirstName($data['first_name']); + unset($data['first_name']); + } + if (\array_key_exists('last_name', $data)) { + $object->setLastName($data['last_name']); + unset($data['last_name']); + } + if (\array_key_exists('avatar_url', $data)) { + $object->setAvatarUrl($data['avatar_url']); + unset($data['avatar_url']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('firstName') && null !== $object->getFirstName()) { + $data['first_name'] = $object->getFirstName(); + } + if ($object->isInitialized('lastName') && null !== $object->getLastName()) { + $data['last_name'] = $object->getLastName(); + } + if ($object->isInitialized('avatarUrl') && null !== $object->getAvatarUrl()) { + $data['avatar_url'] = $object->getAvatarUrl(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationUsersWithAccessPartUser' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationVirtualMachines200ResponseVirtualMachinesNormalizer.php b/src/Normalizer/GetOrganizationVirtualMachines200ResponseVirtualMachinesNormalizer.php new file mode 100644 index 00000000..6ff91215 --- /dev/null +++ b/src/Normalizer/GetOrganizationVirtualMachines200ResponseVirtualMachinesNormalizer.php @@ -0,0 +1,151 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('zone', $data)) { + $object->setZone($this->denormalizer->denormalize($data['zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartZone', 'json', $context)); + unset($data['zone']); + } + if (\array_key_exists('package', $data)) { + $object->setPackage($this->denormalizer->denormalize($data['package'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartPackage', 'json', $context)); + unset($data['package']); + } + if (\array_key_exists('gpu_type', $data)) { + $object->setGpuType($this->denormalizer->denormalize($data['gpu_type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartGPUType', 'json', $context)); + unset($data['gpu_type']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('zone') && null !== $object->getZone()) { + $data['zone'] = $this->normalizer->normalize($object->getZone(), 'json', $context); + } + if ($object->isInitialized('package') && null !== $object->getPackage()) { + $data['package'] = $this->normalizer->normalize($object->getPackage(), 'json', $context); + } + if ($object->isInitialized('gpuType') && null !== $object->getGpuType()) { + $data['gpu_type'] = $this->normalizer->normalize($object->getGpuType(), 'json', $context); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachines200ResponseVirtualMachines' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationVirtualMachinesPartDataCenterNormalizer.php b/src/Normalizer/GetOrganizationVirtualMachinesPartDataCenterNormalizer.php new file mode 100644 index 00000000..07868e35 --- /dev/null +++ b/src/Normalizer/GetOrganizationVirtualMachinesPartDataCenterNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartDataCenter' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationVirtualMachinesPartGPUTypeNormalizer.php b/src/Normalizer/GetOrganizationVirtualMachinesPartGPUTypeNormalizer.php new file mode 100644 index 00000000..bc2d78a5 --- /dev/null +++ b/src/Normalizer/GetOrganizationVirtualMachinesPartGPUTypeNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartGPUType' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationVirtualMachinesPartIPAddressesNormalizer.php b/src/Normalizer/GetOrganizationVirtualMachinesPartIPAddressesNormalizer.php new file mode 100644 index 00000000..3006e7ee --- /dev/null +++ b/src/Normalizer/GetOrganizationVirtualMachinesPartIPAddressesNormalizer.php @@ -0,0 +1,87 @@ +setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartIPAddresses' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationVirtualMachinesPartPackageNormalizer.php b/src/Normalizer/GetOrganizationVirtualMachinesPartPackageNormalizer.php new file mode 100644 index 00000000..9c76e2c3 --- /dev/null +++ b/src/Normalizer/GetOrganizationVirtualMachinesPartPackageNormalizer.php @@ -0,0 +1,87 @@ +setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartPackage' => false]; + } +} diff --git a/src/Normalizer/GetOrganizationVirtualMachinesPartZoneNormalizer.php b/src/Normalizer/GetOrganizationVirtualMachinesPartZoneNormalizer.php new file mode 100644 index 00000000..77f548d6 --- /dev/null +++ b/src/Normalizer/GetOrganizationVirtualMachinesPartZoneNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartZone' => false]; + } +} diff --git a/src/Normalizer/GetOrganizations200ResponseOrganizationsNormalizer.php b/src/Normalizer/GetOrganizations200ResponseOrganizationsNormalizer.php new file mode 100644 index 00000000..9df370d2 --- /dev/null +++ b/src/Normalizer/GetOrganizations200ResponseOrganizationsNormalizer.php @@ -0,0 +1,129 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('sub_domain', $data)) { + $object->setSubDomain($data['sub_domain']); + unset($data['sub_domain']); + } + if (\array_key_exists('infrastructure_domain', $data)) { + $object->setInfrastructureDomain($data['infrastructure_domain']); + unset($data['infrastructure_domain']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('suspended', $data)) { + $object->setSuspended($data['suspended']); + unset($data['suspended']); + } + if (\array_key_exists('managed', $data)) { + $object->setManaged($data['managed']); + unset($data['managed']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('subDomain') && null !== $object->getSubDomain()) { + $data['sub_domain'] = $object->getSubDomain(); + } + if ($object->isInitialized('infrastructureDomain') && null !== $object->getInfrastructureDomain()) { + $data['infrastructure_domain'] = $object->getInfrastructureDomain(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('suspended') && null !== $object->getSuspended()) { + $data['suspended'] = $object->getSuspended(); + } + if ($object->isInitialized('managed') && null !== $object->getManaged()) { + $data['managed'] = $object->getManaged(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizations200ResponseOrganizations' => false]; + } +} diff --git a/src/Normalizer/GetSecurityGroupRules200ResponseSecurityGroupRulesNormalizer.php b/src/Normalizer/GetSecurityGroupRules200ResponseSecurityGroupRulesNormalizer.php new file mode 100644 index 00000000..cdb6bee3 --- /dev/null +++ b/src/Normalizer/GetSecurityGroupRules200ResponseSecurityGroupRulesNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('direction', $data)) { + $object->setDirection($data['direction']); + unset($data['direction']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('action', $data)) { + $object->setAction($data['action']); + unset($data['action']); + } + if (\array_key_exists('ports', $data)) { + $object->setPorts($data['ports']); + unset($data['ports']); + } + if (\array_key_exists('targets', $data)) { + $values = []; + foreach ($data['targets'] as $value) { + $values[] = $value; + } + $object->setTargets($values); + unset($data['targets']); + } + if (\array_key_exists('notes', $data)) { + $object->setNotes($data['notes']); + unset($data['notes']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('direction') && null !== $object->getDirection()) { + $data['direction'] = $object->getDirection(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('action') && null !== $object->getAction()) { + $data['action'] = $object->getAction(); + } + if ($object->isInitialized('ports') && null !== $object->getPorts()) { + $data['ports'] = $object->getPorts(); + } + if ($object->isInitialized('targets') && null !== $object->getTargets()) { + $values = []; + foreach ($object->getTargets() as $value) { + $values[] = $value; + } + $data['targets'] = $values; + } + if ($object->isInitialized('notes') && null !== $object->getNotes()) { + $data['notes'] = $object->getNotes(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetSecurityGroupRules200ResponseSecurityGroupRules' => false]; + } +} diff --git a/src/Normalizer/GetSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRuleNormalizer.php b/src/Normalizer/GetSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRuleNormalizer.php new file mode 100644 index 00000000..df6e5769 --- /dev/null +++ b/src/Normalizer/GetSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRuleNormalizer.php @@ -0,0 +1,144 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('security_group', $data)) { + $object->setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup', 'json', $context)); + unset($data['security_group']); + } + if (\array_key_exists('direction', $data)) { + $object->setDirection($data['direction']); + unset($data['direction']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('action', $data)) { + $object->setAction($data['action']); + unset($data['action']); + } + if (\array_key_exists('ports', $data)) { + $object->setPorts($data['ports']); + unset($data['ports']); + } + if (\array_key_exists('targets', $data)) { + $values = []; + foreach ($data['targets'] as $value) { + $values[] = $value; + } + $object->setTargets($values); + unset($data['targets']); + } + if (\array_key_exists('notes', $data)) { + $object->setNotes($data['notes']); + unset($data['notes']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('securityGroup') && null !== $object->getSecurityGroup()) { + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + } + if ($object->isInitialized('direction') && null !== $object->getDirection()) { + $data['direction'] = $object->getDirection(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('action') && null !== $object->getAction()) { + $data['action'] = $object->getAction(); + } + if ($object->isInitialized('ports') && null !== $object->getPorts()) { + $data['ports'] = $object->getPorts(); + } + if ($object->isInitialized('targets') && null !== $object->getTargets()) { + $values = []; + foreach ($object->getTargets() as $value) { + $values[] = $value; + } + $data['targets'] = $values; + } + if ($object->isInitialized('notes') && null !== $object->getNotes()) { + $data['notes'] = $object->getNotes(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule' => false]; + } +} diff --git a/src/Normalizer/GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroupNormalizer.php b/src/Normalizer/GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroupNormalizer.php new file mode 100644 index 00000000..81d2af0e --- /dev/null +++ b/src/Normalizer/GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup' => false]; + } +} diff --git a/src/Normalizer/GetUsersCurrent200ResponseOrganizationsNormalizer.php b/src/Normalizer/GetUsersCurrent200ResponseOrganizationsNormalizer.php new file mode 100644 index 00000000..fe6b7f55 --- /dev/null +++ b/src/Normalizer/GetUsersCurrent200ResponseOrganizationsNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('sub_domain', $data)) { + $object->setSubDomain($data['sub_domain']); + unset($data['sub_domain']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('subDomain') && null !== $object->getSubDomain()) { + $data['sub_domain'] = $object->getSubDomain(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetUsersCurrent200ResponseOrganizations' => false]; + } +} diff --git a/src/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNormalizer.php b/src/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..c7da3c50 --- /dev/null +++ b/src/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,144 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartVirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartNetwork', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartSpeedProfile', 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNI200ResponseVirtualMachineNetworkInterface' => false]; + } +} diff --git a/src/Normalizer/GetVMNIVMNIPartIPAddressesNormalizer.php b/src/Normalizer/GetVMNIVMNIPartIPAddressesNormalizer.php new file mode 100644 index 00000000..3b1dc3d7 --- /dev/null +++ b/src/Normalizer/GetVMNIVMNIPartIPAddressesNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartIPAddresses' => false]; + } +} diff --git a/src/Normalizer/GetVMNIVMNIPartNetworkNormalizer.php b/src/Normalizer/GetVMNIVMNIPartNetworkNormalizer.php new file mode 100644 index 00000000..47541c62 --- /dev/null +++ b/src/Normalizer/GetVMNIVMNIPartNetworkNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartNetwork' => false]; + } +} diff --git a/src/Normalizer/GetVMNIVMNIPartSpeedProfileNormalizer.php b/src/Normalizer/GetVMNIVMNIPartSpeedProfileNormalizer.php new file mode 100644 index 00000000..11c877e9 --- /dev/null +++ b/src/Normalizer/GetVMNIVMNIPartSpeedProfileNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartSpeedProfile' => false]; + } +} diff --git a/src/Normalizer/GetVMNIVMNIPartVirtualMachineNormalizer.php b/src/Normalizer/GetVMNIVMNIPartVirtualMachineNormalizer.php new file mode 100644 index 00000000..eac55edb --- /dev/null +++ b/src/Normalizer/GetVMNIVMNIPartVirtualMachineNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartVirtualMachine' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachine200ResponseVirtualMachineNormalizer.php b/src/Normalizer/GetVirtualMachine200ResponseVirtualMachineNormalizer.php new file mode 100644 index 00000000..c2cba5f0 --- /dev/null +++ b/src/Normalizer/GetVirtualMachine200ResponseVirtualMachineNormalizer.php @@ -0,0 +1,252 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('initial_root_password', $data)) { + $object->setInitialRootPassword($data['initial_root_password']); + unset($data['initial_root_password']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('zone', $data)) { + $object->setZone($this->denormalizer->denormalize($data['zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartZone', 'json', $context)); + unset($data['zone']); + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartOrganization', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('group', $data)) { + $object->setGroup($this->denormalizer->denormalize($data['group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGroup', 'json', $context)); + unset($data['group']); + } + if (\array_key_exists('package', $data)) { + $object->setPackage($this->denormalizer->denormalize($data['package'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartPackage', 'json', $context)); + unset($data['package']); + } + if (\array_key_exists('attached_iso', $data)) { + $object->setAttachedIso($this->denormalizer->denormalize($data['attached_iso'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartAttachedISO', 'json', $context)); + unset($data['attached_iso']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('gpu_type', $data)) { + $object->setGpuType($this->denormalizer->denormalize($data['gpu_type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGPUType', 'json', $context)); + unset($data['gpu_type']); + } + if (\array_key_exists('gpus', $data)) { + $values = []; + foreach ($data['gpus'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGPUs', 'json', $context); + } + $object->setGpus($values); + unset($data['gpus']); + } + if (\array_key_exists('tags', $data)) { + $values_1 = []; + foreach ($data['tags'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartTags', 'json', $context); + } + $object->setTags($values_1); + unset($data['tags']); + } + if (\array_key_exists('tag_names', $data)) { + $values_2 = []; + foreach ($data['tag_names'] as $value_2) { + $values_2[] = $value_2; + } + $object->setTagNames($values_2); + unset($data['tag_names']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values_3 = []; + foreach ($data['ip_addresses'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values_3); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_4; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('initialRootPassword') && null !== $object->getInitialRootPassword()) { + $data['initial_root_password'] = $object->getInitialRootPassword(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('zone') && null !== $object->getZone()) { + $data['zone'] = $this->normalizer->normalize($object->getZone(), 'json', $context); + } + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + } + if ($object->isInitialized('group') && null !== $object->getGroup()) { + $data['group'] = $this->normalizer->normalize($object->getGroup(), 'json', $context); + } + if ($object->isInitialized('package') && null !== $object->getPackage()) { + $data['package'] = $this->normalizer->normalize($object->getPackage(), 'json', $context); + } + if ($object->isInitialized('attachedIso') && null !== $object->getAttachedIso()) { + $data['attached_iso'] = $this->normalizer->normalize($object->getAttachedIso(), 'json', $context); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('gpuType') && null !== $object->getGpuType()) { + $data['gpu_type'] = $this->normalizer->normalize($object->getGpuType(), 'json', $context); + } + if ($object->isInitialized('gpus') && null !== $object->getGpus()) { + $values = []; + foreach ($object->getGpus() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['gpus'] = $values; + } + if ($object->isInitialized('tags') && null !== $object->getTags()) { + $values_1 = []; + foreach ($object->getTags() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['tags'] = $values_1; + } + if ($object->isInitialized('tagNames') && null !== $object->getTagNames()) { + $values_2 = []; + foreach ($object->getTagNames() as $value_2) { + $values_2[] = $value_2; + } + $data['tag_names'] = $values_2; + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values_3 = []; + foreach ($object->getIpAddresses() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['ip_addresses'] = $values_3; + } + foreach ($object as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_4; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachine200ResponseVirtualMachine' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPoliciesNormalizer.php b/src/Normalizer/GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPoliciesNormalizer.php new file mode 100644 index 00000000..851d4e26 --- /dev/null +++ b/src/Normalizer/GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPoliciesNormalizer.php @@ -0,0 +1,118 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('retention', $data)) { + $object->setRetention($data['retention']); + unset($data['retention']); + } + if (\array_key_exists('total_size', $data)) { + $object->setTotalSize($data['total_size']); + unset($data['total_size']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDiskBackupPoliciesPartSchedule', 'json', $context)); + unset($data['schedule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('retention') && null !== $object->getRetention()) { + $data['retention'] = $object->getRetention(); + } + if ($object->isInitialized('totalSize') && null !== $object->getTotalSize()) { + $data['total_size'] = $object->getTotalSize(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicies' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachineDiskBackupPoliciesPartScheduleNormalizer.php b/src/Normalizer/GetVirtualMachineDiskBackupPoliciesPartScheduleNormalizer.php new file mode 100644 index 00000000..50136ca9 --- /dev/null +++ b/src/Normalizer/GetVirtualMachineDiskBackupPoliciesPartScheduleNormalizer.php @@ -0,0 +1,94 @@ +setInterval($data['interval']); + unset($data['interval']); + } + if (\array_key_exists('next_invocation_at', $data)) { + $object->setNextInvocationAt($data['next_invocation_at']); + unset($data['next_invocation_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('interval') && null !== $object->getInterval()) { + $data['interval'] = $object->getInterval(); + } + if ($object->isInitialized('nextInvocationAt') && null !== $object->getNextInvocationAt()) { + $data['next_invocation_at'] = $object->getNextInvocationAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDiskBackupPoliciesPartSchedule' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachineDisks200ResponseDisksNormalizer.php b/src/Normalizer/GetVirtualMachineDisks200ResponseDisksNormalizer.php new file mode 100644 index 00000000..30d1c2e2 --- /dev/null +++ b/src/Normalizer/GetVirtualMachineDisks200ResponseDisksNormalizer.php @@ -0,0 +1,108 @@ +setDisk($this->denormalizer->denormalize($data['disk'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDisksPartDisk', 'json', $context)); + unset($data['disk']); + } + if (\array_key_exists('attach_on_boot', $data)) { + $object->setAttachOnBoot($data['attach_on_boot']); + unset($data['attach_on_boot']); + } + if (\array_key_exists('boot', $data)) { + $object->setBoot($data['boot']); + unset($data['boot']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('disk') && null !== $object->getDisk()) { + $data['disk'] = $this->normalizer->normalize($object->getDisk(), 'json', $context); + } + if ($object->isInitialized('attachOnBoot') && null !== $object->getAttachOnBoot()) { + $data['attach_on_boot'] = $object->getAttachOnBoot(); + } + if ($object->isInitialized('boot') && null !== $object->getBoot()) { + $data['boot'] = $object->getBoot(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDisks200ResponseDisks' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachineDisksPartDiskNormalizer.php b/src/Normalizer/GetVirtualMachineDisksPartDiskNormalizer.php new file mode 100644 index 00000000..22e56587 --- /dev/null +++ b/src/Normalizer/GetVirtualMachineDisksPartDiskNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('size_in_gb', $data)) { + $object->setSizeInGb($data['size_in_gb']); + unset($data['size_in_gb']); + } + if (\array_key_exists('wwn', $data)) { + $object->setWwn($data['wwn']); + unset($data['wwn']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('sizeInGb') && null !== $object->getSizeInGb()) { + $data['size_in_gb'] = $object->getSizeInGb(); + } + if ($object->isInitialized('wwn') && null !== $object->getWwn()) { + $data['wwn'] = $object->getWwn(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDisksPartDisk' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer.php b/src/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..4be1ebce --- /dev/null +++ b/src/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartVirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartNetwork', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachineNetworkInterfacePartIPAddressesNormalizer.php b/src/Normalizer/GetVirtualMachineNetworkInterfacePartIPAddressesNormalizer.php new file mode 100644 index 00000000..248028f4 --- /dev/null +++ b/src/Normalizer/GetVirtualMachineNetworkInterfacePartIPAddressesNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartIPAddresses' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachineNetworkInterfacePartNetworkNormalizer.php b/src/Normalizer/GetVirtualMachineNetworkInterfacePartNetworkNormalizer.php new file mode 100644 index 00000000..29a9f137 --- /dev/null +++ b/src/Normalizer/GetVirtualMachineNetworkInterfacePartNetworkNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartNetwork' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachineNetworkInterfacePartVirtualMachineNormalizer.php b/src/Normalizer/GetVirtualMachineNetworkInterfacePartVirtualMachineNormalizer.php new file mode 100644 index 00000000..826bfb51 --- /dev/null +++ b/src/Normalizer/GetVirtualMachineNetworkInterfacePartVirtualMachineNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartVirtualMachine' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNormalizer.php b/src/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNormalizer.php new file mode 100644 index 00000000..9ead3166 --- /dev/null +++ b/src/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNormalizer.php @@ -0,0 +1,116 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacesPartNetwork', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacesPartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachineNetworkInterfacesPartIPAddressesNormalizer.php b/src/Normalizer/GetVirtualMachineNetworkInterfacesPartIPAddressesNormalizer.php new file mode 100644 index 00000000..5bfa9b91 --- /dev/null +++ b/src/Normalizer/GetVirtualMachineNetworkInterfacesPartIPAddressesNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacesPartIPAddresses' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachineNetworkInterfacesPartNetworkNormalizer.php b/src/Normalizer/GetVirtualMachineNetworkInterfacesPartNetworkNormalizer.php new file mode 100644 index 00000000..f22ba85e --- /dev/null +++ b/src/Normalizer/GetVirtualMachineNetworkInterfacesPartNetworkNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacesPartNetwork' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePackages200ResponseVirtualMachinePackagesNormalizer.php b/src/Normalizer/GetVirtualMachinePackages200ResponseVirtualMachinePackagesNormalizer.php new file mode 100644 index 00000000..1f4b8277 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePackages200ResponseVirtualMachinePackagesNormalizer.php @@ -0,0 +1,143 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('ipv4_addresses', $data)) { + $object->setIpv4Addresses($data['ipv4_addresses']); + unset($data['ipv4_addresses']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('storage_in_gb', $data)) { + $object->setStorageInGb($data['storage_in_gb']); + unset($data['storage_in_gb']); + } + if (\array_key_exists('privacy', $data)) { + $object->setPrivacy($data['privacy']); + unset($data['privacy']); + } + if (\array_key_exists('icon', $data)) { + $object->setIcon($this->denormalizer->denormalize($data['icon'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePackagesPartIcon', 'json', $context)); + unset($data['icon']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('ipv4Addresses') && null !== $object->getIpv4Addresses()) { + $data['ipv4_addresses'] = $object->getIpv4Addresses(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('storageInGb') && null !== $object->getStorageInGb()) { + $data['storage_in_gb'] = $object->getStorageInGb(); + } + if ($object->isInitialized('privacy') && null !== $object->getPrivacy()) { + $data['privacy'] = $object->getPrivacy(); + } + if ($object->isInitialized('icon') && null !== $object->getIcon()) { + $data['icon'] = $this->normalizer->normalize($object->getIcon(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePackages200ResponseVirtualMachinePackages' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePackagesPartIconNormalizer.php b/src/Normalizer/GetVirtualMachinePackagesPartIconNormalizer.php new file mode 100644 index 00000000..7156b69e --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePackagesPartIconNormalizer.php @@ -0,0 +1,87 @@ +setUrl($data['url']); + unset($data['url']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePackagesPartIcon' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartAttachedISONormalizer.php b/src/Normalizer/GetVirtualMachinePartAttachedISONormalizer.php new file mode 100644 index 00000000..c3d75467 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartAttachedISONormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('operating_system', $data)) { + $object->setOperatingSystem($this->denormalizer->denormalize($data['operating_system'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartOperatingSystem', 'json', $context)); + unset($data['operating_system']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('operatingSystem') && null !== $object->getOperatingSystem()) { + $data['operating_system'] = $this->normalizer->normalize($object->getOperatingSystem(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartAttachedISO' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartBadgeNormalizer.php b/src/Normalizer/GetVirtualMachinePartBadgeNormalizer.php new file mode 100644 index 00000000..b65fd6e4 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartBadgeNormalizer.php @@ -0,0 +1,122 @@ +setUrl($data['url']); + unset($data['url']); + } + if (\array_key_exists('file_name', $data)) { + $object->setFileName($data['file_name']); + unset($data['file_name']); + } + if (\array_key_exists('file_type', $data)) { + $object->setFileType($data['file_type']); + unset($data['file_type']); + } + if (\array_key_exists('file_size', $data)) { + $object->setFileSize($data['file_size']); + unset($data['file_size']); + } + if (\array_key_exists('digest', $data)) { + $object->setDigest($data['digest']); + unset($data['digest']); + } + if (\array_key_exists('token', $data)) { + $object->setToken($data['token']); + unset($data['token']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + if ($object->isInitialized('fileName') && null !== $object->getFileName()) { + $data['file_name'] = $object->getFileName(); + } + if ($object->isInitialized('fileType') && null !== $object->getFileType()) { + $data['file_type'] = $object->getFileType(); + } + if ($object->isInitialized('fileSize') && null !== $object->getFileSize()) { + $data['file_size'] = $object->getFileSize(); + } + if ($object->isInitialized('digest') && null !== $object->getDigest()) { + $data['digest'] = $object->getDigest(); + } + if ($object->isInitialized('token') && null !== $object->getToken()) { + $data['token'] = $object->getToken(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartBadge' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartCountryNormalizer.php b/src/Normalizer/GetVirtualMachinePartCountryNormalizer.php new file mode 100644 index 00000000..732b6e91 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartCountryNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('iso_code2', $data)) { + $object->setIsoCode2($data['iso_code2']); + unset($data['iso_code2']); + } + if (\array_key_exists('iso_code3', $data)) { + $object->setIsoCode3($data['iso_code3']); + unset($data['iso_code3']); + } + if (\array_key_exists('time_zone', $data)) { + $object->setTimeZone($data['time_zone']); + unset($data['time_zone']); + } + if (\array_key_exists('eu', $data)) { + $object->setEu($data['eu']); + unset($data['eu']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('isoCode2') && null !== $object->getIsoCode2()) { + $data['iso_code2'] = $object->getIsoCode2(); + } + if ($object->isInitialized('isoCode3') && null !== $object->getIsoCode3()) { + $data['iso_code3'] = $object->getIsoCode3(); + } + if ($object->isInitialized('timeZone') && null !== $object->getTimeZone()) { + $data['time_zone'] = $object->getTimeZone(); + } + if ($object->isInitialized('eu') && null !== $object->getEu()) { + $data['eu'] = $object->getEu(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCountry' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartCountryStateNormalizer.php b/src/Normalizer/GetVirtualMachinePartCountryStateNormalizer.php new file mode 100644 index 00000000..ce5f2088 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartCountryStateNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCountry', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCountryState' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartCurrencyNormalizer.php b/src/Normalizer/GetVirtualMachinePartCurrencyNormalizer.php new file mode 100644 index 00000000..7916d1ad --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartCurrencyNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('iso_code', $data)) { + $object->setIsoCode($data['iso_code']); + unset($data['iso_code']); + } + if (\array_key_exists('symbol', $data)) { + $object->setSymbol($data['symbol']); + unset($data['symbol']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('isoCode') && null !== $object->getIsoCode()) { + $data['iso_code'] = $object->getIsoCode(); + } + if ($object->isInitialized('symbol') && null !== $object->getSymbol()) { + $data['symbol'] = $object->getSymbol(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCurrency' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartDataCenterNormalizer.php b/src/Normalizer/GetVirtualMachinePartDataCenterNormalizer.php new file mode 100644 index 00000000..99630fc7 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartDataCenterNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCountry', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartDataCenter' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartGPUTypeNormalizer.php b/src/Normalizer/GetVirtualMachinePartGPUTypeNormalizer.php new file mode 100644 index 00000000..90d7d8b7 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartGPUTypeNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('manufacturer', $data)) { + $object->setManufacturer($data['manufacturer']); + unset($data['manufacturer']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('memory_type', $data)) { + $object->setMemoryType($data['memory_type']); + unset($data['memory_type']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('manufacturer') && null !== $object->getManufacturer()) { + $data['manufacturer'] = $object->getManufacturer(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('memoryType') && null !== $object->getMemoryType()) { + $data['memory_type'] = $object->getMemoryType(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGPUType' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartGPUsNormalizer.php b/src/Normalizer/GetVirtualMachinePartGPUsNormalizer.php new file mode 100644 index 00000000..0986f66e --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartGPUsNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + if (\array_key_exists('pending_action', $data)) { + $object->setPendingAction($data['pending_action']); + unset($data['pending_action']); + } + if (\array_key_exists('available', $data)) { + $object->setAvailable($data['available']); + unset($data['available']); + } + if (\array_key_exists('type', $data)) { + $object->setType($this->denormalizer->denormalize($data['type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartType', 'json', $context)); + unset($data['type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + if ($object->isInitialized('pendingAction') && null !== $object->getPendingAction()) { + $data['pending_action'] = $object->getPendingAction(); + } + if ($object->isInitialized('available') && null !== $object->getAvailable()) { + $data['available'] = $object->getAvailable(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $this->normalizer->normalize($object->getType(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGPUs' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartGroupNormalizer.php b/src/Normalizer/GetVirtualMachinePartGroupNormalizer.php new file mode 100644 index 00000000..5268b7f6 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartGroupNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('segregate', $data)) { + $object->setSegregate($data['segregate']); + unset($data['segregate']); + } + if (\array_key_exists('auto_segregate', $data)) { + $object->setAutoSegregate($data['auto_segregate']); + unset($data['auto_segregate']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('segregate') && null !== $object->getSegregate()) { + $data['segregate'] = $object->getSegregate(); + } + if ($object->isInitialized('autoSegregate') && null !== $object->getAutoSegregate()) { + $data['auto_segregate'] = $object->getAutoSegregate(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGroup' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartIPAddressesNormalizer.php b/src/Normalizer/GetVirtualMachinePartIPAddressesNormalizer.php new file mode 100644 index 00000000..257c5ec4 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartIPAddressesNormalizer.php @@ -0,0 +1,143 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + if (\array_key_exists('reverse_dns', $data)) { + $object->setReverseDns($data['reverse_dns']); + unset($data['reverse_dns']); + } + if (\array_key_exists('vip', $data)) { + $object->setVip($data['vip']); + unset($data['vip']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('address_with_mask', $data)) { + $object->setAddressWithMask($data['address_with_mask']); + unset($data['address_with_mask']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartNetwork', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('allocation_id', $data)) { + $object->setAllocationId($data['allocation_id']); + unset($data['allocation_id']); + } + if (\array_key_exists('allocation_type', $data)) { + $object->setAllocationType($data['allocation_type']); + unset($data['allocation_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + if ($object->isInitialized('reverseDns') && null !== $object->getReverseDns()) { + $data['reverse_dns'] = $object->getReverseDns(); + } + if ($object->isInitialized('vip') && null !== $object->getVip()) { + $data['vip'] = $object->getVip(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('addressWithMask') && null !== $object->getAddressWithMask()) { + $data['address_with_mask'] = $object->getAddressWithMask(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('allocationId') && null !== $object->getAllocationId()) { + $data['allocation_id'] = $object->getAllocationId(); + } + if ($object->isInitialized('allocationType') && null !== $object->getAllocationType()) { + $data['allocation_type'] = $object->getAllocationType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartIPAddresses' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartIconNormalizer.php b/src/Normalizer/GetVirtualMachinePartIconNormalizer.php new file mode 100644 index 00000000..0d3bd124 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartIconNormalizer.php @@ -0,0 +1,122 @@ +setUrl($data['url']); + unset($data['url']); + } + if (\array_key_exists('file_name', $data)) { + $object->setFileName($data['file_name']); + unset($data['file_name']); + } + if (\array_key_exists('file_type', $data)) { + $object->setFileType($data['file_type']); + unset($data['file_type']); + } + if (\array_key_exists('file_size', $data)) { + $object->setFileSize($data['file_size']); + unset($data['file_size']); + } + if (\array_key_exists('digest', $data)) { + $object->setDigest($data['digest']); + unset($data['digest']); + } + if (\array_key_exists('token', $data)) { + $object->setToken($data['token']); + unset($data['token']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + if ($object->isInitialized('fileName') && null !== $object->getFileName()) { + $data['file_name'] = $object->getFileName(); + } + if ($object->isInitialized('fileType') && null !== $object->getFileType()) { + $data['file_type'] = $object->getFileType(); + } + if ($object->isInitialized('fileSize') && null !== $object->getFileSize()) { + $data['file_size'] = $object->getFileSize(); + } + if ($object->isInitialized('digest') && null !== $object->getDigest()) { + $data['digest'] = $object->getDigest(); + } + if ($object->isInitialized('token') && null !== $object->getToken()) { + $data['token'] = $object->getToken(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartIcon' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartNetworkNormalizer.php b/src/Normalizer/GetVirtualMachinePartNetworkNormalizer.php new file mode 100644 index 00000000..e98dbdfd --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartNetworkNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartNetwork' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartOperatingSystemNormalizer.php b/src/Normalizer/GetVirtualMachinePartOperatingSystemNormalizer.php new file mode 100644 index 00000000..47e911c5 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartOperatingSystemNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('badge', $data)) { + $object->setBadge($this->denormalizer->denormalize($data['badge'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartBadge', 'json', $context)); + unset($data['badge']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('badge') && null !== $object->getBadge()) { + $data['badge'] = $this->normalizer->normalize($object->getBadge(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartOperatingSystem' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartOrganizationNormalizer.php b/src/Normalizer/GetVirtualMachinePartOrganizationNormalizer.php new file mode 100644 index 00000000..5c222bca --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartOrganizationNormalizer.php @@ -0,0 +1,206 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('sub_domain', $data)) { + $object->setSubDomain($data['sub_domain']); + unset($data['sub_domain']); + } + if (\array_key_exists('infrastructure_domain', $data)) { + $object->setInfrastructureDomain($data['infrastructure_domain']); + unset($data['infrastructure_domain']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('suspended', $data)) { + $object->setSuspended($data['suspended']); + unset($data['suspended']); + } + if (\array_key_exists('managed', $data)) { + $object->setManaged($data['managed']); + unset($data['managed']); + } + if (\array_key_exists('billing_name', $data)) { + $object->setBillingName($data['billing_name']); + unset($data['billing_name']); + } + if (\array_key_exists('address1', $data)) { + $object->setAddress1($data['address1']); + unset($data['address1']); + } + if (\array_key_exists('address2', $data)) { + $object->setAddress2($data['address2']); + unset($data['address2']); + } + if (\array_key_exists('address3', $data)) { + $object->setAddress3($data['address3']); + unset($data['address3']); + } + if (\array_key_exists('address4', $data)) { + $object->setAddress4($data['address4']); + unset($data['address4']); + } + if (\array_key_exists('postcode', $data)) { + $object->setPostcode($data['postcode']); + unset($data['postcode']); + } + if (\array_key_exists('vat_number', $data)) { + $object->setVatNumber($data['vat_number']); + unset($data['vat_number']); + } + if (\array_key_exists('phone_number', $data)) { + $object->setPhoneNumber($data['phone_number']); + unset($data['phone_number']); + } + if (\array_key_exists('currency', $data)) { + $object->setCurrency($this->denormalizer->denormalize($data['currency'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCurrency', 'json', $context)); + unset($data['currency']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCountry', 'json', $context)); + unset($data['country']); + } + if (\array_key_exists('country_state', $data)) { + $object->setCountryState($this->denormalizer->denormalize($data['country_state'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCountryState', 'json', $context)); + unset($data['country_state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('subDomain') && null !== $object->getSubDomain()) { + $data['sub_domain'] = $object->getSubDomain(); + } + if ($object->isInitialized('infrastructureDomain') && null !== $object->getInfrastructureDomain()) { + $data['infrastructure_domain'] = $object->getInfrastructureDomain(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('suspended') && null !== $object->getSuspended()) { + $data['suspended'] = $object->getSuspended(); + } + if ($object->isInitialized('managed') && null !== $object->getManaged()) { + $data['managed'] = $object->getManaged(); + } + if ($object->isInitialized('billingName') && null !== $object->getBillingName()) { + $data['billing_name'] = $object->getBillingName(); + } + if ($object->isInitialized('address1') && null !== $object->getAddress1()) { + $data['address1'] = $object->getAddress1(); + } + if ($object->isInitialized('address2') && null !== $object->getAddress2()) { + $data['address2'] = $object->getAddress2(); + } + if ($object->isInitialized('address3') && null !== $object->getAddress3()) { + $data['address3'] = $object->getAddress3(); + } + if ($object->isInitialized('address4') && null !== $object->getAddress4()) { + $data['address4'] = $object->getAddress4(); + } + if ($object->isInitialized('postcode') && null !== $object->getPostcode()) { + $data['postcode'] = $object->getPostcode(); + } + if ($object->isInitialized('vatNumber') && null !== $object->getVatNumber()) { + $data['vat_number'] = $object->getVatNumber(); + } + if ($object->isInitialized('phoneNumber') && null !== $object->getPhoneNumber()) { + $data['phone_number'] = $object->getPhoneNumber(); + } + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { + $data['currency'] = $this->normalizer->normalize($object->getCurrency(), 'json', $context); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + if ($object->isInitialized('countryState') && null !== $object->getCountryState()) { + $data['country_state'] = $this->normalizer->normalize($object->getCountryState(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartOrganization' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartPackageNormalizer.php b/src/Normalizer/GetVirtualMachinePartPackageNormalizer.php new file mode 100644 index 00000000..73572cc0 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartPackageNormalizer.php @@ -0,0 +1,150 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('ipv4_addresses', $data)) { + $object->setIpv4Addresses($data['ipv4_addresses']); + unset($data['ipv4_addresses']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('storage_in_gb', $data)) { + $object->setStorageInGb($data['storage_in_gb']); + unset($data['storage_in_gb']); + } + if (\array_key_exists('monthly_bandwidth_allowance_in_gb', $data)) { + $object->setMonthlyBandwidthAllowanceInGb($data['monthly_bandwidth_allowance_in_gb']); + unset($data['monthly_bandwidth_allowance_in_gb']); + } + if (\array_key_exists('privacy', $data)) { + $object->setPrivacy($data['privacy']); + unset($data['privacy']); + } + if (\array_key_exists('icon', $data)) { + $object->setIcon($this->denormalizer->denormalize($data['icon'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartIcon', 'json', $context)); + unset($data['icon']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('ipv4Addresses') && null !== $object->getIpv4Addresses()) { + $data['ipv4_addresses'] = $object->getIpv4Addresses(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('storageInGb') && null !== $object->getStorageInGb()) { + $data['storage_in_gb'] = $object->getStorageInGb(); + } + if ($object->isInitialized('monthlyBandwidthAllowanceInGb') && null !== $object->getMonthlyBandwidthAllowanceInGb()) { + $data['monthly_bandwidth_allowance_in_gb'] = $object->getMonthlyBandwidthAllowanceInGb(); + } + if ($object->isInitialized('privacy') && null !== $object->getPrivacy()) { + $data['privacy'] = $object->getPrivacy(); + } + if ($object->isInitialized('icon') && null !== $object->getIcon()) { + $data['icon'] = $this->normalizer->normalize($object->getIcon(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartPackage' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartTagsNormalizer.php b/src/Normalizer/GetVirtualMachinePartTagsNormalizer.php new file mode 100644 index 00000000..f25d8677 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartTagsNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('color', $data)) { + $object->setColor($data['color']); + unset($data['color']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('color') && null !== $object->getColor()) { + $data['color'] = $object->getColor(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartTags' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartTypeNormalizer.php b/src/Normalizer/GetVirtualMachinePartTypeNormalizer.php new file mode 100644 index 00000000..879b3549 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartTypeNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('manufacturer', $data)) { + $object->setManufacturer($data['manufacturer']); + unset($data['manufacturer']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('memory_type', $data)) { + $object->setMemoryType($data['memory_type']); + unset($data['memory_type']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('manufacturer') && null !== $object->getManufacturer()) { + $data['manufacturer'] = $object->getManufacturer(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('memoryType') && null !== $object->getMemoryType()) { + $data['memory_type'] = $object->getMemoryType(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartType' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinePartZoneNormalizer.php b/src/Normalizer/GetVirtualMachinePartZoneNormalizer.php new file mode 100644 index 00000000..6b0a2037 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinePartZoneNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartZone' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuildNormalizer.php b/src/Normalizer/GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuildNormalizer.php new file mode 100644 index 00000000..7cce593f --- /dev/null +++ b/src/Normalizer/GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuildNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('spec_xml', $data)) { + $object->setSpecXml($data['spec_xml']); + unset($data['spec_xml']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('specXml') && null !== $object->getSpecXml()) { + $data['spec_xml'] = $object->getSpecXml(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuild' => false]; + } +} diff --git a/src/Normalizer/GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachineNormalizer.php b/src/Normalizer/GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachineNormalizer.php new file mode 100644 index 00000000..716651f8 --- /dev/null +++ b/src/Normalizer/GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachineNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine' => false]; + } +} diff --git a/src/Normalizer/GetZones200ResponseZonesNormalizer.php b/src/Normalizer/GetZones200ResponseZonesNormalizer.php new file mode 100644 index 00000000..99740327 --- /dev/null +++ b/src/Normalizer/GetZones200ResponseZonesNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetZonesPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetZones200ResponseZones' => false]; + } +} diff --git a/src/Normalizer/GetZonesPartDataCenterNormalizer.php b/src/Normalizer/GetZonesPartDataCenterNormalizer.php new file mode 100644 index 00000000..cb62239e --- /dev/null +++ b/src/Normalizer/GetZonesPartDataCenterNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetZonesPartDataCenter' => false]; + } +} diff --git a/src/Normalizer/GpuTypesGetResponse200Normalizer.php b/src/Normalizer/GpuTypesGetResponse200Normalizer.php new file mode 100644 index 00000000..a16d31c7 --- /dev/null +++ b/src/Normalizer/GpuTypesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('gpu_types', $data)) { + $values = []; + foreach ($data['gpu_types'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypes200ResponseGPUTypes', 'json', $context); + } + $object->setGpuTypes($values); + unset($data['gpu_types']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getGpuTypes() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['gpu_types'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/GpuTypesGetResponse200PaginationNormalizer.php b/src/Normalizer/GpuTypesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..0dab82bd --- /dev/null +++ b/src/Normalizer/GpuTypesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/GpuTypesGpuTypeGetResponse200GpuTypeNormalizer.php b/src/Normalizer/GpuTypesGpuTypeGetResponse200GpuTypeNormalizer.php new file mode 100644 index 00000000..861c068b --- /dev/null +++ b/src/Normalizer/GpuTypesGpuTypeGetResponse200GpuTypeNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('manufacturer', $data)) { + $object->setManufacturer($data['manufacturer']); + unset($data['manufacturer']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('memory_type', $data)) { + $object->setMemoryType($data['memory_type']); + unset($data['memory_type']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_centers', $data)) { + $values = []; + foreach ($data['data_centers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypePartDataCenters', 'json', $context); + } + $object->setDataCenters($values); + unset($data['data_centers']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('manufacturer') && null !== $object->getManufacturer()) { + $data['manufacturer'] = $object->getManufacturer(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('memoryType') && null !== $object->getMemoryType()) { + $data['memory_type'] = $object->getMemoryType(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenters') && null !== $object->getDataCenters()) { + $values = []; + foreach ($object->getDataCenters() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['data_centers'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGpuTypeGetResponse200GpuType' => false]; + } +} diff --git a/src/Normalizer/GpuTypesGpuTypeGetResponse200Normalizer.php b/src/Normalizer/GpuTypesGpuTypeGetResponse200Normalizer.php new file mode 100644 index 00000000..86940836 --- /dev/null +++ b/src/Normalizer/GpuTypesGpuTypeGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setGpuType($this->denormalizer->denormalize($data['gpu_type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGpuTypeGetResponse200GpuType', 'json', $context)); + unset($data['gpu_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['gpu_type'] = $this->normalizer->normalize($object->getGpuType(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGpuTypeGetResponse200' => false]; + } +} diff --git a/src/Normalizer/IPAddressLookupNormalizer.php b/src/Normalizer/IPAddressLookupNormalizer.php new file mode 100644 index 00000000..dd6e6744 --- /dev/null +++ b/src/Normalizer/IPAddressLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IPAddressLookup' => false]; + } +} diff --git a/src/Normalizer/IPAddressNormalizer.php b/src/Normalizer/IPAddressNormalizer.php new file mode 100644 index 00000000..d006a037 --- /dev/null +++ b/src/Normalizer/IPAddressNormalizer.php @@ -0,0 +1,143 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + if (\array_key_exists('reverse_dns', $data)) { + $object->setReverseDns($data['reverse_dns']); + unset($data['reverse_dns']); + } + if (\array_key_exists('vip', $data)) { + $object->setVip($data['vip']); + unset($data['vip']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('address_with_mask', $data)) { + $object->setAddressWithMask($data['address_with_mask']); + unset($data['address_with_mask']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Network', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('allocation_id', $data)) { + $object->setAllocationId($data['allocation_id']); + unset($data['allocation_id']); + } + if (\array_key_exists('allocation_type', $data)) { + $object->setAllocationType($data['allocation_type']); + unset($data['allocation_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + if ($object->isInitialized('reverseDns') && null !== $object->getReverseDns()) { + $data['reverse_dns'] = $object->getReverseDns(); + } + if ($object->isInitialized('vip') && null !== $object->getVip()) { + $data['vip'] = $object->getVip(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('addressWithMask') && null !== $object->getAddressWithMask()) { + $data['address_with_mask'] = $object->getAddressWithMask(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('allocationId') && null !== $object->getAllocationId()) { + $data['allocation_id'] = $object->getAllocationId(); + } + if ($object->isInitialized('allocationType') && null !== $object->getAllocationType()) { + $data['allocation_type'] = $object->getAllocationType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IPAddress' => false]; + } +} diff --git a/src/Normalizer/IPAddressNotFoundSchemaNormalizer.php b/src/Normalizer/IPAddressNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..09f81c65 --- /dev/null +++ b/src/Normalizer/IPAddressNotFoundSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IPAddressNotFoundSchema' => false]; + } +} diff --git a/src/Normalizer/IPAlreadyAllocatedSchemaNormalizer.php b/src/Normalizer/IPAlreadyAllocatedSchemaNormalizer.php new file mode 100644 index 00000000..dfd26e92 --- /dev/null +++ b/src/Normalizer/IPAlreadyAllocatedSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IPAlreadyAllocatedSchema' => false]; + } +} diff --git a/src/Normalizer/ISONormalizer.php b/src/Normalizer/ISONormalizer.php new file mode 100644 index 00000000..5be6b0ca --- /dev/null +++ b/src/Normalizer/ISONormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('operating_system', $data)) { + $object->setOperatingSystem($this->denormalizer->denormalize($data['operating_system'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystem', 'json', $context)); + unset($data['operating_system']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('operatingSystem') && null !== $object->getOperatingSystem()) { + $data['operating_system'] = $this->normalizer->normalize($object->getOperatingSystem(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ISO' => false]; + } +} diff --git a/src/Normalizer/IdentityNotLinkedToWebSessionSchemaNormalizer.php b/src/Normalizer/IdentityNotLinkedToWebSessionSchemaNormalizer.php new file mode 100644 index 00000000..a12201a0 --- /dev/null +++ b/src/Normalizer/IdentityNotLinkedToWebSessionSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IdentityNotLinkedToWebSessionSchema' => false]; + } +} diff --git a/src/Normalizer/InfrastructureDNSZoneCannotBeEditedSchemaNormalizer.php b/src/Normalizer/InfrastructureDNSZoneCannotBeEditedSchemaNormalizer.php new file mode 100644 index 00000000..39a22ed4 --- /dev/null +++ b/src/Normalizer/InfrastructureDNSZoneCannotBeEditedSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\InfrastructureDNSZoneCannotBeEditedSchema' => false]; + } +} diff --git a/src/Normalizer/InterfaceNotFoundSchemaNormalizer.php b/src/Normalizer/InterfaceNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..e3383cff --- /dev/null +++ b/src/Normalizer/InterfaceNotFoundSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\InterfaceNotFoundSchema' => false]; + } +} diff --git a/src/Normalizer/InvalidAPITokenNormalizer.php b/src/Normalizer/InvalidAPITokenNormalizer.php new file mode 100644 index 00000000..4630e735 --- /dev/null +++ b/src/Normalizer/InvalidAPITokenNormalizer.php @@ -0,0 +1,87 @@ +setDetails($data['details']); + unset($data['details']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('details') && null !== $object->getDetails()) { + $data['details'] = $object->getDetails(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\InvalidAPIToken' => false]; + } +} diff --git a/src/Normalizer/InvalidAPITokenSchemaNormalizer.php b/src/Normalizer/InvalidAPITokenSchemaNormalizer.php new file mode 100644 index 00000000..761a98ca --- /dev/null +++ b/src/Normalizer/InvalidAPITokenSchemaNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidAPIToken', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\InvalidAPITokenSchema' => false]; + } +} diff --git a/src/Normalizer/InvalidIPSchemaNormalizer.php b/src/Normalizer/InvalidIPSchemaNormalizer.php new file mode 100644 index 00000000..0bff79ef --- /dev/null +++ b/src/Normalizer/InvalidIPSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\InvalidIPSchema' => false]; + } +} diff --git a/src/Normalizer/InvalidSpecXMLNormalizer.php b/src/Normalizer/InvalidSpecXMLNormalizer.php new file mode 100644 index 00000000..9cc5ee7f --- /dev/null +++ b/src/Normalizer/InvalidSpecXMLNormalizer.php @@ -0,0 +1,87 @@ +setErrors($data['errors']); + unset($data['errors']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('errors') && null !== $object->getErrors()) { + $data['errors'] = $object->getErrors(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\InvalidSpecXML' => false]; + } +} diff --git a/src/Normalizer/InvalidSpecXMLSchemaNormalizer.php b/src/Normalizer/InvalidSpecXMLSchemaNormalizer.php new file mode 100644 index 00000000..8195d137 --- /dev/null +++ b/src/Normalizer/InvalidSpecXMLSchemaNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidSpecXML', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\InvalidSpecXMLSchema' => false]; + } +} diff --git a/src/Normalizer/InvalidTimestampSchemaNormalizer.php b/src/Normalizer/InvalidTimestampSchemaNormalizer.php new file mode 100644 index 00000000..18c850e9 --- /dev/null +++ b/src/Normalizer/InvalidTimestampSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\InvalidTimestampSchema' => false]; + } +} diff --git a/src/Normalizer/InvalidateLinkedWebSessionPostBodyNormalizer.php b/src/Normalizer/InvalidateLinkedWebSessionPostBodyNormalizer.php new file mode 100644 index 00000000..d095f3ae --- /dev/null +++ b/src/Normalizer/InvalidateLinkedWebSessionPostBodyNormalizer.php @@ -0,0 +1,80 @@ + $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\InvalidateLinkedWebSessionPostBody' => false]; + } +} diff --git a/src/Normalizer/InvalidateLinkedWebSessionPostResponse200Normalizer.php b/src/Normalizer/InvalidateLinkedWebSessionPostResponse200Normalizer.php new file mode 100644 index 00000000..82352831 --- /dev/null +++ b/src/Normalizer/InvalidateLinkedWebSessionPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['status'] = $object->getStatus(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\InvalidateLinkedWebSessionPostResponse200' => false]; + } +} diff --git a/src/Normalizer/IpAddressesIpAddressDeleteBodyNormalizer.php b/src/Normalizer/IpAddressesIpAddressDeleteBodyNormalizer.php new file mode 100644 index 00000000..d7027adb --- /dev/null +++ b/src/Normalizer/IpAddressesIpAddressDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setIpAddress($this->denormalizer->denormalize($data['ip_address'], 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddressLookup', 'json', $context)); + unset($data['ip_address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['ip_address'] = $this->normalizer->normalize($object->getIpAddress(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressDeleteBody' => false]; + } +} diff --git a/src/Normalizer/IpAddressesIpAddressDeleteResponse200Normalizer.php b/src/Normalizer/IpAddressesIpAddressDeleteResponse200Normalizer.php new file mode 100644 index 00000000..66d63920 --- /dev/null +++ b/src/Normalizer/IpAddressesIpAddressDeleteResponse200Normalizer.php @@ -0,0 +1,80 @@ + $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/IpAddressesIpAddressGetResponse200AllocationNormalizer.php b/src/Normalizer/IpAddressesIpAddressGetResponse200AllocationNormalizer.php new file mode 100644 index 00000000..ac8b3a79 --- /dev/null +++ b/src/Normalizer/IpAddressesIpAddressGetResponse200AllocationNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressGetResponse200Allocation' => false]; + } +} diff --git a/src/Normalizer/IpAddressesIpAddressGetResponse200IpAddressNormalizer.php b/src/Normalizer/IpAddressesIpAddressGetResponse200IpAddressNormalizer.php new file mode 100644 index 00000000..dfc847b3 --- /dev/null +++ b/src/Normalizer/IpAddressesIpAddressGetResponse200IpAddressNormalizer.php @@ -0,0 +1,143 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + if (\array_key_exists('reverse_dns', $data)) { + $object->setReverseDns($data['reverse_dns']); + unset($data['reverse_dns']); + } + if (\array_key_exists('vip', $data)) { + $object->setVip($data['vip']); + unset($data['vip']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('address_with_mask', $data)) { + $object->setAddressWithMask($data['address_with_mask']); + unset($data['address_with_mask']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Network', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('allocation_id', $data)) { + $object->setAllocationId($data['allocation_id']); + unset($data['allocation_id']); + } + if (\array_key_exists('allocation_type', $data)) { + $object->setAllocationType($data['allocation_type']); + unset($data['allocation_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + if ($object->isInitialized('reverseDns') && null !== $object->getReverseDns()) { + $data['reverse_dns'] = $object->getReverseDns(); + } + if ($object->isInitialized('vip') && null !== $object->getVip()) { + $data['vip'] = $object->getVip(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('addressWithMask') && null !== $object->getAddressWithMask()) { + $data['address_with_mask'] = $object->getAddressWithMask(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('allocationId') && null !== $object->getAllocationId()) { + $data['allocation_id'] = $object->getAllocationId(); + } + if ($object->isInitialized('allocationType') && null !== $object->getAllocationType()) { + $data['allocation_type'] = $object->getAllocationType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressGetResponse200IpAddress' => false]; + } +} diff --git a/src/Normalizer/IpAddressesIpAddressGetResponse200Normalizer.php b/src/Normalizer/IpAddressesIpAddressGetResponse200Normalizer.php new file mode 100644 index 00000000..4c7b5507 --- /dev/null +++ b/src/Normalizer/IpAddressesIpAddressGetResponse200Normalizer.php @@ -0,0 +1,92 @@ +setIpAddress($this->denormalizer->denormalize($data['ip_address'], 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressGetResponse200IpAddress', 'json', $context)); + unset($data['ip_address']); + } + if (\array_key_exists('allocation', $data) && $data['allocation'] !== null) { + $object->setAllocation($this->denormalizer->denormalize($data['allocation'], 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressGetResponse200Allocation', 'json', $context)); + unset($data['allocation']); + } elseif (\array_key_exists('allocation', $data) && $data['allocation'] === null) { + $object->setAllocation(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['ip_address'] = $this->normalizer->normalize($object->getIpAddress(), 'json', $context); + $data['allocation'] = $this->normalizer->normalize($object->getAllocation(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressGetResponse200' => false]; + } +} diff --git a/src/Normalizer/IpAddressesIpAddressPatchBodyNormalizer.php b/src/Normalizer/IpAddressesIpAddressPatchBodyNormalizer.php new file mode 100644 index 00000000..947de112 --- /dev/null +++ b/src/Normalizer/IpAddressesIpAddressPatchBodyNormalizer.php @@ -0,0 +1,106 @@ +setIpAddress($this->denormalizer->denormalize($data['ip_address'], 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddressLookup', 'json', $context)); + unset($data['ip_address']); + } + if (\array_key_exists('vip', $data)) { + $object->setVip($data['vip']); + unset($data['vip']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('reverse_dns', $data)) { + $object->setReverseDns($data['reverse_dns']); + unset($data['reverse_dns']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['ip_address'] = $this->normalizer->normalize($object->getIpAddress(), 'json', $context); + if ($object->isInitialized('vip') && null !== $object->getVip()) { + $data['vip'] = $object->getVip(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('reverseDns') && null !== $object->getReverseDns()) { + $data['reverse_dns'] = $object->getReverseDns(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressPatchBody' => false]; + } +} diff --git a/src/Normalizer/IpAddressesIpAddressPatchResponse200IpAddressNormalizer.php b/src/Normalizer/IpAddressesIpAddressPatchResponse200IpAddressNormalizer.php new file mode 100644 index 00000000..5467f32f --- /dev/null +++ b/src/Normalizer/IpAddressesIpAddressPatchResponse200IpAddressNormalizer.php @@ -0,0 +1,143 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + if (\array_key_exists('reverse_dns', $data)) { + $object->setReverseDns($data['reverse_dns']); + unset($data['reverse_dns']); + } + if (\array_key_exists('vip', $data)) { + $object->setVip($data['vip']); + unset($data['vip']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('address_with_mask', $data)) { + $object->setAddressWithMask($data['address_with_mask']); + unset($data['address_with_mask']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Network', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('allocation_id', $data)) { + $object->setAllocationId($data['allocation_id']); + unset($data['allocation_id']); + } + if (\array_key_exists('allocation_type', $data)) { + $object->setAllocationType($data['allocation_type']); + unset($data['allocation_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + if ($object->isInitialized('reverseDns') && null !== $object->getReverseDns()) { + $data['reverse_dns'] = $object->getReverseDns(); + } + if ($object->isInitialized('vip') && null !== $object->getVip()) { + $data['vip'] = $object->getVip(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('addressWithMask') && null !== $object->getAddressWithMask()) { + $data['address_with_mask'] = $object->getAddressWithMask(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('allocationId') && null !== $object->getAllocationId()) { + $data['allocation_id'] = $object->getAllocationId(); + } + if ($object->isInitialized('allocationType') && null !== $object->getAllocationType()) { + $data['allocation_type'] = $object->getAllocationType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressPatchResponse200IpAddress' => false]; + } +} diff --git a/src/Normalizer/IpAddressesIpAddressPatchResponse200Normalizer.php b/src/Normalizer/IpAddressesIpAddressPatchResponse200Normalizer.php new file mode 100644 index 00000000..3ba049f5 --- /dev/null +++ b/src/Normalizer/IpAddressesIpAddressPatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setIpAddress($this->denormalizer->denormalize($data['ip_address'], 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressPatchResponse200IpAddress', 'json', $context)); + unset($data['ip_address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['ip_address'] = $this->normalizer->normalize($object->getIpAddress(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressPatchResponse200' => false]; + } +} diff --git a/src/Normalizer/IpAddressesIpAddressUnallocatePostBodyNormalizer.php b/src/Normalizer/IpAddressesIpAddressUnallocatePostBodyNormalizer.php new file mode 100644 index 00000000..617710a5 --- /dev/null +++ b/src/Normalizer/IpAddressesIpAddressUnallocatePostBodyNormalizer.php @@ -0,0 +1,85 @@ +setIpAddress($this->denormalizer->denormalize($data['ip_address'], 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddressLookup', 'json', $context)); + unset($data['ip_address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['ip_address'] = $this->normalizer->normalize($object->getIpAddress(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressUnallocatePostBody' => false]; + } +} diff --git a/src/Normalizer/IpAddressesIpAddressUnallocatePostResponse200Normalizer.php b/src/Normalizer/IpAddressesIpAddressUnallocatePostResponse200Normalizer.php new file mode 100644 index 00000000..8bed2531 --- /dev/null +++ b/src/Normalizer/IpAddressesIpAddressUnallocatePostResponse200Normalizer.php @@ -0,0 +1,80 @@ + $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressUnallocatePostResponse200' => false]; + } +} diff --git a/src/Normalizer/JaneObjectNormalizer.php b/src/Normalizer/JaneObjectNormalizer.php new file mode 100644 index 00000000..a274b629 --- /dev/null +++ b/src/Normalizer/JaneObjectNormalizer.php @@ -0,0 +1,79 @@ + 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDataCenters200ResponseDataCentersNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCentersPartCountry' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDataCentersPartCountryNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\UnauthorizedNetworkForAPIToken' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\UnauthorizedNetworkForAPITokenNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\UnauthorizedNetworkForAPITokenSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\UnauthorizedNetworkForAPITokenSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidAPIToken' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\InvalidAPITokenNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidAPITokenSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\InvalidAPITokenSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ScopeNotGrantedError' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ScopeNotGrantedErrorNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ScopeNotGrantedErrorSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ScopeNotGrantedErrorSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RateLimitReached' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RateLimitReachedNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenter200ResponseDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDataCenter200ResponseDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterPartCountry' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDataCenterPartCountryNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterDefaultNetwork200ResponseNetwork' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDataCenterDefaultNetwork200ResponseNetworkNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterDefaultNetworkPartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDataCenterDefaultNetworkPartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizations200ResponseOrganizations' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizations200ResponseOrganizationsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\Organization' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\Currency' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CurrencyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\Country' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CountryNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CountryState' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CountryStateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationSuspendedSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationSuspendedSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationNotActivatedSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationNotActivatedSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PaginationObject' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PaginationObjectNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationUsersWithAccess200ResponseUsers' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationUsersWithAccess200ResponseUsersNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationUsersWithAccessPartUser' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationUsersWithAccessPartUserNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationManaged200ResponseOrganizations' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationManaged200ResponseOrganizationsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManaged201ResponseOrganization' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationManaged201ResponseOrganizationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCurrency' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationManagedPartCurrencyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCountry' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationManagedPartCountryNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCountryState' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationManagedPartCountryStateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLimitReachedSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationLimitReachedSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ValidationError' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ValidationErrorNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ValidationErrorSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ValidationErrorSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDisks200ResponseDisk' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationDisks200ResponseDiskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDisksPartVirtualMachineDisk' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationDisksPartVirtualMachineDiskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDisksPartVirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationDisksPartVirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDisk200ResponseDisk' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDisk200ResponseDiskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartIOProfile' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskPartIOProfileNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartVirtualMachineDisk' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskPartVirtualMachineDiskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartVirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskPartVirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartInstallation' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskPartInstallationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartDiskTemplateVersion' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskPartDiskTemplateVersionNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartDiskTemplate' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskPartDiskTemplateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartOperatingSystem' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskPartOperatingSystemNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartAttributes' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskPartAttributesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDisks200ResponseDisks' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachineDisks200ResponseDisksNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDisksPartDisk' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachineDisksPartDiskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ObjectInTrash' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ObjectInTrashNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObject' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TrashObjectNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskTemplates200ResponseDiskTemplates' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationDiskTemplates200ResponseDiskTemplatesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskTemplatesPartLatestVersion' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationDiskTemplatesPartLatestVersionNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskTemplatesPartOperatingSystem' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationDiskTemplatesPartOperatingSystemNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationNotFoundSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationNotFoundSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemNotFoundSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OperatingSystemNotFoundSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplate200ResponseDiskTemplate' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskTemplate200ResponseDiskTemplateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartLatestVersion' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskTemplatePartLatestVersionNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartOperatingSystem' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskTemplatePartOperatingSystemNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartBadge' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskTemplatePartBadgeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersions200ResponseDiskTemplate' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskTemplateVersions200ResponseDiskTemplateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersions200ResponseDiskTemplateVersions' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskTemplateVersions200ResponseDiskTemplateVersionsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersion200ResponseDiskTemplateVersion' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskTemplateVersion200ResponseDiskTemplateVersionNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionPartDiskTemplate' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskTemplateVersionPartDiskTemplateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionSpec200ResponseDiskTemplateVersion' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskTemplateVersionSpec200ResponseDiskTemplateVersionNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionSpecPartDiskTemplate' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskTemplateVersionSpecPartDiskTemplateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TemplateSpec' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TemplateSpecNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TemplateSpecField' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TemplateSpecFieldNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypes200ResponseGPUTypes' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetGPUTypes200ResponseGPUTypesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypesPartDataCenters' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetGPUTypesPartDataCentersNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUType200ResponseGPUType' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetGPUType200ResponseGPUTypeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypePartDataCenters' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetGPUTypePartDataCentersNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterGPUTypes200ResponseGPUTypes' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDataCenterGPUTypes200ResponseGPUTypesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachines200ResponseVirtualMachines' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationVirtualMachines200ResponseVirtualMachinesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationVirtualMachinesPartZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationVirtualMachinesPartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartPackage' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationVirtualMachinesPartPackageNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartGPUType' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationVirtualMachinesPartGPUTypeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartIPAddresses' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationVirtualMachinesPartIPAddressesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachine200ResponseVirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachine200ResponseVirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCountry' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartCountryNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartOrganization' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartOrganizationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCurrency' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartCurrencyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCountryState' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartCountryStateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartPackage' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartPackageNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartIcon' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartIconNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartAttachedISO' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartAttachedISONormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartOperatingSystem' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartOperatingSystemNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartBadge' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartBadgeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGPUType' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartGPUTypeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGPUs' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartGPUsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartType' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartTypeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartTags' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartTagsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartIPAddresses' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartIPAddressesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartNetwork' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePartNetworkNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GPUTypeLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GPUTypeLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineGroupLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachine200ResponseVirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachine200ResponseVirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCountry' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartCountryNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartOrganization' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartOrganizationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCurrency' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartCurrencyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCountryState' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartCountryStateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartPackage' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartPackageNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartIcon' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartIconNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartAttachedISO' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartAttachedISONormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartOperatingSystem' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartOperatingSystemNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartBadge' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartBadgeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGPUType' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartGPUTypeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGPUs' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartGPUsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartType' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartTypeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartTags' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartTagsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartIPAddresses' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartIPAddressesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartNetwork' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchVirtualMachinePartNetworkNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachine200ResponseVirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachine200ResponseVirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCountry' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartCountryNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartOrganization' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartOrganizationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCurrency' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartCurrencyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCountryState' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartCountryStateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartPackage' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartPackageNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartIcon' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartIconNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartAttachedISO' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartAttachedISONormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartOperatingSystem' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartOperatingSystemNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartBadge' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartBadgeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGPUType' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartGPUTypeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGPUs' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartGPUsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartType' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartTypeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartTags' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartTagsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartIPAddresses' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartIPAddressesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartNetwork' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteVirtualMachinePartNetworkNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PermissionDenied' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PermissionDeniedNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PermissionDeniedSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PermissionDeniedSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackageLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinePackageLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNotFoundSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNotFoundSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackageNotFoundSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinePackageNotFoundSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ObjectInTrashSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ObjectInTrashSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TaskQueueingError' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TaskQueueingErrorNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TaskQueueingErrorSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TaskQueueingErrorSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineFlexibleResources' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineFlexibleResourcesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\FlexibleResourcesUnavailableToOrganizationSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\FlexibleResourcesUnavailableToOrganizationSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddressLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IPAddressLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddress' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IPAddressNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\Network' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\NetworkNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddressNotFoundSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IPAddressNotFoundSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\NoInterfaceAvailableSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\NoInterfaceAvailableSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAlreadyAllocatedSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IPAlreadyAllocatedSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ZoneLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ZoneLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenterLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DataCenterLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplateLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\KeyValue' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\KeyValueNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\NetworkLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuild201ResponseTask' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationVirtualMachinesBuild201ResponseTaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuild201ResponseBuild' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationVirtualMachinesBuild201ResponseBuildNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuild201ResponseVirtualMachineBuild' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationVirtualMachinesBuild201ResponseVirtualMachineBuildNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResourceCreationRestricted' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResourceCreationRestrictedNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResourceCreationRestrictedSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResourceCreationRestrictedSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ZoneNotFoundSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ZoneNotFoundSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenterNotFoundSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DataCenterNotFoundSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateNotFoundSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplateNotFoundSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkNotFoundSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\NetworkNotFoundSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LocationRequiredSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LocationRequiredSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuildFromSpec201ResponseTask' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationVirtualMachinesBuildFromSpec201ResponseTaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuildFromSpec201ResponseBuild' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationVirtualMachinesBuildFromSpec201ResponseBuildNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuildFromSpec201ResponseVirtualMachineBuild' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationVirtualMachinesBuildFromSpec201ResponseVirtualMachineBuildNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\APIAuthenticator400Schema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\APIAuthenticator400SchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidSpecXML' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\InvalidSpecXMLNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidSpecXMLSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\InvalidSpecXMLSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuild' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuildNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineStart200ResponseTask' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostVirtualMachineStart200ResponseTaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineStop200ResponseTask' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostVirtualMachineStop200ResponseTaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineShutdown200ResponseTask' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostVirtualMachineShutdown200ResponseTaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineReset200ResponseTask' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostVirtualMachineReset200ResponseTaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineConsoleSessions201ResponseConsoleSession' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostVirtualMachineConsoleSessions201ResponseConsoleSessionNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineConsoleSessionsPartVirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostVirtualMachineConsoleSessionsPartVirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineMustBeStarted' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineMustBeStartedNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineMustBeStartedSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineMustBeStartedSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePackages200ResponseVirtualMachinePackages' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePackages200ResponseVirtualMachinePackagesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePackagesPartIcon' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachinePackagesPartIconNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackage' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinePackageNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\Attachment' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\AttachmentNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\AuthSSHKey' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\AuthSSHKeyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\AuthSSHKeyProperties' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\AuthSSHKeyPropertiesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\AuthSSHKeyLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\AuthSSHKeyLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeletionRestricted' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeletionRestrictedNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationDiskBackupPolicies200ResponseDiskBackupPoliciesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPolicyTargetNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\Zone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ISO' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ISONormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystem' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OperatingSystemNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GPUType' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GPUTypeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGPU' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineGPUNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\Tag' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TagNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\Disk' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskIOProfile' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskIOProfileNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineDisk' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineDiskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskInstallation' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskInstallationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersion' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplateVersionNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplate' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskInstallationAttribute' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskInstallationAttributeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskBackupPoliciesPartSchedule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationDiskBackupPoliciesPartScheduleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicies' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPoliciesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDiskBackupPoliciesPartSchedule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachineDiskBackupPoliciesPartScheduleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskDiskBackupPolicies200ResponseDiskBackupPolicies' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskDiskBackupPolicies200ResponseDiskBackupPoliciesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskDiskBackupPoliciesPartSchedule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskDiskBackupPoliciesPartScheduleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskBackupPolicy200ResponseDiskBackupPolicy' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskBackupPolicy200ResponseDiskBackupPolicyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskBackupPolicyPartSchedule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDiskBackupPolicyPartScheduleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPolicyLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteDiskBackupPolicy200ResponseDiskBackupPolicy' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteDiskBackupPolicy200ResponseDiskBackupPolicyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicy' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidTimestampSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\InvalidTimestampSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPolicyArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ScheduleArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ScheduleArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchDiskBackupPolicy200ResponseDiskBackupPolicy' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchDiskBackupPolicy200ResponseDiskBackupPolicyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicy' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineDiskBackupPoliciesPartSchedule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostVirtualMachineDiskBackupPoliciesPartScheduleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostDiskDiskBackupPolicies200ResponseDiskBackupPolicy' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostDiskDiskBackupPolicies200ResponseDiskBackupPolicyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostDiskDiskBackupPoliciesPartSchedule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostDiskDiskBackupPoliciesPartScheduleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DNSZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DNSZoneArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationDNSZones201ResponseDNSZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationDNSZones201ResponseDNSZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DNSZoneLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteDNSZonesDNSZone200ResponseDNSZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteDNSZonesDNSZone200ResponseDNSZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneVerificationDetails' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DNSZoneVerificationDetailsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\InfrastructureDNSZoneCannotBeEditedSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\InfrastructureDNSZoneCannotBeEditedSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneNotVerified' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DNSZoneNotVerifiedNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostDNSZonesDNSZoneUpdateTTL200ResponseDNSZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostDNSZonesDNSZoneUpdateTTL200ResponseDNSZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDNSZonesDNSZoneRecords200ResponseDNSRecords' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDNSZonesDNSZoneRecords200ResponseDNSRecordsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordProperties' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DNSRecordPropertiesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\A' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ANormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\AAAA' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\AAAANormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CAA' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CAANormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CNAME' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CNAMENormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\MX' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\MXNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\NS' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\NSNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SRV' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SRVNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SSHFP' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SSHFPNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TXT' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TXTNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ALIAS' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ALIASNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DNSRecordArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordPropertiesArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DNSRecordPropertiesArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostDNSZonesDNSZoneRecords200ResponseDNSRecord' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostDNSZonesDNSZoneRecords200ResponseDNSRecordNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDNSRecordsDNSRecord200ResponseDNSRecord' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetDNSRecordsDNSRecord200ResponseDNSRecordNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DNSRecordLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchDNSRecordsDNSRecord200ResponseDNSRecord' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchDNSRecordsDNSRecord200ResponseDNSRecordNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationsOrganizationDNSZones201ResponseDNSZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationsOrganizationDNSZones201ResponseDNSZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecord' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DNSRecordNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordContentAttributes' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DNSRecordContentAttributesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForA' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForANormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForAAAA' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForAAAANormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForALIAS' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForALIASNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForCAA' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForCAANormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForCNAME' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForCNAMENormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForIPS' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForIPSNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForMX' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForMXNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForNS' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForNSNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForPTR' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForPTRNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForSRV' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForSRVNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForSSHFP' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForSSHFPNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForTXT' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForTXTNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForVirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\RecordContentAttributesForVirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteSecurityGroup200ResponseSecurityGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteSecurityGroup200ResponseSecurityGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetSecurityGroupRules200ResponseSecurityGroupRules' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetSecurityGroupRules200ResponseSecurityGroupRulesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupRuleArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupRuleArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostSecurityGroupRules200ResponseSecurityGroupRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostSecurityGroupRules200ResponseSecurityGroupRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostSecurityGroupRulesPartSecurityGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostSecurityGroupRulesPartSecurityGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupRuleLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupRuleLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationFileStorageVolumes200ResponseFileStorageVolumesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationFileStorageVolumesPartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationFileStorageVolumesPartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetFileStorageVolume200ResponseFileStorageVolume' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetFileStorageVolume200ResponseFileStorageVolumeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetFileStorageVolumePartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetFileStorageVolumePartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumeArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\FileStorageVolumeArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationFileStorageVolumes201ResponseFileStorageVolume' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationFileStorageVolumes201ResponseFileStorageVolumeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationFileStorageVolumesPartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationFileStorageVolumesPartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumeLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\FileStorageVolumeLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchFileStorageVolume200ResponseFileStorageVolume' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchFileStorageVolume200ResponseFileStorageVolumeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchFileStorageVolumePartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchFileStorageVolumePartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteFileStorageVolume200ResponseFileStorageVolume' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteFileStorageVolume200ResponseFileStorageVolumeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteFileStorageVolumePartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteFileStorageVolumePartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworks200ResponseNetworks' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationAvailableNetworks200ResponseNetworksNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworksPartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationAvailableNetworksPartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworks200ResponseVirtualNetworks' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationAvailableNetworks200ResponseVirtualNetworksNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkSpeedProfile' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\NetworkSpeedProfileNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationCertificates200ResponseCertificates' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationCertificates200ResponseCertificatesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\Certificate' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CertificateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationLoadBalancers200ResponseLoadBalancers' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationLoadBalancers200ResponseLoadBalancersNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerResource' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancerResourceNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationLoadBalancersPartIPAddress' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationLoadBalancersPartIPAddressNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationLoadBalancersPartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationLoadBalancersPartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancerArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerWeightsArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancerWeightsArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancers200ResponseLoadBalancer' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationLoadBalancers200ResponseLoadBalancerNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartIPAddress' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationLoadBalancersPartIPAddressNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationLoadBalancersPartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartWeights' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostOrganizationLoadBalancersPartWeightsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancer200ResponseLoadBalancer' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetLoadBalancer200ResponseLoadBalancerNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartIPAddress' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetLoadBalancerPartIPAddressNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetLoadBalancerPartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartWeights' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetLoadBalancerPartWeightsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancerLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancer200ResponseLoadBalancer' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchLoadBalancer200ResponseLoadBalancerNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartIPAddress' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchLoadBalancerPartIPAddressNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchLoadBalancerPartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartWeights' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchLoadBalancerPartWeightsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteLoadBalancer200ResponseLoadBalancer' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteLoadBalancer200ResponseLoadBalancerNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerRules200ResponseLoadBalancerRules' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetLoadBalancerRules200ResponseLoadBalancerRulesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerRulesPartCertificates' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetLoadBalancerRulesPartCertificatesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerRuleArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancerRuleArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CertificateLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CertificateLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRules200ResponseLoadBalancerRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostLoadBalancerRules200ResponseLoadBalancerRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRulesPartCertificates' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostLoadBalancerRulesPartCertificatesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRulesPartLoadBalancer' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostLoadBalancerRulesPartLoadBalancerNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRulePartCertificates' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetLoadBalancersRulesLoadBalancerRulePartCertificatesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetLoadBalancersRulesLoadBalancerRulePartLoadBalancerNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerRuleLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancerRuleLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRulePartCertificates' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchLoadBalancersRulesLoadBalancerRulePartCertificatesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancerNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DeleteLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationIPAddresses200ResponseIPAddresses' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationIPAddresses200ResponseIPAddressesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetIPAddress200ResponseAllocation' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetIPAddress200ResponseAllocationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacesPartNetwork' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachineNetworkInterfacesPartNetworkNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacesPartIPAddresses' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachineNetworkInterfacesPartIPAddressesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartVirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachineNetworkInterfacePartVirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartNetwork' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachineNetworkInterfacePartNetworkNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartIPAddresses' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVirtualMachineNetworkInterfacePartIPAddressesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\InterfaceNotFoundSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\InterfaceNotFoundSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNI200ResponseVirtualMachineNetworkInterface' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartVirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVMNIVMNIPartVirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartNetwork' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVMNIVMNIPartNetworkNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartIPAddresses' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVMNIVMNIPartIPAddressesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartSpeedProfile' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetVMNIVMNIPartSpeedProfileNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfaceLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfaceLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostVirtualMachineNetworkInterfaceAllocateIPPartNetworkNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddressesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfaceNotFoundSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfaceNotFoundSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidIPSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\InvalidIPSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkSpeedProfileLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\NetworkSpeedProfileLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkSpeedProfileNotFoundSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\NetworkSpeedProfileNotFoundSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationTags200ResponseTags' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOrganizationTags200ResponseTagsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TagArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TagArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TagLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TagLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupArguments' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineGroupArgumentsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOperatingSystems200ResponseOperatingSystems' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetOperatingSystems200ResponseOperatingSystemsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectLookup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TrashObjectLookupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetZones200ResponseZones' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetZones200ResponseZonesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetZonesPartDataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetZonesPartDataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetCountries200ResponseCountries' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetCountries200ResponseCountriesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetCountryCountryStates200ResponseCountryStates' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetCountryCountryStates200ResponseCountryStatesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetCurrencies200ResponseCurrencies' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetCurrencies200ResponseCurrenciesNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\User' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\UserNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GetUsersCurrent200ResponseOrganizations' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GetUsersCurrent200ResponseOrganizationsNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IdentityNotLinkedToWebSessionSchema' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IdentityNotLinkedToWebSessionSchemaNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseAPIAuthenticator400ResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseAPIAuthenticator429ResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDataCenterNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseDataCenterNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseOrganizationNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseDiskNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseVirtualMachineNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseObjectInTrashResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskTemplateNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseDiskTemplateNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskTemplateVersionNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseDiskTemplateVersionNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseGPUTypeNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseGPUTypeNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseValidationErrorResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineBuildNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseVirtualMachineBuildNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachinePackageNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseVirtualMachinePackageNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSSHKeyNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseSSHKeyNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDeletionRestrictedResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseDeletionRestrictedResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskBackupPolicyNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseDiskBackupPolicyNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseDNSZoneNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneAlreadyVerifiedResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseDNSZoneAlreadyVerifiedResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotVerifiedResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseDNSZoneNotVerifiedResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSRecordNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseDNSRecordNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseSecurityGroupNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupRuleNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseSecurityGroupRuleNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseFileStorageVolumeNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseFileStorageVolumeNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNetworkNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseNetworkNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCertificateNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseCertificateNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseLoadBalancerNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerRuleNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseLoadBalancerRuleNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoAvailableAddressesResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseNoAvailableAddressesResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseIPAddressNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseIPAddressNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseResourceDoesNotSupportUnallocationResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseResourceDoesNotSupportUnallocationResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoAllocationResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseNoAllocationResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNetworkInterfaceNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseVirtualMachineNetworkInterfaceNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTaskQueueingErrorResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseTaskQueueingErrorResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSpeedProfileAlreadyAssignedResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseSpeedProfileAlreadyAssignedResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTagNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseTagNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineGroupNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseVirtualMachineGroupNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOperatingSystemNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseOperatingSystemNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTrashObjectNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseTrashObjectNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseZoneNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseZoneNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCountryNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseCountryNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCountryStateNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseCountryStateNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCurrencyNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseCurrencyNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTaskNotFoundResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseTaskNotFoundResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoUserAssociatedWithIdentityResponse' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ResponseNoUserAssociatedWithIdentityResponseNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DataCentersGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DataCentersDataCenterGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGetResponse200DataCenter' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DataCentersDataCenterGetResponse200DataCenterNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterDefaultNetworkGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DataCentersDataCenterDefaultNetworkGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterDefaultNetworkGetResponse200Network' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DataCentersDataCenterDefaultNetworkGetResponse200NetworkNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationGetResponse200Organization' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationGetResponse200OrganizationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationUsersWithAccessGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationUsersWithAccessGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationUsersWithAccessGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationUsersWithAccessGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationManagedGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationManagedGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationManagedPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedPostResponse201' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationManagedPostResponse201Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedPostResponse201Organization' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationManagedPostResponse201OrganizationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDisksGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationDisksGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDisksGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationDisksGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DisksDiskGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskGetResponse200Disk' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DisksDiskGetResponse200DiskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDisksGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineDisksGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDisksGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineDisksGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskTemplatesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationDiskTemplatesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskTemplatesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationDiskTemplatesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplatesDiskTemplateGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateGetResponse200DiskTemplate' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplatesDiskTemplateGetResponse200DiskTemplateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateVersionsGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplatesDiskTemplateVersionsGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplate' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateVersionsGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplatesDiskTemplateVersionsGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplateVersionsDiskTemplateVersionGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersion' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersionNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersion' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersionNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GpuTypesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GpuTypesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGpuTypeGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GpuTypesGpuTypeGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGpuTypeGetResponse200GpuType' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\GpuTypesGpuTypeGetResponse200GpuTypeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGpuTypesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DataCentersDataCenterGpuTypesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGpuTypesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DataCentersDataCenterGpuTypesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachinesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachinesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteResponse200TrashObject' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineDeleteResponse200TrashObjectNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteResponse200VirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineDeleteResponse200VirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineGetResponse200VirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineGetResponse200VirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachinePatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachinePatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePatchResponse200VirtualMachine' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachinePatchResponse200VirtualMachineNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePackagePutBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachinePackagePutBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePackagePutResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachinePackagePutResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePackagePutResponse200Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachinePackagePutResponse200TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineFlexibleResourcesPutBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineFlexibleResourcesPutBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineAllocateIpPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineAllocateIpPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineAllocateIpPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineAllocateIpPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddress' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddressNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachinesBuildPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201Build' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201BuildNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuild' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuildNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Build' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201BuildNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuild' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuildNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesBuildsVirtualMachineBuildGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesBuildsVirtualMachineBuildGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuild' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuildNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStartPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineStartPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStartPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineStartPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStartPostResponse200Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineStartPostResponse200TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStopPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineStopPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStopPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineStopPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStopPostResponse200Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineStopPostResponse200TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineShutdownPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineShutdownPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineShutdownPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineShutdownPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineShutdownPostResponse200Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineShutdownPostResponse200TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineResetPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineResetPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineResetPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineResetPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineResetPostResponse200Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineResetPostResponse200TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineConsoleSessionsPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineConsoleSessionsPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineConsoleSessionsPostResponse201' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineConsoleSessionsPostResponse201Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSession' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSessionNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinePackagesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinePackagesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesVirtualMachinePackageGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinePackagesVirtualMachinePackageGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackage' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackageNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationSshKeysGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationSshKeysGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationSshKeysPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysPostResponse201' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationSshKeysPostResponse201Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysPostResponse201SshKey' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationSshKeysPostResponse201SshKeyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SshKeysSshKeyDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SshKeysSshKeyDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SshKeysSshKeyDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SshKeysSshKeyDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SshKeysSshKeyDeleteResponse200SshKey' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SshKeysSshKeyDeleteResponse200SshKeyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskBackupPoliciesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationDiskBackupPoliciesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskBackupPoliciesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationDiskBackupPoliciesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicy' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DisksDiskDiskBackupPoliciesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DisksDiskDiskBackupPoliciesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DisksDiskDiskBackupPoliciesPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DisksDiskDiskBackupPoliciesPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicy' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPoliciesDiskBackupPolicyDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPoliciesDiskBackupPolicyDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicy' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPoliciesDiskBackupPolicyGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicy' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyPatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPoliciesDiskBackupPolicyPatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyPatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPoliciesDiskBackupPolicyPatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicy' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicy' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationDnsZonesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationDnsZonesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationDnsZonesPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesPostResponse201' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationDnsZonesPostResponse201Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesPostResponse201DnsZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationDnsZonesPostResponse201DnsZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneDeleteResponse200DnsZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneDeleteResponse200DnsZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneGetResponse200DnsZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneGetResponse200DnsZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerificationDetailsGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneVerificationDetailsGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerifyPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneVerifyPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerifyPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneVerifyPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerifyPostResponse200DnsZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneVerifyPostResponse200DnsZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneUpdateTtlPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneUpdateTtlPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneUpdateTtlPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneUpdateTtlPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneUpdateTtlPostResponse200DnsZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneUpdateTtlPostResponse200DnsZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneRecordsGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneRecordsPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneRecordsPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsPostResponse200DnsRecord' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZoneRecordsPostResponse200DnsRecordNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsRecordsDnsRecordDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsRecordsDnsRecordDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsRecordsDnsRecordGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordGetResponse200DnsRecord' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsRecordsDnsRecordGetResponse200DnsRecordNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordPatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsRecordsDnsRecordPatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordPatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsRecordsDnsRecordPatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordPatchResponse200DnsRecord' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsRecordsDnsRecordPatchResponse200DnsRecordNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesNameserversGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationDnsZonesNameserversGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZonePatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZonePatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZonePatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZonePatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZonePatchResponse200DnsZone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\DnsZonesDnsZonePatchResponse200DnsZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationSecurityGroupsGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationSecurityGroupsGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationSecurityGroupsPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationSecurityGroupsPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupDeleteResponse200SecurityGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupDeleteResponse200SecurityGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupGetResponse200SecurityGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupGetResponse200SecurityGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupPatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupPatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupPatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupPatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupPatchResponse200SecurityGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupPatchResponse200SecurityGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupRulesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupRulesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupRulesPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupRulesPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsRulesSecurityGroupRuleDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsRulesSecurityGroupRuleDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsRulesSecurityGroupRuleGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRulePatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsRulesSecurityGroupRulePatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRulePatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsRulesSecurityGroupRulePatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationFileStorageVolumesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationFileStorageVolumesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationFileStorageVolumesPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesPostResponse201' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationFileStorageVolumesPostResponse201Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolume' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolumeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\FileStorageVolumesFileStorageVolumeDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\FileStorageVolumesFileStorageVolumeDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObject' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObjectNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolume' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolumeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\FileStorageVolumesFileStorageVolumeGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolume' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolumeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumePatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\FileStorageVolumesFileStorageVolumePatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumePatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\FileStorageVolumesFileStorageVolumePatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolume' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolumeNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationAvailableNetworksGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationAvailableNetworksGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworksNetworkGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\NetworksNetworkGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworksNetworkGetResponse200Network' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\NetworksNetworkGetResponse200NetworkNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationNetworkSpeedProfilesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationNetworkSpeedProfilesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationCertificatesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationCertificatesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationCertificatesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationCertificatesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CertificatesCertificateGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CertificatesCertificateGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationLoadBalancersGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationLoadBalancersGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationLoadBalancersPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationLoadBalancersPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancer' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancerNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerDeleteResponse200LoadBalancer' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerDeleteResponse200LoadBalancerNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerGetResponse200LoadBalancer' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerGetResponse200LoadBalancerNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerPatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerPatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerPatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerPatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerPatchResponse200LoadBalancer' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerPatchResponse200LoadBalancerNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerRulesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerRulesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerRulesPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerRulesPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersRulesLoadBalancerRuleDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersRulesLoadBalancerRuleDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersRulesLoadBalancerRuleGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRulePatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersRulesLoadBalancerRulePatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRulePatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersRulesLoadBalancerRulePatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRule' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRuleNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationIpAddressesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationIpAddressesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationIpAddressesPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationIpAddressesPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesPostResponse200IpAddress' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationIpAddressesPostResponse200IpAddressNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IpAddressesIpAddressDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IpAddressesIpAddressDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IpAddressesIpAddressGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressGetResponse200IpAddress' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IpAddressesIpAddressGetResponse200IpAddressNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressGetResponse200Allocation' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IpAddressesIpAddressGetResponse200AllocationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressPatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IpAddressesIpAddressPatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressPatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IpAddressesIpAddressPatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressPatchResponse200IpAddress' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IpAddressesIpAddressPatchResponse200IpAddressNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressUnallocatePostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IpAddressesIpAddressUnallocatePostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressUnallocatePostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\IpAddressesIpAddressUnallocatePostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterfaceNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddress' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddressNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationTagsGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationTagsGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationTagsPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationTagsPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsPostResponse200Tag' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationTagsPostResponse200TagNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TagsTagDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TagsTagDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagDeleteResponse200Tag' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TagsTagDeleteResponse200TagNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TagsTagGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagGetResponse200Tag' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TagsTagGetResponse200TagNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagPatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TagsTagPatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagPatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TagsTagPatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagPatchResponse200Tag' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TagsTagPatchResponse200TagNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachineGroupsGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachineGroupsPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachineGroupsPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineGroupsVirtualMachineGroupDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineGroupsVirtualMachineGroupDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineGroupsVirtualMachineGroupGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupPatchBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineGroupsVirtualMachineGroupPatchBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupPatchResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineGroupsVirtualMachineGroupPatchResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroup' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroupNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OperatingSystemsGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OperatingSystemsGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsOperatingSystemGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OperatingSystemsOperatingSystemGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsOperatingSystemGetResponse200OperatingSystem' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OperatingSystemsOperatingSystemGetResponse200OperatingSystemNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationTrashObjectsGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationTrashObjectsGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsPurgeAllPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationTrashObjectsPurgeAllPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectDeleteBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TrashObjectsTrashObjectDeleteBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectDeleteResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TrashObjectsTrashObjectDeleteResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectDeleteResponse200Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TrashObjectsTrashObjectDeleteResponse200TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TrashObjectsTrashObjectGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectGetResponse200TrashObject' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TrashObjectsTrashObjectGetResponse200TrashObjectNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectRestorePostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TrashObjectsTrashObjectRestorePostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectRestorePostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TrashObjectsTrashObjectRestorePostResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectRestorePostResponse200TrashObject' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TrashObjectsTrashObjectRestorePostResponse200TrashObjectNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ZonesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ZonesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ZonesZoneGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ZonesZoneGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\ZonesZoneGetResponse200Zone' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\ZonesZoneGetResponse200ZoneNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CountriesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CountriesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CountriesCountryGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryGetResponse200Country' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CountriesCountryGetResponse200CountryNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryCountryStatesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CountriesCountryCountryStatesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryCountryStatesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CountriesCountryCountryStatesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CountryStatesCountryStateGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CountryStatesCountryStateGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CountryStatesCountryStateGetResponse200CountryState' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CountryStatesCountryStateGetResponse200CountryStateNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CurrenciesGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesGetResponse200Pagination' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CurrenciesGetResponse200PaginationNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesCurrencyGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CurrenciesCurrencyGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesCurrencyGetResponse200Currency' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\CurrenciesCurrencyGetResponse200CurrencyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TasksTaskGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TasksTaskGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\TasksTaskGetResponse200Task' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\TasksTaskGetResponse200TaskNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\UsersCurrentGetResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\UsersCurrentGetResponse200Normalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\UsersCurrentGetResponse200User' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\UsersCurrentGetResponse200UserNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidateLinkedWebSessionPostBody' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\InvalidateLinkedWebSessionPostBodyNormalizer', 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidateLinkedWebSessionPostResponse200' => 'Krystal\\Katapult\\KatapultAPI\\Normalizer\\InvalidateLinkedWebSessionPostResponse200Normalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\Krystal\\Katapult\\KatapultAPI\\Runtime\\Normalizer\\ReferenceNormalizer']; + protected $normalizersCache = []; + + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + + return $normalizer->normalize($object, $format, $context); + } + + public function denormalize($data, $class, $format = null, array $context = []) + { + $denormalizerClass = $this->normalizers[$class]; + $denormalizer = $this->getNormalizer($denormalizerClass); + + return $denormalizer->denormalize($data, $class, $format, $context); + } + + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + + return $normalizer; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenters200ResponseDataCenters' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCentersPartCountry' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\UnauthorizedNetworkForAPIToken' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\UnauthorizedNetworkForAPITokenSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidAPIToken' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidAPITokenSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ScopeNotGrantedError' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ScopeNotGrantedErrorSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RateLimitReached' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenter200ResponseDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterPartCountry' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterDefaultNetwork200ResponseNetwork' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterDefaultNetworkPartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizations200ResponseOrganizations' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\Organization' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\Currency' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\Country' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountryState' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationSuspendedSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationNotActivatedSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PaginationObject' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationUsersWithAccess200ResponseUsers' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationUsersWithAccessPartUser' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationManaged200ResponseOrganizations' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManaged201ResponseOrganization' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCurrency' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCountry' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCountryState' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLimitReachedSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ValidationError' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ValidationErrorSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDisks200ResponseDisk' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDisksPartVirtualMachineDisk' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDisksPartVirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDisk200ResponseDisk' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartIOProfile' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartVirtualMachineDisk' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartVirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartInstallation' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartDiskTemplateVersion' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartDiskTemplate' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartOperatingSystem' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskPartAttributes' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDisks200ResponseDisks' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDisksPartDisk' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ObjectInTrash' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObject' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskTemplates200ResponseDiskTemplates' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskTemplatesPartLatestVersion' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskTemplatesPartOperatingSystem' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationNotFoundSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemNotFoundSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplate200ResponseDiskTemplate' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartLatestVersion' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartOperatingSystem' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplatePartBadge' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersions200ResponseDiskTemplate' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersions200ResponseDiskTemplateVersions' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersion200ResponseDiskTemplateVersion' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionPartDiskTemplate' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionSpec200ResponseDiskTemplateVersion' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskTemplateVersionSpecPartDiskTemplate' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TemplateSpec' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TemplateSpecField' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypes200ResponseGPUTypes' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypesPartDataCenters' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUType200ResponseGPUType' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetGPUTypePartDataCenters' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDataCenterGPUTypes200ResponseGPUTypes' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachines200ResponseVirtualMachines' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartPackage' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartGPUType' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachinesPartIPAddresses' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachine200ResponseVirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCountry' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartOrganization' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCurrency' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartCountryState' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartPackage' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartIcon' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartAttachedISO' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartOperatingSystem' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartBadge' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGPUType' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGPUs' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartType' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartTags' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartIPAddresses' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartNetwork' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GPUTypeLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachine200ResponseVirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCountry' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartOrganization' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCurrency' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCountryState' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartPackage' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartIcon' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartAttachedISO' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartOperatingSystem' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartBadge' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGPUType' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGPUs' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartType' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartTags' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartIPAddresses' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartNetwork' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachine200ResponseVirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCountry' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartOrganization' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCurrency' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartCountryState' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartPackage' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartIcon' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartAttachedISO' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartOperatingSystem' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartBadge' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGPUType' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGPUs' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartType' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartTags' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartIPAddresses' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartNetwork' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PermissionDenied' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PermissionDeniedSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackageLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNotFoundSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackageNotFoundSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ObjectInTrashSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TaskQueueingError' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TaskQueueingErrorSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineFlexibleResources' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\FlexibleResourcesUnavailableToOrganizationSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddressLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddress' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\Network' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddressNotFoundSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\NoInterfaceAvailableSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAlreadyAllocatedSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ZoneLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenterLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\KeyValue' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuild201ResponseTask' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuild201ResponseBuild' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuild201ResponseVirtualMachineBuild' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResourceCreationRestricted' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResourceCreationRestrictedSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ZoneNotFoundSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenterNotFoundSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateNotFoundSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkNotFoundSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LocationRequiredSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuildFromSpec201ResponseTask' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuildFromSpec201ResponseBuild' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuildFromSpec201ResponseVirtualMachineBuild' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\APIAuthenticator400Schema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidSpecXML' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidSpecXMLSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuild' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineStart200ResponseTask' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineStop200ResponseTask' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineShutdown200ResponseTask' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineReset200ResponseTask' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineConsoleSessions201ResponseConsoleSession' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineConsoleSessionsPartVirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineMustBeStarted' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineMustBeStartedSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePackages200ResponseVirtualMachinePackages' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePackagesPartIcon' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackage' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\Attachment' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\AuthSSHKey' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\AuthSSHKeyProperties' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\AuthSSHKeyLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeletionRestricted' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\Zone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ISO' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystem' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GPUType' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGPU' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\Tag' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\Disk' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskIOProfile' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineDisk' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskInstallation' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersion' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplate' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskInstallationAttribute' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskBackupPoliciesPartSchedule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicies' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDiskBackupPoliciesPartSchedule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskDiskBackupPolicies200ResponseDiskBackupPolicies' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskDiskBackupPoliciesPartSchedule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskBackupPolicy200ResponseDiskBackupPolicy' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDiskBackupPolicyPartSchedule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteDiskBackupPolicy200ResponseDiskBackupPolicy' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicy' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidTimestampSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ScheduleArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchDiskBackupPolicy200ResponseDiskBackupPolicy' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicy' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineDiskBackupPoliciesPartSchedule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostDiskDiskBackupPolicies200ResponseDiskBackupPolicy' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostDiskDiskBackupPoliciesPartSchedule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationDNSZones201ResponseDNSZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteDNSZonesDNSZone200ResponseDNSZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneVerificationDetails' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\InfrastructureDNSZoneCannotBeEditedSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneNotVerified' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostDNSZonesDNSZoneUpdateTTL200ResponseDNSZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDNSZonesDNSZoneRecords200ResponseDNSRecords' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordProperties' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\A' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\AAAA' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CAA' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CNAME' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\MX' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\NS' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SRV' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SSHFP' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TXT' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ALIAS' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordPropertiesArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostDNSZonesDNSZoneRecords200ResponseDNSRecord' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetDNSRecordsDNSRecord200ResponseDNSRecord' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchDNSRecordsDNSRecord200ResponseDNSRecord' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationsOrganizationDNSZones201ResponseDNSZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecord' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordContentAttributes' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForA' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForAAAA' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForALIAS' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForCAA' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForCNAME' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForIPS' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForMX' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForNS' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForPTR' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForSRV' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForSSHFP' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForTXT' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForVirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteSecurityGroup200ResponseSecurityGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetSecurityGroupRules200ResponseSecurityGroupRules' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupRuleArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostSecurityGroupRules200ResponseSecurityGroupRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostSecurityGroupRulesPartSecurityGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupRuleLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationFileStorageVolumesPartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetFileStorageVolume200ResponseFileStorageVolume' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetFileStorageVolumePartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumeArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationFileStorageVolumes201ResponseFileStorageVolume' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationFileStorageVolumesPartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumeLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchFileStorageVolume200ResponseFileStorageVolume' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchFileStorageVolumePartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteFileStorageVolume200ResponseFileStorageVolume' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteFileStorageVolumePartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworks200ResponseNetworks' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworksPartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworks200ResponseVirtualNetworks' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkSpeedProfile' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationCertificates200ResponseCertificates' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\Certificate' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationLoadBalancers200ResponseLoadBalancers' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerResource' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationLoadBalancersPartIPAddress' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationLoadBalancersPartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerWeightsArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancers200ResponseLoadBalancer' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartIPAddress' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartWeights' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancer200ResponseLoadBalancer' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartIPAddress' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartWeights' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancer200ResponseLoadBalancer' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartIPAddress' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartWeights' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteLoadBalancer200ResponseLoadBalancer' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerRules200ResponseLoadBalancerRules' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerRulesPartCertificates' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerRuleArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CertificateLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRules200ResponseLoadBalancerRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRulesPartCertificates' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRulesPartLoadBalancer' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRulePartCertificates' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerRuleLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRulePartCertificates' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationIPAddresses200ResponseIPAddresses' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetIPAddress200ResponseAllocation' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacesPartNetwork' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacesPartIPAddresses' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartVirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartNetwork' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartIPAddresses' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\InterfaceNotFoundSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNI200ResponseVirtualMachineNetworkInterface' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartVirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartNetwork' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartIPAddresses' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartSpeedProfile' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfaceLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfaceNotFoundSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidIPSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkSpeedProfileLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkSpeedProfileNotFoundSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationTags200ResponseTags' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupArguments' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOperatingSystems200ResponseOperatingSystems' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectLookup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetZones200ResponseZones' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetZonesPartDataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetCountries200ResponseCountries' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetCountryCountryStates200ResponseCountryStates' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetCurrencies200ResponseCurrencies' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\User' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetUsersCurrent200ResponseOrganizations' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IdentityNotLinkedToWebSessionSchema' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDataCenterNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskTemplateNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskTemplateVersionNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseGPUTypeNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineBuildNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachinePackageNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSSHKeyNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDeletionRestrictedResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskBackupPolicyNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneAlreadyVerifiedResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotVerifiedResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSRecordNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupRuleNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseFileStorageVolumeNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNetworkNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCertificateNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerRuleNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoAvailableAddressesResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseIPAddressNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseResourceDoesNotSupportUnallocationResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoAllocationResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNetworkInterfaceNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTaskQueueingErrorResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSpeedProfileAlreadyAssignedResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTagNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineGroupNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOperatingSystemNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTrashObjectNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseZoneNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCountryNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCountryStateNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCurrencyNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTaskNotFoundResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoUserAssociatedWithIdentityResponse' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGetResponse200DataCenter' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterDefaultNetworkGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterDefaultNetworkGetResponse200Network' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationGetResponse200Organization' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationUsersWithAccessGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationUsersWithAccessGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedPostResponse201' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedPostResponse201Organization' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDisksGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDisksGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskGetResponse200Disk' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDisksGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDisksGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskTemplatesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskTemplatesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateGetResponse200DiskTemplate' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateVersionsGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateVersionsGetResponse200DiskTemplate' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplatesDiskTemplateVersionsGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionGetResponse200DiskTemplateVersion' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateVersionsDiskTemplateVersionSpecGetResponse200DiskTemplateVersion' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGpuTypeGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\GpuTypesGpuTypeGetResponse200GpuType' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGpuTypesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCentersDataCenterGpuTypesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteResponse200TrashObject' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteResponse200VirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineGetResponse200VirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePatchResponse200VirtualMachine' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePackagePutBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePackagePutResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePackagePutResponse200Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineFlexibleResourcesPutBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineAllocateIpPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineAllocateIpPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddress' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201Build' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuild' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Build' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuild' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesBuildsVirtualMachineBuildGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuild' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStartPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStartPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStartPostResponse200Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStopPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStopPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStopPostResponse200Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineShutdownPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineShutdownPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineShutdownPostResponse200Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineResetPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineResetPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineResetPostResponse200Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineConsoleSessionsPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineConsoleSessionsPostResponse201' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSession' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesVirtualMachinePackageGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackage' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysPostResponse201' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysPostResponse201SshKey' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SshKeysSshKeyDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SshKeysSshKeyDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SshKeysSshKeyDeleteResponse200SshKey' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskBackupPoliciesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskBackupPoliciesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicy' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DisksDiskDiskBackupPoliciesPostResponse200DiskBackupPolicy' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyDeleteResponse200DiskBackupPolicy' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyGetResponse200DiskBackupPolicy' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyPatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyPatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyPatchResponse200DiskBackupPolicy' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPoliciesDiskBackupPolicyScheduleDeleteResponse200DiskBackupPolicy' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesPostResponse201' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesPostResponse201DnsZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneDeleteResponse200DnsZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneGetResponse200DnsZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerificationDetailsGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerifyPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerifyPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneVerifyPostResponse200DnsZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneUpdateTtlPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneUpdateTtlPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneUpdateTtlPostResponse200DnsZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZoneRecordsPostResponse200DnsRecord' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordGetResponse200DnsRecord' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordPatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordPatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsRecordsDnsRecordPatchResponse200DnsRecord' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesNameserversGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZonePatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZonePatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\DnsZonesDnsZonePatchResponse200DnsZone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupDeleteResponse200SecurityGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupGetResponse200SecurityGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupPatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupPatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupPatchResponse200SecurityGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRulePatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRulePatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesPostResponse201' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolume' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteResponse200TrashObject' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeDeleteResponse200FileStorageVolume' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumeGetResponse200FileStorageVolume' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumePatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumePatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumesFileStorageVolumePatchResponse200FileStorageVolume' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationAvailableNetworksGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworksNetworkGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworksNetworkGetResponse200Network' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationNetworkSpeedProfilesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationCertificatesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationCertificatesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CertificatesCertificateGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancer' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerDeleteResponse200LoadBalancer' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerGetResponse200LoadBalancer' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerPatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerPatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerPatchResponse200LoadBalancer' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRulePatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRulePatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRule' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesPostResponse200IpAddress' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressGetResponse200IpAddress' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressGetResponse200Allocation' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressPatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressPatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressPatchResponse200IpAddress' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressUnallocatePostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\IpAddressesIpAddressUnallocatePostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddress' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsPostResponse200Tag' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagDeleteResponse200Tag' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagGetResponse200Tag' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagPatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagPatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagPatchResponse200Tag' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupPatchBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupPatchResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroup' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsOperatingSystemGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsOperatingSystemGetResponse200OperatingSystem' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsPurgeAllPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectDeleteBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectDeleteResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectDeleteResponse200Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectGetResponse200TrashObject' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectRestorePostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectRestorePostResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectRestorePostResponse200TrashObject' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ZonesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ZonesZoneGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\ZonesZoneGetResponse200Zone' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryGetResponse200Country' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryCountryStatesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountriesCountryCountryStatesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountryStatesCountryStateGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CountryStatesCountryStateGetResponse200CountryState' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesGetResponse200Pagination' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesCurrencyGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\CurrenciesCurrencyGetResponse200Currency' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TasksTaskGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\TasksTaskGetResponse200Task' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\UsersCurrentGetResponse200' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\UsersCurrentGetResponse200User' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidateLinkedWebSessionPostBody' => false, 'Krystal\\Katapult\\KatapultAPI\\Model\\InvalidateLinkedWebSessionPostResponse200' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false]; + } +} diff --git a/src/Normalizer/KeyValueNormalizer.php b/src/Normalizer/KeyValueNormalizer.php new file mode 100644 index 00000000..aca587aa --- /dev/null +++ b/src/Normalizer/KeyValueNormalizer.php @@ -0,0 +1,92 @@ +setKey($data['key']); + unset($data['key']); + } + if (\array_key_exists('value', $data)) { + $object->setValue($data['value']); + unset($data['value']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['key'] = $object->getKey(); + if ($object->isInitialized('value') && null !== $object->getValue()) { + $data['value'] = $object->getValue(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\KeyValue' => false]; + } +} diff --git a/src/Normalizer/LoadBalancerArgumentsNormalizer.php b/src/Normalizer/LoadBalancerArgumentsNormalizer.php new file mode 100644 index 00000000..b0749568 --- /dev/null +++ b/src/Normalizer/LoadBalancerArgumentsNormalizer.php @@ -0,0 +1,167 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('api_reference', $data)) { + $object->setApiReference($data['api_reference']); + unset($data['api_reference']); + } + if (\array_key_exists('resource_type', $data)) { + $object->setResourceType($data['resource_type']); + unset($data['resource_type']); + } + if (\array_key_exists('resource_ids', $data)) { + $values = []; + foreach ($data['resource_ids'] as $value) { + $values[] = $value; + } + $object->setResourceIds($values); + unset($data['resource_ids']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenterLookup', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('https_redirect', $data)) { + $object->setHttpsRedirect($data['https_redirect']); + unset($data['https_redirect']); + } + if (\array_key_exists('enable_weighting', $data)) { + $object->setEnableWeighting($data['enable_weighting']); + unset($data['enable_weighting']); + } + if (\array_key_exists('weights', $data)) { + $values_1 = []; + foreach ($data['weights'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerWeightsArguments', 'json', $context); + } + $object->setWeights($values_1); + unset($data['weights']); + } + if (\array_key_exists('standby_vms', $data)) { + $values_2 = []; + foreach ($data['standby_vms'] as $value_2) { + $values_2[] = $value_2; + } + $object->setStandbyVms($values_2); + unset($data['standby_vms']); + } + foreach ($data as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_3; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('apiReference') && null !== $object->getApiReference()) { + $data['api_reference'] = $object->getApiReference(); + } + if ($object->isInitialized('resourceType') && null !== $object->getResourceType()) { + $data['resource_type'] = $object->getResourceType(); + } + if ($object->isInitialized('resourceIds') && null !== $object->getResourceIds()) { + $values = []; + foreach ($object->getResourceIds() as $value) { + $values[] = $value; + } + $data['resource_ids'] = $values; + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('httpsRedirect') && null !== $object->getHttpsRedirect()) { + $data['https_redirect'] = $object->getHttpsRedirect(); + } + if ($object->isInitialized('enableWeighting') && null !== $object->getEnableWeighting()) { + $data['enable_weighting'] = $object->getEnableWeighting(); + } + if ($object->isInitialized('weights') && null !== $object->getWeights()) { + $values_1 = []; + foreach ($object->getWeights() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['weights'] = $values_1; + } + if ($object->isInitialized('standbyVms') && null !== $object->getStandbyVms()) { + $values_2 = []; + foreach ($object->getStandbyVms() as $value_2) { + $values_2[] = $value_2; + } + $data['standby_vms'] = $values_2; + } + foreach ($object as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_3; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerArguments' => false]; + } +} diff --git a/src/Normalizer/LoadBalancerLookupNormalizer.php b/src/Normalizer/LoadBalancerLookupNormalizer.php new file mode 100644 index 00000000..72624b3a --- /dev/null +++ b/src/Normalizer/LoadBalancerLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('api_reference', $data)) { + $object->setApiReference($data['api_reference']); + unset($data['api_reference']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('apiReference') && null !== $object->getApiReference()) { + $data['api_reference'] = $object->getApiReference(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerLookup' => false]; + } +} diff --git a/src/Normalizer/LoadBalancerResourceNormalizer.php b/src/Normalizer/LoadBalancerResourceNormalizer.php new file mode 100644 index 00000000..64203783 --- /dev/null +++ b/src/Normalizer/LoadBalancerResourceNormalizer.php @@ -0,0 +1,87 @@ +setResources($data['resources']); + unset($data['resources']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('resources') && null !== $object->getResources()) { + $data['resources'] = $object->getResources(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerResource' => false]; + } +} diff --git a/src/Normalizer/LoadBalancerRuleArgumentsNormalizer.php b/src/Normalizer/LoadBalancerRuleArgumentsNormalizer.php new file mode 100644 index 00000000..01e09f72 --- /dev/null +++ b/src/Normalizer/LoadBalancerRuleArgumentsNormalizer.php @@ -0,0 +1,200 @@ +setAlgorithm($data['algorithm']); + unset($data['algorithm']); + } + if (\array_key_exists('destination_port', $data)) { + $object->setDestinationPort($data['destination_port']); + unset($data['destination_port']); + } + if (\array_key_exists('listen_port', $data)) { + $object->setListenPort($data['listen_port']); + unset($data['listen_port']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('proxy_protocol', $data)) { + $object->setProxyProtocol($data['proxy_protocol']); + unset($data['proxy_protocol']); + } + if (\array_key_exists('backend_ssl', $data)) { + $object->setBackendSsl($data['backend_ssl']); + unset($data['backend_ssl']); + } + if (\array_key_exists('passthrough_ssl', $data)) { + $object->setPassthroughSsl($data['passthrough_ssl']); + unset($data['passthrough_ssl']); + } + if (\array_key_exists('certificates', $data)) { + $values = []; + foreach ($data['certificates'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\CertificateLookup', 'json', $context); + } + $object->setCertificates($values); + unset($data['certificates']); + } + if (\array_key_exists('check_enabled', $data)) { + $object->setCheckEnabled($data['check_enabled']); + unset($data['check_enabled']); + } + if (\array_key_exists('check_fall', $data)) { + $object->setCheckFall($data['check_fall']); + unset($data['check_fall']); + } + if (\array_key_exists('check_interval', $data)) { + $object->setCheckInterval($data['check_interval']); + unset($data['check_interval']); + } + if (\array_key_exists('check_path', $data)) { + $object->setCheckPath($data['check_path']); + unset($data['check_path']); + } + if (\array_key_exists('check_protocol', $data)) { + $object->setCheckProtocol($data['check_protocol']); + unset($data['check_protocol']); + } + if (\array_key_exists('check_rise', $data)) { + $object->setCheckRise($data['check_rise']); + unset($data['check_rise']); + } + if (\array_key_exists('check_timeout', $data)) { + $object->setCheckTimeout($data['check_timeout']); + unset($data['check_timeout']); + } + if (\array_key_exists('check_http_statuses', $data)) { + $object->setCheckHttpStatuses($data['check_http_statuses']); + unset($data['check_http_statuses']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('algorithm') && null !== $object->getAlgorithm()) { + $data['algorithm'] = $object->getAlgorithm(); + } + if ($object->isInitialized('destinationPort') && null !== $object->getDestinationPort()) { + $data['destination_port'] = $object->getDestinationPort(); + } + if ($object->isInitialized('listenPort') && null !== $object->getListenPort()) { + $data['listen_port'] = $object->getListenPort(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('proxyProtocol') && null !== $object->getProxyProtocol()) { + $data['proxy_protocol'] = $object->getProxyProtocol(); + } + if ($object->isInitialized('backendSsl') && null !== $object->getBackendSsl()) { + $data['backend_ssl'] = $object->getBackendSsl(); + } + if ($object->isInitialized('passthroughSsl') && null !== $object->getPassthroughSsl()) { + $data['passthrough_ssl'] = $object->getPassthroughSsl(); + } + if ($object->isInitialized('certificates') && null !== $object->getCertificates()) { + $values = []; + foreach ($object->getCertificates() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['certificates'] = $values; + } + if ($object->isInitialized('checkEnabled') && null !== $object->getCheckEnabled()) { + $data['check_enabled'] = $object->getCheckEnabled(); + } + if ($object->isInitialized('checkFall') && null !== $object->getCheckFall()) { + $data['check_fall'] = $object->getCheckFall(); + } + if ($object->isInitialized('checkInterval') && null !== $object->getCheckInterval()) { + $data['check_interval'] = $object->getCheckInterval(); + } + if ($object->isInitialized('checkPath') && null !== $object->getCheckPath()) { + $data['check_path'] = $object->getCheckPath(); + } + if ($object->isInitialized('checkProtocol') && null !== $object->getCheckProtocol()) { + $data['check_protocol'] = $object->getCheckProtocol(); + } + if ($object->isInitialized('checkRise') && null !== $object->getCheckRise()) { + $data['check_rise'] = $object->getCheckRise(); + } + if ($object->isInitialized('checkTimeout') && null !== $object->getCheckTimeout()) { + $data['check_timeout'] = $object->getCheckTimeout(); + } + if ($object->isInitialized('checkHttpStatuses') && null !== $object->getCheckHttpStatuses()) { + $data['check_http_statuses'] = $object->getCheckHttpStatuses(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerRuleArguments' => false]; + } +} diff --git a/src/Normalizer/LoadBalancerRuleLookupNormalizer.php b/src/Normalizer/LoadBalancerRuleLookupNormalizer.php new file mode 100644 index 00000000..38dee375 --- /dev/null +++ b/src/Normalizer/LoadBalancerRuleLookupNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerRuleLookup' => false]; + } +} diff --git a/src/Normalizer/LoadBalancerWeightsArgumentsNormalizer.php b/src/Normalizer/LoadBalancerWeightsArgumentsNormalizer.php new file mode 100644 index 00000000..7c600668 --- /dev/null +++ b/src/Normalizer/LoadBalancerWeightsArgumentsNormalizer.php @@ -0,0 +1,94 @@ +setVirtualMachineId($data['virtual_machine_id']); + unset($data['virtual_machine_id']); + } + if (\array_key_exists('weight', $data)) { + $object->setWeight($data['weight']); + unset($data['weight']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('virtualMachineId') && null !== $object->getVirtualMachineId()) { + $data['virtual_machine_id'] = $object->getVirtualMachineId(); + } + if ($object->isInitialized('weight') && null !== $object->getWeight()) { + $data['weight'] = $object->getWeight(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerWeightsArguments' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerDeleteBodyNormalizer.php b/src/Normalizer/LoadBalancersLoadBalancerDeleteBodyNormalizer.php new file mode 100644 index 00000000..ab38f7c6 --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerLookup', 'json', $context)); + unset($data['load_balancer']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerDeleteBody' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerDeleteResponse200LoadBalancerNormalizer.php b/src/Normalizer/LoadBalancersLoadBalancerDeleteResponse200LoadBalancerNormalizer.php new file mode 100644 index 00000000..f23aaa09 --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerDeleteResponse200LoadBalancerNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('api_reference', $data)) { + $object->setApiReference($data['api_reference']); + unset($data['api_reference']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('apiReference') && null !== $object->getApiReference()) { + $data['api_reference'] = $object->getApiReference(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerDeleteResponse200LoadBalancer' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerDeleteResponse200Normalizer.php b/src/Normalizer/LoadBalancersLoadBalancerDeleteResponse200Normalizer.php new file mode 100644 index 00000000..555192bd --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerDeleteResponse200Normalizer.php @@ -0,0 +1,85 @@ +setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerDeleteResponse200LoadBalancer', 'json', $context)); + unset($data['load_balancer']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerGetResponse200LoadBalancerNormalizer.php b/src/Normalizer/LoadBalancersLoadBalancerGetResponse200LoadBalancerNormalizer.php new file mode 100644 index 00000000..b5b34e5e --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerGetResponse200LoadBalancerNormalizer.php @@ -0,0 +1,218 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('api_reference', $data)) { + $object->setApiReference($data['api_reference']); + unset($data['api_reference']); + } + if (\array_key_exists('resource_type', $data)) { + $object->setResourceType($data['resource_type']); + unset($data['resource_type']); + } + if (\array_key_exists('resources', $data)) { + $values = []; + foreach ($data['resources'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerResource', 'json', $context); + } + $object->setResources($values); + unset($data['resources']); + } + if (\array_key_exists('resource_ids', $data)) { + $values_1 = []; + foreach ($data['resource_ids'] as $value_1) { + $values_1[] = $value_1; + } + $object->setResourceIds($values_1); + unset($data['resource_ids']); + } + if (\array_key_exists('ip_address', $data)) { + $values_2 = []; + foreach ($data['ip_address'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartIPAddress', 'json', $context); + } + $object->setIpAddress($values_2); + unset($data['ip_address']); + } + if (\array_key_exists('https_redirect', $data)) { + $object->setHttpsRedirect($data['https_redirect']); + unset($data['https_redirect']); + } + if (\array_key_exists('backend_certificate', $data)) { + $object->setBackendCertificate($data['backend_certificate']); + unset($data['backend_certificate']); + } + if (\array_key_exists('backend_certificate_key', $data)) { + $object->setBackendCertificateKey($data['backend_certificate_key']); + unset($data['backend_certificate_key']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('enable_weighting', $data)) { + $object->setEnableWeighting($data['enable_weighting']); + unset($data['enable_weighting']); + } + if (\array_key_exists('weights', $data)) { + $values_3 = []; + foreach ($data['weights'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerPartWeights', 'json', $context); + } + $object->setWeights($values_3); + unset($data['weights']); + } + if (\array_key_exists('standby_vms', $data)) { + $values_4 = []; + foreach ($data['standby_vms'] as $value_4) { + $values_4[] = $value_4; + } + $object->setStandbyVms($values_4); + unset($data['standby_vms']); + } + foreach ($data as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_5; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('apiReference') && null !== $object->getApiReference()) { + $data['api_reference'] = $object->getApiReference(); + } + if ($object->isInitialized('resourceType') && null !== $object->getResourceType()) { + $data['resource_type'] = $object->getResourceType(); + } + if ($object->isInitialized('resources') && null !== $object->getResources()) { + $values = []; + foreach ($object->getResources() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['resources'] = $values; + } + if ($object->isInitialized('resourceIds') && null !== $object->getResourceIds()) { + $values_1 = []; + foreach ($object->getResourceIds() as $value_1) { + $values_1[] = $value_1; + } + $data['resource_ids'] = $values_1; + } + if ($object->isInitialized('ipAddress') && null !== $object->getIpAddress()) { + $values_2 = []; + foreach ($object->getIpAddress() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['ip_address'] = $values_2; + } + if ($object->isInitialized('httpsRedirect') && null !== $object->getHttpsRedirect()) { + $data['https_redirect'] = $object->getHttpsRedirect(); + } + if ($object->isInitialized('backendCertificate') && null !== $object->getBackendCertificate()) { + $data['backend_certificate'] = $object->getBackendCertificate(); + } + if ($object->isInitialized('backendCertificateKey') && null !== $object->getBackendCertificateKey()) { + $data['backend_certificate_key'] = $object->getBackendCertificateKey(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('enableWeighting') && null !== $object->getEnableWeighting()) { + $data['enable_weighting'] = $object->getEnableWeighting(); + } + if ($object->isInitialized('weights') && null !== $object->getWeights()) { + $values_3 = []; + foreach ($object->getWeights() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['weights'] = $values_3; + } + if ($object->isInitialized('standbyVms') && null !== $object->getStandbyVms()) { + $values_4 = []; + foreach ($object->getStandbyVms() as $value_4) { + $values_4[] = $value_4; + } + $data['standby_vms'] = $values_4; + } + foreach ($object as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_5; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerGetResponse200LoadBalancer' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerGetResponse200Normalizer.php b/src/Normalizer/LoadBalancersLoadBalancerGetResponse200Normalizer.php new file mode 100644 index 00000000..2cd81182 --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerGetResponse200LoadBalancer', 'json', $context)); + unset($data['load_balancer']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerGetResponse200' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerPatchBodyNormalizer.php b/src/Normalizer/LoadBalancersLoadBalancerPatchBodyNormalizer.php new file mode 100644 index 00000000..64ec2528 --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerPatchBodyNormalizer.php @@ -0,0 +1,90 @@ +setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerLookup', 'json', $context)); + unset($data['load_balancer']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerPatchBody' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerPatchResponse200LoadBalancerNormalizer.php b/src/Normalizer/LoadBalancersLoadBalancerPatchResponse200LoadBalancerNormalizer.php new file mode 100644 index 00000000..0fb06f1d --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerPatchResponse200LoadBalancerNormalizer.php @@ -0,0 +1,218 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('api_reference', $data)) { + $object->setApiReference($data['api_reference']); + unset($data['api_reference']); + } + if (\array_key_exists('resource_type', $data)) { + $object->setResourceType($data['resource_type']); + unset($data['resource_type']); + } + if (\array_key_exists('resources', $data)) { + $values = []; + foreach ($data['resources'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerResource', 'json', $context); + } + $object->setResources($values); + unset($data['resources']); + } + if (\array_key_exists('resource_ids', $data)) { + $values_1 = []; + foreach ($data['resource_ids'] as $value_1) { + $values_1[] = $value_1; + } + $object->setResourceIds($values_1); + unset($data['resource_ids']); + } + if (\array_key_exists('ip_address', $data)) { + $values_2 = []; + foreach ($data['ip_address'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartIPAddress', 'json', $context); + } + $object->setIpAddress($values_2); + unset($data['ip_address']); + } + if (\array_key_exists('https_redirect', $data)) { + $object->setHttpsRedirect($data['https_redirect']); + unset($data['https_redirect']); + } + if (\array_key_exists('backend_certificate', $data)) { + $object->setBackendCertificate($data['backend_certificate']); + unset($data['backend_certificate']); + } + if (\array_key_exists('backend_certificate_key', $data)) { + $object->setBackendCertificateKey($data['backend_certificate_key']); + unset($data['backend_certificate_key']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('enable_weighting', $data)) { + $object->setEnableWeighting($data['enable_weighting']); + unset($data['enable_weighting']); + } + if (\array_key_exists('weights', $data)) { + $values_3 = []; + foreach ($data['weights'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartWeights', 'json', $context); + } + $object->setWeights($values_3); + unset($data['weights']); + } + if (\array_key_exists('standby_vms', $data)) { + $values_4 = []; + foreach ($data['standby_vms'] as $value_4) { + $values_4[] = $value_4; + } + $object->setStandbyVms($values_4); + unset($data['standby_vms']); + } + foreach ($data as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_5; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('apiReference') && null !== $object->getApiReference()) { + $data['api_reference'] = $object->getApiReference(); + } + if ($object->isInitialized('resourceType') && null !== $object->getResourceType()) { + $data['resource_type'] = $object->getResourceType(); + } + if ($object->isInitialized('resources') && null !== $object->getResources()) { + $values = []; + foreach ($object->getResources() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['resources'] = $values; + } + if ($object->isInitialized('resourceIds') && null !== $object->getResourceIds()) { + $values_1 = []; + foreach ($object->getResourceIds() as $value_1) { + $values_1[] = $value_1; + } + $data['resource_ids'] = $values_1; + } + if ($object->isInitialized('ipAddress') && null !== $object->getIpAddress()) { + $values_2 = []; + foreach ($object->getIpAddress() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['ip_address'] = $values_2; + } + if ($object->isInitialized('httpsRedirect') && null !== $object->getHttpsRedirect()) { + $data['https_redirect'] = $object->getHttpsRedirect(); + } + if ($object->isInitialized('backendCertificate') && null !== $object->getBackendCertificate()) { + $data['backend_certificate'] = $object->getBackendCertificate(); + } + if ($object->isInitialized('backendCertificateKey') && null !== $object->getBackendCertificateKey()) { + $data['backend_certificate_key'] = $object->getBackendCertificateKey(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('enableWeighting') && null !== $object->getEnableWeighting()) { + $data['enable_weighting'] = $object->getEnableWeighting(); + } + if ($object->isInitialized('weights') && null !== $object->getWeights()) { + $values_3 = []; + foreach ($object->getWeights() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['weights'] = $values_3; + } + if ($object->isInitialized('standbyVms') && null !== $object->getStandbyVms()) { + $values_4 = []; + foreach ($object->getStandbyVms() as $value_4) { + $values_4[] = $value_4; + } + $data['standby_vms'] = $values_4; + } + foreach ($object as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_5; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerPatchResponse200LoadBalancer' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerPatchResponse200Normalizer.php b/src/Normalizer/LoadBalancersLoadBalancerPatchResponse200Normalizer.php new file mode 100644 index 00000000..5bdea0ff --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerPatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerPatchResponse200LoadBalancer', 'json', $context)); + unset($data['load_balancer']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerPatchResponse200' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerRulesGetResponse200Normalizer.php b/src/Normalizer/LoadBalancersLoadBalancerRulesGetResponse200Normalizer.php new file mode 100644 index 00000000..54993d62 --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerRulesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('load_balancer_rules', $data)) { + $values = []; + foreach ($data['load_balancer_rules'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancerRules200ResponseLoadBalancerRules', 'json', $context); + } + $object->setLoadBalancerRules($values); + unset($data['load_balancer_rules']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getLoadBalancerRules() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['load_balancer_rules'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerRulesGetResponse200PaginationNormalizer.php b/src/Normalizer/LoadBalancersLoadBalancerRulesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..20edd3ff --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerRulesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerRulesPostBodyNormalizer.php b/src/Normalizer/LoadBalancersLoadBalancerRulesPostBodyNormalizer.php new file mode 100644 index 00000000..c2b8bc9f --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerRulesPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerLookup', 'json', $context)); + unset($data['load_balancer']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerRuleArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesPostBody' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRuleNormalizer.php b/src/Normalizer/LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRuleNormalizer.php new file mode 100644 index 00000000..70488ed1 --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRuleNormalizer.php @@ -0,0 +1,214 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('algorithm', $data)) { + $object->setAlgorithm($data['algorithm']); + unset($data['algorithm']); + } + if (\array_key_exists('destination_port', $data)) { + $object->setDestinationPort($data['destination_port']); + unset($data['destination_port']); + } + if (\array_key_exists('listen_port', $data)) { + $object->setListenPort($data['listen_port']); + unset($data['listen_port']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('proxy_protocol', $data)) { + $object->setProxyProtocol($data['proxy_protocol']); + unset($data['proxy_protocol']); + } + if (\array_key_exists('certificates', $data)) { + $values = []; + foreach ($data['certificates'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRulesPartCertificates', 'json', $context); + } + $object->setCertificates($values); + unset($data['certificates']); + } + if (\array_key_exists('backend_ssl', $data)) { + $object->setBackendSsl($data['backend_ssl']); + unset($data['backend_ssl']); + } + if (\array_key_exists('passthrough_ssl', $data)) { + $object->setPassthroughSsl($data['passthrough_ssl']); + unset($data['passthrough_ssl']); + } + if (\array_key_exists('check_enabled', $data)) { + $object->setCheckEnabled($data['check_enabled']); + unset($data['check_enabled']); + } + if (\array_key_exists('check_fall', $data)) { + $object->setCheckFall($data['check_fall']); + unset($data['check_fall']); + } + if (\array_key_exists('check_interval', $data)) { + $object->setCheckInterval($data['check_interval']); + unset($data['check_interval']); + } + if (\array_key_exists('check_path', $data)) { + $object->setCheckPath($data['check_path']); + unset($data['check_path']); + } + if (\array_key_exists('check_protocol', $data)) { + $object->setCheckProtocol($data['check_protocol']); + unset($data['check_protocol']); + } + if (\array_key_exists('check_rise', $data)) { + $object->setCheckRise($data['check_rise']); + unset($data['check_rise']); + } + if (\array_key_exists('check_timeout', $data)) { + $object->setCheckTimeout($data['check_timeout']); + unset($data['check_timeout']); + } + if (\array_key_exists('check_http_statuses', $data)) { + $object->setCheckHttpStatuses($data['check_http_statuses']); + unset($data['check_http_statuses']); + } + if (\array_key_exists('load_balancer', $data)) { + $object->setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRulesPartLoadBalancer', 'json', $context)); + unset($data['load_balancer']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('algorithm') && null !== $object->getAlgorithm()) { + $data['algorithm'] = $object->getAlgorithm(); + } + if ($object->isInitialized('destinationPort') && null !== $object->getDestinationPort()) { + $data['destination_port'] = $object->getDestinationPort(); + } + if ($object->isInitialized('listenPort') && null !== $object->getListenPort()) { + $data['listen_port'] = $object->getListenPort(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('proxyProtocol') && null !== $object->getProxyProtocol()) { + $data['proxy_protocol'] = $object->getProxyProtocol(); + } + if ($object->isInitialized('certificates') && null !== $object->getCertificates()) { + $values = []; + foreach ($object->getCertificates() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['certificates'] = $values; + } + if ($object->isInitialized('backendSsl') && null !== $object->getBackendSsl()) { + $data['backend_ssl'] = $object->getBackendSsl(); + } + if ($object->isInitialized('passthroughSsl') && null !== $object->getPassthroughSsl()) { + $data['passthrough_ssl'] = $object->getPassthroughSsl(); + } + if ($object->isInitialized('checkEnabled') && null !== $object->getCheckEnabled()) { + $data['check_enabled'] = $object->getCheckEnabled(); + } + if ($object->isInitialized('checkFall') && null !== $object->getCheckFall()) { + $data['check_fall'] = $object->getCheckFall(); + } + if ($object->isInitialized('checkInterval') && null !== $object->getCheckInterval()) { + $data['check_interval'] = $object->getCheckInterval(); + } + if ($object->isInitialized('checkPath') && null !== $object->getCheckPath()) { + $data['check_path'] = $object->getCheckPath(); + } + if ($object->isInitialized('checkProtocol') && null !== $object->getCheckProtocol()) { + $data['check_protocol'] = $object->getCheckProtocol(); + } + if ($object->isInitialized('checkRise') && null !== $object->getCheckRise()) { + $data['check_rise'] = $object->getCheckRise(); + } + if ($object->isInitialized('checkTimeout') && null !== $object->getCheckTimeout()) { + $data['check_timeout'] = $object->getCheckTimeout(); + } + if ($object->isInitialized('checkHttpStatuses') && null !== $object->getCheckHttpStatuses()) { + $data['check_http_statuses'] = $object->getCheckHttpStatuses(); + } + if ($object->isInitialized('loadBalancer') && null !== $object->getLoadBalancer()) { + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRule' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersLoadBalancerRulesPostResponse200Normalizer.php b/src/Normalizer/LoadBalancersLoadBalancerRulesPostResponse200Normalizer.php new file mode 100644 index 00000000..874e7f1e --- /dev/null +++ b/src/Normalizer/LoadBalancersLoadBalancerRulesPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setLoadBalancerRule($this->denormalizer->denormalize($data['load_balancer_rule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesPostResponse200LoadBalancerRule', 'json', $context)); + unset($data['load_balancer_rule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer_rule'] = $this->normalizer->normalize($object->getLoadBalancerRule(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersLoadBalancerRulesPostResponse200' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersRulesLoadBalancerRuleDeleteBodyNormalizer.php b/src/Normalizer/LoadBalancersRulesLoadBalancerRuleDeleteBodyNormalizer.php new file mode 100644 index 00000000..15aae281 --- /dev/null +++ b/src/Normalizer/LoadBalancersRulesLoadBalancerRuleDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setLoadBalancerRule($this->denormalizer->denormalize($data['load_balancer_rule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerRuleLookup', 'json', $context)); + unset($data['load_balancer_rule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer_rule'] = $this->normalizer->normalize($object->getLoadBalancerRule(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleDeleteBody' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRuleNormalizer.php b/src/Normalizer/LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRuleNormalizer.php new file mode 100644 index 00000000..d2839938 --- /dev/null +++ b/src/Normalizer/LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRuleNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRule' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersRulesLoadBalancerRuleDeleteResponse200Normalizer.php b/src/Normalizer/LoadBalancersRulesLoadBalancerRuleDeleteResponse200Normalizer.php new file mode 100644 index 00000000..f60bd05b --- /dev/null +++ b/src/Normalizer/LoadBalancersRulesLoadBalancerRuleDeleteResponse200Normalizer.php @@ -0,0 +1,85 @@ +setLoadBalancerRule($this->denormalizer->denormalize($data['load_balancer_rule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleDeleteResponse200LoadBalancerRule', 'json', $context)); + unset($data['load_balancer_rule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer_rule'] = $this->normalizer->normalize($object->getLoadBalancerRule(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRuleNormalizer.php b/src/Normalizer/LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRuleNormalizer.php new file mode 100644 index 00000000..e667220b --- /dev/null +++ b/src/Normalizer/LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRuleNormalizer.php @@ -0,0 +1,214 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('algorithm', $data)) { + $object->setAlgorithm($data['algorithm']); + unset($data['algorithm']); + } + if (\array_key_exists('destination_port', $data)) { + $object->setDestinationPort($data['destination_port']); + unset($data['destination_port']); + } + if (\array_key_exists('listen_port', $data)) { + $object->setListenPort($data['listen_port']); + unset($data['listen_port']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('proxy_protocol', $data)) { + $object->setProxyProtocol($data['proxy_protocol']); + unset($data['proxy_protocol']); + } + if (\array_key_exists('certificates', $data)) { + $values = []; + foreach ($data['certificates'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRulePartCertificates', 'json', $context); + } + $object->setCertificates($values); + unset($data['certificates']); + } + if (\array_key_exists('backend_ssl', $data)) { + $object->setBackendSsl($data['backend_ssl']); + unset($data['backend_ssl']); + } + if (\array_key_exists('passthrough_ssl', $data)) { + $object->setPassthroughSsl($data['passthrough_ssl']); + unset($data['passthrough_ssl']); + } + if (\array_key_exists('check_enabled', $data)) { + $object->setCheckEnabled($data['check_enabled']); + unset($data['check_enabled']); + } + if (\array_key_exists('check_fall', $data)) { + $object->setCheckFall($data['check_fall']); + unset($data['check_fall']); + } + if (\array_key_exists('check_interval', $data)) { + $object->setCheckInterval($data['check_interval']); + unset($data['check_interval']); + } + if (\array_key_exists('check_path', $data)) { + $object->setCheckPath($data['check_path']); + unset($data['check_path']); + } + if (\array_key_exists('check_protocol', $data)) { + $object->setCheckProtocol($data['check_protocol']); + unset($data['check_protocol']); + } + if (\array_key_exists('check_rise', $data)) { + $object->setCheckRise($data['check_rise']); + unset($data['check_rise']); + } + if (\array_key_exists('check_timeout', $data)) { + $object->setCheckTimeout($data['check_timeout']); + unset($data['check_timeout']); + } + if (\array_key_exists('check_http_statuses', $data)) { + $object->setCheckHttpStatuses($data['check_http_statuses']); + unset($data['check_http_statuses']); + } + if (\array_key_exists('load_balancer', $data)) { + $object->setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetLoadBalancersRulesLoadBalancerRulePartLoadBalancer', 'json', $context)); + unset($data['load_balancer']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('algorithm') && null !== $object->getAlgorithm()) { + $data['algorithm'] = $object->getAlgorithm(); + } + if ($object->isInitialized('destinationPort') && null !== $object->getDestinationPort()) { + $data['destination_port'] = $object->getDestinationPort(); + } + if ($object->isInitialized('listenPort') && null !== $object->getListenPort()) { + $data['listen_port'] = $object->getListenPort(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('proxyProtocol') && null !== $object->getProxyProtocol()) { + $data['proxy_protocol'] = $object->getProxyProtocol(); + } + if ($object->isInitialized('certificates') && null !== $object->getCertificates()) { + $values = []; + foreach ($object->getCertificates() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['certificates'] = $values; + } + if ($object->isInitialized('backendSsl') && null !== $object->getBackendSsl()) { + $data['backend_ssl'] = $object->getBackendSsl(); + } + if ($object->isInitialized('passthroughSsl') && null !== $object->getPassthroughSsl()) { + $data['passthrough_ssl'] = $object->getPassthroughSsl(); + } + if ($object->isInitialized('checkEnabled') && null !== $object->getCheckEnabled()) { + $data['check_enabled'] = $object->getCheckEnabled(); + } + if ($object->isInitialized('checkFall') && null !== $object->getCheckFall()) { + $data['check_fall'] = $object->getCheckFall(); + } + if ($object->isInitialized('checkInterval') && null !== $object->getCheckInterval()) { + $data['check_interval'] = $object->getCheckInterval(); + } + if ($object->isInitialized('checkPath') && null !== $object->getCheckPath()) { + $data['check_path'] = $object->getCheckPath(); + } + if ($object->isInitialized('checkProtocol') && null !== $object->getCheckProtocol()) { + $data['check_protocol'] = $object->getCheckProtocol(); + } + if ($object->isInitialized('checkRise') && null !== $object->getCheckRise()) { + $data['check_rise'] = $object->getCheckRise(); + } + if ($object->isInitialized('checkTimeout') && null !== $object->getCheckTimeout()) { + $data['check_timeout'] = $object->getCheckTimeout(); + } + if ($object->isInitialized('checkHttpStatuses') && null !== $object->getCheckHttpStatuses()) { + $data['check_http_statuses'] = $object->getCheckHttpStatuses(); + } + if ($object->isInitialized('loadBalancer') && null !== $object->getLoadBalancer()) { + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRule' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersRulesLoadBalancerRuleGetResponse200Normalizer.php b/src/Normalizer/LoadBalancersRulesLoadBalancerRuleGetResponse200Normalizer.php new file mode 100644 index 00000000..d1e55eb9 --- /dev/null +++ b/src/Normalizer/LoadBalancersRulesLoadBalancerRuleGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setLoadBalancerRule($this->denormalizer->denormalize($data['load_balancer_rule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleGetResponse200LoadBalancerRule', 'json', $context)); + unset($data['load_balancer_rule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer_rule'] = $this->normalizer->normalize($object->getLoadBalancerRule(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRuleGetResponse200' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersRulesLoadBalancerRulePatchBodyNormalizer.php b/src/Normalizer/LoadBalancersRulesLoadBalancerRulePatchBodyNormalizer.php new file mode 100644 index 00000000..d3ac7f40 --- /dev/null +++ b/src/Normalizer/LoadBalancersRulesLoadBalancerRulePatchBodyNormalizer.php @@ -0,0 +1,90 @@ +setLoadBalancerRule($this->denormalizer->denormalize($data['load_balancer_rule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerRuleLookup', 'json', $context)); + unset($data['load_balancer_rule']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerRuleArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer_rule'] = $this->normalizer->normalize($object->getLoadBalancerRule(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRulePatchBody' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRuleNormalizer.php b/src/Normalizer/LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRuleNormalizer.php new file mode 100644 index 00000000..ae163c2a --- /dev/null +++ b/src/Normalizer/LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRuleNormalizer.php @@ -0,0 +1,214 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('algorithm', $data)) { + $object->setAlgorithm($data['algorithm']); + unset($data['algorithm']); + } + if (\array_key_exists('destination_port', $data)) { + $object->setDestinationPort($data['destination_port']); + unset($data['destination_port']); + } + if (\array_key_exists('listen_port', $data)) { + $object->setListenPort($data['listen_port']); + unset($data['listen_port']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('proxy_protocol', $data)) { + $object->setProxyProtocol($data['proxy_protocol']); + unset($data['proxy_protocol']); + } + if (\array_key_exists('certificates', $data)) { + $values = []; + foreach ($data['certificates'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRulePartCertificates', 'json', $context); + } + $object->setCertificates($values); + unset($data['certificates']); + } + if (\array_key_exists('backend_ssl', $data)) { + $object->setBackendSsl($data['backend_ssl']); + unset($data['backend_ssl']); + } + if (\array_key_exists('passthrough_ssl', $data)) { + $object->setPassthroughSsl($data['passthrough_ssl']); + unset($data['passthrough_ssl']); + } + if (\array_key_exists('check_enabled', $data)) { + $object->setCheckEnabled($data['check_enabled']); + unset($data['check_enabled']); + } + if (\array_key_exists('check_fall', $data)) { + $object->setCheckFall($data['check_fall']); + unset($data['check_fall']); + } + if (\array_key_exists('check_interval', $data)) { + $object->setCheckInterval($data['check_interval']); + unset($data['check_interval']); + } + if (\array_key_exists('check_path', $data)) { + $object->setCheckPath($data['check_path']); + unset($data['check_path']); + } + if (\array_key_exists('check_protocol', $data)) { + $object->setCheckProtocol($data['check_protocol']); + unset($data['check_protocol']); + } + if (\array_key_exists('check_rise', $data)) { + $object->setCheckRise($data['check_rise']); + unset($data['check_rise']); + } + if (\array_key_exists('check_timeout', $data)) { + $object->setCheckTimeout($data['check_timeout']); + unset($data['check_timeout']); + } + if (\array_key_exists('check_http_statuses', $data)) { + $object->setCheckHttpStatuses($data['check_http_statuses']); + unset($data['check_http_statuses']); + } + if (\array_key_exists('load_balancer', $data)) { + $object->setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer', 'json', $context)); + unset($data['load_balancer']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('algorithm') && null !== $object->getAlgorithm()) { + $data['algorithm'] = $object->getAlgorithm(); + } + if ($object->isInitialized('destinationPort') && null !== $object->getDestinationPort()) { + $data['destination_port'] = $object->getDestinationPort(); + } + if ($object->isInitialized('listenPort') && null !== $object->getListenPort()) { + $data['listen_port'] = $object->getListenPort(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('proxyProtocol') && null !== $object->getProxyProtocol()) { + $data['proxy_protocol'] = $object->getProxyProtocol(); + } + if ($object->isInitialized('certificates') && null !== $object->getCertificates()) { + $values = []; + foreach ($object->getCertificates() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['certificates'] = $values; + } + if ($object->isInitialized('backendSsl') && null !== $object->getBackendSsl()) { + $data['backend_ssl'] = $object->getBackendSsl(); + } + if ($object->isInitialized('passthroughSsl') && null !== $object->getPassthroughSsl()) { + $data['passthrough_ssl'] = $object->getPassthroughSsl(); + } + if ($object->isInitialized('checkEnabled') && null !== $object->getCheckEnabled()) { + $data['check_enabled'] = $object->getCheckEnabled(); + } + if ($object->isInitialized('checkFall') && null !== $object->getCheckFall()) { + $data['check_fall'] = $object->getCheckFall(); + } + if ($object->isInitialized('checkInterval') && null !== $object->getCheckInterval()) { + $data['check_interval'] = $object->getCheckInterval(); + } + if ($object->isInitialized('checkPath') && null !== $object->getCheckPath()) { + $data['check_path'] = $object->getCheckPath(); + } + if ($object->isInitialized('checkProtocol') && null !== $object->getCheckProtocol()) { + $data['check_protocol'] = $object->getCheckProtocol(); + } + if ($object->isInitialized('checkRise') && null !== $object->getCheckRise()) { + $data['check_rise'] = $object->getCheckRise(); + } + if ($object->isInitialized('checkTimeout') && null !== $object->getCheckTimeout()) { + $data['check_timeout'] = $object->getCheckTimeout(); + } + if ($object->isInitialized('checkHttpStatuses') && null !== $object->getCheckHttpStatuses()) { + $data['check_http_statuses'] = $object->getCheckHttpStatuses(); + } + if ($object->isInitialized('loadBalancer') && null !== $object->getLoadBalancer()) { + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRule' => false]; + } +} diff --git a/src/Normalizer/LoadBalancersRulesLoadBalancerRulePatchResponse200Normalizer.php b/src/Normalizer/LoadBalancersRulesLoadBalancerRulePatchResponse200Normalizer.php new file mode 100644 index 00000000..4458680b --- /dev/null +++ b/src/Normalizer/LoadBalancersRulesLoadBalancerRulePatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setLoadBalancerRule($this->denormalizer->denormalize($data['load_balancer_rule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRulePatchResponse200LoadBalancerRule', 'json', $context)); + unset($data['load_balancer_rule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer_rule'] = $this->normalizer->normalize($object->getLoadBalancerRule(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancersRulesLoadBalancerRulePatchResponse200' => false]; + } +} diff --git a/src/Normalizer/LocationRequiredSchemaNormalizer.php b/src/Normalizer/LocationRequiredSchemaNormalizer.php new file mode 100644 index 00000000..a9807a93 --- /dev/null +++ b/src/Normalizer/LocationRequiredSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\LocationRequiredSchema' => false]; + } +} diff --git a/src/Normalizer/MXNormalizer.php b/src/Normalizer/MXNormalizer.php new file mode 100644 index 00000000..007ea78c --- /dev/null +++ b/src/Normalizer/MXNormalizer.php @@ -0,0 +1,94 @@ +setHost($data['host']); + unset($data['host']); + } + if (\array_key_exists('priority', $data)) { + $object->setPriority($data['priority']); + unset($data['priority']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('host') && null !== $object->getHost()) { + $data['host'] = $object->getHost(); + } + if ($object->isInitialized('priority') && null !== $object->getPriority()) { + $data['priority'] = $object->getPriority(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\MX' => false]; + } +} diff --git a/src/Normalizer/NSNormalizer.php b/src/Normalizer/NSNormalizer.php new file mode 100644 index 00000000..4915fc51 --- /dev/null +++ b/src/Normalizer/NSNormalizer.php @@ -0,0 +1,87 @@ +setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\NS' => false]; + } +} diff --git a/src/Normalizer/NetworkLookupNormalizer.php b/src/Normalizer/NetworkLookupNormalizer.php new file mode 100644 index 00000000..1228537c --- /dev/null +++ b/src/Normalizer/NetworkLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\NetworkLookup' => false]; + } +} diff --git a/src/Normalizer/NetworkNormalizer.php b/src/Normalizer/NetworkNormalizer.php new file mode 100644 index 00000000..9170281d --- /dev/null +++ b/src/Normalizer/NetworkNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\Network' => false]; + } +} diff --git a/src/Normalizer/NetworkNotFoundSchemaNormalizer.php b/src/Normalizer/NetworkNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..79bb4820 --- /dev/null +++ b/src/Normalizer/NetworkNotFoundSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\NetworkNotFoundSchema' => false]; + } +} diff --git a/src/Normalizer/NetworkSpeedProfileLookupNormalizer.php b/src/Normalizer/NetworkSpeedProfileLookupNormalizer.php new file mode 100644 index 00000000..ad650756 --- /dev/null +++ b/src/Normalizer/NetworkSpeedProfileLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\NetworkSpeedProfileLookup' => false]; + } +} diff --git a/src/Normalizer/NetworkSpeedProfileNormalizer.php b/src/Normalizer/NetworkSpeedProfileNormalizer.php new file mode 100644 index 00000000..edf9da0a --- /dev/null +++ b/src/Normalizer/NetworkSpeedProfileNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('upload_speed_in_mbit', $data)) { + $object->setUploadSpeedInMbit($data['upload_speed_in_mbit']); + unset($data['upload_speed_in_mbit']); + } + if (\array_key_exists('download_speed_in_mbit', $data)) { + $object->setDownloadSpeedInMbit($data['download_speed_in_mbit']); + unset($data['download_speed_in_mbit']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('uploadSpeedInMbit') && null !== $object->getUploadSpeedInMbit()) { + $data['upload_speed_in_mbit'] = $object->getUploadSpeedInMbit(); + } + if ($object->isInitialized('downloadSpeedInMbit') && null !== $object->getDownloadSpeedInMbit()) { + $data['download_speed_in_mbit'] = $object->getDownloadSpeedInMbit(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\NetworkSpeedProfile' => false]; + } +} diff --git a/src/Normalizer/NetworkSpeedProfileNotFoundSchemaNormalizer.php b/src/Normalizer/NetworkSpeedProfileNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..efd6fdd7 --- /dev/null +++ b/src/Normalizer/NetworkSpeedProfileNotFoundSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\NetworkSpeedProfileNotFoundSchema' => false]; + } +} diff --git a/src/Normalizer/NetworksNetworkGetResponse200NetworkNormalizer.php b/src/Normalizer/NetworksNetworkGetResponse200NetworkNormalizer.php new file mode 100644 index 00000000..5e216b4a --- /dev/null +++ b/src/Normalizer/NetworksNetworkGetResponse200NetworkNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\NetworksNetworkGetResponse200Network' => false]; + } +} diff --git a/src/Normalizer/NetworksNetworkGetResponse200Normalizer.php b/src/Normalizer/NetworksNetworkGetResponse200Normalizer.php new file mode 100644 index 00000000..6ee55c6d --- /dev/null +++ b/src/Normalizer/NetworksNetworkGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworksNetworkGetResponse200Network', 'json', $context)); + unset($data['network']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\NetworksNetworkGetResponse200' => false]; + } +} diff --git a/src/Normalizer/NoInterfaceAvailableSchemaNormalizer.php b/src/Normalizer/NoInterfaceAvailableSchemaNormalizer.php new file mode 100644 index 00000000..21d68485 --- /dev/null +++ b/src/Normalizer/NoInterfaceAvailableSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\NoInterfaceAvailableSchema' => false]; + } +} diff --git a/src/Normalizer/ObjectInTrashNormalizer.php b/src/Normalizer/ObjectInTrashNormalizer.php new file mode 100644 index 00000000..e8b89fe4 --- /dev/null +++ b/src/Normalizer/ObjectInTrashNormalizer.php @@ -0,0 +1,87 @@ +setTrashObject($this->denormalizer->denormalize($data['trash_object'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObject', 'json', $context)); + unset($data['trash_object']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('trashObject') && null !== $object->getTrashObject()) { + $data['trash_object'] = $this->normalizer->normalize($object->getTrashObject(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ObjectInTrash' => false]; + } +} diff --git a/src/Normalizer/ObjectInTrashSchemaNormalizer.php b/src/Normalizer/ObjectInTrashSchemaNormalizer.php new file mode 100644 index 00000000..5b122825 --- /dev/null +++ b/src/Normalizer/ObjectInTrashSchemaNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\ObjectInTrash', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ObjectInTrashSchema' => false]; + } +} diff --git a/src/Normalizer/OperatingSystemNormalizer.php b/src/Normalizer/OperatingSystemNormalizer.php new file mode 100644 index 00000000..930077a2 --- /dev/null +++ b/src/Normalizer/OperatingSystemNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('badge', $data)) { + $object->setBadge($this->denormalizer->denormalize($data['badge'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Attachment', 'json', $context)); + unset($data['badge']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('badge') && null !== $object->getBadge()) { + $data['badge'] = $this->normalizer->normalize($object->getBadge(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystem' => false]; + } +} diff --git a/src/Normalizer/OperatingSystemNotFoundSchemaNormalizer.php b/src/Normalizer/OperatingSystemNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..744d61a2 --- /dev/null +++ b/src/Normalizer/OperatingSystemNotFoundSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemNotFoundSchema' => false]; + } +} diff --git a/src/Normalizer/OperatingSystemsGetResponse200Normalizer.php b/src/Normalizer/OperatingSystemsGetResponse200Normalizer.php new file mode 100644 index 00000000..32648af6 --- /dev/null +++ b/src/Normalizer/OperatingSystemsGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('operating_systems', $data)) { + $values = []; + foreach ($data['operating_systems'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOperatingSystems200ResponseOperatingSystems', 'json', $context); + } + $object->setOperatingSystems($values); + unset($data['operating_systems']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getOperatingSystems() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['operating_systems'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OperatingSystemsGetResponse200PaginationNormalizer.php b/src/Normalizer/OperatingSystemsGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..cbef8b82 --- /dev/null +++ b/src/Normalizer/OperatingSystemsGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OperatingSystemsOperatingSystemGetResponse200Normalizer.php b/src/Normalizer/OperatingSystemsOperatingSystemGetResponse200Normalizer.php new file mode 100644 index 00000000..92db1f24 --- /dev/null +++ b/src/Normalizer/OperatingSystemsOperatingSystemGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setOperatingSystem($this->denormalizer->denormalize($data['operating_system'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsOperatingSystemGetResponse200OperatingSystem', 'json', $context)); + unset($data['operating_system']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['operating_system'] = $this->normalizer->normalize($object->getOperatingSystem(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsOperatingSystemGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OperatingSystemsOperatingSystemGetResponse200OperatingSystemNormalizer.php b/src/Normalizer/OperatingSystemsOperatingSystemGetResponse200OperatingSystemNormalizer.php new file mode 100644 index 00000000..4bbd77a5 --- /dev/null +++ b/src/Normalizer/OperatingSystemsOperatingSystemGetResponse200OperatingSystemNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('badge', $data)) { + $object->setBadge($this->denormalizer->denormalize($data['badge'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Attachment', 'json', $context)); + unset($data['badge']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('badge') && null !== $object->getBadge()) { + $data['badge'] = $this->normalizer->normalize($object->getBadge(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OperatingSystemsOperatingSystemGetResponse200OperatingSystem' => false]; + } +} diff --git a/src/Normalizer/OrganizationLimitReachedSchemaNormalizer.php b/src/Normalizer/OrganizationLimitReachedSchemaNormalizer.php new file mode 100644 index 00000000..cfa0b6d4 --- /dev/null +++ b/src/Normalizer/OrganizationLimitReachedSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLimitReachedSchema' => false]; + } +} diff --git a/src/Normalizer/OrganizationLookupNormalizer.php b/src/Normalizer/OrganizationLookupNormalizer.php new file mode 100644 index 00000000..5215726f --- /dev/null +++ b/src/Normalizer/OrganizationLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('sub_domain', $data)) { + $object->setSubDomain($data['sub_domain']); + unset($data['sub_domain']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('subDomain') && null !== $object->getSubDomain()) { + $data['sub_domain'] = $object->getSubDomain(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup' => false]; + } +} diff --git a/src/Normalizer/OrganizationNormalizer.php b/src/Normalizer/OrganizationNormalizer.php new file mode 100644 index 00000000..2baf108a --- /dev/null +++ b/src/Normalizer/OrganizationNormalizer.php @@ -0,0 +1,206 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('sub_domain', $data)) { + $object->setSubDomain($data['sub_domain']); + unset($data['sub_domain']); + } + if (\array_key_exists('infrastructure_domain', $data)) { + $object->setInfrastructureDomain($data['infrastructure_domain']); + unset($data['infrastructure_domain']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('suspended', $data)) { + $object->setSuspended($data['suspended']); + unset($data['suspended']); + } + if (\array_key_exists('managed', $data)) { + $object->setManaged($data['managed']); + unset($data['managed']); + } + if (\array_key_exists('billing_name', $data)) { + $object->setBillingName($data['billing_name']); + unset($data['billing_name']); + } + if (\array_key_exists('address1', $data)) { + $object->setAddress1($data['address1']); + unset($data['address1']); + } + if (\array_key_exists('address2', $data)) { + $object->setAddress2($data['address2']); + unset($data['address2']); + } + if (\array_key_exists('address3', $data)) { + $object->setAddress3($data['address3']); + unset($data['address3']); + } + if (\array_key_exists('address4', $data)) { + $object->setAddress4($data['address4']); + unset($data['address4']); + } + if (\array_key_exists('postcode', $data)) { + $object->setPostcode($data['postcode']); + unset($data['postcode']); + } + if (\array_key_exists('vat_number', $data)) { + $object->setVatNumber($data['vat_number']); + unset($data['vat_number']); + } + if (\array_key_exists('phone_number', $data)) { + $object->setPhoneNumber($data['phone_number']); + unset($data['phone_number']); + } + if (\array_key_exists('currency', $data)) { + $object->setCurrency($this->denormalizer->denormalize($data['currency'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Currency', 'json', $context)); + unset($data['currency']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Country', 'json', $context)); + unset($data['country']); + } + if (\array_key_exists('country_state', $data)) { + $object->setCountryState($this->denormalizer->denormalize($data['country_state'], 'Krystal\\Katapult\\KatapultAPI\\Model\\CountryState', 'json', $context)); + unset($data['country_state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('subDomain') && null !== $object->getSubDomain()) { + $data['sub_domain'] = $object->getSubDomain(); + } + if ($object->isInitialized('infrastructureDomain') && null !== $object->getInfrastructureDomain()) { + $data['infrastructure_domain'] = $object->getInfrastructureDomain(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('suspended') && null !== $object->getSuspended()) { + $data['suspended'] = $object->getSuspended(); + } + if ($object->isInitialized('managed') && null !== $object->getManaged()) { + $data['managed'] = $object->getManaged(); + } + if ($object->isInitialized('billingName') && null !== $object->getBillingName()) { + $data['billing_name'] = $object->getBillingName(); + } + if ($object->isInitialized('address1') && null !== $object->getAddress1()) { + $data['address1'] = $object->getAddress1(); + } + if ($object->isInitialized('address2') && null !== $object->getAddress2()) { + $data['address2'] = $object->getAddress2(); + } + if ($object->isInitialized('address3') && null !== $object->getAddress3()) { + $data['address3'] = $object->getAddress3(); + } + if ($object->isInitialized('address4') && null !== $object->getAddress4()) { + $data['address4'] = $object->getAddress4(); + } + if ($object->isInitialized('postcode') && null !== $object->getPostcode()) { + $data['postcode'] = $object->getPostcode(); + } + if ($object->isInitialized('vatNumber') && null !== $object->getVatNumber()) { + $data['vat_number'] = $object->getVatNumber(); + } + if ($object->isInitialized('phoneNumber') && null !== $object->getPhoneNumber()) { + $data['phone_number'] = $object->getPhoneNumber(); + } + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { + $data['currency'] = $this->normalizer->normalize($object->getCurrency(), 'json', $context); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + if ($object->isInitialized('countryState') && null !== $object->getCountryState()) { + $data['country_state'] = $this->normalizer->normalize($object->getCountryState(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\Organization' => false]; + } +} diff --git a/src/Normalizer/OrganizationNotActivatedSchemaNormalizer.php b/src/Normalizer/OrganizationNotActivatedSchemaNormalizer.php new file mode 100644 index 00000000..8d895287 --- /dev/null +++ b/src/Normalizer/OrganizationNotActivatedSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationNotActivatedSchema' => false]; + } +} diff --git a/src/Normalizer/OrganizationNotFoundSchemaNormalizer.php b/src/Normalizer/OrganizationNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..9525afc1 --- /dev/null +++ b/src/Normalizer/OrganizationNotFoundSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationNotFoundSchema' => false]; + } +} diff --git a/src/Normalizer/OrganizationSuspendedSchemaNormalizer.php b/src/Normalizer/OrganizationSuspendedSchemaNormalizer.php new file mode 100644 index 00000000..ae2345ca --- /dev/null +++ b/src/Normalizer/OrganizationSuspendedSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationSuspendedSchema' => false]; + } +} diff --git a/src/Normalizer/OrganizationsGetResponse200Normalizer.php b/src/Normalizer/OrganizationsGetResponse200Normalizer.php new file mode 100644 index 00000000..a4cbaa71 --- /dev/null +++ b/src/Normalizer/OrganizationsGetResponse200Normalizer.php @@ -0,0 +1,93 @@ +denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizations200ResponseOrganizations', 'json', $context); + } + $object->setOrganizations($values); + unset($data['organizations']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getOrganizations() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['organizations'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationAvailableNetworksGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationAvailableNetworksGetResponse200Normalizer.php new file mode 100644 index 00000000..bb9bb415 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationAvailableNetworksGetResponse200Normalizer.php @@ -0,0 +1,106 @@ +denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworks200ResponseNetworks', 'json', $context); + } + $object->setNetworks($values); + unset($data['networks']); + } + if (\array_key_exists('virtual_networks', $data)) { + $values_1 = []; + foreach ($data['virtual_networks'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationAvailableNetworks200ResponseVirtualNetworks', 'json', $context); + } + $object->setVirtualNetworks($values_1); + unset($data['virtual_networks']); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getNetworks() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['networks'] = $values; + $values_1 = []; + foreach ($object->getVirtualNetworks() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['virtual_networks'] = $values_1; + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationAvailableNetworksGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationCertificatesGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationCertificatesGetResponse200Normalizer.php new file mode 100644 index 00000000..24e4d58f --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationCertificatesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationCertificatesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('certificates', $data)) { + $values = []; + foreach ($data['certificates'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationCertificates200ResponseCertificates', 'json', $context); + } + $object->setCertificates($values); + unset($data['certificates']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getCertificates() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['certificates'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationCertificatesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationCertificatesGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationCertificatesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..3d641bac --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationCertificatesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationCertificatesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationDiskBackupPoliciesGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationDiskBackupPoliciesGetResponse200Normalizer.php new file mode 100644 index 00000000..3714861b --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationDiskBackupPoliciesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskBackupPoliciesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('disk_backup_policies', $data)) { + $values = []; + foreach ($data['disk_backup_policies'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies', 'json', $context); + } + $object->setDiskBackupPolicies($values); + unset($data['disk_backup_policies']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getDiskBackupPolicies() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['disk_backup_policies'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskBackupPoliciesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationDiskBackupPoliciesGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationDiskBackupPoliciesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..4b28fc54 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationDiskBackupPoliciesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskBackupPoliciesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationDiskTemplatesGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationDiskTemplatesGetResponse200Normalizer.php new file mode 100644 index 00000000..b871adf5 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationDiskTemplatesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskTemplatesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('disk_templates', $data)) { + $values = []; + foreach ($data['disk_templates'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDiskTemplates200ResponseDiskTemplates', 'json', $context); + } + $object->setDiskTemplates($values); + unset($data['disk_templates']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getDiskTemplates() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['disk_templates'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskTemplatesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationDiskTemplatesGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationDiskTemplatesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..ccbee4dd --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationDiskTemplatesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDiskTemplatesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationDisksGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationDisksGetResponse200Normalizer.php new file mode 100644 index 00000000..66b446db --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationDisksGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDisksGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('disk', $data)) { + $values = []; + foreach ($data['disk'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationDisks200ResponseDisk', 'json', $context); + } + $object->setDisk($values); + unset($data['disk']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getDisk() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['disk'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDisksGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationDisksGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationDisksGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..a64d0536 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationDisksGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDisksGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationDnsZonesGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationDnsZonesGetResponse200Normalizer.php new file mode 100644 index 00000000..1a415816 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationDnsZonesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('dns_zones', $data)) { + $values = []; + foreach ($data['dns_zones'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZone', 'json', $context); + } + $object->setDnsZones($values); + unset($data['dns_zones']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getDnsZones() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['dns_zones'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationDnsZonesGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationDnsZonesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..cb0f4ebf --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationDnsZonesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationDnsZonesNameserversGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationDnsZonesNameserversGetResponse200Normalizer.php new file mode 100644 index 00000000..8c20b246 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationDnsZonesNameserversGetResponse200Normalizer.php @@ -0,0 +1,93 @@ +setNameservers($values); + unset($data['nameservers']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getNameservers() as $value) { + $values[] = $value; + } + $data['nameservers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesNameserversGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationDnsZonesPostBodyNormalizer.php b/src/Normalizer/OrganizationsOrganizationDnsZonesPostBodyNormalizer.php new file mode 100644 index 00000000..bec8f017 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationDnsZonesPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesPostBody' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationDnsZonesPostResponse201DnsZoneNormalizer.php b/src/Normalizer/OrganizationsOrganizationDnsZonesPostResponse201DnsZoneNormalizer.php new file mode 100644 index 00000000..976961e6 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationDnsZonesPostResponse201DnsZoneNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('default_ttl', $data)) { + $object->setDefaultTtl($data['default_ttl']); + unset($data['default_ttl']); + } + if (\array_key_exists('verified', $data)) { + $object->setVerified($data['verified']); + unset($data['verified']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('defaultTtl') && null !== $object->getDefaultTtl()) { + $data['default_ttl'] = $object->getDefaultTtl(); + } + if ($object->isInitialized('verified') && null !== $object->getVerified()) { + $data['verified'] = $object->getVerified(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesPostResponse201DnsZone' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationDnsZonesPostResponse201Normalizer.php b/src/Normalizer/OrganizationsOrganizationDnsZonesPostResponse201Normalizer.php new file mode 100644 index 00000000..e7f3219c --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationDnsZonesPostResponse201Normalizer.php @@ -0,0 +1,85 @@ +setDnsZone($this->denormalizer->denormalize($data['dns_zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesPostResponse201DnsZone', 'json', $context)); + unset($data['dns_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['dns_zone'] = $this->normalizer->normalize($object->getDnsZone(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationDnsZonesPostResponse201' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationFileStorageVolumesGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationFileStorageVolumesGetResponse200Normalizer.php new file mode 100644 index 00000000..098f2273 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationFileStorageVolumesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('file_storage_volumes', $data)) { + $values = []; + foreach ($data['file_storage_volumes'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes', 'json', $context); + } + $object->setFileStorageVolumes($values); + unset($data['file_storage_volumes']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getFileStorageVolumes() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['file_storage_volumes'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationFileStorageVolumesGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationFileStorageVolumesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..61768482 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationFileStorageVolumesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationFileStorageVolumesPostBodyNormalizer.php b/src/Normalizer/OrganizationsOrganizationFileStorageVolumesPostBodyNormalizer.php new file mode 100644 index 00000000..ed8db56f --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationFileStorageVolumesPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\FileStorageVolumeArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesPostBody' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolumeNormalizer.php b/src/Normalizer/OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolumeNormalizer.php new file mode 100644 index 00000000..c38e2e3e --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolumeNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationFileStorageVolumesPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('nfs_location', $data)) { + $object->setNfsLocation($data['nfs_location']); + unset($data['nfs_location']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('nfsLocation') && null !== $object->getNfsLocation()) { + $data['nfs_location'] = $object->getNfsLocation(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolume' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationFileStorageVolumesPostResponse201Normalizer.php b/src/Normalizer/OrganizationsOrganizationFileStorageVolumesPostResponse201Normalizer.php new file mode 100644 index 00000000..980ac45b --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationFileStorageVolumesPostResponse201Normalizer.php @@ -0,0 +1,85 @@ +setFileStorageVolume($this->denormalizer->denormalize($data['file_storage_volume'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesPostResponse201FileStorageVolume', 'json', $context)); + unset($data['file_storage_volume']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['file_storage_volume'] = $this->normalizer->normalize($object->getFileStorageVolume(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationFileStorageVolumesPostResponse201' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationGetResponse200Normalizer.php new file mode 100644 index 00000000..f9d8d0f9 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationGetResponse200Organization', 'json', $context)); + unset($data['organization']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationGetResponse200OrganizationNormalizer.php b/src/Normalizer/OrganizationsOrganizationGetResponse200OrganizationNormalizer.php new file mode 100644 index 00000000..aef6770f --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationGetResponse200OrganizationNormalizer.php @@ -0,0 +1,206 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('sub_domain', $data)) { + $object->setSubDomain($data['sub_domain']); + unset($data['sub_domain']); + } + if (\array_key_exists('infrastructure_domain', $data)) { + $object->setInfrastructureDomain($data['infrastructure_domain']); + unset($data['infrastructure_domain']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('suspended', $data)) { + $object->setSuspended($data['suspended']); + unset($data['suspended']); + } + if (\array_key_exists('managed', $data)) { + $object->setManaged($data['managed']); + unset($data['managed']); + } + if (\array_key_exists('billing_name', $data)) { + $object->setBillingName($data['billing_name']); + unset($data['billing_name']); + } + if (\array_key_exists('address1', $data)) { + $object->setAddress1($data['address1']); + unset($data['address1']); + } + if (\array_key_exists('address2', $data)) { + $object->setAddress2($data['address2']); + unset($data['address2']); + } + if (\array_key_exists('address3', $data)) { + $object->setAddress3($data['address3']); + unset($data['address3']); + } + if (\array_key_exists('address4', $data)) { + $object->setAddress4($data['address4']); + unset($data['address4']); + } + if (\array_key_exists('postcode', $data)) { + $object->setPostcode($data['postcode']); + unset($data['postcode']); + } + if (\array_key_exists('vat_number', $data)) { + $object->setVatNumber($data['vat_number']); + unset($data['vat_number']); + } + if (\array_key_exists('phone_number', $data)) { + $object->setPhoneNumber($data['phone_number']); + unset($data['phone_number']); + } + if (\array_key_exists('currency', $data)) { + $object->setCurrency($this->denormalizer->denormalize($data['currency'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Currency', 'json', $context)); + unset($data['currency']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Country', 'json', $context)); + unset($data['country']); + } + if (\array_key_exists('country_state', $data)) { + $object->setCountryState($this->denormalizer->denormalize($data['country_state'], 'Krystal\\Katapult\\KatapultAPI\\Model\\CountryState', 'json', $context)); + unset($data['country_state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('subDomain') && null !== $object->getSubDomain()) { + $data['sub_domain'] = $object->getSubDomain(); + } + if ($object->isInitialized('infrastructureDomain') && null !== $object->getInfrastructureDomain()) { + $data['infrastructure_domain'] = $object->getInfrastructureDomain(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('suspended') && null !== $object->getSuspended()) { + $data['suspended'] = $object->getSuspended(); + } + if ($object->isInitialized('managed') && null !== $object->getManaged()) { + $data['managed'] = $object->getManaged(); + } + if ($object->isInitialized('billingName') && null !== $object->getBillingName()) { + $data['billing_name'] = $object->getBillingName(); + } + if ($object->isInitialized('address1') && null !== $object->getAddress1()) { + $data['address1'] = $object->getAddress1(); + } + if ($object->isInitialized('address2') && null !== $object->getAddress2()) { + $data['address2'] = $object->getAddress2(); + } + if ($object->isInitialized('address3') && null !== $object->getAddress3()) { + $data['address3'] = $object->getAddress3(); + } + if ($object->isInitialized('address4') && null !== $object->getAddress4()) { + $data['address4'] = $object->getAddress4(); + } + if ($object->isInitialized('postcode') && null !== $object->getPostcode()) { + $data['postcode'] = $object->getPostcode(); + } + if ($object->isInitialized('vatNumber') && null !== $object->getVatNumber()) { + $data['vat_number'] = $object->getVatNumber(); + } + if ($object->isInitialized('phoneNumber') && null !== $object->getPhoneNumber()) { + $data['phone_number'] = $object->getPhoneNumber(); + } + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { + $data['currency'] = $this->normalizer->normalize($object->getCurrency(), 'json', $context); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + if ($object->isInitialized('countryState') && null !== $object->getCountryState()) { + $data['country_state'] = $this->normalizer->normalize($object->getCountryState(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationGetResponse200Organization' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationIpAddressesGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationIpAddressesGetResponse200Normalizer.php new file mode 100644 index 00000000..20851c7b --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationIpAddressesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationIPAddresses200ResponseIPAddresses', 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationIpAddressesGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationIpAddressesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..b8a1bc81 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationIpAddressesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationIpAddressesPostBodyNormalizer.php b/src/Normalizer/OrganizationsOrganizationIpAddressesPostBodyNormalizer.php new file mode 100644 index 00000000..2d46099d --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationIpAddressesPostBodyNormalizer.php @@ -0,0 +1,109 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkLookup', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('version', $data)) { + $object->setVersion($data['version']); + unset($data['version']); + } + if (\array_key_exists('vip', $data)) { + $object->setVip($data['vip']); + unset($data['vip']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + $data['version'] = $object->getVersion(); + if ($object->isInitialized('vip') && null !== $object->getVip()) { + $data['vip'] = $object->getVip(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesPostBody' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationIpAddressesPostResponse200IpAddressNormalizer.php b/src/Normalizer/OrganizationsOrganizationIpAddressesPostResponse200IpAddressNormalizer.php new file mode 100644 index 00000000..2820aed9 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationIpAddressesPostResponse200IpAddressNormalizer.php @@ -0,0 +1,143 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + if (\array_key_exists('reverse_dns', $data)) { + $object->setReverseDns($data['reverse_dns']); + unset($data['reverse_dns']); + } + if (\array_key_exists('vip', $data)) { + $object->setVip($data['vip']); + unset($data['vip']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('address_with_mask', $data)) { + $object->setAddressWithMask($data['address_with_mask']); + unset($data['address_with_mask']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Network', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('allocation_id', $data)) { + $object->setAllocationId($data['allocation_id']); + unset($data['allocation_id']); + } + if (\array_key_exists('allocation_type', $data)) { + $object->setAllocationType($data['allocation_type']); + unset($data['allocation_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + if ($object->isInitialized('reverseDns') && null !== $object->getReverseDns()) { + $data['reverse_dns'] = $object->getReverseDns(); + } + if ($object->isInitialized('vip') && null !== $object->getVip()) { + $data['vip'] = $object->getVip(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('addressWithMask') && null !== $object->getAddressWithMask()) { + $data['address_with_mask'] = $object->getAddressWithMask(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('allocationId') && null !== $object->getAllocationId()) { + $data['allocation_id'] = $object->getAllocationId(); + } + if ($object->isInitialized('allocationType') && null !== $object->getAllocationType()) { + $data['allocation_type'] = $object->getAllocationType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesPostResponse200IpAddress' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationIpAddressesPostResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationIpAddressesPostResponse200Normalizer.php new file mode 100644 index 00000000..0db4dfed --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationIpAddressesPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setIpAddress($this->denormalizer->denormalize($data['ip_address'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesPostResponse200IpAddress', 'json', $context)); + unset($data['ip_address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['ip_address'] = $this->normalizer->normalize($object->getIpAddress(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationIpAddressesPostResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationLoadBalancersGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationLoadBalancersGetResponse200Normalizer.php new file mode 100644 index 00000000..aca483f9 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationLoadBalancersGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('load_balancers', $data)) { + $values = []; + foreach ($data['load_balancers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationLoadBalancers200ResponseLoadBalancers', 'json', $context); + } + $object->setLoadBalancers($values); + unset($data['load_balancers']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getLoadBalancers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['load_balancers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationLoadBalancersGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationLoadBalancersGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..c5072645 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationLoadBalancersGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationLoadBalancersPostBodyNormalizer.php b/src/Normalizer/OrganizationsOrganizationLoadBalancersPostBodyNormalizer.php new file mode 100644 index 00000000..f303790f --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationLoadBalancersPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersPostBody' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancerNormalizer.php b/src/Normalizer/OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancerNormalizer.php new file mode 100644 index 00000000..37487514 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancerNormalizer.php @@ -0,0 +1,218 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('api_reference', $data)) { + $object->setApiReference($data['api_reference']); + unset($data['api_reference']); + } + if (\array_key_exists('resource_type', $data)) { + $object->setResourceType($data['resource_type']); + unset($data['resource_type']); + } + if (\array_key_exists('resources', $data)) { + $values = []; + foreach ($data['resources'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerResource', 'json', $context); + } + $object->setResources($values); + unset($data['resources']); + } + if (\array_key_exists('resource_ids', $data)) { + $values_1 = []; + foreach ($data['resource_ids'] as $value_1) { + $values_1[] = $value_1; + } + $object->setResourceIds($values_1); + unset($data['resource_ids']); + } + if (\array_key_exists('ip_address', $data)) { + $values_2 = []; + foreach ($data['ip_address'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartIPAddress', 'json', $context); + } + $object->setIpAddress($values_2); + unset($data['ip_address']); + } + if (\array_key_exists('https_redirect', $data)) { + $object->setHttpsRedirect($data['https_redirect']); + unset($data['https_redirect']); + } + if (\array_key_exists('backend_certificate', $data)) { + $object->setBackendCertificate($data['backend_certificate']); + unset($data['backend_certificate']); + } + if (\array_key_exists('backend_certificate_key', $data)) { + $object->setBackendCertificateKey($data['backend_certificate_key']); + unset($data['backend_certificate_key']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('enable_weighting', $data)) { + $object->setEnableWeighting($data['enable_weighting']); + unset($data['enable_weighting']); + } + if (\array_key_exists('weights', $data)) { + $values_3 = []; + foreach ($data['weights'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartWeights', 'json', $context); + } + $object->setWeights($values_3); + unset($data['weights']); + } + if (\array_key_exists('standby_vms', $data)) { + $values_4 = []; + foreach ($data['standby_vms'] as $value_4) { + $values_4[] = $value_4; + } + $object->setStandbyVms($values_4); + unset($data['standby_vms']); + } + foreach ($data as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_5; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('apiReference') && null !== $object->getApiReference()) { + $data['api_reference'] = $object->getApiReference(); + } + if ($object->isInitialized('resourceType') && null !== $object->getResourceType()) { + $data['resource_type'] = $object->getResourceType(); + } + if ($object->isInitialized('resources') && null !== $object->getResources()) { + $values = []; + foreach ($object->getResources() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['resources'] = $values; + } + if ($object->isInitialized('resourceIds') && null !== $object->getResourceIds()) { + $values_1 = []; + foreach ($object->getResourceIds() as $value_1) { + $values_1[] = $value_1; + } + $data['resource_ids'] = $values_1; + } + if ($object->isInitialized('ipAddress') && null !== $object->getIpAddress()) { + $values_2 = []; + foreach ($object->getIpAddress() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['ip_address'] = $values_2; + } + if ($object->isInitialized('httpsRedirect') && null !== $object->getHttpsRedirect()) { + $data['https_redirect'] = $object->getHttpsRedirect(); + } + if ($object->isInitialized('backendCertificate') && null !== $object->getBackendCertificate()) { + $data['backend_certificate'] = $object->getBackendCertificate(); + } + if ($object->isInitialized('backendCertificateKey') && null !== $object->getBackendCertificateKey()) { + $data['backend_certificate_key'] = $object->getBackendCertificateKey(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('enableWeighting') && null !== $object->getEnableWeighting()) { + $data['enable_weighting'] = $object->getEnableWeighting(); + } + if ($object->isInitialized('weights') && null !== $object->getWeights()) { + $values_3 = []; + foreach ($object->getWeights() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['weights'] = $values_3; + } + if ($object->isInitialized('standbyVms') && null !== $object->getStandbyVms()) { + $values_4 = []; + foreach ($object->getStandbyVms() as $value_4) { + $values_4[] = $value_4; + } + $data['standby_vms'] = $values_4; + } + foreach ($object as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_5; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancer' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationLoadBalancersPostResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationLoadBalancersPostResponse200Normalizer.php new file mode 100644 index 00000000..5a1b8388 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationLoadBalancersPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersPostResponse200LoadBalancer', 'json', $context)); + unset($data['load_balancer']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationLoadBalancersPostResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationManagedGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationManagedGetResponse200Normalizer.php new file mode 100644 index 00000000..b8efc2fd --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationManagedGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('organizations', $data)) { + $values = []; + foreach ($data['organizations'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationManaged200ResponseOrganizations', 'json', $context); + } + $object->setOrganizations($values); + unset($data['organizations']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getOrganizations() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['organizations'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationManagedGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationManagedGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..1dd75e8e --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationManagedGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationManagedPostBodyNormalizer.php b/src/Normalizer/OrganizationsOrganizationManagedPostBodyNormalizer.php new file mode 100644 index 00000000..06093171 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationManagedPostBodyNormalizer.php @@ -0,0 +1,95 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('sub_domain', $data)) { + $object->setSubDomain($data['sub_domain']); + unset($data['sub_domain']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['name'] = $object->getName(); + $data['sub_domain'] = $object->getSubDomain(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedPostBody' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationManagedPostResponse201Normalizer.php b/src/Normalizer/OrganizationsOrganizationManagedPostResponse201Normalizer.php new file mode 100644 index 00000000..83850e0d --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationManagedPostResponse201Normalizer.php @@ -0,0 +1,85 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedPostResponse201Organization', 'json', $context)); + unset($data['organization']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedPostResponse201' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationManagedPostResponse201OrganizationNormalizer.php b/src/Normalizer/OrganizationsOrganizationManagedPostResponse201OrganizationNormalizer.php new file mode 100644 index 00000000..3c4b39e2 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationManagedPostResponse201OrganizationNormalizer.php @@ -0,0 +1,206 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('sub_domain', $data)) { + $object->setSubDomain($data['sub_domain']); + unset($data['sub_domain']); + } + if (\array_key_exists('infrastructure_domain', $data)) { + $object->setInfrastructureDomain($data['infrastructure_domain']); + unset($data['infrastructure_domain']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('suspended', $data)) { + $object->setSuspended($data['suspended']); + unset($data['suspended']); + } + if (\array_key_exists('managed', $data)) { + $object->setManaged($data['managed']); + unset($data['managed']); + } + if (\array_key_exists('billing_name', $data)) { + $object->setBillingName($data['billing_name']); + unset($data['billing_name']); + } + if (\array_key_exists('address1', $data)) { + $object->setAddress1($data['address1']); + unset($data['address1']); + } + if (\array_key_exists('address2', $data)) { + $object->setAddress2($data['address2']); + unset($data['address2']); + } + if (\array_key_exists('address3', $data)) { + $object->setAddress3($data['address3']); + unset($data['address3']); + } + if (\array_key_exists('address4', $data)) { + $object->setAddress4($data['address4']); + unset($data['address4']); + } + if (\array_key_exists('postcode', $data)) { + $object->setPostcode($data['postcode']); + unset($data['postcode']); + } + if (\array_key_exists('vat_number', $data)) { + $object->setVatNumber($data['vat_number']); + unset($data['vat_number']); + } + if (\array_key_exists('phone_number', $data)) { + $object->setPhoneNumber($data['phone_number']); + unset($data['phone_number']); + } + if (\array_key_exists('currency', $data)) { + $object->setCurrency($this->denormalizer->denormalize($data['currency'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCurrency', 'json', $context)); + unset($data['currency']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCountry', 'json', $context)); + unset($data['country']); + } + if (\array_key_exists('country_state', $data)) { + $object->setCountryState($this->denormalizer->denormalize($data['country_state'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCountryState', 'json', $context)); + unset($data['country_state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('subDomain') && null !== $object->getSubDomain()) { + $data['sub_domain'] = $object->getSubDomain(); + } + if ($object->isInitialized('infrastructureDomain') && null !== $object->getInfrastructureDomain()) { + $data['infrastructure_domain'] = $object->getInfrastructureDomain(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('suspended') && null !== $object->getSuspended()) { + $data['suspended'] = $object->getSuspended(); + } + if ($object->isInitialized('managed') && null !== $object->getManaged()) { + $data['managed'] = $object->getManaged(); + } + if ($object->isInitialized('billingName') && null !== $object->getBillingName()) { + $data['billing_name'] = $object->getBillingName(); + } + if ($object->isInitialized('address1') && null !== $object->getAddress1()) { + $data['address1'] = $object->getAddress1(); + } + if ($object->isInitialized('address2') && null !== $object->getAddress2()) { + $data['address2'] = $object->getAddress2(); + } + if ($object->isInitialized('address3') && null !== $object->getAddress3()) { + $data['address3'] = $object->getAddress3(); + } + if ($object->isInitialized('address4') && null !== $object->getAddress4()) { + $data['address4'] = $object->getAddress4(); + } + if ($object->isInitialized('postcode') && null !== $object->getPostcode()) { + $data['postcode'] = $object->getPostcode(); + } + if ($object->isInitialized('vatNumber') && null !== $object->getVatNumber()) { + $data['vat_number'] = $object->getVatNumber(); + } + if ($object->isInitialized('phoneNumber') && null !== $object->getPhoneNumber()) { + $data['phone_number'] = $object->getPhoneNumber(); + } + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { + $data['currency'] = $this->normalizer->normalize($object->getCurrency(), 'json', $context); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + if ($object->isInitialized('countryState') && null !== $object->getCountryState()) { + $data['country_state'] = $this->normalizer->normalize($object->getCountryState(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationManagedPostResponse201Organization' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Normalizer.php new file mode 100644 index 00000000..08e0acec --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('network_speed_profiles', $data)) { + $values = []; + foreach ($data['network_speed_profiles'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkSpeedProfile', 'json', $context); + } + $object->setNetworkSpeedProfiles($values); + unset($data['network_speed_profiles']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getNetworkSpeedProfiles() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['network_speed_profiles'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationNetworkSpeedProfilesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationNetworkSpeedProfilesGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationNetworkSpeedProfilesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..c045ac87 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationNetworkSpeedProfilesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationNetworkSpeedProfilesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationSecurityGroupsGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationSecurityGroupsGetResponse200Normalizer.php new file mode 100644 index 00000000..5d5a681d --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationSecurityGroupsGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('security_groups', $data)) { + $values = []; + foreach ($data['security_groups'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroup', 'json', $context); + } + $object->setSecurityGroups($values); + unset($data['security_groups']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getSecurityGroups() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['security_groups'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationSecurityGroupsGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationSecurityGroupsGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..6c209088 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationSecurityGroupsGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationSecurityGroupsPostBodyNormalizer.php b/src/Normalizer/OrganizationsOrganizationSecurityGroupsPostBodyNormalizer.php new file mode 100644 index 00000000..2dc7cc46 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationSecurityGroupsPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsPostBody' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationSecurityGroupsPostResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationSecurityGroupsPostResponse200Normalizer.php new file mode 100644 index 00000000..9c0f3fff --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationSecurityGroupsPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroup', 'json', $context)); + unset($data['security_group']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsPostResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroupNormalizer.php b/src/Normalizer/OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroupNormalizer.php new file mode 100644 index 00000000..20564e42 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroupNormalizer.php @@ -0,0 +1,123 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('allow_all_inbound', $data)) { + $object->setAllowAllInbound($data['allow_all_inbound']); + unset($data['allow_all_inbound']); + } + if (\array_key_exists('allow_all_outbound', $data)) { + $object->setAllowAllOutbound($data['allow_all_outbound']); + unset($data['allow_all_outbound']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('allowAllInbound') && null !== $object->getAllowAllInbound()) { + $data['allow_all_inbound'] = $object->getAllowAllInbound(); + } + if ($object->isInitialized('allowAllOutbound') && null !== $object->getAllowAllOutbound()) { + $data['allow_all_outbound'] = $object->getAllowAllOutbound(); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSecurityGroupsPostResponse200SecurityGroup' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationSshKeysGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationSshKeysGetResponse200Normalizer.php new file mode 100644 index 00000000..f21ff34e --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationSshKeysGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('ssh_keys', $data)) { + $values = []; + foreach ($data['ssh_keys'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\AuthSSHKey', 'json', $context); + } + $object->setSshKeys($values); + unset($data['ssh_keys']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getSshKeys() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ssh_keys'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationSshKeysGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationSshKeysGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..55e26efe --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationSshKeysGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationSshKeysPostBodyNormalizer.php b/src/Normalizer/OrganizationsOrganizationSshKeysPostBodyNormalizer.php new file mode 100644 index 00000000..738756d7 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationSshKeysPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('ssh_key', $data)) { + $object->setSshKey($this->denormalizer->denormalize($data['ssh_key'], 'Krystal\\Katapult\\KatapultAPI\\Model\\AuthSSHKeyProperties', 'json', $context)); + unset($data['ssh_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['ssh_key'] = $this->normalizer->normalize($object->getSshKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysPostBody' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationSshKeysPostResponse201Normalizer.php b/src/Normalizer/OrganizationsOrganizationSshKeysPostResponse201Normalizer.php new file mode 100644 index 00000000..01e86ba2 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationSshKeysPostResponse201Normalizer.php @@ -0,0 +1,85 @@ +setSshKey($this->denormalizer->denormalize($data['ssh_key'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysPostResponse201SshKey', 'json', $context)); + unset($data['ssh_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['ssh_key'] = $this->normalizer->normalize($object->getSshKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysPostResponse201' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationSshKeysPostResponse201SshKeyNormalizer.php b/src/Normalizer/OrganizationsOrganizationSshKeysPostResponse201SshKeyNormalizer.php new file mode 100644 index 00000000..b7f809aa --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationSshKeysPostResponse201SshKeyNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('fingerprint', $data)) { + $object->setFingerprint($data['fingerprint']); + unset($data['fingerprint']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('fingerprint') && null !== $object->getFingerprint()) { + $data['fingerprint'] = $object->getFingerprint(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationSshKeysPostResponse201SshKey' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationTagsGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationTagsGetResponse200Normalizer.php new file mode 100644 index 00000000..194af079 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationTagsGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('tags', $data)) { + $values = []; + foreach ($data['tags'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationTags200ResponseTags', 'json', $context); + } + $object->setTags($values); + unset($data['tags']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getTags() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['tags'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationTagsGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationTagsGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..cabe7eaa --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationTagsGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationTagsPostBodyNormalizer.php b/src/Normalizer/OrganizationsOrganizationTagsPostBodyNormalizer.php new file mode 100644 index 00000000..7cec4c24 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationTagsPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TagArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsPostBody' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationTagsPostResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationTagsPostResponse200Normalizer.php new file mode 100644 index 00000000..133704fb --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationTagsPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTag($this->denormalizer->denormalize($data['tag'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsPostResponse200Tag', 'json', $context)); + unset($data['tag']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['tag'] = $this->normalizer->normalize($object->getTag(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsPostResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationTagsPostResponse200TagNormalizer.php b/src/Normalizer/OrganizationsOrganizationTagsPostResponse200TagNormalizer.php new file mode 100644 index 00000000..9de767bf --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationTagsPostResponse200TagNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('color', $data)) { + $object->setColor($data['color']); + unset($data['color']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('color') && null !== $object->getColor()) { + $data['color'] = $object->getColor(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTagsPostResponse200Tag' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationTrashObjectsGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationTrashObjectsGetResponse200Normalizer.php new file mode 100644 index 00000000..fd8e5788 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationTrashObjectsGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('trash_objects', $data)) { + $values = []; + foreach ($data['trash_objects'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObject', 'json', $context); + } + $object->setTrashObjects($values); + unset($data['trash_objects']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getTrashObjects() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['trash_objects'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationTrashObjectsGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationTrashObjectsGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..78b981ab --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationTrashObjectsGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationTrashObjectsPurgeAllPostBodyNormalizer.php b/src/Normalizer/OrganizationsOrganizationTrashObjectsPurgeAllPostBodyNormalizer.php new file mode 100644 index 00000000..f60baf7e --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationTrashObjectsPurgeAllPostBodyNormalizer.php @@ -0,0 +1,85 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup', 'json', $context)); + unset($data['organization']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsPurgeAllPostBody' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Normalizer.php new file mode 100644 index 00000000..18c33632 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTask($this->denormalizer->denormalize($data['task'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Task', 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200TaskNormalizer.php b/src/Normalizer/OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200TaskNormalizer.php new file mode 100644 index 00000000..a9ea3088 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200TaskNormalizer.php @@ -0,0 +1,129 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('started_at', $data)) { + $object->setStartedAt($data['started_at']); + unset($data['started_at']); + } + if (\array_key_exists('finished_at', $data)) { + $object->setFinishedAt($data['finished_at']); + unset($data['finished_at']); + } + if (\array_key_exists('progress', $data)) { + $object->setProgress($data['progress']); + unset($data['progress']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('startedAt') && null !== $object->getStartedAt()) { + $data['started_at'] = $object->getStartedAt(); + } + if ($object->isInitialized('finishedAt') && null !== $object->getFinishedAt()) { + $data['finished_at'] = $object->getFinishedAt(); + } + if ($object->isInitialized('progress') && null !== $object->getProgress()) { + $data['progress'] = $object->getProgress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationTrashObjectsPurgeAllPostResponse200Task' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationUsersWithAccessGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationUsersWithAccessGetResponse200Normalizer.php new file mode 100644 index 00000000..01884900 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationUsersWithAccessGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationUsersWithAccessGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('users', $data)) { + $values = []; + foreach ($data['users'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationUsersWithAccess200ResponseUsers', 'json', $context); + } + $object->setUsers($values); + unset($data['users']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getUsers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['users'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationUsersWithAccessGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationUsersWithAccessGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationUsersWithAccessGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..03a2f46a --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationUsersWithAccessGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationUsersWithAccessGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachineGroupsGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachineGroupsGetResponse200Normalizer.php new file mode 100644 index 00000000..fe9c374a --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachineGroupsGetResponse200Normalizer.php @@ -0,0 +1,93 @@ +denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroup', 'json', $context); + } + $object->setVirtualMachineGroups($values); + unset($data['virtual_machine_groups']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getVirtualMachineGroups() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['virtual_machine_groups'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachineGroupsPostBodyNormalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachineGroupsPostBodyNormalizer.php new file mode 100644 index 00000000..4d226779 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachineGroupsPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsPostBody' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachineGroupsPostResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachineGroupsPostResponse200Normalizer.php new file mode 100644 index 00000000..ba6cc134 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachineGroupsPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setVirtualMachineGroup($this->denormalizer->denormalize($data['virtual_machine_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroup', 'json', $context)); + unset($data['virtual_machine_group']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_group'] = $this->normalizer->normalize($object->getVirtualMachineGroup(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsPostResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroupNormalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroupNormalizer.php new file mode 100644 index 00000000..4134626a --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroupNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('segregate', $data)) { + $object->setSegregate($data['segregate']); + unset($data['segregate']); + } + if (\array_key_exists('auto_segregate', $data)) { + $object->setAutoSegregate($data['auto_segregate']); + unset($data['auto_segregate']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('segregate') && null !== $object->getSegregate()) { + $data['segregate'] = $object->getSegregate(); + } + if ($object->isInitialized('autoSegregate') && null !== $object->getAutoSegregate()) { + $data['auto_segregate'] = $object->getAutoSegregate(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachineGroupsPostResponse200VirtualMachineGroup' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostBodyNormalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostBodyNormalizer.php new file mode 100644 index 00000000..c770ca8c --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('xml', $data)) { + $object->setXml($data['xml']); + unset($data['xml']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['xml'] = $object->getXml(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostBody' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201BuildNormalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201BuildNormalizer.php new file mode 100644 index 00000000..d2d6ecb6 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201BuildNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Build' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Normalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Normalizer.php new file mode 100644 index 00000000..4161f9db --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Normalizer.php @@ -0,0 +1,100 @@ +setTask($this->denormalizer->denormalize($data['task'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Task', 'json', $context)); + unset($data['task']); + } + if (\array_key_exists('build', $data)) { + $object->setBuild($this->denormalizer->denormalize($data['build'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Build', 'json', $context)); + unset($data['build']); + } + if (\array_key_exists('virtual_machine_build', $data)) { + $object->setVirtualMachineBuild($this->denormalizer->denormalize($data['virtual_machine_build'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuild', 'json', $context)); + unset($data['virtual_machine_build']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + $data['build'] = $this->normalizer->normalize($object->getBuild(), 'json', $context); + $data['virtual_machine_build'] = $this->normalizer->normalize($object->getVirtualMachineBuild(), 'json', $context); + $data['hostname'] = $object->getHostname(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201TaskNormalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201TaskNormalizer.php new file mode 100644 index 00000000..7c102a8c --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201TaskNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201Task' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuildNormalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuildNormalizer.php new file mode 100644 index 00000000..95a83182 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuildNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildFromSpecPostResponse201VirtualMachineBuild' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostBodyNormalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostBodyNormalizer.php new file mode 100644 index 00000000..d15161d3 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostBodyNormalizer.php @@ -0,0 +1,140 @@ +setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationLookup', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('zone', $data)) { + $object->setZone($this->denormalizer->denormalize($data['zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\ZoneLookup', 'json', $context)); + unset($data['zone']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenterLookup', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('package', $data)) { + $object->setPackage($this->denormalizer->denormalize($data['package'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackageLookup', 'json', $context)); + unset($data['package']); + } + if (\array_key_exists('disk_template', $data)) { + $object->setDiskTemplate($this->denormalizer->denormalize($data['disk_template'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskTemplateLookup', 'json', $context)); + unset($data['disk_template']); + } + if (\array_key_exists('disk_template_options', $data)) { + $values = []; + foreach ($data['disk_template_options'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\KeyValue', 'json', $context); + } + $object->setDiskTemplateOptions($values); + unset($data['disk_template_options']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkLookup', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + if ($object->isInitialized('zone') && null !== $object->getZone()) { + $data['zone'] = $this->normalizer->normalize($object->getZone(), 'json', $context); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + $data['package'] = $this->normalizer->normalize($object->getPackage(), 'json', $context); + if ($object->isInitialized('diskTemplate') && null !== $object->getDiskTemplate()) { + $data['disk_template'] = $this->normalizer->normalize($object->getDiskTemplate(), 'json', $context); + } + if ($object->isInitialized('diskTemplateOptions') && null !== $object->getDiskTemplateOptions()) { + $values = []; + foreach ($object->getDiskTemplateOptions() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['disk_template_options'] = $values; + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostBody' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostResponse201BuildNormalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostResponse201BuildNormalizer.php new file mode 100644 index 00000000..05bd2365 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostResponse201BuildNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201Build' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostResponse201Normalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostResponse201Normalizer.php new file mode 100644 index 00000000..880bf788 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostResponse201Normalizer.php @@ -0,0 +1,100 @@ +setTask($this->denormalizer->denormalize($data['task'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201Task', 'json', $context)); + unset($data['task']); + } + if (\array_key_exists('build', $data)) { + $object->setBuild($this->denormalizer->denormalize($data['build'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201Build', 'json', $context)); + unset($data['build']); + } + if (\array_key_exists('virtual_machine_build', $data)) { + $object->setVirtualMachineBuild($this->denormalizer->denormalize($data['virtual_machine_build'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuild', 'json', $context)); + unset($data['virtual_machine_build']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + $data['build'] = $this->normalizer->normalize($object->getBuild(), 'json', $context); + $data['virtual_machine_build'] = $this->normalizer->normalize($object->getVirtualMachineBuild(), 'json', $context); + $data['hostname'] = $object->getHostname(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostResponse201TaskNormalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostResponse201TaskNormalizer.php new file mode 100644 index 00000000..5a3a415d --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostResponse201TaskNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201Task' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuildNormalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuildNormalizer.php new file mode 100644 index 00000000..c8aaed42 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuildNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesBuildPostResponse201VirtualMachineBuild' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachinesGetResponse200Normalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachinesGetResponse200Normalizer.php new file mode 100644 index 00000000..f822c170 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachinesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('virtual_machines', $data)) { + $values = []; + foreach ($data['virtual_machines'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetOrganizationVirtualMachines200ResponseVirtualMachines', 'json', $context); + } + $object->setVirtualMachines($values); + unset($data['virtual_machines']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getVirtualMachines() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['virtual_machines'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/OrganizationsOrganizationVirtualMachinesGetResponse200PaginationNormalizer.php b/src/Normalizer/OrganizationsOrganizationVirtualMachinesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..69152368 --- /dev/null +++ b/src/Normalizer/OrganizationsOrganizationVirtualMachinesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\OrganizationsOrganizationVirtualMachinesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/PaginationObjectNormalizer.php b/src/Normalizer/PaginationObjectNormalizer.php new file mode 100644 index 00000000..9db51c2c --- /dev/null +++ b/src/Normalizer/PaginationObjectNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PaginationObject' => false]; + } +} diff --git a/src/Normalizer/PatchDNSRecordsDNSRecord200ResponseDNSRecordNormalizer.php b/src/Normalizer/PatchDNSRecordsDNSRecord200ResponseDNSRecordNormalizer.php new file mode 100644 index 00000000..90d8aebb --- /dev/null +++ b/src/Normalizer/PatchDNSRecordsDNSRecord200ResponseDNSRecordNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('record_type', $data)) { + $object->setRecordType($data['record_type']); + unset($data['record_type']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordProperties', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('recordType') && null !== $object->getRecordType()) { + $data['record_type'] = $object->getRecordType(); + } + if ($object->isInitialized('properties') && null !== $object->getProperties()) { + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchDNSRecordsDNSRecord200ResponseDNSRecord' => false]; + } +} diff --git a/src/Normalizer/PatchDiskBackupPolicy200ResponseDiskBackupPolicyNormalizer.php b/src/Normalizer/PatchDiskBackupPolicy200ResponseDiskBackupPolicyNormalizer.php new file mode 100644 index 00000000..989de363 --- /dev/null +++ b/src/Normalizer/PatchDiskBackupPolicy200ResponseDiskBackupPolicyNormalizer.php @@ -0,0 +1,116 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('retention', $data)) { + $object->setRetention($data['retention']); + unset($data['retention']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('schedule', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['schedule'] as $key => $value) { + $values[$key] = $value; + } + $object->setSchedule($values); + unset($data['schedule']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('retention') && null !== $object->getRetention()) { + $data['retention'] = $object->getRetention(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $values = []; + foreach ($object->getSchedule() as $key => $value) { + $values[$key] = $value; + } + $data['schedule'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchDiskBackupPolicy200ResponseDiskBackupPolicy' => false]; + } +} diff --git a/src/Normalizer/PatchFileStorageVolume200ResponseFileStorageVolumeNormalizer.php b/src/Normalizer/PatchFileStorageVolume200ResponseFileStorageVolumeNormalizer.php new file mode 100644 index 00000000..fe4d6a8e --- /dev/null +++ b/src/Normalizer/PatchFileStorageVolume200ResponseFileStorageVolumeNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchFileStorageVolumePartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('nfs_location', $data)) { + $object->setNfsLocation($data['nfs_location']); + unset($data['nfs_location']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('nfsLocation') && null !== $object->getNfsLocation()) { + $data['nfs_location'] = $object->getNfsLocation(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchFileStorageVolume200ResponseFileStorageVolume' => false]; + } +} diff --git a/src/Normalizer/PatchFileStorageVolumePartDataCenterNormalizer.php b/src/Normalizer/PatchFileStorageVolumePartDataCenterNormalizer.php new file mode 100644 index 00000000..49af3c19 --- /dev/null +++ b/src/Normalizer/PatchFileStorageVolumePartDataCenterNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchFileStorageVolumePartDataCenter' => false]; + } +} diff --git a/src/Normalizer/PatchLoadBalancer200ResponseLoadBalancerNormalizer.php b/src/Normalizer/PatchLoadBalancer200ResponseLoadBalancerNormalizer.php new file mode 100644 index 00000000..38ca181b --- /dev/null +++ b/src/Normalizer/PatchLoadBalancer200ResponseLoadBalancerNormalizer.php @@ -0,0 +1,218 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('api_reference', $data)) { + $object->setApiReference($data['api_reference']); + unset($data['api_reference']); + } + if (\array_key_exists('resource_type', $data)) { + $object->setResourceType($data['resource_type']); + unset($data['resource_type']); + } + if (\array_key_exists('resources', $data)) { + $values = []; + foreach ($data['resources'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerResource', 'json', $context); + } + $object->setResources($values); + unset($data['resources']); + } + if (\array_key_exists('resource_ids', $data)) { + $values_1 = []; + foreach ($data['resource_ids'] as $value_1) { + $values_1[] = $value_1; + } + $object->setResourceIds($values_1); + unset($data['resource_ids']); + } + if (\array_key_exists('ip_address', $data)) { + $values_2 = []; + foreach ($data['ip_address'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartIPAddress', 'json', $context); + } + $object->setIpAddress($values_2); + unset($data['ip_address']); + } + if (\array_key_exists('https_redirect', $data)) { + $object->setHttpsRedirect($data['https_redirect']); + unset($data['https_redirect']); + } + if (\array_key_exists('backend_certificate', $data)) { + $object->setBackendCertificate($data['backend_certificate']); + unset($data['backend_certificate']); + } + if (\array_key_exists('backend_certificate_key', $data)) { + $object->setBackendCertificateKey($data['backend_certificate_key']); + unset($data['backend_certificate_key']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('enable_weighting', $data)) { + $object->setEnableWeighting($data['enable_weighting']); + unset($data['enable_weighting']); + } + if (\array_key_exists('weights', $data)) { + $values_3 = []; + foreach ($data['weights'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartWeights', 'json', $context); + } + $object->setWeights($values_3); + unset($data['weights']); + } + if (\array_key_exists('standby_vms', $data)) { + $values_4 = []; + foreach ($data['standby_vms'] as $value_4) { + $values_4[] = $value_4; + } + $object->setStandbyVms($values_4); + unset($data['standby_vms']); + } + foreach ($data as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_5; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('apiReference') && null !== $object->getApiReference()) { + $data['api_reference'] = $object->getApiReference(); + } + if ($object->isInitialized('resourceType') && null !== $object->getResourceType()) { + $data['resource_type'] = $object->getResourceType(); + } + if ($object->isInitialized('resources') && null !== $object->getResources()) { + $values = []; + foreach ($object->getResources() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['resources'] = $values; + } + if ($object->isInitialized('resourceIds') && null !== $object->getResourceIds()) { + $values_1 = []; + foreach ($object->getResourceIds() as $value_1) { + $values_1[] = $value_1; + } + $data['resource_ids'] = $values_1; + } + if ($object->isInitialized('ipAddress') && null !== $object->getIpAddress()) { + $values_2 = []; + foreach ($object->getIpAddress() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['ip_address'] = $values_2; + } + if ($object->isInitialized('httpsRedirect') && null !== $object->getHttpsRedirect()) { + $data['https_redirect'] = $object->getHttpsRedirect(); + } + if ($object->isInitialized('backendCertificate') && null !== $object->getBackendCertificate()) { + $data['backend_certificate'] = $object->getBackendCertificate(); + } + if ($object->isInitialized('backendCertificateKey') && null !== $object->getBackendCertificateKey()) { + $data['backend_certificate_key'] = $object->getBackendCertificateKey(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('enableWeighting') && null !== $object->getEnableWeighting()) { + $data['enable_weighting'] = $object->getEnableWeighting(); + } + if ($object->isInitialized('weights') && null !== $object->getWeights()) { + $values_3 = []; + foreach ($object->getWeights() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['weights'] = $values_3; + } + if ($object->isInitialized('standbyVms') && null !== $object->getStandbyVms()) { + $values_4 = []; + foreach ($object->getStandbyVms() as $value_4) { + $values_4[] = $value_4; + } + $data['standby_vms'] = $values_4; + } + foreach ($object as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_5; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancer200ResponseLoadBalancer' => false]; + } +} diff --git a/src/Normalizer/PatchLoadBalancerPartDataCenterNormalizer.php b/src/Normalizer/PatchLoadBalancerPartDataCenterNormalizer.php new file mode 100644 index 00000000..d3fc101d --- /dev/null +++ b/src/Normalizer/PatchLoadBalancerPartDataCenterNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartDataCenter' => false]; + } +} diff --git a/src/Normalizer/PatchLoadBalancerPartIPAddressNormalizer.php b/src/Normalizer/PatchLoadBalancerPartIPAddressNormalizer.php new file mode 100644 index 00000000..09f69beb --- /dev/null +++ b/src/Normalizer/PatchLoadBalancerPartIPAddressNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartIPAddress' => false]; + } +} diff --git a/src/Normalizer/PatchLoadBalancerPartWeightsNormalizer.php b/src/Normalizer/PatchLoadBalancerPartWeightsNormalizer.php new file mode 100644 index 00000000..dbd4aed2 --- /dev/null +++ b/src/Normalizer/PatchLoadBalancerPartWeightsNormalizer.php @@ -0,0 +1,94 @@ +setVirtualMachineId($data['virtual_machine_id']); + unset($data['virtual_machine_id']); + } + if (\array_key_exists('weight', $data)) { + $object->setWeight($data['weight']); + unset($data['weight']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('virtualMachineId') && null !== $object->getVirtualMachineId()) { + $data['virtual_machine_id'] = $object->getVirtualMachineId(); + } + if ($object->isInitialized('weight') && null !== $object->getWeight()) { + $data['weight'] = $object->getWeight(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancerPartWeights' => false]; + } +} diff --git a/src/Normalizer/PatchLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRuleNormalizer.php b/src/Normalizer/PatchLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRuleNormalizer.php new file mode 100644 index 00000000..9bdf1dae --- /dev/null +++ b/src/Normalizer/PatchLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRuleNormalizer.php @@ -0,0 +1,214 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('algorithm', $data)) { + $object->setAlgorithm($data['algorithm']); + unset($data['algorithm']); + } + if (\array_key_exists('destination_port', $data)) { + $object->setDestinationPort($data['destination_port']); + unset($data['destination_port']); + } + if (\array_key_exists('listen_port', $data)) { + $object->setListenPort($data['listen_port']); + unset($data['listen_port']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('proxy_protocol', $data)) { + $object->setProxyProtocol($data['proxy_protocol']); + unset($data['proxy_protocol']); + } + if (\array_key_exists('certificates', $data)) { + $values = []; + foreach ($data['certificates'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRulePartCertificates', 'json', $context); + } + $object->setCertificates($values); + unset($data['certificates']); + } + if (\array_key_exists('backend_ssl', $data)) { + $object->setBackendSsl($data['backend_ssl']); + unset($data['backend_ssl']); + } + if (\array_key_exists('passthrough_ssl', $data)) { + $object->setPassthroughSsl($data['passthrough_ssl']); + unset($data['passthrough_ssl']); + } + if (\array_key_exists('check_enabled', $data)) { + $object->setCheckEnabled($data['check_enabled']); + unset($data['check_enabled']); + } + if (\array_key_exists('check_fall', $data)) { + $object->setCheckFall($data['check_fall']); + unset($data['check_fall']); + } + if (\array_key_exists('check_interval', $data)) { + $object->setCheckInterval($data['check_interval']); + unset($data['check_interval']); + } + if (\array_key_exists('check_path', $data)) { + $object->setCheckPath($data['check_path']); + unset($data['check_path']); + } + if (\array_key_exists('check_protocol', $data)) { + $object->setCheckProtocol($data['check_protocol']); + unset($data['check_protocol']); + } + if (\array_key_exists('check_rise', $data)) { + $object->setCheckRise($data['check_rise']); + unset($data['check_rise']); + } + if (\array_key_exists('check_timeout', $data)) { + $object->setCheckTimeout($data['check_timeout']); + unset($data['check_timeout']); + } + if (\array_key_exists('check_http_statuses', $data)) { + $object->setCheckHttpStatuses($data['check_http_statuses']); + unset($data['check_http_statuses']); + } + if (\array_key_exists('load_balancer', $data)) { + $object->setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer', 'json', $context)); + unset($data['load_balancer']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('algorithm') && null !== $object->getAlgorithm()) { + $data['algorithm'] = $object->getAlgorithm(); + } + if ($object->isInitialized('destinationPort') && null !== $object->getDestinationPort()) { + $data['destination_port'] = $object->getDestinationPort(); + } + if ($object->isInitialized('listenPort') && null !== $object->getListenPort()) { + $data['listen_port'] = $object->getListenPort(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('proxyProtocol') && null !== $object->getProxyProtocol()) { + $data['proxy_protocol'] = $object->getProxyProtocol(); + } + if ($object->isInitialized('certificates') && null !== $object->getCertificates()) { + $values = []; + foreach ($object->getCertificates() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['certificates'] = $values; + } + if ($object->isInitialized('backendSsl') && null !== $object->getBackendSsl()) { + $data['backend_ssl'] = $object->getBackendSsl(); + } + if ($object->isInitialized('passthroughSsl') && null !== $object->getPassthroughSsl()) { + $data['passthrough_ssl'] = $object->getPassthroughSsl(); + } + if ($object->isInitialized('checkEnabled') && null !== $object->getCheckEnabled()) { + $data['check_enabled'] = $object->getCheckEnabled(); + } + if ($object->isInitialized('checkFall') && null !== $object->getCheckFall()) { + $data['check_fall'] = $object->getCheckFall(); + } + if ($object->isInitialized('checkInterval') && null !== $object->getCheckInterval()) { + $data['check_interval'] = $object->getCheckInterval(); + } + if ($object->isInitialized('checkPath') && null !== $object->getCheckPath()) { + $data['check_path'] = $object->getCheckPath(); + } + if ($object->isInitialized('checkProtocol') && null !== $object->getCheckProtocol()) { + $data['check_protocol'] = $object->getCheckProtocol(); + } + if ($object->isInitialized('checkRise') && null !== $object->getCheckRise()) { + $data['check_rise'] = $object->getCheckRise(); + } + if ($object->isInitialized('checkTimeout') && null !== $object->getCheckTimeout()) { + $data['check_timeout'] = $object->getCheckTimeout(); + } + if ($object->isInitialized('checkHttpStatuses') && null !== $object->getCheckHttpStatuses()) { + $data['check_http_statuses'] = $object->getCheckHttpStatuses(); + } + if ($object->isInitialized('loadBalancer') && null !== $object->getLoadBalancer()) { + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule' => false]; + } +} diff --git a/src/Normalizer/PatchLoadBalancersRulesLoadBalancerRulePartCertificatesNormalizer.php b/src/Normalizer/PatchLoadBalancersRulesLoadBalancerRulePartCertificatesNormalizer.php new file mode 100644 index 00000000..6cc6b271 --- /dev/null +++ b/src/Normalizer/PatchLoadBalancersRulesLoadBalancerRulePartCertificatesNormalizer.php @@ -0,0 +1,116 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('additional_names', $data)) { + $values = []; + foreach ($data['additional_names'] as $value) { + $values[] = $value; + } + $object->setAdditionalNames($values); + unset($data['additional_names']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('additionalNames') && null !== $object->getAdditionalNames()) { + $values = []; + foreach ($object->getAdditionalNames() as $value) { + $values[] = $value; + } + $data['additional_names'] = $values; + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRulePartCertificates' => false]; + } +} diff --git a/src/Normalizer/PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancerNormalizer.php b/src/Normalizer/PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancerNormalizer.php new file mode 100644 index 00000000..12423adb --- /dev/null +++ b/src/Normalizer/PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancerNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchLoadBalancersRulesLoadBalancerRulePartLoadBalancer' => false]; + } +} diff --git a/src/Normalizer/PatchSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRuleNormalizer.php b/src/Normalizer/PatchSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRuleNormalizer.php new file mode 100644 index 00000000..1656d2b2 --- /dev/null +++ b/src/Normalizer/PatchSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRuleNormalizer.php @@ -0,0 +1,144 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('security_group', $data)) { + $object->setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup', 'json', $context)); + unset($data['security_group']); + } + if (\array_key_exists('direction', $data)) { + $object->setDirection($data['direction']); + unset($data['direction']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('action', $data)) { + $object->setAction($data['action']); + unset($data['action']); + } + if (\array_key_exists('ports', $data)) { + $object->setPorts($data['ports']); + unset($data['ports']); + } + if (\array_key_exists('targets', $data)) { + $values = []; + foreach ($data['targets'] as $value) { + $values[] = $value; + } + $object->setTargets($values); + unset($data['targets']); + } + if (\array_key_exists('notes', $data)) { + $object->setNotes($data['notes']); + unset($data['notes']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('securityGroup') && null !== $object->getSecurityGroup()) { + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + } + if ($object->isInitialized('direction') && null !== $object->getDirection()) { + $data['direction'] = $object->getDirection(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('action') && null !== $object->getAction()) { + $data['action'] = $object->getAction(); + } + if ($object->isInitialized('ports') && null !== $object->getPorts()) { + $data['ports'] = $object->getPorts(); + } + if ($object->isInitialized('targets') && null !== $object->getTargets()) { + $values = []; + foreach ($object->getTargets() as $value) { + $values[] = $value; + } + $data['targets'] = $values; + } + if ($object->isInitialized('notes') && null !== $object->getNotes()) { + $data['notes'] = $object->getNotes(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchSecurityGroupsRulesSecurityGroupRule200ResponseSecurityGroupRule' => false]; + } +} diff --git a/src/Normalizer/PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroupNormalizer.php b/src/Normalizer/PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroupNormalizer.php new file mode 100644 index 00000000..db4711f1 --- /dev/null +++ b/src/Normalizer/PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachine200ResponseVirtualMachineNormalizer.php b/src/Normalizer/PatchVirtualMachine200ResponseVirtualMachineNormalizer.php new file mode 100644 index 00000000..b6601ef8 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachine200ResponseVirtualMachineNormalizer.php @@ -0,0 +1,252 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('initial_root_password', $data)) { + $object->setInitialRootPassword($data['initial_root_password']); + unset($data['initial_root_password']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('zone', $data)) { + $object->setZone($this->denormalizer->denormalize($data['zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartZone', 'json', $context)); + unset($data['zone']); + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartOrganization', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('group', $data)) { + $object->setGroup($this->denormalizer->denormalize($data['group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGroup', 'json', $context)); + unset($data['group']); + } + if (\array_key_exists('package', $data)) { + $object->setPackage($this->denormalizer->denormalize($data['package'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartPackage', 'json', $context)); + unset($data['package']); + } + if (\array_key_exists('attached_iso', $data)) { + $object->setAttachedIso($this->denormalizer->denormalize($data['attached_iso'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartAttachedISO', 'json', $context)); + unset($data['attached_iso']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('gpu_type', $data)) { + $object->setGpuType($this->denormalizer->denormalize($data['gpu_type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGPUType', 'json', $context)); + unset($data['gpu_type']); + } + if (\array_key_exists('gpus', $data)) { + $values = []; + foreach ($data['gpus'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGPUs', 'json', $context); + } + $object->setGpus($values); + unset($data['gpus']); + } + if (\array_key_exists('tags', $data)) { + $values_1 = []; + foreach ($data['tags'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartTags', 'json', $context); + } + $object->setTags($values_1); + unset($data['tags']); + } + if (\array_key_exists('tag_names', $data)) { + $values_2 = []; + foreach ($data['tag_names'] as $value_2) { + $values_2[] = $value_2; + } + $object->setTagNames($values_2); + unset($data['tag_names']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values_3 = []; + foreach ($data['ip_addresses'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values_3); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_4; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('initialRootPassword') && null !== $object->getInitialRootPassword()) { + $data['initial_root_password'] = $object->getInitialRootPassword(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('zone') && null !== $object->getZone()) { + $data['zone'] = $this->normalizer->normalize($object->getZone(), 'json', $context); + } + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + } + if ($object->isInitialized('group') && null !== $object->getGroup()) { + $data['group'] = $this->normalizer->normalize($object->getGroup(), 'json', $context); + } + if ($object->isInitialized('package') && null !== $object->getPackage()) { + $data['package'] = $this->normalizer->normalize($object->getPackage(), 'json', $context); + } + if ($object->isInitialized('attachedIso') && null !== $object->getAttachedIso()) { + $data['attached_iso'] = $this->normalizer->normalize($object->getAttachedIso(), 'json', $context); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('gpuType') && null !== $object->getGpuType()) { + $data['gpu_type'] = $this->normalizer->normalize($object->getGpuType(), 'json', $context); + } + if ($object->isInitialized('gpus') && null !== $object->getGpus()) { + $values = []; + foreach ($object->getGpus() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['gpus'] = $values; + } + if ($object->isInitialized('tags') && null !== $object->getTags()) { + $values_1 = []; + foreach ($object->getTags() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['tags'] = $values_1; + } + if ($object->isInitialized('tagNames') && null !== $object->getTagNames()) { + $values_2 = []; + foreach ($object->getTagNames() as $value_2) { + $values_2[] = $value_2; + } + $data['tag_names'] = $values_2; + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values_3 = []; + foreach ($object->getIpAddresses() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['ip_addresses'] = $values_3; + } + foreach ($object as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_4; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachine200ResponseVirtualMachine' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartAttachedISONormalizer.php b/src/Normalizer/PatchVirtualMachinePartAttachedISONormalizer.php new file mode 100644 index 00000000..355561b7 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartAttachedISONormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('operating_system', $data)) { + $object->setOperatingSystem($this->denormalizer->denormalize($data['operating_system'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartOperatingSystem', 'json', $context)); + unset($data['operating_system']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('operatingSystem') && null !== $object->getOperatingSystem()) { + $data['operating_system'] = $this->normalizer->normalize($object->getOperatingSystem(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartAttachedISO' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartBadgeNormalizer.php b/src/Normalizer/PatchVirtualMachinePartBadgeNormalizer.php new file mode 100644 index 00000000..6b0d99a0 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartBadgeNormalizer.php @@ -0,0 +1,122 @@ +setUrl($data['url']); + unset($data['url']); + } + if (\array_key_exists('file_name', $data)) { + $object->setFileName($data['file_name']); + unset($data['file_name']); + } + if (\array_key_exists('file_type', $data)) { + $object->setFileType($data['file_type']); + unset($data['file_type']); + } + if (\array_key_exists('file_size', $data)) { + $object->setFileSize($data['file_size']); + unset($data['file_size']); + } + if (\array_key_exists('digest', $data)) { + $object->setDigest($data['digest']); + unset($data['digest']); + } + if (\array_key_exists('token', $data)) { + $object->setToken($data['token']); + unset($data['token']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + if ($object->isInitialized('fileName') && null !== $object->getFileName()) { + $data['file_name'] = $object->getFileName(); + } + if ($object->isInitialized('fileType') && null !== $object->getFileType()) { + $data['file_type'] = $object->getFileType(); + } + if ($object->isInitialized('fileSize') && null !== $object->getFileSize()) { + $data['file_size'] = $object->getFileSize(); + } + if ($object->isInitialized('digest') && null !== $object->getDigest()) { + $data['digest'] = $object->getDigest(); + } + if ($object->isInitialized('token') && null !== $object->getToken()) { + $data['token'] = $object->getToken(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartBadge' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartCountryNormalizer.php b/src/Normalizer/PatchVirtualMachinePartCountryNormalizer.php new file mode 100644 index 00000000..6bc4e74c --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartCountryNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('iso_code2', $data)) { + $object->setIsoCode2($data['iso_code2']); + unset($data['iso_code2']); + } + if (\array_key_exists('iso_code3', $data)) { + $object->setIsoCode3($data['iso_code3']); + unset($data['iso_code3']); + } + if (\array_key_exists('time_zone', $data)) { + $object->setTimeZone($data['time_zone']); + unset($data['time_zone']); + } + if (\array_key_exists('eu', $data)) { + $object->setEu($data['eu']); + unset($data['eu']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('isoCode2') && null !== $object->getIsoCode2()) { + $data['iso_code2'] = $object->getIsoCode2(); + } + if ($object->isInitialized('isoCode3') && null !== $object->getIsoCode3()) { + $data['iso_code3'] = $object->getIsoCode3(); + } + if ($object->isInitialized('timeZone') && null !== $object->getTimeZone()) { + $data['time_zone'] = $object->getTimeZone(); + } + if ($object->isInitialized('eu') && null !== $object->getEu()) { + $data['eu'] = $object->getEu(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCountry' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartCountryStateNormalizer.php b/src/Normalizer/PatchVirtualMachinePartCountryStateNormalizer.php new file mode 100644 index 00000000..c5d2a784 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartCountryStateNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCountry', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCountryState' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartCurrencyNormalizer.php b/src/Normalizer/PatchVirtualMachinePartCurrencyNormalizer.php new file mode 100644 index 00000000..d5689945 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartCurrencyNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('iso_code', $data)) { + $object->setIsoCode($data['iso_code']); + unset($data['iso_code']); + } + if (\array_key_exists('symbol', $data)) { + $object->setSymbol($data['symbol']); + unset($data['symbol']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('isoCode') && null !== $object->getIsoCode()) { + $data['iso_code'] = $object->getIsoCode(); + } + if ($object->isInitialized('symbol') && null !== $object->getSymbol()) { + $data['symbol'] = $object->getSymbol(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCurrency' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartDataCenterNormalizer.php b/src/Normalizer/PatchVirtualMachinePartDataCenterNormalizer.php new file mode 100644 index 00000000..164dca35 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartDataCenterNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCountry', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartDataCenter' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartGPUTypeNormalizer.php b/src/Normalizer/PatchVirtualMachinePartGPUTypeNormalizer.php new file mode 100644 index 00000000..0e17f474 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartGPUTypeNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('manufacturer', $data)) { + $object->setManufacturer($data['manufacturer']); + unset($data['manufacturer']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('memory_type', $data)) { + $object->setMemoryType($data['memory_type']); + unset($data['memory_type']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('manufacturer') && null !== $object->getManufacturer()) { + $data['manufacturer'] = $object->getManufacturer(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('memoryType') && null !== $object->getMemoryType()) { + $data['memory_type'] = $object->getMemoryType(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGPUType' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartGPUsNormalizer.php b/src/Normalizer/PatchVirtualMachinePartGPUsNormalizer.php new file mode 100644 index 00000000..0b8cba29 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartGPUsNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + if (\array_key_exists('pending_action', $data)) { + $object->setPendingAction($data['pending_action']); + unset($data['pending_action']); + } + if (\array_key_exists('available', $data)) { + $object->setAvailable($data['available']); + unset($data['available']); + } + if (\array_key_exists('type', $data)) { + $object->setType($this->denormalizer->denormalize($data['type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartType', 'json', $context)); + unset($data['type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + if ($object->isInitialized('pendingAction') && null !== $object->getPendingAction()) { + $data['pending_action'] = $object->getPendingAction(); + } + if ($object->isInitialized('available') && null !== $object->getAvailable()) { + $data['available'] = $object->getAvailable(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $this->normalizer->normalize($object->getType(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGPUs' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartGroupNormalizer.php b/src/Normalizer/PatchVirtualMachinePartGroupNormalizer.php new file mode 100644 index 00000000..689eb8a4 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartGroupNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('segregate', $data)) { + $object->setSegregate($data['segregate']); + unset($data['segregate']); + } + if (\array_key_exists('auto_segregate', $data)) { + $object->setAutoSegregate($data['auto_segregate']); + unset($data['auto_segregate']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('segregate') && null !== $object->getSegregate()) { + $data['segregate'] = $object->getSegregate(); + } + if ($object->isInitialized('autoSegregate') && null !== $object->getAutoSegregate()) { + $data['auto_segregate'] = $object->getAutoSegregate(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGroup' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartIPAddressesNormalizer.php b/src/Normalizer/PatchVirtualMachinePartIPAddressesNormalizer.php new file mode 100644 index 00000000..b63242b1 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartIPAddressesNormalizer.php @@ -0,0 +1,143 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + if (\array_key_exists('reverse_dns', $data)) { + $object->setReverseDns($data['reverse_dns']); + unset($data['reverse_dns']); + } + if (\array_key_exists('vip', $data)) { + $object->setVip($data['vip']); + unset($data['vip']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('address_with_mask', $data)) { + $object->setAddressWithMask($data['address_with_mask']); + unset($data['address_with_mask']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartNetwork', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('allocation_id', $data)) { + $object->setAllocationId($data['allocation_id']); + unset($data['allocation_id']); + } + if (\array_key_exists('allocation_type', $data)) { + $object->setAllocationType($data['allocation_type']); + unset($data['allocation_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + if ($object->isInitialized('reverseDns') && null !== $object->getReverseDns()) { + $data['reverse_dns'] = $object->getReverseDns(); + } + if ($object->isInitialized('vip') && null !== $object->getVip()) { + $data['vip'] = $object->getVip(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('addressWithMask') && null !== $object->getAddressWithMask()) { + $data['address_with_mask'] = $object->getAddressWithMask(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('allocationId') && null !== $object->getAllocationId()) { + $data['allocation_id'] = $object->getAllocationId(); + } + if ($object->isInitialized('allocationType') && null !== $object->getAllocationType()) { + $data['allocation_type'] = $object->getAllocationType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartIPAddresses' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartIconNormalizer.php b/src/Normalizer/PatchVirtualMachinePartIconNormalizer.php new file mode 100644 index 00000000..cf703642 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartIconNormalizer.php @@ -0,0 +1,122 @@ +setUrl($data['url']); + unset($data['url']); + } + if (\array_key_exists('file_name', $data)) { + $object->setFileName($data['file_name']); + unset($data['file_name']); + } + if (\array_key_exists('file_type', $data)) { + $object->setFileType($data['file_type']); + unset($data['file_type']); + } + if (\array_key_exists('file_size', $data)) { + $object->setFileSize($data['file_size']); + unset($data['file_size']); + } + if (\array_key_exists('digest', $data)) { + $object->setDigest($data['digest']); + unset($data['digest']); + } + if (\array_key_exists('token', $data)) { + $object->setToken($data['token']); + unset($data['token']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + if ($object->isInitialized('fileName') && null !== $object->getFileName()) { + $data['file_name'] = $object->getFileName(); + } + if ($object->isInitialized('fileType') && null !== $object->getFileType()) { + $data['file_type'] = $object->getFileType(); + } + if ($object->isInitialized('fileSize') && null !== $object->getFileSize()) { + $data['file_size'] = $object->getFileSize(); + } + if ($object->isInitialized('digest') && null !== $object->getDigest()) { + $data['digest'] = $object->getDigest(); + } + if ($object->isInitialized('token') && null !== $object->getToken()) { + $data['token'] = $object->getToken(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartIcon' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartNetworkNormalizer.php b/src/Normalizer/PatchVirtualMachinePartNetworkNormalizer.php new file mode 100644 index 00000000..75b3e891 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartNetworkNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartNetwork' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartOperatingSystemNormalizer.php b/src/Normalizer/PatchVirtualMachinePartOperatingSystemNormalizer.php new file mode 100644 index 00000000..264b77b6 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartOperatingSystemNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('badge', $data)) { + $object->setBadge($this->denormalizer->denormalize($data['badge'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartBadge', 'json', $context)); + unset($data['badge']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('badge') && null !== $object->getBadge()) { + $data['badge'] = $this->normalizer->normalize($object->getBadge(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartOperatingSystem' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartOrganizationNormalizer.php b/src/Normalizer/PatchVirtualMachinePartOrganizationNormalizer.php new file mode 100644 index 00000000..75fc206e --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartOrganizationNormalizer.php @@ -0,0 +1,206 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('sub_domain', $data)) { + $object->setSubDomain($data['sub_domain']); + unset($data['sub_domain']); + } + if (\array_key_exists('infrastructure_domain', $data)) { + $object->setInfrastructureDomain($data['infrastructure_domain']); + unset($data['infrastructure_domain']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('suspended', $data)) { + $object->setSuspended($data['suspended']); + unset($data['suspended']); + } + if (\array_key_exists('managed', $data)) { + $object->setManaged($data['managed']); + unset($data['managed']); + } + if (\array_key_exists('billing_name', $data)) { + $object->setBillingName($data['billing_name']); + unset($data['billing_name']); + } + if (\array_key_exists('address1', $data)) { + $object->setAddress1($data['address1']); + unset($data['address1']); + } + if (\array_key_exists('address2', $data)) { + $object->setAddress2($data['address2']); + unset($data['address2']); + } + if (\array_key_exists('address3', $data)) { + $object->setAddress3($data['address3']); + unset($data['address3']); + } + if (\array_key_exists('address4', $data)) { + $object->setAddress4($data['address4']); + unset($data['address4']); + } + if (\array_key_exists('postcode', $data)) { + $object->setPostcode($data['postcode']); + unset($data['postcode']); + } + if (\array_key_exists('vat_number', $data)) { + $object->setVatNumber($data['vat_number']); + unset($data['vat_number']); + } + if (\array_key_exists('phone_number', $data)) { + $object->setPhoneNumber($data['phone_number']); + unset($data['phone_number']); + } + if (\array_key_exists('currency', $data)) { + $object->setCurrency($this->denormalizer->denormalize($data['currency'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCurrency', 'json', $context)); + unset($data['currency']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCountry', 'json', $context)); + unset($data['country']); + } + if (\array_key_exists('country_state', $data)) { + $object->setCountryState($this->denormalizer->denormalize($data['country_state'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartCountryState', 'json', $context)); + unset($data['country_state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('subDomain') && null !== $object->getSubDomain()) { + $data['sub_domain'] = $object->getSubDomain(); + } + if ($object->isInitialized('infrastructureDomain') && null !== $object->getInfrastructureDomain()) { + $data['infrastructure_domain'] = $object->getInfrastructureDomain(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('suspended') && null !== $object->getSuspended()) { + $data['suspended'] = $object->getSuspended(); + } + if ($object->isInitialized('managed') && null !== $object->getManaged()) { + $data['managed'] = $object->getManaged(); + } + if ($object->isInitialized('billingName') && null !== $object->getBillingName()) { + $data['billing_name'] = $object->getBillingName(); + } + if ($object->isInitialized('address1') && null !== $object->getAddress1()) { + $data['address1'] = $object->getAddress1(); + } + if ($object->isInitialized('address2') && null !== $object->getAddress2()) { + $data['address2'] = $object->getAddress2(); + } + if ($object->isInitialized('address3') && null !== $object->getAddress3()) { + $data['address3'] = $object->getAddress3(); + } + if ($object->isInitialized('address4') && null !== $object->getAddress4()) { + $data['address4'] = $object->getAddress4(); + } + if ($object->isInitialized('postcode') && null !== $object->getPostcode()) { + $data['postcode'] = $object->getPostcode(); + } + if ($object->isInitialized('vatNumber') && null !== $object->getVatNumber()) { + $data['vat_number'] = $object->getVatNumber(); + } + if ($object->isInitialized('phoneNumber') && null !== $object->getPhoneNumber()) { + $data['phone_number'] = $object->getPhoneNumber(); + } + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { + $data['currency'] = $this->normalizer->normalize($object->getCurrency(), 'json', $context); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + if ($object->isInitialized('countryState') && null !== $object->getCountryState()) { + $data['country_state'] = $this->normalizer->normalize($object->getCountryState(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartOrganization' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartPackageNormalizer.php b/src/Normalizer/PatchVirtualMachinePartPackageNormalizer.php new file mode 100644 index 00000000..7667d70a --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartPackageNormalizer.php @@ -0,0 +1,150 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('ipv4_addresses', $data)) { + $object->setIpv4Addresses($data['ipv4_addresses']); + unset($data['ipv4_addresses']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('storage_in_gb', $data)) { + $object->setStorageInGb($data['storage_in_gb']); + unset($data['storage_in_gb']); + } + if (\array_key_exists('monthly_bandwidth_allowance_in_gb', $data)) { + $object->setMonthlyBandwidthAllowanceInGb($data['monthly_bandwidth_allowance_in_gb']); + unset($data['monthly_bandwidth_allowance_in_gb']); + } + if (\array_key_exists('privacy', $data)) { + $object->setPrivacy($data['privacy']); + unset($data['privacy']); + } + if (\array_key_exists('icon', $data)) { + $object->setIcon($this->denormalizer->denormalize($data['icon'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartIcon', 'json', $context)); + unset($data['icon']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('ipv4Addresses') && null !== $object->getIpv4Addresses()) { + $data['ipv4_addresses'] = $object->getIpv4Addresses(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('storageInGb') && null !== $object->getStorageInGb()) { + $data['storage_in_gb'] = $object->getStorageInGb(); + } + if ($object->isInitialized('monthlyBandwidthAllowanceInGb') && null !== $object->getMonthlyBandwidthAllowanceInGb()) { + $data['monthly_bandwidth_allowance_in_gb'] = $object->getMonthlyBandwidthAllowanceInGb(); + } + if ($object->isInitialized('privacy') && null !== $object->getPrivacy()) { + $data['privacy'] = $object->getPrivacy(); + } + if ($object->isInitialized('icon') && null !== $object->getIcon()) { + $data['icon'] = $this->normalizer->normalize($object->getIcon(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartPackage' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartTagsNormalizer.php b/src/Normalizer/PatchVirtualMachinePartTagsNormalizer.php new file mode 100644 index 00000000..2ac416ec --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartTagsNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('color', $data)) { + $object->setColor($data['color']); + unset($data['color']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('color') && null !== $object->getColor()) { + $data['color'] = $object->getColor(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartTags' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartTypeNormalizer.php b/src/Normalizer/PatchVirtualMachinePartTypeNormalizer.php new file mode 100644 index 00000000..d0bfdb53 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartTypeNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('manufacturer', $data)) { + $object->setManufacturer($data['manufacturer']); + unset($data['manufacturer']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('memory_type', $data)) { + $object->setMemoryType($data['memory_type']); + unset($data['memory_type']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('manufacturer') && null !== $object->getManufacturer()) { + $data['manufacturer'] = $object->getManufacturer(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('memoryType') && null !== $object->getMemoryType()) { + $data['memory_type'] = $object->getMemoryType(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartType' => false]; + } +} diff --git a/src/Normalizer/PatchVirtualMachinePartZoneNormalizer.php b/src/Normalizer/PatchVirtualMachinePartZoneNormalizer.php new file mode 100644 index 00000000..dd5053b6 --- /dev/null +++ b/src/Normalizer/PatchVirtualMachinePartZoneNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartDataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartZone' => false]; + } +} diff --git a/src/Normalizer/PermissionDeniedNormalizer.php b/src/Normalizer/PermissionDeniedNormalizer.php new file mode 100644 index 00000000..d0e41d38 --- /dev/null +++ b/src/Normalizer/PermissionDeniedNormalizer.php @@ -0,0 +1,87 @@ +setDetails($data['details']); + unset($data['details']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('details') && null !== $object->getDetails()) { + $data['details'] = $object->getDetails(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PermissionDenied' => false]; + } +} diff --git a/src/Normalizer/PermissionDeniedSchemaNormalizer.php b/src/Normalizer/PermissionDeniedSchemaNormalizer.php new file mode 100644 index 00000000..8bfc9c9d --- /dev/null +++ b/src/Normalizer/PermissionDeniedSchemaNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PermissionDenied', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PermissionDeniedSchema' => false]; + } +} diff --git a/src/Normalizer/PostDNSZonesDNSZoneRecords200ResponseDNSRecordNormalizer.php b/src/Normalizer/PostDNSZonesDNSZoneRecords200ResponseDNSRecordNormalizer.php new file mode 100644 index 00000000..152b87d9 --- /dev/null +++ b/src/Normalizer/PostDNSZonesDNSZoneRecords200ResponseDNSRecordNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('record_type', $data)) { + $object->setRecordType($data['record_type']); + unset($data['record_type']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSRecordProperties', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('recordType') && null !== $object->getRecordType()) { + $data['record_type'] = $object->getRecordType(); + } + if ($object->isInitialized('properties') && null !== $object->getProperties()) { + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostDNSZonesDNSZoneRecords200ResponseDNSRecord' => false]; + } +} diff --git a/src/Normalizer/PostDNSZonesDNSZoneUpdateTTL200ResponseDNSZoneNormalizer.php b/src/Normalizer/PostDNSZonesDNSZoneUpdateTTL200ResponseDNSZoneNormalizer.php new file mode 100644 index 00000000..95788826 --- /dev/null +++ b/src/Normalizer/PostDNSZonesDNSZoneUpdateTTL200ResponseDNSZoneNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('verified', $data)) { + $object->setVerified($data['verified']); + unset($data['verified']); + } + if (\array_key_exists('infrastructure_zone', $data)) { + $object->setInfrastructureZone($data['infrastructure_zone']); + unset($data['infrastructure_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('verified') && null !== $object->getVerified()) { + $data['verified'] = $object->getVerified(); + } + if ($object->isInitialized('infrastructureZone') && null !== $object->getInfrastructureZone()) { + $data['infrastructure_zone'] = $object->getInfrastructureZone(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostDNSZonesDNSZoneUpdateTTL200ResponseDNSZone' => false]; + } +} diff --git a/src/Normalizer/PostDiskDiskBackupPolicies200ResponseDiskBackupPolicyNormalizer.php b/src/Normalizer/PostDiskDiskBackupPolicies200ResponseDiskBackupPolicyNormalizer.php new file mode 100644 index 00000000..de5df3eb --- /dev/null +++ b/src/Normalizer/PostDiskDiskBackupPolicies200ResponseDiskBackupPolicyNormalizer.php @@ -0,0 +1,125 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('retention', $data)) { + $object->setRetention($data['retention']); + unset($data['retention']); + } + if (\array_key_exists('total_size', $data)) { + $object->setTotalSize($data['total_size']); + unset($data['total_size']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostDiskDiskBackupPoliciesPartSchedule', 'json', $context)); + unset($data['schedule']); + } + if (\array_key_exists('auto_move_to_trash_at', $data)) { + $object->setAutoMoveToTrashAt($data['auto_move_to_trash_at']); + unset($data['auto_move_to_trash_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('retention') && null !== $object->getRetention()) { + $data['retention'] = $object->getRetention(); + } + if ($object->isInitialized('totalSize') && null !== $object->getTotalSize()) { + $data['total_size'] = $object->getTotalSize(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + if ($object->isInitialized('autoMoveToTrashAt') && null !== $object->getAutoMoveToTrashAt()) { + $data['auto_move_to_trash_at'] = $object->getAutoMoveToTrashAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostDiskDiskBackupPolicies200ResponseDiskBackupPolicy' => false]; + } +} diff --git a/src/Normalizer/PostDiskDiskBackupPoliciesPartScheduleNormalizer.php b/src/Normalizer/PostDiskDiskBackupPoliciesPartScheduleNormalizer.php new file mode 100644 index 00000000..e7cff608 --- /dev/null +++ b/src/Normalizer/PostDiskDiskBackupPoliciesPartScheduleNormalizer.php @@ -0,0 +1,115 @@ +setFrequency($data['frequency']); + unset($data['frequency']); + } + if (\array_key_exists('interval', $data)) { + $object->setInterval($data['interval']); + unset($data['interval']); + } + if (\array_key_exists('minute', $data)) { + $object->setMinute($data['minute']); + unset($data['minute']); + } + if (\array_key_exists('next_invocation_at', $data)) { + $object->setNextInvocationAt($data['next_invocation_at']); + unset($data['next_invocation_at']); + } + if (\array_key_exists('time', $data)) { + $object->setTime($data['time']); + unset($data['time']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('frequency') && null !== $object->getFrequency()) { + $data['frequency'] = $object->getFrequency(); + } + if ($object->isInitialized('interval') && null !== $object->getInterval()) { + $data['interval'] = $object->getInterval(); + } + if ($object->isInitialized('minute') && null !== $object->getMinute()) { + $data['minute'] = $object->getMinute(); + } + if ($object->isInitialized('nextInvocationAt') && null !== $object->getNextInvocationAt()) { + $data['next_invocation_at'] = $object->getNextInvocationAt(); + } + if ($object->isInitialized('time') && null !== $object->getTime()) { + $data['time'] = $object->getTime(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostDiskDiskBackupPoliciesPartSchedule' => false]; + } +} diff --git a/src/Normalizer/PostLoadBalancerRules200ResponseLoadBalancerRuleNormalizer.php b/src/Normalizer/PostLoadBalancerRules200ResponseLoadBalancerRuleNormalizer.php new file mode 100644 index 00000000..18ae2733 --- /dev/null +++ b/src/Normalizer/PostLoadBalancerRules200ResponseLoadBalancerRuleNormalizer.php @@ -0,0 +1,214 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('algorithm', $data)) { + $object->setAlgorithm($data['algorithm']); + unset($data['algorithm']); + } + if (\array_key_exists('destination_port', $data)) { + $object->setDestinationPort($data['destination_port']); + unset($data['destination_port']); + } + if (\array_key_exists('listen_port', $data)) { + $object->setListenPort($data['listen_port']); + unset($data['listen_port']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('proxy_protocol', $data)) { + $object->setProxyProtocol($data['proxy_protocol']); + unset($data['proxy_protocol']); + } + if (\array_key_exists('certificates', $data)) { + $values = []; + foreach ($data['certificates'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRulesPartCertificates', 'json', $context); + } + $object->setCertificates($values); + unset($data['certificates']); + } + if (\array_key_exists('backend_ssl', $data)) { + $object->setBackendSsl($data['backend_ssl']); + unset($data['backend_ssl']); + } + if (\array_key_exists('passthrough_ssl', $data)) { + $object->setPassthroughSsl($data['passthrough_ssl']); + unset($data['passthrough_ssl']); + } + if (\array_key_exists('check_enabled', $data)) { + $object->setCheckEnabled($data['check_enabled']); + unset($data['check_enabled']); + } + if (\array_key_exists('check_fall', $data)) { + $object->setCheckFall($data['check_fall']); + unset($data['check_fall']); + } + if (\array_key_exists('check_interval', $data)) { + $object->setCheckInterval($data['check_interval']); + unset($data['check_interval']); + } + if (\array_key_exists('check_path', $data)) { + $object->setCheckPath($data['check_path']); + unset($data['check_path']); + } + if (\array_key_exists('check_protocol', $data)) { + $object->setCheckProtocol($data['check_protocol']); + unset($data['check_protocol']); + } + if (\array_key_exists('check_rise', $data)) { + $object->setCheckRise($data['check_rise']); + unset($data['check_rise']); + } + if (\array_key_exists('check_timeout', $data)) { + $object->setCheckTimeout($data['check_timeout']); + unset($data['check_timeout']); + } + if (\array_key_exists('check_http_statuses', $data)) { + $object->setCheckHttpStatuses($data['check_http_statuses']); + unset($data['check_http_statuses']); + } + if (\array_key_exists('load_balancer', $data)) { + $object->setLoadBalancer($this->denormalizer->denormalize($data['load_balancer'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRulesPartLoadBalancer', 'json', $context)); + unset($data['load_balancer']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('algorithm') && null !== $object->getAlgorithm()) { + $data['algorithm'] = $object->getAlgorithm(); + } + if ($object->isInitialized('destinationPort') && null !== $object->getDestinationPort()) { + $data['destination_port'] = $object->getDestinationPort(); + } + if ($object->isInitialized('listenPort') && null !== $object->getListenPort()) { + $data['listen_port'] = $object->getListenPort(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('proxyProtocol') && null !== $object->getProxyProtocol()) { + $data['proxy_protocol'] = $object->getProxyProtocol(); + } + if ($object->isInitialized('certificates') && null !== $object->getCertificates()) { + $values = []; + foreach ($object->getCertificates() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['certificates'] = $values; + } + if ($object->isInitialized('backendSsl') && null !== $object->getBackendSsl()) { + $data['backend_ssl'] = $object->getBackendSsl(); + } + if ($object->isInitialized('passthroughSsl') && null !== $object->getPassthroughSsl()) { + $data['passthrough_ssl'] = $object->getPassthroughSsl(); + } + if ($object->isInitialized('checkEnabled') && null !== $object->getCheckEnabled()) { + $data['check_enabled'] = $object->getCheckEnabled(); + } + if ($object->isInitialized('checkFall') && null !== $object->getCheckFall()) { + $data['check_fall'] = $object->getCheckFall(); + } + if ($object->isInitialized('checkInterval') && null !== $object->getCheckInterval()) { + $data['check_interval'] = $object->getCheckInterval(); + } + if ($object->isInitialized('checkPath') && null !== $object->getCheckPath()) { + $data['check_path'] = $object->getCheckPath(); + } + if ($object->isInitialized('checkProtocol') && null !== $object->getCheckProtocol()) { + $data['check_protocol'] = $object->getCheckProtocol(); + } + if ($object->isInitialized('checkRise') && null !== $object->getCheckRise()) { + $data['check_rise'] = $object->getCheckRise(); + } + if ($object->isInitialized('checkTimeout') && null !== $object->getCheckTimeout()) { + $data['check_timeout'] = $object->getCheckTimeout(); + } + if ($object->isInitialized('checkHttpStatuses') && null !== $object->getCheckHttpStatuses()) { + $data['check_http_statuses'] = $object->getCheckHttpStatuses(); + } + if ($object->isInitialized('loadBalancer') && null !== $object->getLoadBalancer()) { + $data['load_balancer'] = $this->normalizer->normalize($object->getLoadBalancer(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRules200ResponseLoadBalancerRule' => false]; + } +} diff --git a/src/Normalizer/PostLoadBalancerRulesPartCertificatesNormalizer.php b/src/Normalizer/PostLoadBalancerRulesPartCertificatesNormalizer.php new file mode 100644 index 00000000..bef5480d --- /dev/null +++ b/src/Normalizer/PostLoadBalancerRulesPartCertificatesNormalizer.php @@ -0,0 +1,116 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('additional_names', $data)) { + $values = []; + foreach ($data['additional_names'] as $value) { + $values[] = $value; + } + $object->setAdditionalNames($values); + unset($data['additional_names']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('additionalNames') && null !== $object->getAdditionalNames()) { + $values = []; + foreach ($object->getAdditionalNames() as $value) { + $values[] = $value; + } + $data['additional_names'] = $values; + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRulesPartCertificates' => false]; + } +} diff --git a/src/Normalizer/PostLoadBalancerRulesPartLoadBalancerNormalizer.php b/src/Normalizer/PostLoadBalancerRulesPartLoadBalancerNormalizer.php new file mode 100644 index 00000000..d9abc4c1 --- /dev/null +++ b/src/Normalizer/PostLoadBalancerRulesPartLoadBalancerNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostLoadBalancerRulesPartLoadBalancer' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationDNSZones201ResponseDNSZoneNormalizer.php b/src/Normalizer/PostOrganizationDNSZones201ResponseDNSZoneNormalizer.php new file mode 100644 index 00000000..42d2f38a --- /dev/null +++ b/src/Normalizer/PostOrganizationDNSZones201ResponseDNSZoneNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('ttl', $data)) { + $object->setTtl($data['ttl']); + unset($data['ttl']); + } + if (\array_key_exists('verified', $data)) { + $object->setVerified($data['verified']); + unset($data['verified']); + } + if (\array_key_exists('infrastructure_zone', $data)) { + $object->setInfrastructureZone($data['infrastructure_zone']); + unset($data['infrastructure_zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('ttl') && null !== $object->getTtl()) { + $data['ttl'] = $object->getTtl(); + } + if ($object->isInitialized('verified') && null !== $object->getVerified()) { + $data['verified'] = $object->getVerified(); + } + if ($object->isInitialized('infrastructureZone') && null !== $object->getInfrastructureZone()) { + $data['infrastructure_zone'] = $object->getInfrastructureZone(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationDNSZones201ResponseDNSZone' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationFileStorageVolumes201ResponseFileStorageVolumeNormalizer.php b/src/Normalizer/PostOrganizationFileStorageVolumes201ResponseFileStorageVolumeNormalizer.php new file mode 100644 index 00000000..dd100f16 --- /dev/null +++ b/src/Normalizer/PostOrganizationFileStorageVolumes201ResponseFileStorageVolumeNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationFileStorageVolumesPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('nfs_location', $data)) { + $object->setNfsLocation($data['nfs_location']); + unset($data['nfs_location']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('nfsLocation') && null !== $object->getNfsLocation()) { + $data['nfs_location'] = $object->getNfsLocation(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationFileStorageVolumes201ResponseFileStorageVolume' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationFileStorageVolumesPartDataCenterNormalizer.php b/src/Normalizer/PostOrganizationFileStorageVolumesPartDataCenterNormalizer.php new file mode 100644 index 00000000..01708384 --- /dev/null +++ b/src/Normalizer/PostOrganizationFileStorageVolumesPartDataCenterNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationFileStorageVolumesPartDataCenter' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationLoadBalancers200ResponseLoadBalancerNormalizer.php b/src/Normalizer/PostOrganizationLoadBalancers200ResponseLoadBalancerNormalizer.php new file mode 100644 index 00000000..cca902e3 --- /dev/null +++ b/src/Normalizer/PostOrganizationLoadBalancers200ResponseLoadBalancerNormalizer.php @@ -0,0 +1,218 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('api_reference', $data)) { + $object->setApiReference($data['api_reference']); + unset($data['api_reference']); + } + if (\array_key_exists('resource_type', $data)) { + $object->setResourceType($data['resource_type']); + unset($data['resource_type']); + } + if (\array_key_exists('resources', $data)) { + $values = []; + foreach ($data['resources'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\LoadBalancerResource', 'json', $context); + } + $object->setResources($values); + unset($data['resources']); + } + if (\array_key_exists('resource_ids', $data)) { + $values_1 = []; + foreach ($data['resource_ids'] as $value_1) { + $values_1[] = $value_1; + } + $object->setResourceIds($values_1); + unset($data['resource_ids']); + } + if (\array_key_exists('ip_address', $data)) { + $values_2 = []; + foreach ($data['ip_address'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartIPAddress', 'json', $context); + } + $object->setIpAddress($values_2); + unset($data['ip_address']); + } + if (\array_key_exists('https_redirect', $data)) { + $object->setHttpsRedirect($data['https_redirect']); + unset($data['https_redirect']); + } + if (\array_key_exists('backend_certificate', $data)) { + $object->setBackendCertificate($data['backend_certificate']); + unset($data['backend_certificate']); + } + if (\array_key_exists('backend_certificate_key', $data)) { + $object->setBackendCertificateKey($data['backend_certificate_key']); + unset($data['backend_certificate_key']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartDataCenter', 'json', $context)); + unset($data['data_center']); + } + if (\array_key_exists('enable_weighting', $data)) { + $object->setEnableWeighting($data['enable_weighting']); + unset($data['enable_weighting']); + } + if (\array_key_exists('weights', $data)) { + $values_3 = []; + foreach ($data['weights'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartWeights', 'json', $context); + } + $object->setWeights($values_3); + unset($data['weights']); + } + if (\array_key_exists('standby_vms', $data)) { + $values_4 = []; + foreach ($data['standby_vms'] as $value_4) { + $values_4[] = $value_4; + } + $object->setStandbyVms($values_4); + unset($data['standby_vms']); + } + foreach ($data as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_5; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('apiReference') && null !== $object->getApiReference()) { + $data['api_reference'] = $object->getApiReference(); + } + if ($object->isInitialized('resourceType') && null !== $object->getResourceType()) { + $data['resource_type'] = $object->getResourceType(); + } + if ($object->isInitialized('resources') && null !== $object->getResources()) { + $values = []; + foreach ($object->getResources() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['resources'] = $values; + } + if ($object->isInitialized('resourceIds') && null !== $object->getResourceIds()) { + $values_1 = []; + foreach ($object->getResourceIds() as $value_1) { + $values_1[] = $value_1; + } + $data['resource_ids'] = $values_1; + } + if ($object->isInitialized('ipAddress') && null !== $object->getIpAddress()) { + $values_2 = []; + foreach ($object->getIpAddress() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['ip_address'] = $values_2; + } + if ($object->isInitialized('httpsRedirect') && null !== $object->getHttpsRedirect()) { + $data['https_redirect'] = $object->getHttpsRedirect(); + } + if ($object->isInitialized('backendCertificate') && null !== $object->getBackendCertificate()) { + $data['backend_certificate'] = $object->getBackendCertificate(); + } + if ($object->isInitialized('backendCertificateKey') && null !== $object->getBackendCertificateKey()) { + $data['backend_certificate_key'] = $object->getBackendCertificateKey(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + if ($object->isInitialized('enableWeighting') && null !== $object->getEnableWeighting()) { + $data['enable_weighting'] = $object->getEnableWeighting(); + } + if ($object->isInitialized('weights') && null !== $object->getWeights()) { + $values_3 = []; + foreach ($object->getWeights() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['weights'] = $values_3; + } + if ($object->isInitialized('standbyVms') && null !== $object->getStandbyVms()) { + $values_4 = []; + foreach ($object->getStandbyVms() as $value_4) { + $values_4[] = $value_4; + } + $data['standby_vms'] = $values_4; + } + foreach ($object as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_5; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancers200ResponseLoadBalancer' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationLoadBalancersPartDataCenterNormalizer.php b/src/Normalizer/PostOrganizationLoadBalancersPartDataCenterNormalizer.php new file mode 100644 index 00000000..b64fca0f --- /dev/null +++ b/src/Normalizer/PostOrganizationLoadBalancersPartDataCenterNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartDataCenter' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationLoadBalancersPartIPAddressNormalizer.php b/src/Normalizer/PostOrganizationLoadBalancersPartIPAddressNormalizer.php new file mode 100644 index 00000000..18e337b6 --- /dev/null +++ b/src/Normalizer/PostOrganizationLoadBalancersPartIPAddressNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartIPAddress' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationLoadBalancersPartWeightsNormalizer.php b/src/Normalizer/PostOrganizationLoadBalancersPartWeightsNormalizer.php new file mode 100644 index 00000000..64cd853e --- /dev/null +++ b/src/Normalizer/PostOrganizationLoadBalancersPartWeightsNormalizer.php @@ -0,0 +1,94 @@ +setVirtualMachineId($data['virtual_machine_id']); + unset($data['virtual_machine_id']); + } + if (\array_key_exists('weight', $data)) { + $object->setWeight($data['weight']); + unset($data['weight']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('virtualMachineId') && null !== $object->getVirtualMachineId()) { + $data['virtual_machine_id'] = $object->getVirtualMachineId(); + } + if ($object->isInitialized('weight') && null !== $object->getWeight()) { + $data['weight'] = $object->getWeight(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationLoadBalancersPartWeights' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationManaged201ResponseOrganizationNormalizer.php b/src/Normalizer/PostOrganizationManaged201ResponseOrganizationNormalizer.php new file mode 100644 index 00000000..be769e07 --- /dev/null +++ b/src/Normalizer/PostOrganizationManaged201ResponseOrganizationNormalizer.php @@ -0,0 +1,206 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('sub_domain', $data)) { + $object->setSubDomain($data['sub_domain']); + unset($data['sub_domain']); + } + if (\array_key_exists('infrastructure_domain', $data)) { + $object->setInfrastructureDomain($data['infrastructure_domain']); + unset($data['infrastructure_domain']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('suspended', $data)) { + $object->setSuspended($data['suspended']); + unset($data['suspended']); + } + if (\array_key_exists('managed', $data)) { + $object->setManaged($data['managed']); + unset($data['managed']); + } + if (\array_key_exists('billing_name', $data)) { + $object->setBillingName($data['billing_name']); + unset($data['billing_name']); + } + if (\array_key_exists('address1', $data)) { + $object->setAddress1($data['address1']); + unset($data['address1']); + } + if (\array_key_exists('address2', $data)) { + $object->setAddress2($data['address2']); + unset($data['address2']); + } + if (\array_key_exists('address3', $data)) { + $object->setAddress3($data['address3']); + unset($data['address3']); + } + if (\array_key_exists('address4', $data)) { + $object->setAddress4($data['address4']); + unset($data['address4']); + } + if (\array_key_exists('postcode', $data)) { + $object->setPostcode($data['postcode']); + unset($data['postcode']); + } + if (\array_key_exists('vat_number', $data)) { + $object->setVatNumber($data['vat_number']); + unset($data['vat_number']); + } + if (\array_key_exists('phone_number', $data)) { + $object->setPhoneNumber($data['phone_number']); + unset($data['phone_number']); + } + if (\array_key_exists('currency', $data)) { + $object->setCurrency($this->denormalizer->denormalize($data['currency'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCurrency', 'json', $context)); + unset($data['currency']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCountry', 'json', $context)); + unset($data['country']); + } + if (\array_key_exists('country_state', $data)) { + $object->setCountryState($this->denormalizer->denormalize($data['country_state'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCountryState', 'json', $context)); + unset($data['country_state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('subDomain') && null !== $object->getSubDomain()) { + $data['sub_domain'] = $object->getSubDomain(); + } + if ($object->isInitialized('infrastructureDomain') && null !== $object->getInfrastructureDomain()) { + $data['infrastructure_domain'] = $object->getInfrastructureDomain(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('suspended') && null !== $object->getSuspended()) { + $data['suspended'] = $object->getSuspended(); + } + if ($object->isInitialized('managed') && null !== $object->getManaged()) { + $data['managed'] = $object->getManaged(); + } + if ($object->isInitialized('billingName') && null !== $object->getBillingName()) { + $data['billing_name'] = $object->getBillingName(); + } + if ($object->isInitialized('address1') && null !== $object->getAddress1()) { + $data['address1'] = $object->getAddress1(); + } + if ($object->isInitialized('address2') && null !== $object->getAddress2()) { + $data['address2'] = $object->getAddress2(); + } + if ($object->isInitialized('address3') && null !== $object->getAddress3()) { + $data['address3'] = $object->getAddress3(); + } + if ($object->isInitialized('address4') && null !== $object->getAddress4()) { + $data['address4'] = $object->getAddress4(); + } + if ($object->isInitialized('postcode') && null !== $object->getPostcode()) { + $data['postcode'] = $object->getPostcode(); + } + if ($object->isInitialized('vatNumber') && null !== $object->getVatNumber()) { + $data['vat_number'] = $object->getVatNumber(); + } + if ($object->isInitialized('phoneNumber') && null !== $object->getPhoneNumber()) { + $data['phone_number'] = $object->getPhoneNumber(); + } + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { + $data['currency'] = $this->normalizer->normalize($object->getCurrency(), 'json', $context); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + if ($object->isInitialized('countryState') && null !== $object->getCountryState()) { + $data['country_state'] = $this->normalizer->normalize($object->getCountryState(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManaged201ResponseOrganization' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationManagedPartCountryNormalizer.php b/src/Normalizer/PostOrganizationManagedPartCountryNormalizer.php new file mode 100644 index 00000000..c865027d --- /dev/null +++ b/src/Normalizer/PostOrganizationManagedPartCountryNormalizer.php @@ -0,0 +1,122 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('iso_code2', $data)) { + $object->setIsoCode2($data['iso_code2']); + unset($data['iso_code2']); + } + if (\array_key_exists('iso_code3', $data)) { + $object->setIsoCode3($data['iso_code3']); + unset($data['iso_code3']); + } + if (\array_key_exists('time_zone', $data)) { + $object->setTimeZone($data['time_zone']); + unset($data['time_zone']); + } + if (\array_key_exists('eu', $data)) { + $object->setEu($data['eu']); + unset($data['eu']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('isoCode2') && null !== $object->getIsoCode2()) { + $data['iso_code2'] = $object->getIsoCode2(); + } + if ($object->isInitialized('isoCode3') && null !== $object->getIsoCode3()) { + $data['iso_code3'] = $object->getIsoCode3(); + } + if ($object->isInitialized('timeZone') && null !== $object->getTimeZone()) { + $data['time_zone'] = $object->getTimeZone(); + } + if ($object->isInitialized('eu') && null !== $object->getEu()) { + $data['eu'] = $object->getEu(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCountry' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationManagedPartCountryStateNormalizer.php b/src/Normalizer/PostOrganizationManagedPartCountryStateNormalizer.php new file mode 100644 index 00000000..4dc8b2f7 --- /dev/null +++ b/src/Normalizer/PostOrganizationManagedPartCountryStateNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('country', $data)) { + $object->setCountry($this->denormalizer->denormalize($data['country'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCountry', 'json', $context)); + unset($data['country']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('country') && null !== $object->getCountry()) { + $data['country'] = $this->normalizer->normalize($object->getCountry(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCountryState' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationManagedPartCurrencyNormalizer.php b/src/Normalizer/PostOrganizationManagedPartCurrencyNormalizer.php new file mode 100644 index 00000000..b9974e31 --- /dev/null +++ b/src/Normalizer/PostOrganizationManagedPartCurrencyNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('iso_code', $data)) { + $object->setIsoCode($data['iso_code']); + unset($data['iso_code']); + } + if (\array_key_exists('symbol', $data)) { + $object->setSymbol($data['symbol']); + unset($data['symbol']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('isoCode') && null !== $object->getIsoCode()) { + $data['iso_code'] = $object->getIsoCode(); + } + if ($object->isInitialized('symbol') && null !== $object->getSymbol()) { + $data['symbol'] = $object->getSymbol(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationManagedPartCurrency' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationVirtualMachinesBuild201ResponseBuildNormalizer.php b/src/Normalizer/PostOrganizationVirtualMachinesBuild201ResponseBuildNormalizer.php new file mode 100644 index 00000000..926e0e71 --- /dev/null +++ b/src/Normalizer/PostOrganizationVirtualMachinesBuild201ResponseBuildNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuild201ResponseBuild' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationVirtualMachinesBuild201ResponseTaskNormalizer.php b/src/Normalizer/PostOrganizationVirtualMachinesBuild201ResponseTaskNormalizer.php new file mode 100644 index 00000000..bad2f5a3 --- /dev/null +++ b/src/Normalizer/PostOrganizationVirtualMachinesBuild201ResponseTaskNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuild201ResponseTask' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationVirtualMachinesBuild201ResponseVirtualMachineBuildNormalizer.php b/src/Normalizer/PostOrganizationVirtualMachinesBuild201ResponseVirtualMachineBuildNormalizer.php new file mode 100644 index 00000000..231f0c4e --- /dev/null +++ b/src/Normalizer/PostOrganizationVirtualMachinesBuild201ResponseVirtualMachineBuildNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuild201ResponseVirtualMachineBuild' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationVirtualMachinesBuildFromSpec201ResponseBuildNormalizer.php b/src/Normalizer/PostOrganizationVirtualMachinesBuildFromSpec201ResponseBuildNormalizer.php new file mode 100644 index 00000000..4aa4cad5 --- /dev/null +++ b/src/Normalizer/PostOrganizationVirtualMachinesBuildFromSpec201ResponseBuildNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuildFromSpec201ResponseBuild' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationVirtualMachinesBuildFromSpec201ResponseTaskNormalizer.php b/src/Normalizer/PostOrganizationVirtualMachinesBuildFromSpec201ResponseTaskNormalizer.php new file mode 100644 index 00000000..13d324aa --- /dev/null +++ b/src/Normalizer/PostOrganizationVirtualMachinesBuildFromSpec201ResponseTaskNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuildFromSpec201ResponseTask' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationVirtualMachinesBuildFromSpec201ResponseVirtualMachineBuildNormalizer.php b/src/Normalizer/PostOrganizationVirtualMachinesBuildFromSpec201ResponseVirtualMachineBuildNormalizer.php new file mode 100644 index 00000000..c326ca23 --- /dev/null +++ b/src/Normalizer/PostOrganizationVirtualMachinesBuildFromSpec201ResponseVirtualMachineBuildNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationVirtualMachinesBuildFromSpec201ResponseVirtualMachineBuild' => false]; + } +} diff --git a/src/Normalizer/PostOrganizationsOrganizationDNSZones201ResponseDNSZoneNormalizer.php b/src/Normalizer/PostOrganizationsOrganizationDNSZones201ResponseDNSZoneNormalizer.php new file mode 100644 index 00000000..aaa9725a --- /dev/null +++ b/src/Normalizer/PostOrganizationsOrganizationDNSZones201ResponseDNSZoneNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('default_ttl', $data)) { + $object->setDefaultTtl($data['default_ttl']); + unset($data['default_ttl']); + } + if (\array_key_exists('verified', $data)) { + $object->setVerified($data['verified']); + unset($data['verified']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('defaultTtl') && null !== $object->getDefaultTtl()) { + $data['default_ttl'] = $object->getDefaultTtl(); + } + if ($object->isInitialized('verified') && null !== $object->getVerified()) { + $data['verified'] = $object->getVerified(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostOrganizationsOrganizationDNSZones201ResponseDNSZone' => false]; + } +} diff --git a/src/Normalizer/PostSecurityGroupRules200ResponseSecurityGroupRuleNormalizer.php b/src/Normalizer/PostSecurityGroupRules200ResponseSecurityGroupRuleNormalizer.php new file mode 100644 index 00000000..1af6116c --- /dev/null +++ b/src/Normalizer/PostSecurityGroupRules200ResponseSecurityGroupRuleNormalizer.php @@ -0,0 +1,144 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('security_group', $data)) { + $object->setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostSecurityGroupRulesPartSecurityGroup', 'json', $context)); + unset($data['security_group']); + } + if (\array_key_exists('direction', $data)) { + $object->setDirection($data['direction']); + unset($data['direction']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('action', $data)) { + $object->setAction($data['action']); + unset($data['action']); + } + if (\array_key_exists('ports', $data)) { + $object->setPorts($data['ports']); + unset($data['ports']); + } + if (\array_key_exists('targets', $data)) { + $values = []; + foreach ($data['targets'] as $value) { + $values[] = $value; + } + $object->setTargets($values); + unset($data['targets']); + } + if (\array_key_exists('notes', $data)) { + $object->setNotes($data['notes']); + unset($data['notes']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('securityGroup') && null !== $object->getSecurityGroup()) { + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + } + if ($object->isInitialized('direction') && null !== $object->getDirection()) { + $data['direction'] = $object->getDirection(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('action') && null !== $object->getAction()) { + $data['action'] = $object->getAction(); + } + if ($object->isInitialized('ports') && null !== $object->getPorts()) { + $data['ports'] = $object->getPorts(); + } + if ($object->isInitialized('targets') && null !== $object->getTargets()) { + $values = []; + foreach ($object->getTargets() as $value) { + $values[] = $value; + } + $data['targets'] = $values; + } + if ($object->isInitialized('notes') && null !== $object->getNotes()) { + $data['notes'] = $object->getNotes(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostSecurityGroupRules200ResponseSecurityGroupRule' => false]; + } +} diff --git a/src/Normalizer/PostSecurityGroupRulesPartSecurityGroupNormalizer.php b/src/Normalizer/PostSecurityGroupRulesPartSecurityGroupNormalizer.php new file mode 100644 index 00000000..07c20c57 --- /dev/null +++ b/src/Normalizer/PostSecurityGroupRulesPartSecurityGroupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostSecurityGroupRulesPartSecurityGroup' => false]; + } +} diff --git a/src/Normalizer/PostVirtualMachineConsoleSessions201ResponseConsoleSessionNormalizer.php b/src/Normalizer/PostVirtualMachineConsoleSessions201ResponseConsoleSessionNormalizer.php new file mode 100644 index 00000000..4de6c62e --- /dev/null +++ b/src/Normalizer/PostVirtualMachineConsoleSessions201ResponseConsoleSessionNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('url', $data)) { + $object->setUrl($data['url']); + unset($data['url']); + } + if (\array_key_exists('expires_at', $data)) { + $object->setExpiresAt($data['expires_at']); + unset($data['expires_at']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineConsoleSessionsPartVirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + if ($object->isInitialized('expiresAt') && null !== $object->getExpiresAt()) { + $data['expires_at'] = $object->getExpiresAt(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineConsoleSessions201ResponseConsoleSession' => false]; + } +} diff --git a/src/Normalizer/PostVirtualMachineConsoleSessionsPartVirtualMachineNormalizer.php b/src/Normalizer/PostVirtualMachineConsoleSessionsPartVirtualMachineNormalizer.php new file mode 100644 index 00000000..f3a34be2 --- /dev/null +++ b/src/Normalizer/PostVirtualMachineConsoleSessionsPartVirtualMachineNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineConsoleSessionsPartVirtualMachine' => false]; + } +} diff --git a/src/Normalizer/PostVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicyNormalizer.php b/src/Normalizer/PostVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicyNormalizer.php new file mode 100644 index 00000000..77797acf --- /dev/null +++ b/src/Normalizer/PostVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicyNormalizer.php @@ -0,0 +1,125 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('retention', $data)) { + $object->setRetention($data['retention']); + unset($data['retention']); + } + if (\array_key_exists('total_size', $data)) { + $object->setTotalSize($data['total_size']); + unset($data['total_size']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineDiskBackupPoliciesPartSchedule', 'json', $context)); + unset($data['schedule']); + } + if (\array_key_exists('auto_move_to_trash_at', $data)) { + $object->setAutoMoveToTrashAt($data['auto_move_to_trash_at']); + unset($data['auto_move_to_trash_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('retention') && null !== $object->getRetention()) { + $data['retention'] = $object->getRetention(); + } + if ($object->isInitialized('totalSize') && null !== $object->getTotalSize()) { + $data['total_size'] = $object->getTotalSize(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + if ($object->isInitialized('autoMoveToTrashAt') && null !== $object->getAutoMoveToTrashAt()) { + $data['auto_move_to_trash_at'] = $object->getAutoMoveToTrashAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicy' => false]; + } +} diff --git a/src/Normalizer/PostVirtualMachineDiskBackupPoliciesPartScheduleNormalizer.php b/src/Normalizer/PostVirtualMachineDiskBackupPoliciesPartScheduleNormalizer.php new file mode 100644 index 00000000..d84c6068 --- /dev/null +++ b/src/Normalizer/PostVirtualMachineDiskBackupPoliciesPartScheduleNormalizer.php @@ -0,0 +1,115 @@ +setFrequency($data['frequency']); + unset($data['frequency']); + } + if (\array_key_exists('interval', $data)) { + $object->setInterval($data['interval']); + unset($data['interval']); + } + if (\array_key_exists('minute', $data)) { + $object->setMinute($data['minute']); + unset($data['minute']); + } + if (\array_key_exists('next_invocation_at', $data)) { + $object->setNextInvocationAt($data['next_invocation_at']); + unset($data['next_invocation_at']); + } + if (\array_key_exists('time', $data)) { + $object->setTime($data['time']); + unset($data['time']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('frequency') && null !== $object->getFrequency()) { + $data['frequency'] = $object->getFrequency(); + } + if ($object->isInitialized('interval') && null !== $object->getInterval()) { + $data['interval'] = $object->getInterval(); + } + if ($object->isInitialized('minute') && null !== $object->getMinute()) { + $data['minute'] = $object->getMinute(); + } + if ($object->isInitialized('nextInvocationAt') && null !== $object->getNextInvocationAt()) { + $data['next_invocation_at'] = $object->getNextInvocationAt(); + } + if ($object->isInitialized('time') && null !== $object->getTime()) { + $data['time'] = $object->getTime(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineDiskBackupPoliciesPartSchedule' => false]; + } +} diff --git a/src/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNormalizer.php b/src/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..3bf43bd6 --- /dev/null +++ b/src/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface' => false]; + } +} diff --git a/src/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddressesNormalizer.php b/src/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddressesNormalizer.php new file mode 100644 index 00000000..5199bc25 --- /dev/null +++ b/src/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddressesNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses' => false]; + } +} diff --git a/src/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartNetworkNormalizer.php b/src/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartNetworkNormalizer.php new file mode 100644 index 00000000..b863bf72 --- /dev/null +++ b/src/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartNetworkNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork' => false]; + } +} diff --git a/src/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachineNormalizer.php b/src/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachineNormalizer.php new file mode 100644 index 00000000..874627b0 --- /dev/null +++ b/src/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachineNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine' => false]; + } +} diff --git a/src/Normalizer/PostVirtualMachineReset200ResponseTaskNormalizer.php b/src/Normalizer/PostVirtualMachineReset200ResponseTaskNormalizer.php new file mode 100644 index 00000000..90e6ef3b --- /dev/null +++ b/src/Normalizer/PostVirtualMachineReset200ResponseTaskNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineReset200ResponseTask' => false]; + } +} diff --git a/src/Normalizer/PostVirtualMachineShutdown200ResponseTaskNormalizer.php b/src/Normalizer/PostVirtualMachineShutdown200ResponseTaskNormalizer.php new file mode 100644 index 00000000..52ec10dc --- /dev/null +++ b/src/Normalizer/PostVirtualMachineShutdown200ResponseTaskNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineShutdown200ResponseTask' => false]; + } +} diff --git a/src/Normalizer/PostVirtualMachineStart200ResponseTaskNormalizer.php b/src/Normalizer/PostVirtualMachineStart200ResponseTaskNormalizer.php new file mode 100644 index 00000000..4492e049 --- /dev/null +++ b/src/Normalizer/PostVirtualMachineStart200ResponseTaskNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineStart200ResponseTask' => false]; + } +} diff --git a/src/Normalizer/PostVirtualMachineStop200ResponseTaskNormalizer.php b/src/Normalizer/PostVirtualMachineStop200ResponseTaskNormalizer.php new file mode 100644 index 00000000..1e872c42 --- /dev/null +++ b/src/Normalizer/PostVirtualMachineStop200ResponseTaskNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineStop200ResponseTask' => false]; + } +} diff --git a/src/Normalizer/RateLimitReachedNormalizer.php b/src/Normalizer/RateLimitReachedNormalizer.php new file mode 100644 index 00000000..f1b3058f --- /dev/null +++ b/src/Normalizer/RateLimitReachedNormalizer.php @@ -0,0 +1,87 @@ +setTotalPermitted($data['total_permitted']); + unset($data['total_permitted']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('totalPermitted') && null !== $object->getTotalPermitted()) { + $data['total_permitted'] = $object->getTotalPermitted(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RateLimitReached' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForAAAANormalizer.php b/src/Normalizer/RecordContentAttributesForAAAANormalizer.php new file mode 100644 index 00000000..a2bade40 --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForAAAANormalizer.php @@ -0,0 +1,87 @@ +setIpAddress($data['ip_address']); + unset($data['ip_address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('ipAddress') && null !== $object->getIpAddress()) { + $data['ip_address'] = $object->getIpAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForAAAA' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForALIASNormalizer.php b/src/Normalizer/RecordContentAttributesForALIASNormalizer.php new file mode 100644 index 00000000..6b9cf746 --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForALIASNormalizer.php @@ -0,0 +1,87 @@ +setHostname($data['hostname']); + unset($data['hostname']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForALIAS' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForANormalizer.php b/src/Normalizer/RecordContentAttributesForANormalizer.php new file mode 100644 index 00000000..60781487 --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForANormalizer.php @@ -0,0 +1,87 @@ +setIpAddress($data['ip_address']); + unset($data['ip_address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('ipAddress') && null !== $object->getIpAddress()) { + $data['ip_address'] = $object->getIpAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForA' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForCAANormalizer.php b/src/Normalizer/RecordContentAttributesForCAANormalizer.php new file mode 100644 index 00000000..df913775 --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForCAANormalizer.php @@ -0,0 +1,101 @@ +setFlag($data['flag']); + unset($data['flag']); + } + if (\array_key_exists('tag', $data)) { + $object->setTag($data['tag']); + unset($data['tag']); + } + if (\array_key_exists('value', $data)) { + $object->setValue($data['value']); + unset($data['value']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('flag') && null !== $object->getFlag()) { + $data['flag'] = $object->getFlag(); + } + if ($object->isInitialized('tag') && null !== $object->getTag()) { + $data['tag'] = $object->getTag(); + } + if ($object->isInitialized('value') && null !== $object->getValue()) { + $data['value'] = $object->getValue(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForCAA' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForCNAMENormalizer.php b/src/Normalizer/RecordContentAttributesForCNAMENormalizer.php new file mode 100644 index 00000000..fbc0ced2 --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForCNAMENormalizer.php @@ -0,0 +1,87 @@ +setHostname($data['hostname']); + unset($data['hostname']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForCNAME' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForIPSNormalizer.php b/src/Normalizer/RecordContentAttributesForIPSNormalizer.php new file mode 100644 index 00000000..1e734c89 --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForIPSNormalizer.php @@ -0,0 +1,87 @@ +setIpAddresses($data['ip_addresses']); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $data['ip_addresses'] = $object->getIpAddresses(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForIPS' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForMXNormalizer.php b/src/Normalizer/RecordContentAttributesForMXNormalizer.php new file mode 100644 index 00000000..3584f24b --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForMXNormalizer.php @@ -0,0 +1,87 @@ +setHostname($data['hostname']); + unset($data['hostname']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForMX' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForNSNormalizer.php b/src/Normalizer/RecordContentAttributesForNSNormalizer.php new file mode 100644 index 00000000..802ec89f --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForNSNormalizer.php @@ -0,0 +1,87 @@ +setHostname($data['hostname']); + unset($data['hostname']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForNS' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForPTRNormalizer.php b/src/Normalizer/RecordContentAttributesForPTRNormalizer.php new file mode 100644 index 00000000..db3de5b1 --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForPTRNormalizer.php @@ -0,0 +1,87 @@ +setHostname($data['hostname']); + unset($data['hostname']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForPTR' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForSRVNormalizer.php b/src/Normalizer/RecordContentAttributesForSRVNormalizer.php new file mode 100644 index 00000000..ca9c26d0 --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForSRVNormalizer.php @@ -0,0 +1,101 @@ +setWeight($data['weight']); + unset($data['weight']); + } + if (\array_key_exists('port', $data)) { + $object->setPort($data['port']); + unset($data['port']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($data['target']); + unset($data['target']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('weight') && null !== $object->getWeight()) { + $data['weight'] = $object->getWeight(); + } + if ($object->isInitialized('port') && null !== $object->getPort()) { + $data['port'] = $object->getPort(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $object->getTarget(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForSRV' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForSSHFPNormalizer.php b/src/Normalizer/RecordContentAttributesForSSHFPNormalizer.php new file mode 100644 index 00000000..34aba29d --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForSSHFPNormalizer.php @@ -0,0 +1,101 @@ +setAlgorithm($data['algorithm']); + unset($data['algorithm']); + } + if (\array_key_exists('fingerprint_type', $data)) { + $object->setFingerprintType($data['fingerprint_type']); + unset($data['fingerprint_type']); + } + if (\array_key_exists('fingerprint', $data)) { + $object->setFingerprint($data['fingerprint']); + unset($data['fingerprint']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('algorithm') && null !== $object->getAlgorithm()) { + $data['algorithm'] = $object->getAlgorithm(); + } + if ($object->isInitialized('fingerprintType') && null !== $object->getFingerprintType()) { + $data['fingerprint_type'] = $object->getFingerprintType(); + } + if ($object->isInitialized('fingerprint') && null !== $object->getFingerprint()) { + $data['fingerprint'] = $object->getFingerprint(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForSSHFP' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForTXTNormalizer.php b/src/Normalizer/RecordContentAttributesForTXTNormalizer.php new file mode 100644 index 00000000..a7baf786 --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForTXTNormalizer.php @@ -0,0 +1,87 @@ +setContent($data['content']); + unset($data['content']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('content') && null !== $object->getContent()) { + $data['content'] = $object->getContent(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForTXT' => false]; + } +} diff --git a/src/Normalizer/RecordContentAttributesForVirtualMachineNormalizer.php b/src/Normalizer/RecordContentAttributesForVirtualMachineNormalizer.php new file mode 100644 index 00000000..9fd4ad8c --- /dev/null +++ b/src/Normalizer/RecordContentAttributesForVirtualMachineNormalizer.php @@ -0,0 +1,87 @@ +setVirtualMachine($data['virtual_machine']); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $object->getVirtualMachine(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\RecordContentAttributesForVirtualMachine' => false]; + } +} diff --git a/src/Normalizer/ResourceCreationRestrictedNormalizer.php b/src/Normalizer/ResourceCreationRestrictedNormalizer.php new file mode 100644 index 00000000..105946d2 --- /dev/null +++ b/src/Normalizer/ResourceCreationRestrictedNormalizer.php @@ -0,0 +1,95 @@ +setErrors($values); + unset($data['errors']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('errors') && null !== $object->getErrors()) { + $values = []; + foreach ($object->getErrors() as $value) { + $values[] = $value; + } + $data['errors'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResourceCreationRestricted' => false]; + } +} diff --git a/src/Normalizer/ResourceCreationRestrictedSchemaNormalizer.php b/src/Normalizer/ResourceCreationRestrictedSchemaNormalizer.php new file mode 100644 index 00000000..83525f9a --- /dev/null +++ b/src/Normalizer/ResourceCreationRestrictedSchemaNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\ResourceCreationRestricted', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResourceCreationRestrictedSchema' => false]; + } +} diff --git a/src/Normalizer/ResponseAPIAuthenticator400ResponseNormalizer.php b/src/Normalizer/ResponseAPIAuthenticator400ResponseNormalizer.php new file mode 100644 index 00000000..b2248b08 --- /dev/null +++ b/src/Normalizer/ResponseAPIAuthenticator400ResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator400Response' => false]; + } +} diff --git a/src/Normalizer/ResponseAPIAuthenticator429ResponseNormalizer.php b/src/Normalizer/ResponseAPIAuthenticator429ResponseNormalizer.php new file mode 100644 index 00000000..317cda05 --- /dev/null +++ b/src/Normalizer/ResponseAPIAuthenticator429ResponseNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\RateLimitReached', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseAPIAuthenticator429Response' => false]; + } +} diff --git a/src/Normalizer/ResponseCertificateNotFoundResponseNormalizer.php b/src/Normalizer/ResponseCertificateNotFoundResponseNormalizer.php new file mode 100644 index 00000000..1d787b5a --- /dev/null +++ b/src/Normalizer/ResponseCertificateNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCertificateNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseCountryNotFoundResponseNormalizer.php b/src/Normalizer/ResponseCountryNotFoundResponseNormalizer.php new file mode 100644 index 00000000..33417686 --- /dev/null +++ b/src/Normalizer/ResponseCountryNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCountryNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseCountryStateNotFoundResponseNormalizer.php b/src/Normalizer/ResponseCountryStateNotFoundResponseNormalizer.php new file mode 100644 index 00000000..5580e909 --- /dev/null +++ b/src/Normalizer/ResponseCountryStateNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCountryStateNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseCurrencyNotFoundResponseNormalizer.php b/src/Normalizer/ResponseCurrencyNotFoundResponseNormalizer.php new file mode 100644 index 00000000..b41c7863 --- /dev/null +++ b/src/Normalizer/ResponseCurrencyNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseCurrencyNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseDNSRecordNotFoundResponseNormalizer.php b/src/Normalizer/ResponseDNSRecordNotFoundResponseNormalizer.php new file mode 100644 index 00000000..3f508d3e --- /dev/null +++ b/src/Normalizer/ResponseDNSRecordNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSRecordNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseDNSZoneAlreadyVerifiedResponseNormalizer.php b/src/Normalizer/ResponseDNSZoneAlreadyVerifiedResponseNormalizer.php new file mode 100644 index 00000000..c398e92f --- /dev/null +++ b/src/Normalizer/ResponseDNSZoneAlreadyVerifiedResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneAlreadyVerifiedResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseDNSZoneNotFoundResponseNormalizer.php b/src/Normalizer/ResponseDNSZoneNotFoundResponseNormalizer.php new file mode 100644 index 00000000..8ecac84b --- /dev/null +++ b/src/Normalizer/ResponseDNSZoneNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseDNSZoneNotVerifiedResponseNormalizer.php b/src/Normalizer/ResponseDNSZoneNotVerifiedResponseNormalizer.php new file mode 100644 index 00000000..6793c1e8 --- /dev/null +++ b/src/Normalizer/ResponseDNSZoneNotVerifiedResponseNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DNSZoneNotVerified', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDNSZoneNotVerifiedResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseDataCenterNotFoundResponseNormalizer.php b/src/Normalizer/ResponseDataCenterNotFoundResponseNormalizer.php new file mode 100644 index 00000000..ba76ba1e --- /dev/null +++ b/src/Normalizer/ResponseDataCenterNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDataCenterNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseDeletionRestrictedResponseNormalizer.php b/src/Normalizer/ResponseDeletionRestrictedResponseNormalizer.php new file mode 100644 index 00000000..cffaa79b --- /dev/null +++ b/src/Normalizer/ResponseDeletionRestrictedResponseNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeletionRestricted', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDeletionRestrictedResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseDiskBackupPolicyNotFoundResponseNormalizer.php b/src/Normalizer/ResponseDiskBackupPolicyNotFoundResponseNormalizer.php new file mode 100644 index 00000000..9d5d0674 --- /dev/null +++ b/src/Normalizer/ResponseDiskBackupPolicyNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskBackupPolicyNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseDiskNotFoundResponseNormalizer.php b/src/Normalizer/ResponseDiskNotFoundResponseNormalizer.php new file mode 100644 index 00000000..5d0c7fbd --- /dev/null +++ b/src/Normalizer/ResponseDiskNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseDiskTemplateNotFoundResponseNormalizer.php b/src/Normalizer/ResponseDiskTemplateNotFoundResponseNormalizer.php new file mode 100644 index 00000000..0b92aab7 --- /dev/null +++ b/src/Normalizer/ResponseDiskTemplateNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskTemplateNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseDiskTemplateVersionNotFoundResponseNormalizer.php b/src/Normalizer/ResponseDiskTemplateVersionNotFoundResponseNormalizer.php new file mode 100644 index 00000000..db1be0f6 --- /dev/null +++ b/src/Normalizer/ResponseDiskTemplateVersionNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseDiskTemplateVersionNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseFileStorageVolumeNotFoundResponseNormalizer.php b/src/Normalizer/ResponseFileStorageVolumeNotFoundResponseNormalizer.php new file mode 100644 index 00000000..770039bc --- /dev/null +++ b/src/Normalizer/ResponseFileStorageVolumeNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseFileStorageVolumeNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseGPUTypeNotFoundResponseNormalizer.php b/src/Normalizer/ResponseGPUTypeNotFoundResponseNormalizer.php new file mode 100644 index 00000000..abc4b8e0 --- /dev/null +++ b/src/Normalizer/ResponseGPUTypeNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseGPUTypeNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseIPAddressNotFoundResponseNormalizer.php b/src/Normalizer/ResponseIPAddressNotFoundResponseNormalizer.php new file mode 100644 index 00000000..0c15cb4e --- /dev/null +++ b/src/Normalizer/ResponseIPAddressNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseIPAddressNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseLoadBalancerNotFoundResponseNormalizer.php b/src/Normalizer/ResponseLoadBalancerNotFoundResponseNormalizer.php new file mode 100644 index 00000000..e274f98c --- /dev/null +++ b/src/Normalizer/ResponseLoadBalancerNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseLoadBalancerRuleNotFoundResponseNormalizer.php b/src/Normalizer/ResponseLoadBalancerRuleNotFoundResponseNormalizer.php new file mode 100644 index 00000000..3371ac96 --- /dev/null +++ b/src/Normalizer/ResponseLoadBalancerRuleNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseLoadBalancerRuleNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseNetworkNotFoundResponseNormalizer.php b/src/Normalizer/ResponseNetworkNotFoundResponseNormalizer.php new file mode 100644 index 00000000..09c24595 --- /dev/null +++ b/src/Normalizer/ResponseNetworkNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNetworkNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseNoAllocationResponseNormalizer.php b/src/Normalizer/ResponseNoAllocationResponseNormalizer.php new file mode 100644 index 00000000..8cfc75fe --- /dev/null +++ b/src/Normalizer/ResponseNoAllocationResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoAllocationResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseNoAvailableAddressesResponseNormalizer.php b/src/Normalizer/ResponseNoAvailableAddressesResponseNormalizer.php new file mode 100644 index 00000000..909f0511 --- /dev/null +++ b/src/Normalizer/ResponseNoAvailableAddressesResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoAvailableAddressesResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseNoUserAssociatedWithIdentityResponseNormalizer.php b/src/Normalizer/ResponseNoUserAssociatedWithIdentityResponseNormalizer.php new file mode 100644 index 00000000..1128efeb --- /dev/null +++ b/src/Normalizer/ResponseNoUserAssociatedWithIdentityResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseNoUserAssociatedWithIdentityResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseObjectInTrashResponseNormalizer.php b/src/Normalizer/ResponseObjectInTrashResponseNormalizer.php new file mode 100644 index 00000000..8b9f627f --- /dev/null +++ b/src/Normalizer/ResponseObjectInTrashResponseNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\ObjectInTrash', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseObjectInTrashResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseOperatingSystemNotFoundResponseNormalizer.php b/src/Normalizer/ResponseOperatingSystemNotFoundResponseNormalizer.php new file mode 100644 index 00000000..ce34bdd1 --- /dev/null +++ b/src/Normalizer/ResponseOperatingSystemNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOperatingSystemNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseOrganizationNotFoundResponseNormalizer.php b/src/Normalizer/ResponseOrganizationNotFoundResponseNormalizer.php new file mode 100644 index 00000000..0ebb88a9 --- /dev/null +++ b/src/Normalizer/ResponseOrganizationNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseOrganizationNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseResourceDoesNotSupportUnallocationResponseNormalizer.php b/src/Normalizer/ResponseResourceDoesNotSupportUnallocationResponseNormalizer.php new file mode 100644 index 00000000..91a7e0ca --- /dev/null +++ b/src/Normalizer/ResponseResourceDoesNotSupportUnallocationResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseResourceDoesNotSupportUnallocationResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseSSHKeyNotFoundResponseNormalizer.php b/src/Normalizer/ResponseSSHKeyNotFoundResponseNormalizer.php new file mode 100644 index 00000000..8dcc31ef --- /dev/null +++ b/src/Normalizer/ResponseSSHKeyNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSSHKeyNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseSecurityGroupNotFoundResponseNormalizer.php b/src/Normalizer/ResponseSecurityGroupNotFoundResponseNormalizer.php new file mode 100644 index 00000000..e8fb3634 --- /dev/null +++ b/src/Normalizer/ResponseSecurityGroupNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseSecurityGroupRuleNotFoundResponseNormalizer.php b/src/Normalizer/ResponseSecurityGroupRuleNotFoundResponseNormalizer.php new file mode 100644 index 00000000..1f133796 --- /dev/null +++ b/src/Normalizer/ResponseSecurityGroupRuleNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSecurityGroupRuleNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseSpeedProfileAlreadyAssignedResponseNormalizer.php b/src/Normalizer/ResponseSpeedProfileAlreadyAssignedResponseNormalizer.php new file mode 100644 index 00000000..2557a3ad --- /dev/null +++ b/src/Normalizer/ResponseSpeedProfileAlreadyAssignedResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseSpeedProfileAlreadyAssignedResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseTagNotFoundResponseNormalizer.php b/src/Normalizer/ResponseTagNotFoundResponseNormalizer.php new file mode 100644 index 00000000..27f1b4e8 --- /dev/null +++ b/src/Normalizer/ResponseTagNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTagNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseTaskNotFoundResponseNormalizer.php b/src/Normalizer/ResponseTaskNotFoundResponseNormalizer.php new file mode 100644 index 00000000..e8e798e0 --- /dev/null +++ b/src/Normalizer/ResponseTaskNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTaskNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseTaskQueueingErrorResponseNormalizer.php b/src/Normalizer/ResponseTaskQueueingErrorResponseNormalizer.php new file mode 100644 index 00000000..8369949c --- /dev/null +++ b/src/Normalizer/ResponseTaskQueueingErrorResponseNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TaskQueueingError', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTaskQueueingErrorResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseTrashObjectNotFoundResponseNormalizer.php b/src/Normalizer/ResponseTrashObjectNotFoundResponseNormalizer.php new file mode 100644 index 00000000..c05bc178 --- /dev/null +++ b/src/Normalizer/ResponseTrashObjectNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseTrashObjectNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseValidationErrorResponseNormalizer.php b/src/Normalizer/ResponseValidationErrorResponseNormalizer.php new file mode 100644 index 00000000..4464033e --- /dev/null +++ b/src/Normalizer/ResponseValidationErrorResponseNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\ValidationError', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseValidationErrorResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseVirtualMachineBuildNotFoundResponseNormalizer.php b/src/Normalizer/ResponseVirtualMachineBuildNotFoundResponseNormalizer.php new file mode 100644 index 00000000..f5403962 --- /dev/null +++ b/src/Normalizer/ResponseVirtualMachineBuildNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineBuildNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseVirtualMachineGroupNotFoundResponseNormalizer.php b/src/Normalizer/ResponseVirtualMachineGroupNotFoundResponseNormalizer.php new file mode 100644 index 00000000..79e94a5e --- /dev/null +++ b/src/Normalizer/ResponseVirtualMachineGroupNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineGroupNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseVirtualMachineNetworkInterfaceNotFoundResponseNormalizer.php b/src/Normalizer/ResponseVirtualMachineNetworkInterfaceNotFoundResponseNormalizer.php new file mode 100644 index 00000000..c9a55085 --- /dev/null +++ b/src/Normalizer/ResponseVirtualMachineNetworkInterfaceNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNetworkInterfaceNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseVirtualMachineNotFoundResponseNormalizer.php b/src/Normalizer/ResponseVirtualMachineNotFoundResponseNormalizer.php new file mode 100644 index 00000000..41f9d898 --- /dev/null +++ b/src/Normalizer/ResponseVirtualMachineNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachineNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseVirtualMachinePackageNotFoundResponseNormalizer.php b/src/Normalizer/ResponseVirtualMachinePackageNotFoundResponseNormalizer.php new file mode 100644 index 00000000..09f8cf04 --- /dev/null +++ b/src/Normalizer/ResponseVirtualMachinePackageNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseVirtualMachinePackageNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/ResponseZoneNotFoundResponseNormalizer.php b/src/Normalizer/ResponseZoneNotFoundResponseNormalizer.php new file mode 100644 index 00000000..d6ba838b --- /dev/null +++ b/src/Normalizer/ResponseZoneNotFoundResponseNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ResponseZoneNotFoundResponse' => false]; + } +} diff --git a/src/Normalizer/SRVNormalizer.php b/src/Normalizer/SRVNormalizer.php new file mode 100644 index 00000000..207b067b --- /dev/null +++ b/src/Normalizer/SRVNormalizer.php @@ -0,0 +1,108 @@ +setPriority($data['priority']); + unset($data['priority']); + } + if (\array_key_exists('weight', $data)) { + $object->setWeight($data['weight']); + unset($data['weight']); + } + if (\array_key_exists('port', $data)) { + $object->setPort($data['port']); + unset($data['port']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($data['target']); + unset($data['target']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('priority') && null !== $object->getPriority()) { + $data['priority'] = $object->getPriority(); + } + if ($object->isInitialized('weight') && null !== $object->getWeight()) { + $data['weight'] = $object->getWeight(); + } + if ($object->isInitialized('port') && null !== $object->getPort()) { + $data['port'] = $object->getPort(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $object->getTarget(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SRV' => false]; + } +} diff --git a/src/Normalizer/SSHFPNormalizer.php b/src/Normalizer/SSHFPNormalizer.php new file mode 100644 index 00000000..bb3789ab --- /dev/null +++ b/src/Normalizer/SSHFPNormalizer.php @@ -0,0 +1,101 @@ +setAlgorithm($data['algorithm']); + unset($data['algorithm']); + } + if (\array_key_exists('fingerprint_type', $data)) { + $object->setFingerprintType($data['fingerprint_type']); + unset($data['fingerprint_type']); + } + if (\array_key_exists('fingerprint', $data)) { + $object->setFingerprint($data['fingerprint']); + unset($data['fingerprint']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('algorithm') && null !== $object->getAlgorithm()) { + $data['algorithm'] = $object->getAlgorithm(); + } + if ($object->isInitialized('fingerprintType') && null !== $object->getFingerprintType()) { + $data['fingerprint_type'] = $object->getFingerprintType(); + } + if ($object->isInitialized('fingerprint') && null !== $object->getFingerprint()) { + $data['fingerprint'] = $object->getFingerprint(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SSHFP' => false]; + } +} diff --git a/src/Normalizer/ScheduleArgumentsNormalizer.php b/src/Normalizer/ScheduleArgumentsNormalizer.php new file mode 100644 index 00000000..57f35505 --- /dev/null +++ b/src/Normalizer/ScheduleArgumentsNormalizer.php @@ -0,0 +1,108 @@ +setFrequency($data['frequency']); + unset($data['frequency']); + } + if (\array_key_exists('interval', $data)) { + $object->setInterval($data['interval']); + unset($data['interval']); + } + if (\array_key_exists('minute', $data)) { + $object->setMinute($data['minute']); + unset($data['minute']); + } + if (\array_key_exists('time', $data)) { + $object->setTime($data['time']); + unset($data['time']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('frequency') && null !== $object->getFrequency()) { + $data['frequency'] = $object->getFrequency(); + } + if ($object->isInitialized('interval') && null !== $object->getInterval()) { + $data['interval'] = $object->getInterval(); + } + if ($object->isInitialized('minute') && null !== $object->getMinute()) { + $data['minute'] = $object->getMinute(); + } + if ($object->isInitialized('time') && null !== $object->getTime()) { + $data['time'] = $object->getTime(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ScheduleArguments' => false]; + } +} diff --git a/src/Normalizer/ScopeNotGrantedErrorNormalizer.php b/src/Normalizer/ScopeNotGrantedErrorNormalizer.php new file mode 100644 index 00000000..828cb5ab --- /dev/null +++ b/src/Normalizer/ScopeNotGrantedErrorNormalizer.php @@ -0,0 +1,95 @@ +setScopes($values); + unset($data['scopes']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('scopes') && null !== $object->getScopes()) { + $values = []; + foreach ($object->getScopes() as $value) { + $values[] = $value; + } + $data['scopes'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ScopeNotGrantedError' => false]; + } +} diff --git a/src/Normalizer/ScopeNotGrantedErrorSchemaNormalizer.php b/src/Normalizer/ScopeNotGrantedErrorSchemaNormalizer.php new file mode 100644 index 00000000..549996f4 --- /dev/null +++ b/src/Normalizer/ScopeNotGrantedErrorSchemaNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\ScopeNotGrantedError', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ScopeNotGrantedErrorSchema' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupArgumentsNormalizer.php b/src/Normalizer/SecurityGroupArgumentsNormalizer.php new file mode 100644 index 00000000..8ff24835 --- /dev/null +++ b/src/Normalizer/SecurityGroupArgumentsNormalizer.php @@ -0,0 +1,116 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('allow_all_inbound', $data)) { + $object->setAllowAllInbound($data['allow_all_inbound']); + unset($data['allow_all_inbound']); + } + if (\array_key_exists('allow_all_outbound', $data)) { + $object->setAllowAllOutbound($data['allow_all_outbound']); + unset($data['allow_all_outbound']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('allowAllInbound') && null !== $object->getAllowAllInbound()) { + $data['allow_all_inbound'] = $object->getAllowAllInbound(); + } + if ($object->isInitialized('allowAllOutbound') && null !== $object->getAllowAllOutbound()) { + $data['allow_all_outbound'] = $object->getAllowAllOutbound(); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupArguments' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupLookupNormalizer.php b/src/Normalizer/SecurityGroupLookupNormalizer.php new file mode 100644 index 00000000..dd064457 --- /dev/null +++ b/src/Normalizer/SecurityGroupLookupNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupLookup' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupNormalizer.php b/src/Normalizer/SecurityGroupNormalizer.php new file mode 100644 index 00000000..dd145129 --- /dev/null +++ b/src/Normalizer/SecurityGroupNormalizer.php @@ -0,0 +1,123 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('allow_all_inbound', $data)) { + $object->setAllowAllInbound($data['allow_all_inbound']); + unset($data['allow_all_inbound']); + } + if (\array_key_exists('allow_all_outbound', $data)) { + $object->setAllowAllOutbound($data['allow_all_outbound']); + unset($data['allow_all_outbound']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('allowAllInbound') && null !== $object->getAllowAllInbound()) { + $data['allow_all_inbound'] = $object->getAllowAllInbound(); + } + if ($object->isInitialized('allowAllOutbound') && null !== $object->getAllowAllOutbound()) { + $data['allow_all_outbound'] = $object->getAllowAllOutbound(); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroup' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupRuleArgumentsNormalizer.php b/src/Normalizer/SecurityGroupRuleArgumentsNormalizer.php new file mode 100644 index 00000000..feb904a4 --- /dev/null +++ b/src/Normalizer/SecurityGroupRuleArgumentsNormalizer.php @@ -0,0 +1,130 @@ +setDirection($data['direction']); + unset($data['direction']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('action', $data)) { + $object->setAction($data['action']); + unset($data['action']); + } + if (\array_key_exists('ports', $data)) { + $object->setPorts($data['ports']); + unset($data['ports']); + } + if (\array_key_exists('targets', $data)) { + $values = []; + foreach ($data['targets'] as $value) { + $values[] = $value; + } + $object->setTargets($values); + unset($data['targets']); + } + if (\array_key_exists('notes', $data)) { + $object->setNotes($data['notes']); + unset($data['notes']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('direction') && null !== $object->getDirection()) { + $data['direction'] = $object->getDirection(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('action') && null !== $object->getAction()) { + $data['action'] = $object->getAction(); + } + if ($object->isInitialized('ports') && null !== $object->getPorts()) { + $data['ports'] = $object->getPorts(); + } + if ($object->isInitialized('targets') && null !== $object->getTargets()) { + $values = []; + foreach ($object->getTargets() as $value) { + $values[] = $value; + } + $data['targets'] = $values; + } + if ($object->isInitialized('notes') && null !== $object->getNotes()) { + $data['notes'] = $object->getNotes(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupRuleArguments' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupRuleLookupNormalizer.php b/src/Normalizer/SecurityGroupRuleLookupNormalizer.php new file mode 100644 index 00000000..7346e7cf --- /dev/null +++ b/src/Normalizer/SecurityGroupRuleLookupNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupRuleLookup' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleDeleteBodyNormalizer.php b/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleDeleteBodyNormalizer.php new file mode 100644 index 00000000..faf0549b --- /dev/null +++ b/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setSecurityGroupRule($this->denormalizer->denormalize($data['security_group_rule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupRuleLookup', 'json', $context)); + unset($data['security_group_rule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group_rule'] = $this->normalizer->normalize($object->getSecurityGroupRule(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleDeleteBody' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleDeleteResponse200Normalizer.php b/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleDeleteResponse200Normalizer.php new file mode 100644 index 00000000..cd5c54e8 --- /dev/null +++ b/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleDeleteResponse200Normalizer.php @@ -0,0 +1,85 @@ +setSecurityGroupRule($this->denormalizer->denormalize($data['security_group_rule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRule', 'json', $context)); + unset($data['security_group_rule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group_rule'] = $this->normalizer->normalize($object->getSecurityGroupRule(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRuleNormalizer.php b/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRuleNormalizer.php new file mode 100644 index 00000000..6ae8f03c --- /dev/null +++ b/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRuleNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleDeleteResponse200SecurityGroupRule' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleGetResponse200Normalizer.php b/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleGetResponse200Normalizer.php new file mode 100644 index 00000000..739be0f9 --- /dev/null +++ b/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setSecurityGroupRule($this->denormalizer->denormalize($data['security_group_rule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRule', 'json', $context)); + unset($data['security_group_rule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group_rule'] = $this->normalizer->normalize($object->getSecurityGroupRule(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleGetResponse200' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRuleNormalizer.php b/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRuleNormalizer.php new file mode 100644 index 00000000..4d3e2eba --- /dev/null +++ b/src/Normalizer/SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRuleNormalizer.php @@ -0,0 +1,144 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('security_group', $data)) { + $object->setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetSecurityGroupsRulesSecurityGroupRulePartSecurityGroup', 'json', $context)); + unset($data['security_group']); + } + if (\array_key_exists('direction', $data)) { + $object->setDirection($data['direction']); + unset($data['direction']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('action', $data)) { + $object->setAction($data['action']); + unset($data['action']); + } + if (\array_key_exists('ports', $data)) { + $object->setPorts($data['ports']); + unset($data['ports']); + } + if (\array_key_exists('targets', $data)) { + $values = []; + foreach ($data['targets'] as $value) { + $values[] = $value; + } + $object->setTargets($values); + unset($data['targets']); + } + if (\array_key_exists('notes', $data)) { + $object->setNotes($data['notes']); + unset($data['notes']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('securityGroup') && null !== $object->getSecurityGroup()) { + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + } + if ($object->isInitialized('direction') && null !== $object->getDirection()) { + $data['direction'] = $object->getDirection(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('action') && null !== $object->getAction()) { + $data['action'] = $object->getAction(); + } + if ($object->isInitialized('ports') && null !== $object->getPorts()) { + $data['ports'] = $object->getPorts(); + } + if ($object->isInitialized('targets') && null !== $object->getTargets()) { + $values = []; + foreach ($object->getTargets() as $value) { + $values[] = $value; + } + $data['targets'] = $values; + } + if ($object->isInitialized('notes') && null !== $object->getNotes()) { + $data['notes'] = $object->getNotes(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRuleGetResponse200SecurityGroupRule' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsRulesSecurityGroupRulePatchBodyNormalizer.php b/src/Normalizer/SecurityGroupsRulesSecurityGroupRulePatchBodyNormalizer.php new file mode 100644 index 00000000..277aac20 --- /dev/null +++ b/src/Normalizer/SecurityGroupsRulesSecurityGroupRulePatchBodyNormalizer.php @@ -0,0 +1,90 @@ +setSecurityGroupRule($this->denormalizer->denormalize($data['security_group_rule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupRuleLookup', 'json', $context)); + unset($data['security_group_rule']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupRuleArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group_rule'] = $this->normalizer->normalize($object->getSecurityGroupRule(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRulePatchBody' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsRulesSecurityGroupRulePatchResponse200Normalizer.php b/src/Normalizer/SecurityGroupsRulesSecurityGroupRulePatchResponse200Normalizer.php new file mode 100644 index 00000000..a05b4d02 --- /dev/null +++ b/src/Normalizer/SecurityGroupsRulesSecurityGroupRulePatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setSecurityGroupRule($this->denormalizer->denormalize($data['security_group_rule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRule', 'json', $context)); + unset($data['security_group_rule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group_rule'] = $this->normalizer->normalize($object->getSecurityGroupRule(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRulePatchResponse200' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRuleNormalizer.php b/src/Normalizer/SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRuleNormalizer.php new file mode 100644 index 00000000..9f34339d --- /dev/null +++ b/src/Normalizer/SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRuleNormalizer.php @@ -0,0 +1,144 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('security_group', $data)) { + $object->setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchSecurityGroupsRulesSecurityGroupRulePartSecurityGroup', 'json', $context)); + unset($data['security_group']); + } + if (\array_key_exists('direction', $data)) { + $object->setDirection($data['direction']); + unset($data['direction']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('action', $data)) { + $object->setAction($data['action']); + unset($data['action']); + } + if (\array_key_exists('ports', $data)) { + $object->setPorts($data['ports']); + unset($data['ports']); + } + if (\array_key_exists('targets', $data)) { + $values = []; + foreach ($data['targets'] as $value) { + $values[] = $value; + } + $object->setTargets($values); + unset($data['targets']); + } + if (\array_key_exists('notes', $data)) { + $object->setNotes($data['notes']); + unset($data['notes']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('securityGroup') && null !== $object->getSecurityGroup()) { + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + } + if ($object->isInitialized('direction') && null !== $object->getDirection()) { + $data['direction'] = $object->getDirection(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('action') && null !== $object->getAction()) { + $data['action'] = $object->getAction(); + } + if ($object->isInitialized('ports') && null !== $object->getPorts()) { + $data['ports'] = $object->getPorts(); + } + if ($object->isInitialized('targets') && null !== $object->getTargets()) { + $values = []; + foreach ($object->getTargets() as $value) { + $values[] = $value; + } + $data['targets'] = $values; + } + if ($object->isInitialized('notes') && null !== $object->getNotes()) { + $data['notes'] = $object->getNotes(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsRulesSecurityGroupRulePatchResponse200SecurityGroupRule' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupDeleteBodyNormalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupDeleteBodyNormalizer.php new file mode 100644 index 00000000..ebd907a4 --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupLookup', 'json', $context)); + unset($data['security_group']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupDeleteBody' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupDeleteResponse200Normalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupDeleteResponse200Normalizer.php new file mode 100644 index 00000000..7a7832f0 --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupDeleteResponse200Normalizer.php @@ -0,0 +1,85 @@ +setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupDeleteResponse200SecurityGroup', 'json', $context)); + unset($data['security_group']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupDeleteResponse200SecurityGroupNormalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupDeleteResponse200SecurityGroupNormalizer.php new file mode 100644 index 00000000..69b99a17 --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupDeleteResponse200SecurityGroupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupDeleteResponse200SecurityGroup' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupGetResponse200Normalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupGetResponse200Normalizer.php new file mode 100644 index 00000000..511c06b5 --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupGetResponse200SecurityGroup', 'json', $context)); + unset($data['security_group']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupGetResponse200' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupGetResponse200SecurityGroupNormalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupGetResponse200SecurityGroupNormalizer.php new file mode 100644 index 00000000..c5c35254 --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupGetResponse200SecurityGroupNormalizer.php @@ -0,0 +1,123 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('allow_all_inbound', $data)) { + $object->setAllowAllInbound($data['allow_all_inbound']); + unset($data['allow_all_inbound']); + } + if (\array_key_exists('allow_all_outbound', $data)) { + $object->setAllowAllOutbound($data['allow_all_outbound']); + unset($data['allow_all_outbound']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('allowAllInbound') && null !== $object->getAllowAllInbound()) { + $data['allow_all_inbound'] = $object->getAllowAllInbound(); + } + if ($object->isInitialized('allowAllOutbound') && null !== $object->getAllowAllOutbound()) { + $data['allow_all_outbound'] = $object->getAllowAllOutbound(); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupGetResponse200SecurityGroup' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupPatchBodyNormalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupPatchBodyNormalizer.php new file mode 100644 index 00000000..68215749 --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupPatchBodyNormalizer.php @@ -0,0 +1,90 @@ +setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupLookup', 'json', $context)); + unset($data['security_group']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupPatchBody' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupPatchResponse200Normalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupPatchResponse200Normalizer.php new file mode 100644 index 00000000..aa27bb86 --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupPatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupPatchResponse200SecurityGroup', 'json', $context)); + unset($data['security_group']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupPatchResponse200' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupPatchResponse200SecurityGroupNormalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupPatchResponse200SecurityGroupNormalizer.php new file mode 100644 index 00000000..41226134 --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupPatchResponse200SecurityGroupNormalizer.php @@ -0,0 +1,123 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('allow_all_inbound', $data)) { + $object->setAllowAllInbound($data['allow_all_inbound']); + unset($data['allow_all_inbound']); + } + if (\array_key_exists('allow_all_outbound', $data)) { + $object->setAllowAllOutbound($data['allow_all_outbound']); + unset($data['allow_all_outbound']); + } + if (\array_key_exists('associations', $data)) { + $values = []; + foreach ($data['associations'] as $value) { + $values[] = $value; + } + $object->setAssociations($values); + unset($data['associations']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('allowAllInbound') && null !== $object->getAllowAllInbound()) { + $data['allow_all_inbound'] = $object->getAllowAllInbound(); + } + if ($object->isInitialized('allowAllOutbound') && null !== $object->getAllowAllOutbound()) { + $data['allow_all_outbound'] = $object->getAllowAllOutbound(); + } + if ($object->isInitialized('associations') && null !== $object->getAssociations()) { + $values = []; + foreach ($object->getAssociations() as $value) { + $values[] = $value; + } + $data['associations'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupPatchResponse200SecurityGroup' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupRulesGetResponse200Normalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupRulesGetResponse200Normalizer.php new file mode 100644 index 00000000..48e85669 --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupRulesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('security_group_rules', $data)) { + $values = []; + foreach ($data['security_group_rules'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetSecurityGroupRules200ResponseSecurityGroupRules', 'json', $context); + } + $object->setSecurityGroupRules($values); + unset($data['security_group_rules']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getSecurityGroupRules() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['security_group_rules'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupRulesGetResponse200PaginationNormalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupRulesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..2e81e756 --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupRulesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupRulesPostBodyNormalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupRulesPostBodyNormalizer.php new file mode 100644 index 00000000..32363c63 --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupRulesPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupLookup', 'json', $context)); + unset($data['security_group']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupRuleArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesPostBody' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupRulesPostResponse200Normalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupRulesPostResponse200Normalizer.php new file mode 100644 index 00000000..db9e8abd --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupRulesPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setSecurityGroupRule($this->denormalizer->denormalize($data['security_group_rule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRule', 'json', $context)); + unset($data['security_group_rule']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['security_group_rule'] = $this->normalizer->normalize($object->getSecurityGroupRule(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesPostResponse200' => false]; + } +} diff --git a/src/Normalizer/SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRuleNormalizer.php b/src/Normalizer/SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRuleNormalizer.php new file mode 100644 index 00000000..6cd69c15 --- /dev/null +++ b/src/Normalizer/SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRuleNormalizer.php @@ -0,0 +1,144 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('security_group', $data)) { + $object->setSecurityGroup($this->denormalizer->denormalize($data['security_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostSecurityGroupRulesPartSecurityGroup', 'json', $context)); + unset($data['security_group']); + } + if (\array_key_exists('direction', $data)) { + $object->setDirection($data['direction']); + unset($data['direction']); + } + if (\array_key_exists('protocol', $data)) { + $object->setProtocol($data['protocol']); + unset($data['protocol']); + } + if (\array_key_exists('action', $data)) { + $object->setAction($data['action']); + unset($data['action']); + } + if (\array_key_exists('ports', $data)) { + $object->setPorts($data['ports']); + unset($data['ports']); + } + if (\array_key_exists('targets', $data)) { + $values = []; + foreach ($data['targets'] as $value) { + $values[] = $value; + } + $object->setTargets($values); + unset($data['targets']); + } + if (\array_key_exists('notes', $data)) { + $object->setNotes($data['notes']); + unset($data['notes']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('securityGroup') && null !== $object->getSecurityGroup()) { + $data['security_group'] = $this->normalizer->normalize($object->getSecurityGroup(), 'json', $context); + } + if ($object->isInitialized('direction') && null !== $object->getDirection()) { + $data['direction'] = $object->getDirection(); + } + if ($object->isInitialized('protocol') && null !== $object->getProtocol()) { + $data['protocol'] = $object->getProtocol(); + } + if ($object->isInitialized('action') && null !== $object->getAction()) { + $data['action'] = $object->getAction(); + } + if ($object->isInitialized('ports') && null !== $object->getPorts()) { + $data['ports'] = $object->getPorts(); + } + if ($object->isInitialized('targets') && null !== $object->getTargets()) { + $values = []; + foreach ($object->getTargets() as $value) { + $values[] = $value; + } + $data['targets'] = $values; + } + if ($object->isInitialized('notes') && null !== $object->getNotes()) { + $data['notes'] = $object->getNotes(); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SecurityGroupsSecurityGroupRulesPostResponse200SecurityGroupRule' => false]; + } +} diff --git a/src/Normalizer/SshKeysSshKeyDeleteBodyNormalizer.php b/src/Normalizer/SshKeysSshKeyDeleteBodyNormalizer.php new file mode 100644 index 00000000..b92582f7 --- /dev/null +++ b/src/Normalizer/SshKeysSshKeyDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setSshKey($this->denormalizer->denormalize($data['ssh_key'], 'Krystal\\Katapult\\KatapultAPI\\Model\\AuthSSHKeyLookup', 'json', $context)); + unset($data['ssh_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['ssh_key'] = $this->normalizer->normalize($object->getSshKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SshKeysSshKeyDeleteBody' => false]; + } +} diff --git a/src/Normalizer/SshKeysSshKeyDeleteResponse200Normalizer.php b/src/Normalizer/SshKeysSshKeyDeleteResponse200Normalizer.php new file mode 100644 index 00000000..b32a0fb5 --- /dev/null +++ b/src/Normalizer/SshKeysSshKeyDeleteResponse200Normalizer.php @@ -0,0 +1,85 @@ +setSshKey($this->denormalizer->denormalize($data['ssh_key'], 'Krystal\\Katapult\\KatapultAPI\\Model\\SshKeysSshKeyDeleteResponse200SshKey', 'json', $context)); + unset($data['ssh_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['ssh_key'] = $this->normalizer->normalize($object->getSshKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SshKeysSshKeyDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/SshKeysSshKeyDeleteResponse200SshKeyNormalizer.php b/src/Normalizer/SshKeysSshKeyDeleteResponse200SshKeyNormalizer.php new file mode 100644 index 00000000..804bef72 --- /dev/null +++ b/src/Normalizer/SshKeysSshKeyDeleteResponse200SshKeyNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('fingerprint', $data)) { + $object->setFingerprint($data['fingerprint']); + unset($data['fingerprint']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('fingerprint') && null !== $object->getFingerprint()) { + $data['fingerprint'] = $object->getFingerprint(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\SshKeysSshKeyDeleteResponse200SshKey' => false]; + } +} diff --git a/src/Normalizer/TXTNormalizer.php b/src/Normalizer/TXTNormalizer.php new file mode 100644 index 00000000..a8086577 --- /dev/null +++ b/src/Normalizer/TXTNormalizer.php @@ -0,0 +1,87 @@ +setData($data['data']); + unset($data['data']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('data') && null !== $object->getData()) { + $data['data'] = $object->getData(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TXT' => false]; + } +} diff --git a/src/Normalizer/TagArgumentsNormalizer.php b/src/Normalizer/TagArgumentsNormalizer.php new file mode 100644 index 00000000..24f9d4a9 --- /dev/null +++ b/src/Normalizer/TagArgumentsNormalizer.php @@ -0,0 +1,94 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('color', $data)) { + $object->setColor($data['color']); + unset($data['color']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('color') && null !== $object->getColor()) { + $data['color'] = $object->getColor(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TagArguments' => false]; + } +} diff --git a/src/Normalizer/TagLookupNormalizer.php b/src/Normalizer/TagLookupNormalizer.php new file mode 100644 index 00000000..10afa2e3 --- /dev/null +++ b/src/Normalizer/TagLookupNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TagLookup' => false]; + } +} diff --git a/src/Normalizer/TagNormalizer.php b/src/Normalizer/TagNormalizer.php new file mode 100644 index 00000000..79d26db5 --- /dev/null +++ b/src/Normalizer/TagNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('color', $data)) { + $object->setColor($data['color']); + unset($data['color']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('color') && null !== $object->getColor()) { + $data['color'] = $object->getColor(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\Tag' => false]; + } +} diff --git a/src/Normalizer/TagsTagDeleteBodyNormalizer.php b/src/Normalizer/TagsTagDeleteBodyNormalizer.php new file mode 100644 index 00000000..7c3e5cf4 --- /dev/null +++ b/src/Normalizer/TagsTagDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setTag($this->denormalizer->denormalize($data['tag'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TagLookup', 'json', $context)); + unset($data['tag']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['tag'] = $this->normalizer->normalize($object->getTag(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagDeleteBody' => false]; + } +} diff --git a/src/Normalizer/TagsTagDeleteResponse200Normalizer.php b/src/Normalizer/TagsTagDeleteResponse200Normalizer.php new file mode 100644 index 00000000..7b1fb10e --- /dev/null +++ b/src/Normalizer/TagsTagDeleteResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTag($this->denormalizer->denormalize($data['tag'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagDeleteResponse200Tag', 'json', $context)); + unset($data['tag']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['tag'] = $this->normalizer->normalize($object->getTag(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/TagsTagDeleteResponse200TagNormalizer.php b/src/Normalizer/TagsTagDeleteResponse200TagNormalizer.php new file mode 100644 index 00000000..2aece59b --- /dev/null +++ b/src/Normalizer/TagsTagDeleteResponse200TagNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('color', $data)) { + $object->setColor($data['color']); + unset($data['color']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('color') && null !== $object->getColor()) { + $data['color'] = $object->getColor(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagDeleteResponse200Tag' => false]; + } +} diff --git a/src/Normalizer/TagsTagGetResponse200Normalizer.php b/src/Normalizer/TagsTagGetResponse200Normalizer.php new file mode 100644 index 00000000..adfed9ab --- /dev/null +++ b/src/Normalizer/TagsTagGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTag($this->denormalizer->denormalize($data['tag'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagGetResponse200Tag', 'json', $context)); + unset($data['tag']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['tag'] = $this->normalizer->normalize($object->getTag(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagGetResponse200' => false]; + } +} diff --git a/src/Normalizer/TagsTagGetResponse200TagNormalizer.php b/src/Normalizer/TagsTagGetResponse200TagNormalizer.php new file mode 100644 index 00000000..4473371f --- /dev/null +++ b/src/Normalizer/TagsTagGetResponse200TagNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('color', $data)) { + $object->setColor($data['color']); + unset($data['color']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('color') && null !== $object->getColor()) { + $data['color'] = $object->getColor(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagGetResponse200Tag' => false]; + } +} diff --git a/src/Normalizer/TagsTagPatchBodyNormalizer.php b/src/Normalizer/TagsTagPatchBodyNormalizer.php new file mode 100644 index 00000000..c2f46899 --- /dev/null +++ b/src/Normalizer/TagsTagPatchBodyNormalizer.php @@ -0,0 +1,90 @@ +setTag($this->denormalizer->denormalize($data['tag'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TagLookup', 'json', $context)); + unset($data['tag']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TagArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['tag'] = $this->normalizer->normalize($object->getTag(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagPatchBody' => false]; + } +} diff --git a/src/Normalizer/TagsTagPatchResponse200Normalizer.php b/src/Normalizer/TagsTagPatchResponse200Normalizer.php new file mode 100644 index 00000000..0ad14457 --- /dev/null +++ b/src/Normalizer/TagsTagPatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTag($this->denormalizer->denormalize($data['tag'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagPatchResponse200Tag', 'json', $context)); + unset($data['tag']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['tag'] = $this->normalizer->normalize($object->getTag(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagPatchResponse200' => false]; + } +} diff --git a/src/Normalizer/TagsTagPatchResponse200TagNormalizer.php b/src/Normalizer/TagsTagPatchResponse200TagNormalizer.php new file mode 100644 index 00000000..d5d58b74 --- /dev/null +++ b/src/Normalizer/TagsTagPatchResponse200TagNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('color', $data)) { + $object->setColor($data['color']); + unset($data['color']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('color') && null !== $object->getColor()) { + $data['color'] = $object->getColor(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TagsTagPatchResponse200Tag' => false]; + } +} diff --git a/src/Normalizer/TaskNormalizer.php b/src/Normalizer/TaskNormalizer.php new file mode 100644 index 00000000..bdbd9e80 --- /dev/null +++ b/src/Normalizer/TaskNormalizer.php @@ -0,0 +1,129 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('started_at', $data)) { + $object->setStartedAt($data['started_at']); + unset($data['started_at']); + } + if (\array_key_exists('finished_at', $data)) { + $object->setFinishedAt($data['finished_at']); + unset($data['finished_at']); + } + if (\array_key_exists('progress', $data)) { + $object->setProgress($data['progress']); + unset($data['progress']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('startedAt') && null !== $object->getStartedAt()) { + $data['started_at'] = $object->getStartedAt(); + } + if ($object->isInitialized('finishedAt') && null !== $object->getFinishedAt()) { + $data['finished_at'] = $object->getFinishedAt(); + } + if ($object->isInitialized('progress') && null !== $object->getProgress()) { + $data['progress'] = $object->getProgress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\Task' => false]; + } +} diff --git a/src/Normalizer/TaskQueueingErrorNormalizer.php b/src/Normalizer/TaskQueueingErrorNormalizer.php new file mode 100644 index 00000000..8ada1c36 --- /dev/null +++ b/src/Normalizer/TaskQueueingErrorNormalizer.php @@ -0,0 +1,87 @@ +setDetails($data['details']); + unset($data['details']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('details') && null !== $object->getDetails()) { + $data['details'] = $object->getDetails(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TaskQueueingError' => false]; + } +} diff --git a/src/Normalizer/TaskQueueingErrorSchemaNormalizer.php b/src/Normalizer/TaskQueueingErrorSchemaNormalizer.php new file mode 100644 index 00000000..6344ecf9 --- /dev/null +++ b/src/Normalizer/TaskQueueingErrorSchemaNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TaskQueueingError', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TaskQueueingErrorSchema' => false]; + } +} diff --git a/src/Normalizer/TasksTaskGetResponse200Normalizer.php b/src/Normalizer/TasksTaskGetResponse200Normalizer.php new file mode 100644 index 00000000..fd4806e6 --- /dev/null +++ b/src/Normalizer/TasksTaskGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTask($this->denormalizer->denormalize($data['task'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TasksTaskGetResponse200Task', 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TasksTaskGetResponse200' => false]; + } +} diff --git a/src/Normalizer/TasksTaskGetResponse200TaskNormalizer.php b/src/Normalizer/TasksTaskGetResponse200TaskNormalizer.php new file mode 100644 index 00000000..29da2a51 --- /dev/null +++ b/src/Normalizer/TasksTaskGetResponse200TaskNormalizer.php @@ -0,0 +1,129 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('started_at', $data)) { + $object->setStartedAt($data['started_at']); + unset($data['started_at']); + } + if (\array_key_exists('finished_at', $data)) { + $object->setFinishedAt($data['finished_at']); + unset($data['finished_at']); + } + if (\array_key_exists('progress', $data)) { + $object->setProgress($data['progress']); + unset($data['progress']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('startedAt') && null !== $object->getStartedAt()) { + $data['started_at'] = $object->getStartedAt(); + } + if ($object->isInitialized('finishedAt') && null !== $object->getFinishedAt()) { + $data['finished_at'] = $object->getFinishedAt(); + } + if ($object->isInitialized('progress') && null !== $object->getProgress()) { + $data['progress'] = $object->getProgress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TasksTaskGetResponse200Task' => false]; + } +} diff --git a/src/Normalizer/TemplateSpecFieldNormalizer.php b/src/Normalizer/TemplateSpecFieldNormalizer.php new file mode 100644 index 00000000..e9530873 --- /dev/null +++ b/src/Normalizer/TemplateSpecFieldNormalizer.php @@ -0,0 +1,129 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('type', $data)) { + $object->setType($data['type']); + unset($data['type']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('required', $data)) { + $object->setRequired($data['required']); + unset($data['required']); + } + if (\array_key_exists('placeholder', $data)) { + $object->setPlaceholder($data['placeholder']); + unset($data['placeholder']); + } + if (\array_key_exists('prefill', $data)) { + $object->setPrefill($data['prefill']); + unset($data['prefill']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $object->getType(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + if ($object->isInitialized('placeholder') && null !== $object->getPlaceholder()) { + $data['placeholder'] = $object->getPlaceholder(); + } + if ($object->isInitialized('prefill') && null !== $object->getPrefill()) { + $data['prefill'] = $object->getPrefill(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TemplateSpecField' => false]; + } +} diff --git a/src/Normalizer/TemplateSpecNormalizer.php b/src/Normalizer/TemplateSpecNormalizer.php new file mode 100644 index 00000000..d8c69049 --- /dev/null +++ b/src/Normalizer/TemplateSpecNormalizer.php @@ -0,0 +1,95 @@ +denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\TemplateSpecField', 'json', $context); + } + $object->setFields($values); + unset($data['fields']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('fields') && null !== $object->getFields()) { + $values = []; + foreach ($object->getFields() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['fields'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TemplateSpec' => false]; + } +} diff --git a/src/Normalizer/TrashObjectLookupNormalizer.php b/src/Normalizer/TrashObjectLookupNormalizer.php new file mode 100644 index 00000000..b3490e6a --- /dev/null +++ b/src/Normalizer/TrashObjectLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('object_id', $data)) { + $object->setObjectId($data['object_id']); + unset($data['object_id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('objectId') && null !== $object->getObjectId()) { + $data['object_id'] = $object->getObjectId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectLookup' => false]; + } +} diff --git a/src/Normalizer/TrashObjectNormalizer.php b/src/Normalizer/TrashObjectNormalizer.php new file mode 100644 index 00000000..aaf2fca0 --- /dev/null +++ b/src/Normalizer/TrashObjectNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('keep_until', $data)) { + $object->setKeepUntil($data['keep_until']); + unset($data['keep_until']); + } + if (\array_key_exists('object_id', $data)) { + $object->setObjectId($data['object_id']); + unset($data['object_id']); + } + if (\array_key_exists('object_type', $data)) { + $object->setObjectType($data['object_type']); + unset($data['object_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('keepUntil') && null !== $object->getKeepUntil()) { + $data['keep_until'] = $object->getKeepUntil(); + } + if ($object->isInitialized('objectId') && null !== $object->getObjectId()) { + $data['object_id'] = $object->getObjectId(); + } + if ($object->isInitialized('objectType') && null !== $object->getObjectType()) { + $data['object_type'] = $object->getObjectType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TrashObject' => false]; + } +} diff --git a/src/Normalizer/TrashObjectsTrashObjectDeleteBodyNormalizer.php b/src/Normalizer/TrashObjectsTrashObjectDeleteBodyNormalizer.php new file mode 100644 index 00000000..ac4f96c4 --- /dev/null +++ b/src/Normalizer/TrashObjectsTrashObjectDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setTrashObject($this->denormalizer->denormalize($data['trash_object'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectLookup', 'json', $context)); + unset($data['trash_object']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['trash_object'] = $this->normalizer->normalize($object->getTrashObject(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectDeleteBody' => false]; + } +} diff --git a/src/Normalizer/TrashObjectsTrashObjectDeleteResponse200Normalizer.php b/src/Normalizer/TrashObjectsTrashObjectDeleteResponse200Normalizer.php new file mode 100644 index 00000000..7e6858a7 --- /dev/null +++ b/src/Normalizer/TrashObjectsTrashObjectDeleteResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTask($this->denormalizer->denormalize($data['task'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectDeleteResponse200Task', 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/TrashObjectsTrashObjectDeleteResponse200TaskNormalizer.php b/src/Normalizer/TrashObjectsTrashObjectDeleteResponse200TaskNormalizer.php new file mode 100644 index 00000000..fc0850fc --- /dev/null +++ b/src/Normalizer/TrashObjectsTrashObjectDeleteResponse200TaskNormalizer.php @@ -0,0 +1,129 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('started_at', $data)) { + $object->setStartedAt($data['started_at']); + unset($data['started_at']); + } + if (\array_key_exists('finished_at', $data)) { + $object->setFinishedAt($data['finished_at']); + unset($data['finished_at']); + } + if (\array_key_exists('progress', $data)) { + $object->setProgress($data['progress']); + unset($data['progress']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('startedAt') && null !== $object->getStartedAt()) { + $data['started_at'] = $object->getStartedAt(); + } + if ($object->isInitialized('finishedAt') && null !== $object->getFinishedAt()) { + $data['finished_at'] = $object->getFinishedAt(); + } + if ($object->isInitialized('progress') && null !== $object->getProgress()) { + $data['progress'] = $object->getProgress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectDeleteResponse200Task' => false]; + } +} diff --git a/src/Normalizer/TrashObjectsTrashObjectGetResponse200Normalizer.php b/src/Normalizer/TrashObjectsTrashObjectGetResponse200Normalizer.php new file mode 100644 index 00000000..e3c456a1 --- /dev/null +++ b/src/Normalizer/TrashObjectsTrashObjectGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTrashObject($this->denormalizer->denormalize($data['trash_object'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectGetResponse200TrashObject', 'json', $context)); + unset($data['trash_object']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['trash_object'] = $this->normalizer->normalize($object->getTrashObject(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectGetResponse200' => false]; + } +} diff --git a/src/Normalizer/TrashObjectsTrashObjectGetResponse200TrashObjectNormalizer.php b/src/Normalizer/TrashObjectsTrashObjectGetResponse200TrashObjectNormalizer.php new file mode 100644 index 00000000..6cd92f33 --- /dev/null +++ b/src/Normalizer/TrashObjectsTrashObjectGetResponse200TrashObjectNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('keep_until', $data)) { + $object->setKeepUntil($data['keep_until']); + unset($data['keep_until']); + } + if (\array_key_exists('object_id', $data)) { + $object->setObjectId($data['object_id']); + unset($data['object_id']); + } + if (\array_key_exists('object_type', $data)) { + $object->setObjectType($data['object_type']); + unset($data['object_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('keepUntil') && null !== $object->getKeepUntil()) { + $data['keep_until'] = $object->getKeepUntil(); + } + if ($object->isInitialized('objectId') && null !== $object->getObjectId()) { + $data['object_id'] = $object->getObjectId(); + } + if ($object->isInitialized('objectType') && null !== $object->getObjectType()) { + $data['object_type'] = $object->getObjectType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectGetResponse200TrashObject' => false]; + } +} diff --git a/src/Normalizer/TrashObjectsTrashObjectRestorePostBodyNormalizer.php b/src/Normalizer/TrashObjectsTrashObjectRestorePostBodyNormalizer.php new file mode 100644 index 00000000..2683e25b --- /dev/null +++ b/src/Normalizer/TrashObjectsTrashObjectRestorePostBodyNormalizer.php @@ -0,0 +1,85 @@ +setTrashObject($this->denormalizer->denormalize($data['trash_object'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectLookup', 'json', $context)); + unset($data['trash_object']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['trash_object'] = $this->normalizer->normalize($object->getTrashObject(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectRestorePostBody' => false]; + } +} diff --git a/src/Normalizer/TrashObjectsTrashObjectRestorePostResponse200Normalizer.php b/src/Normalizer/TrashObjectsTrashObjectRestorePostResponse200Normalizer.php new file mode 100644 index 00000000..adbe7f4f --- /dev/null +++ b/src/Normalizer/TrashObjectsTrashObjectRestorePostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTrashObject($this->denormalizer->denormalize($data['trash_object'], 'Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectRestorePostResponse200TrashObject', 'json', $context)); + unset($data['trash_object']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['trash_object'] = $this->normalizer->normalize($object->getTrashObject(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectRestorePostResponse200' => false]; + } +} diff --git a/src/Normalizer/TrashObjectsTrashObjectRestorePostResponse200TrashObjectNormalizer.php b/src/Normalizer/TrashObjectsTrashObjectRestorePostResponse200TrashObjectNormalizer.php new file mode 100644 index 00000000..1fe9d4af --- /dev/null +++ b/src/Normalizer/TrashObjectsTrashObjectRestorePostResponse200TrashObjectNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('keep_until', $data)) { + $object->setKeepUntil($data['keep_until']); + unset($data['keep_until']); + } + if (\array_key_exists('object_id', $data)) { + $object->setObjectId($data['object_id']); + unset($data['object_id']); + } + if (\array_key_exists('object_type', $data)) { + $object->setObjectType($data['object_type']); + unset($data['object_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('keepUntil') && null !== $object->getKeepUntil()) { + $data['keep_until'] = $object->getKeepUntil(); + } + if ($object->isInitialized('objectId') && null !== $object->getObjectId()) { + $data['object_id'] = $object->getObjectId(); + } + if ($object->isInitialized('objectType') && null !== $object->getObjectType()) { + $data['object_type'] = $object->getObjectType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\TrashObjectsTrashObjectRestorePostResponse200TrashObject' => false]; + } +} diff --git a/src/Normalizer/UnauthorizedNetworkForAPITokenNormalizer.php b/src/Normalizer/UnauthorizedNetworkForAPITokenNormalizer.php new file mode 100644 index 00000000..cea23124 --- /dev/null +++ b/src/Normalizer/UnauthorizedNetworkForAPITokenNormalizer.php @@ -0,0 +1,87 @@ +setIpAddress($data['ip_address']); + unset($data['ip_address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('ipAddress') && null !== $object->getIpAddress()) { + $data['ip_address'] = $object->getIpAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\UnauthorizedNetworkForAPIToken' => false]; + } +} diff --git a/src/Normalizer/UnauthorizedNetworkForAPITokenSchemaNormalizer.php b/src/Normalizer/UnauthorizedNetworkForAPITokenSchemaNormalizer.php new file mode 100644 index 00000000..28282c71 --- /dev/null +++ b/src/Normalizer/UnauthorizedNetworkForAPITokenSchemaNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\UnauthorizedNetworkForAPIToken', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\UnauthorizedNetworkForAPITokenSchema' => false]; + } +} diff --git a/src/Normalizer/UserNormalizer.php b/src/Normalizer/UserNormalizer.php new file mode 100644 index 00000000..5efec849 --- /dev/null +++ b/src/Normalizer/UserNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('first_name', $data)) { + $object->setFirstName($data['first_name']); + unset($data['first_name']); + } + if (\array_key_exists('last_name', $data)) { + $object->setLastName($data['last_name']); + unset($data['last_name']); + } + if (\array_key_exists('avatar_url', $data)) { + $object->setAvatarUrl($data['avatar_url']); + unset($data['avatar_url']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('firstName') && null !== $object->getFirstName()) { + $data['first_name'] = $object->getFirstName(); + } + if ($object->isInitialized('lastName') && null !== $object->getLastName()) { + $data['last_name'] = $object->getLastName(); + } + if ($object->isInitialized('avatarUrl') && null !== $object->getAvatarUrl()) { + $data['avatar_url'] = $object->getAvatarUrl(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\User' => false]; + } +} diff --git a/src/Normalizer/UsersCurrentGetResponse200Normalizer.php b/src/Normalizer/UsersCurrentGetResponse200Normalizer.php new file mode 100644 index 00000000..d3670fe3 --- /dev/null +++ b/src/Normalizer/UsersCurrentGetResponse200Normalizer.php @@ -0,0 +1,103 @@ +setUser($this->denormalizer->denormalize($data['user'], 'Krystal\\Katapult\\KatapultAPI\\Model\\UsersCurrentGetResponse200User', 'json', $context)); + unset($data['user']); + } + if (\array_key_exists('organizations', $data)) { + $values = []; + foreach ($data['organizations'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetUsersCurrent200ResponseOrganizations', 'json', $context); + } + $object->setOrganizations($values); + unset($data['organizations']); + } + if (\array_key_exists('api_token_id', $data)) { + $object->setApiTokenId($data['api_token_id']); + unset($data['api_token_id']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['user'] = $this->normalizer->normalize($object->getUser(), 'json', $context); + $values = []; + foreach ($object->getOrganizations() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['organizations'] = $values; + $data['api_token_id'] = $object->getApiTokenId(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\UsersCurrentGetResponse200' => false]; + } +} diff --git a/src/Normalizer/UsersCurrentGetResponse200UserNormalizer.php b/src/Normalizer/UsersCurrentGetResponse200UserNormalizer.php new file mode 100644 index 00000000..8b6da759 --- /dev/null +++ b/src/Normalizer/UsersCurrentGetResponse200UserNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('first_name', $data)) { + $object->setFirstName($data['first_name']); + unset($data['first_name']); + } + if (\array_key_exists('last_name', $data)) { + $object->setLastName($data['last_name']); + unset($data['last_name']); + } + if (\array_key_exists('avatar_url', $data)) { + $object->setAvatarUrl($data['avatar_url']); + unset($data['avatar_url']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('firstName') && null !== $object->getFirstName()) { + $data['first_name'] = $object->getFirstName(); + } + if ($object->isInitialized('lastName') && null !== $object->getLastName()) { + $data['last_name'] = $object->getLastName(); + } + if ($object->isInitialized('avatarUrl') && null !== $object->getAvatarUrl()) { + $data['avatar_url'] = $object->getAvatarUrl(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\UsersCurrentGetResponse200User' => false]; + } +} diff --git a/src/Normalizer/ValidationErrorNormalizer.php b/src/Normalizer/ValidationErrorNormalizer.php new file mode 100644 index 00000000..e246b6f0 --- /dev/null +++ b/src/Normalizer/ValidationErrorNormalizer.php @@ -0,0 +1,95 @@ +setErrors($values); + unset($data['errors']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('errors') && null !== $object->getErrors()) { + $values = []; + foreach ($object->getErrors() as $value) { + $values[] = $value; + } + $data['errors'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ValidationError' => false]; + } +} diff --git a/src/Normalizer/ValidationErrorSchemaNormalizer.php b/src/Normalizer/ValidationErrorSchemaNormalizer.php new file mode 100644 index 00000000..7bfa59ed --- /dev/null +++ b/src/Normalizer/ValidationErrorSchemaNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\ValidationError', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ValidationErrorSchema' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineArgumentsNormalizer.php b/src/Normalizer/VirtualMachineArgumentsNormalizer.php new file mode 100644 index 00000000..eb786490 --- /dev/null +++ b/src/Normalizer/VirtualMachineArgumentsNormalizer.php @@ -0,0 +1,130 @@ +setHostname($data['hostname']); + unset($data['hostname']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('tag_names', $data)) { + $values = []; + foreach ($data['tag_names'] as $value) { + $values[] = $value; + } + $object->setTagNames($values); + unset($data['tag_names']); + } + if (\array_key_exists('gpu_type', $data)) { + $object->setGpuType($this->denormalizer->denormalize($data['gpu_type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GPUTypeLookup', 'json', $context)); + unset($data['gpu_type']); + } + if (\array_key_exists('group', $data)) { + $object->setGroup($this->denormalizer->denormalize($data['group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupLookup', 'json', $context)); + unset($data['group']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('tagNames') && null !== $object->getTagNames()) { + $values = []; + foreach ($object->getTagNames() as $value) { + $values[] = $value; + } + $data['tag_names'] = $values; + } + if ($object->isInitialized('gpuType') && null !== $object->getGpuType()) { + $data['gpu_type'] = $this->normalizer->normalize($object->getGpuType(), 'json', $context); + } + if ($object->isInitialized('group') && null !== $object->getGroup()) { + $data['group'] = $this->normalizer->normalize($object->getGroup(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineArguments' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineDiskNormalizer.php b/src/Normalizer/VirtualMachineDiskNormalizer.php new file mode 100644 index 00000000..b470c65d --- /dev/null +++ b/src/Normalizer/VirtualMachineDiskNormalizer.php @@ -0,0 +1,115 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('disk', $data)) { + $object->setDisk($this->denormalizer->denormalize($data['disk'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Disk', 'json', $context)); + unset($data['disk']); + } + if (\array_key_exists('attach_on_boot', $data)) { + $object->setAttachOnBoot($data['attach_on_boot']); + unset($data['attach_on_boot']); + } + if (\array_key_exists('boot', $data)) { + $object->setBoot($data['boot']); + unset($data['boot']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('disk') && null !== $object->getDisk()) { + $data['disk'] = $this->normalizer->normalize($object->getDisk(), 'json', $context); + } + if ($object->isInitialized('attachOnBoot') && null !== $object->getAttachOnBoot()) { + $data['attach_on_boot'] = $object->getAttachOnBoot(); + } + if ($object->isInitialized('boot') && null !== $object->getBoot()) { + $data['boot'] = $object->getBoot(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineDisk' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineFlexibleResourcesNormalizer.php b/src/Normalizer/VirtualMachineFlexibleResourcesNormalizer.php new file mode 100644 index 00000000..51fc5ed0 --- /dev/null +++ b/src/Normalizer/VirtualMachineFlexibleResourcesNormalizer.php @@ -0,0 +1,90 @@ +setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['cpu_cores'] = $object->getCpuCores(); + $data['memory_in_gb'] = $object->getMemoryInGb(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineFlexibleResources' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineGPUNormalizer.php b/src/Normalizer/VirtualMachineGPUNormalizer.php new file mode 100644 index 00000000..01eddc28 --- /dev/null +++ b/src/Normalizer/VirtualMachineGPUNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + if (\array_key_exists('pending_action', $data)) { + $object->setPendingAction($data['pending_action']); + unset($data['pending_action']); + } + if (\array_key_exists('available', $data)) { + $object->setAvailable($data['available']); + unset($data['available']); + } + if (\array_key_exists('type', $data)) { + $object->setType($this->denormalizer->denormalize($data['type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GPUType', 'json', $context)); + unset($data['type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + if ($object->isInitialized('pendingAction') && null !== $object->getPendingAction()) { + $data['pending_action'] = $object->getPendingAction(); + } + if ($object->isInitialized('available') && null !== $object->getAvailable()) { + $data['available'] = $object->getAvailable(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $this->normalizer->normalize($object->getType(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGPU' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineGroupArgumentsNormalizer.php b/src/Normalizer/VirtualMachineGroupArgumentsNormalizer.php new file mode 100644 index 00000000..5010e58a --- /dev/null +++ b/src/Normalizer/VirtualMachineGroupArgumentsNormalizer.php @@ -0,0 +1,101 @@ +setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('segregate', $data)) { + $object->setSegregate($data['segregate']); + unset($data['segregate']); + } + if (\array_key_exists('auto_segregate', $data)) { + $object->setAutoSegregate($data['auto_segregate']); + unset($data['auto_segregate']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('segregate') && null !== $object->getSegregate()) { + $data['segregate'] = $object->getSegregate(); + } + if ($object->isInitialized('autoSegregate') && null !== $object->getAutoSegregate()) { + $data['auto_segregate'] = $object->getAutoSegregate(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupArguments' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineGroupLookupNormalizer.php b/src/Normalizer/VirtualMachineGroupLookupNormalizer.php new file mode 100644 index 00000000..fde9b763 --- /dev/null +++ b/src/Normalizer/VirtualMachineGroupLookupNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupLookup' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineGroupNormalizer.php b/src/Normalizer/VirtualMachineGroupNormalizer.php new file mode 100644 index 00000000..721f6725 --- /dev/null +++ b/src/Normalizer/VirtualMachineGroupNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('segregate', $data)) { + $object->setSegregate($data['segregate']); + unset($data['segregate']); + } + if (\array_key_exists('auto_segregate', $data)) { + $object->setAutoSegregate($data['auto_segregate']); + unset($data['auto_segregate']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('segregate') && null !== $object->getSegregate()) { + $data['segregate'] = $object->getSegregate(); + } + if ($object->isInitialized('autoSegregate') && null !== $object->getAutoSegregate()) { + $data['auto_segregate'] = $object->getAutoSegregate(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroup' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupDeleteBodyNormalizer.php b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupDeleteBodyNormalizer.php new file mode 100644 index 00000000..0e184c1a --- /dev/null +++ b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupDeleteBodyNormalizer.php @@ -0,0 +1,85 @@ +setVirtualMachineGroup($this->denormalizer->denormalize($data['virtual_machine_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupLookup', 'json', $context)); + unset($data['virtual_machine_group']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_group'] = $this->normalizer->normalize($object->getVirtualMachineGroup(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupDeleteBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupDeleteResponse200Normalizer.php b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupDeleteResponse200Normalizer.php new file mode 100644 index 00000000..e8fc5973 --- /dev/null +++ b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupDeleteResponse200Normalizer.php @@ -0,0 +1,85 @@ +setVirtualMachineGroup($this->denormalizer->denormalize($data['virtual_machine_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroup', 'json', $context)); + unset($data['virtual_machine_group']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_group'] = $this->normalizer->normalize($object->getVirtualMachineGroup(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroupNormalizer.php b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroupNormalizer.php new file mode 100644 index 00000000..3c1f0eba --- /dev/null +++ b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroupNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('segregate', $data)) { + $object->setSegregate($data['segregate']); + unset($data['segregate']); + } + if (\array_key_exists('auto_segregate', $data)) { + $object->setAutoSegregate($data['auto_segregate']); + unset($data['auto_segregate']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('segregate') && null !== $object->getSegregate()) { + $data['segregate'] = $object->getSegregate(); + } + if ($object->isInitialized('autoSegregate') && null !== $object->getAutoSegregate()) { + $data['auto_segregate'] = $object->getAutoSegregate(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupDeleteResponse200VirtualMachineGroup' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupGetResponse200Normalizer.php b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupGetResponse200Normalizer.php new file mode 100644 index 00000000..28bdf303 --- /dev/null +++ b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setVirtualMachineGroup($this->denormalizer->denormalize($data['virtual_machine_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroup', 'json', $context)); + unset($data['virtual_machine_group']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_group'] = $this->normalizer->normalize($object->getVirtualMachineGroup(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupGetResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroupNormalizer.php b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroupNormalizer.php new file mode 100644 index 00000000..3e0f8607 --- /dev/null +++ b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroupNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('segregate', $data)) { + $object->setSegregate($data['segregate']); + unset($data['segregate']); + } + if (\array_key_exists('auto_segregate', $data)) { + $object->setAutoSegregate($data['auto_segregate']); + unset($data['auto_segregate']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('segregate') && null !== $object->getSegregate()) { + $data['segregate'] = $object->getSegregate(); + } + if ($object->isInitialized('autoSegregate') && null !== $object->getAutoSegregate()) { + $data['auto_segregate'] = $object->getAutoSegregate(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupGetResponse200VirtualMachineGroup' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupPatchBodyNormalizer.php b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupPatchBodyNormalizer.php new file mode 100644 index 00000000..8c85043c --- /dev/null +++ b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupPatchBodyNormalizer.php @@ -0,0 +1,90 @@ +setVirtualMachineGroup($this->denormalizer->denormalize($data['virtual_machine_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupLookup', 'json', $context)); + unset($data['virtual_machine_group']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_group'] = $this->normalizer->normalize($object->getVirtualMachineGroup(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupPatchBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupPatchResponse200Normalizer.php b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupPatchResponse200Normalizer.php new file mode 100644 index 00000000..ea425312 --- /dev/null +++ b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupPatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setVirtualMachineGroup($this->denormalizer->denormalize($data['virtual_machine_group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroup', 'json', $context)); + unset($data['virtual_machine_group']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_group'] = $this->normalizer->normalize($object->getVirtualMachineGroup(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupPatchResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroupNormalizer.php b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroupNormalizer.php new file mode 100644 index 00000000..adfb372a --- /dev/null +++ b/src/Normalizer/VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroupNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('segregate', $data)) { + $object->setSegregate($data['segregate']); + unset($data['segregate']); + } + if (\array_key_exists('auto_segregate', $data)) { + $object->setAutoSegregate($data['auto_segregate']); + unset($data['auto_segregate']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('segregate') && null !== $object->getSegregate()) { + $data['segregate'] = $object->getSegregate(); + } + if ($object->isInitialized('autoSegregate') && null !== $object->getAutoSegregate()) { + $data['auto_segregate'] = $object->getAutoSegregate(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroup' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineLookupNormalizer.php b/src/Normalizer/VirtualMachineLookupNormalizer.php new file mode 100644 index 00000000..7227b4b1 --- /dev/null +++ b/src/Normalizer/VirtualMachineLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineMustBeStartedNormalizer.php b/src/Normalizer/VirtualMachineMustBeStartedNormalizer.php new file mode 100644 index 00000000..d4c8ef28 --- /dev/null +++ b/src/Normalizer/VirtualMachineMustBeStartedNormalizer.php @@ -0,0 +1,87 @@ +setCurrentState($data['current_state']); + unset($data['current_state']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentState') && null !== $object->getCurrentState()) { + $data['current_state'] = $object->getCurrentState(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineMustBeStarted' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineMustBeStartedSchemaNormalizer.php b/src/Normalizer/VirtualMachineMustBeStartedSchemaNormalizer.php new file mode 100644 index 00000000..944bee02 --- /dev/null +++ b/src/Normalizer/VirtualMachineMustBeStartedSchemaNormalizer.php @@ -0,0 +1,101 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $object->setDetail($this->denormalizer->denormalize($data['detail'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineMustBeStarted', 'json', $context)); + unset($data['detail']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $data['detail'] = $this->normalizer->normalize($object->getDetail(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineMustBeStartedSchema' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfaceLookupNormalizer.php b/src/Normalizer/VirtualMachineNetworkInterfaceLookupNormalizer.php new file mode 100644 index 00000000..d1477773 --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfaceLookupNormalizer.php @@ -0,0 +1,87 @@ +setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfaceLookup' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfaceNotFoundSchemaNormalizer.php b/src/Normalizer/VirtualMachineNetworkInterfaceNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..c9058570 --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfaceNotFoundSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfaceNotFoundSchema' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBodyNormalizer.php b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBodyNormalizer.php new file mode 100644 index 00000000..ec60c52b --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfaceLookup', 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + if (\array_key_exists('ip_address', $data)) { + $object->setIpAddress($this->denormalizer->denormalize($data['ip_address'], 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddressLookup', 'json', $context)); + unset($data['ip_address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + $data['ip_address'] = $this->normalizer->normalize($object->getIpAddress(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200Normalizer.php b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200Normalizer.php new file mode 100644 index 00000000..3e7696ed --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface', 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterfaceNormalizer.php b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..e7cc51e9 --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBodyNormalizer.php b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBodyNormalizer.php new file mode 100644 index 00000000..f24ab6b8 --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfaceLookup', 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + if (\array_key_exists('address_version', $data)) { + $object->setAddressVersion($data['address_version']); + unset($data['address_version']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + $data['address_version'] = $object->getAddressVersion(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddressNormalizer.php b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddressNormalizer.php new file mode 100644 index 00000000..8de8ced3 --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddressNormalizer.php @@ -0,0 +1,143 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + if (\array_key_exists('reverse_dns', $data)) { + $object->setReverseDns($data['reverse_dns']); + unset($data['reverse_dns']); + } + if (\array_key_exists('vip', $data)) { + $object->setVip($data['vip']); + unset($data['vip']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('address_with_mask', $data)) { + $object->setAddressWithMask($data['address_with_mask']); + unset($data['address_with_mask']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Network', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('allocation_id', $data)) { + $object->setAllocationId($data['allocation_id']); + unset($data['allocation_id']); + } + if (\array_key_exists('allocation_type', $data)) { + $object->setAllocationType($data['allocation_type']); + unset($data['allocation_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + if ($object->isInitialized('reverseDns') && null !== $object->getReverseDns()) { + $data['reverse_dns'] = $object->getReverseDns(); + } + if ($object->isInitialized('vip') && null !== $object->getVip()) { + $data['vip'] = $object->getVip(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('addressWithMask') && null !== $object->getAddressWithMask()) { + $data['address_with_mask'] = $object->getAddressWithMask(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('allocationId') && null !== $object->getAllocationId()) { + $data['allocation_id'] = $object->getAllocationId(); + } + if ($object->isInitialized('allocationType') && null !== $object->getAllocationType()) { + $data['allocation_type'] = $object->getAllocationType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddress' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200Normalizer.php b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200Normalizer.php new file mode 100644 index 00000000..33d44ae1 --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setIpAddress($this->denormalizer->denormalize($data['ip_address'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200IpAddress', 'json', $context)); + unset($data['ip_address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['ip_address'] = $this->normalizer->normalize($object->getIpAddress(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200Normalizer.php b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200Normalizer.php new file mode 100644 index 00000000..e4b6dceb --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200Normalizer.php @@ -0,0 +1,93 @@ +denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddress', 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200Normalizer.php b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200Normalizer.php new file mode 100644 index 00000000..8eece018 --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface', 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..417c86f0 --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,144 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartVirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartNetwork', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVMNIVMNIPartSpeedProfile', 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBodyNormalizer.php b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBodyNormalizer.php new file mode 100644 index 00000000..b416d910 --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBodyNormalizer.php @@ -0,0 +1,90 @@ +setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfaceLookup', 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], 'Krystal\\Katapult\\KatapultAPI\\Model\\NetworkSpeedProfileLookup', 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Normalizer.php b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Normalizer.php new file mode 100644 index 00000000..d58e258a --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTask($this->denormalizer->denormalize($data['task'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task', 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200TaskNormalizer.php b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200TaskNormalizer.php new file mode 100644 index 00000000..0b792024 --- /dev/null +++ b/src/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200TaskNormalizer.php @@ -0,0 +1,129 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('started_at', $data)) { + $object->setStartedAt($data['started_at']); + unset($data['started_at']); + } + if (\array_key_exists('finished_at', $data)) { + $object->setFinishedAt($data['finished_at']); + unset($data['finished_at']); + } + if (\array_key_exists('progress', $data)) { + $object->setProgress($data['progress']); + unset($data['progress']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('startedAt') && null !== $object->getStartedAt()) { + $data['started_at'] = $object->getStartedAt(); + } + if ($object->isInitialized('finishedAt') && null !== $object->getFinishedAt()) { + $data['finished_at'] = $object->getFinishedAt(); + } + if ($object->isInitialized('progress') && null !== $object->getProgress()) { + $data['progress'] = $object->getProgress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNormalizer.php b/src/Normalizer/VirtualMachineNormalizer.php new file mode 100644 index 00000000..c1dc5802 --- /dev/null +++ b/src/Normalizer/VirtualMachineNormalizer.php @@ -0,0 +1,252 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('initial_root_password', $data)) { + $object->setInitialRootPassword($data['initial_root_password']); + unset($data['initial_root_password']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('zone', $data)) { + $object->setZone($this->denormalizer->denormalize($data['zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Zone', 'json', $context)); + unset($data['zone']); + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Organization', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('group', $data)) { + $object->setGroup($this->denormalizer->denormalize($data['group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGroup', 'json', $context)); + unset($data['group']); + } + if (\array_key_exists('package', $data)) { + $object->setPackage($this->denormalizer->denormalize($data['package'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackage', 'json', $context)); + unset($data['package']); + } + if (\array_key_exists('attached_iso', $data)) { + $object->setAttachedIso($this->denormalizer->denormalize($data['attached_iso'], 'Krystal\\Katapult\\KatapultAPI\\Model\\ISO', 'json', $context)); + unset($data['attached_iso']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('gpu_type', $data)) { + $object->setGpuType($this->denormalizer->denormalize($data['gpu_type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GPUType', 'json', $context)); + unset($data['gpu_type']); + } + if (\array_key_exists('gpus', $data)) { + $values = []; + foreach ($data['gpus'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineGPU', 'json', $context); + } + $object->setGpus($values); + unset($data['gpus']); + } + if (\array_key_exists('tags', $data)) { + $values_1 = []; + foreach ($data['tags'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Krystal\\Katapult\\KatapultAPI\\Model\\Tag', 'json', $context); + } + $object->setTags($values_1); + unset($data['tags']); + } + if (\array_key_exists('tag_names', $data)) { + $values_2 = []; + foreach ($data['tag_names'] as $value_2) { + $values_2[] = $value_2; + } + $object->setTagNames($values_2); + unset($data['tag_names']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values_3 = []; + foreach ($data['ip_addresses'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddress', 'json', $context); + } + $object->setIpAddresses($values_3); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_4; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('initialRootPassword') && null !== $object->getInitialRootPassword()) { + $data['initial_root_password'] = $object->getInitialRootPassword(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('zone') && null !== $object->getZone()) { + $data['zone'] = $this->normalizer->normalize($object->getZone(), 'json', $context); + } + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + } + if ($object->isInitialized('group') && null !== $object->getGroup()) { + $data['group'] = $this->normalizer->normalize($object->getGroup(), 'json', $context); + } + if ($object->isInitialized('package') && null !== $object->getPackage()) { + $data['package'] = $this->normalizer->normalize($object->getPackage(), 'json', $context); + } + if ($object->isInitialized('attachedIso') && null !== $object->getAttachedIso()) { + $data['attached_iso'] = $this->normalizer->normalize($object->getAttachedIso(), 'json', $context); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('gpuType') && null !== $object->getGpuType()) { + $data['gpu_type'] = $this->normalizer->normalize($object->getGpuType(), 'json', $context); + } + if ($object->isInitialized('gpus') && null !== $object->getGpus()) { + $values = []; + foreach ($object->getGpus() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['gpus'] = $values; + } + if ($object->isInitialized('tags') && null !== $object->getTags()) { + $values_1 = []; + foreach ($object->getTags() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['tags'] = $values_1; + } + if ($object->isInitialized('tagNames') && null !== $object->getTagNames()) { + $values_2 = []; + foreach ($object->getTagNames() as $value_2) { + $values_2[] = $value_2; + } + $data['tag_names'] = $values_2; + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values_3 = []; + foreach ($object->getIpAddresses() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['ip_addresses'] = $values_3; + } + foreach ($object as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_4; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachine' => false]; + } +} diff --git a/src/Normalizer/VirtualMachineNotFoundSchemaNormalizer.php b/src/Normalizer/VirtualMachineNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..2ba175c5 --- /dev/null +++ b/src/Normalizer/VirtualMachineNotFoundSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineNotFoundSchema' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinePackageLookupNormalizer.php b/src/Normalizer/VirtualMachinePackageLookupNormalizer.php new file mode 100644 index 00000000..5d05ac7e --- /dev/null +++ b/src/Normalizer/VirtualMachinePackageLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackageLookup' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinePackageNormalizer.php b/src/Normalizer/VirtualMachinePackageNormalizer.php new file mode 100644 index 00000000..00d27675 --- /dev/null +++ b/src/Normalizer/VirtualMachinePackageNormalizer.php @@ -0,0 +1,150 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('ipv4_addresses', $data)) { + $object->setIpv4Addresses($data['ipv4_addresses']); + unset($data['ipv4_addresses']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('storage_in_gb', $data)) { + $object->setStorageInGb($data['storage_in_gb']); + unset($data['storage_in_gb']); + } + if (\array_key_exists('monthly_bandwidth_allowance_in_gb', $data)) { + $object->setMonthlyBandwidthAllowanceInGb($data['monthly_bandwidth_allowance_in_gb']); + unset($data['monthly_bandwidth_allowance_in_gb']); + } + if (\array_key_exists('privacy', $data)) { + $object->setPrivacy($data['privacy']); + unset($data['privacy']); + } + if (\array_key_exists('icon', $data)) { + $object->setIcon($this->denormalizer->denormalize($data['icon'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Attachment', 'json', $context)); + unset($data['icon']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('ipv4Addresses') && null !== $object->getIpv4Addresses()) { + $data['ipv4_addresses'] = $object->getIpv4Addresses(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('storageInGb') && null !== $object->getStorageInGb()) { + $data['storage_in_gb'] = $object->getStorageInGb(); + } + if ($object->isInitialized('monthlyBandwidthAllowanceInGb') && null !== $object->getMonthlyBandwidthAllowanceInGb()) { + $data['monthly_bandwidth_allowance_in_gb'] = $object->getMonthlyBandwidthAllowanceInGb(); + } + if ($object->isInitialized('privacy') && null !== $object->getPrivacy()) { + $data['privacy'] = $object->getPrivacy(); + } + if ($object->isInitialized('icon') && null !== $object->getIcon()) { + $data['icon'] = $this->normalizer->normalize($object->getIcon(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackage' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinePackageNotFoundSchemaNormalizer.php b/src/Normalizer/VirtualMachinePackageNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..01b53969 --- /dev/null +++ b/src/Normalizer/VirtualMachinePackageNotFoundSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackageNotFoundSchema' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinePackagesGetResponse200Normalizer.php b/src/Normalizer/VirtualMachinePackagesGetResponse200Normalizer.php new file mode 100644 index 00000000..6275acb3 --- /dev/null +++ b/src/Normalizer/VirtualMachinePackagesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('virtual_machine_packages', $data)) { + $values = []; + foreach ($data['virtual_machine_packages'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePackages200ResponseVirtualMachinePackages', 'json', $context); + } + $object->setVirtualMachinePackages($values); + unset($data['virtual_machine_packages']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getVirtualMachinePackages() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['virtual_machine_packages'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinePackagesGetResponse200PaginationNormalizer.php b/src/Normalizer/VirtualMachinePackagesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..a1f31f12 --- /dev/null +++ b/src/Normalizer/VirtualMachinePackagesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinePackagesVirtualMachinePackageGetResponse200Normalizer.php b/src/Normalizer/VirtualMachinePackagesVirtualMachinePackageGetResponse200Normalizer.php new file mode 100644 index 00000000..2af66802 --- /dev/null +++ b/src/Normalizer/VirtualMachinePackagesVirtualMachinePackageGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setVirtualMachinePackage($this->denormalizer->denormalize($data['virtual_machine_package'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackage', 'json', $context)); + unset($data['virtual_machine_package']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_package'] = $this->normalizer->normalize($object->getVirtualMachinePackage(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesVirtualMachinePackageGetResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackageNormalizer.php b/src/Normalizer/VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackageNormalizer.php new file mode 100644 index 00000000..da4d4d92 --- /dev/null +++ b/src/Normalizer/VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackageNormalizer.php @@ -0,0 +1,150 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('ipv4_addresses', $data)) { + $object->setIpv4Addresses($data['ipv4_addresses']); + unset($data['ipv4_addresses']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('storage_in_gb', $data)) { + $object->setStorageInGb($data['storage_in_gb']); + unset($data['storage_in_gb']); + } + if (\array_key_exists('monthly_bandwidth_allowance_in_gb', $data)) { + $object->setMonthlyBandwidthAllowanceInGb($data['monthly_bandwidth_allowance_in_gb']); + unset($data['monthly_bandwidth_allowance_in_gb']); + } + if (\array_key_exists('privacy', $data)) { + $object->setPrivacy($data['privacy']); + unset($data['privacy']); + } + if (\array_key_exists('icon', $data)) { + $object->setIcon($this->denormalizer->denormalize($data['icon'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Attachment', 'json', $context)); + unset($data['icon']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('ipv4Addresses') && null !== $object->getIpv4Addresses()) { + $data['ipv4_addresses'] = $object->getIpv4Addresses(); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('storageInGb') && null !== $object->getStorageInGb()) { + $data['storage_in_gb'] = $object->getStorageInGb(); + } + if ($object->isInitialized('monthlyBandwidthAllowanceInGb') && null !== $object->getMonthlyBandwidthAllowanceInGb()) { + $data['monthly_bandwidth_allowance_in_gb'] = $object->getMonthlyBandwidthAllowanceInGb(); + } + if ($object->isInitialized('privacy') && null !== $object->getPrivacy()) { + $data['privacy'] = $object->getPrivacy(); + } + if ($object->isInitialized('icon') && null !== $object->getIcon()) { + $data['icon'] = $this->normalizer->normalize($object->getIcon(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackagesVirtualMachinePackageGetResponse200VirtualMachinePackage' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesBuildsVirtualMachineBuildGetResponse200Normalizer.php b/src/Normalizer/VirtualMachinesBuildsVirtualMachineBuildGetResponse200Normalizer.php new file mode 100644 index 00000000..91271f1e --- /dev/null +++ b/src/Normalizer/VirtualMachinesBuildsVirtualMachineBuildGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setVirtualMachineBuild($this->denormalizer->denormalize($data['virtual_machine_build'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuild', 'json', $context)); + unset($data['virtual_machine_build']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_build'] = $this->normalizer->normalize($object->getVirtualMachineBuild(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesBuildsVirtualMachineBuildGetResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuildNormalizer.php b/src/Normalizer/VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuildNormalizer.php new file mode 100644 index 00000000..505556c8 --- /dev/null +++ b/src/Normalizer/VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuildNormalizer.php @@ -0,0 +1,115 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('spec_xml', $data)) { + $object->setSpecXml($data['spec_xml']); + unset($data['spec_xml']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinesBuildsVirtualMachineBuildPartVirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('specXml') && null !== $object->getSpecXml()) { + $data['spec_xml'] = $object->getSpecXml(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesBuildsVirtualMachineBuildGetResponse200VirtualMachineBuild' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineAllocateIpPostBodyNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineAllocateIpPostBodyNormalizer.php new file mode 100644 index 00000000..e03920e5 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineAllocateIpPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('ip_address', $data)) { + $object->setIpAddress($this->denormalizer->denormalize($data['ip_address'], 'Krystal\\Katapult\\KatapultAPI\\Model\\IPAddressLookup', 'json', $context)); + unset($data['ip_address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + $data['ip_address'] = $this->normalizer->normalize($object->getIpAddress(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineAllocateIpPostBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddressNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddressNormalizer.php new file mode 100644 index 00000000..b76a9289 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddressNormalizer.php @@ -0,0 +1,143 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + if (\array_key_exists('reverse_dns', $data)) { + $object->setReverseDns($data['reverse_dns']); + unset($data['reverse_dns']); + } + if (\array_key_exists('vip', $data)) { + $object->setVip($data['vip']); + unset($data['vip']); + } + if (\array_key_exists('label', $data)) { + $object->setLabel($data['label']); + unset($data['label']); + } + if (\array_key_exists('address_with_mask', $data)) { + $object->setAddressWithMask($data['address_with_mask']); + unset($data['address_with_mask']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\Network', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('allocation_id', $data)) { + $object->setAllocationId($data['allocation_id']); + unset($data['allocation_id']); + } + if (\array_key_exists('allocation_type', $data)) { + $object->setAllocationType($data['allocation_type']); + unset($data['allocation_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + if ($object->isInitialized('reverseDns') && null !== $object->getReverseDns()) { + $data['reverse_dns'] = $object->getReverseDns(); + } + if ($object->isInitialized('vip') && null !== $object->getVip()) { + $data['vip'] = $object->getVip(); + } + if ($object->isInitialized('label') && null !== $object->getLabel()) { + $data['label'] = $object->getLabel(); + } + if ($object->isInitialized('addressWithMask') && null !== $object->getAddressWithMask()) { + $data['address_with_mask'] = $object->getAddressWithMask(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('allocationId') && null !== $object->getAllocationId()) { + $data['allocation_id'] = $object->getAllocationId(); + } + if ($object->isInitialized('allocationType') && null !== $object->getAllocationType()) { + $data['allocation_type'] = $object->getAllocationType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddress' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineAllocateIpPostResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineAllocateIpPostResponse200Normalizer.php new file mode 100644 index 00000000..9b2e4138 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineAllocateIpPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setIpAddress($this->denormalizer->denormalize($data['ip_address'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineAllocateIpPostResponse200IpAddress', 'json', $context)); + unset($data['ip_address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['ip_address'] = $this->normalizer->normalize($object->getIpAddress(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineAllocateIpPostResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineConsoleSessionsPostBodyNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineConsoleSessionsPostBodyNormalizer.php new file mode 100644 index 00000000..b14d6b9f --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineConsoleSessionsPostBodyNormalizer.php @@ -0,0 +1,85 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineConsoleSessionsPostBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSessionNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSessionNormalizer.php new file mode 100644 index 00000000..a2514e07 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSessionNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('url', $data)) { + $object->setUrl($data['url']); + unset($data['url']); + } + if (\array_key_exists('expires_at', $data)) { + $object->setExpiresAt($data['expires_at']); + unset($data['expires_at']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineConsoleSessionsPartVirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + if ($object->isInitialized('expiresAt') && null !== $object->getExpiresAt()) { + $data['expires_at'] = $object->getExpiresAt(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSession' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineConsoleSessionsPostResponse201Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineConsoleSessionsPostResponse201Normalizer.php new file mode 100644 index 00000000..8368a2c7 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineConsoleSessionsPostResponse201Normalizer.php @@ -0,0 +1,85 @@ +setConsoleSession($this->denormalizer->denormalize($data['console_session'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineConsoleSessionsPostResponse201ConsoleSession', 'json', $context)); + unset($data['console_session']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['console_session'] = $this->normalizer->normalize($object->getConsoleSession(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineConsoleSessionsPostResponse201' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineDeleteBodyNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineDeleteBodyNormalizer.php new file mode 100644 index 00000000..a68d2a13 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineDeleteBodyNormalizer.php @@ -0,0 +1,87 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineDeleteResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineDeleteResponse200Normalizer.php new file mode 100644 index 00000000..7d8a237c --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineDeleteResponse200Normalizer.php @@ -0,0 +1,90 @@ +setTrashObject($this->denormalizer->denormalize($data['trash_object'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteResponse200TrashObject', 'json', $context)); + unset($data['trash_object']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteResponse200VirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['trash_object'] = $this->normalizer->normalize($object->getTrashObject(), 'json', $context); + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineDeleteResponse200TrashObjectNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineDeleteResponse200TrashObjectNormalizer.php new file mode 100644 index 00000000..e57ca368 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineDeleteResponse200TrashObjectNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('keep_until', $data)) { + $object->setKeepUntil($data['keep_until']); + unset($data['keep_until']); + } + if (\array_key_exists('object_id', $data)) { + $object->setObjectId($data['object_id']); + unset($data['object_id']); + } + if (\array_key_exists('object_type', $data)) { + $object->setObjectType($data['object_type']); + unset($data['object_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('keepUntil') && null !== $object->getKeepUntil()) { + $data['keep_until'] = $object->getKeepUntil(); + } + if ($object->isInitialized('objectId') && null !== $object->getObjectId()) { + $data['object_id'] = $object->getObjectId(); + } + if ($object->isInitialized('objectType') && null !== $object->getObjectType()) { + $data['object_type'] = $object->getObjectType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteResponse200TrashObject' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineDeleteResponse200VirtualMachineNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineDeleteResponse200VirtualMachineNormalizer.php new file mode 100644 index 00000000..c7ca3360 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineDeleteResponse200VirtualMachineNormalizer.php @@ -0,0 +1,252 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('initial_root_password', $data)) { + $object->setInitialRootPassword($data['initial_root_password']); + unset($data['initial_root_password']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('zone', $data)) { + $object->setZone($this->denormalizer->denormalize($data['zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartZone', 'json', $context)); + unset($data['zone']); + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartOrganization', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('group', $data)) { + $object->setGroup($this->denormalizer->denormalize($data['group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGroup', 'json', $context)); + unset($data['group']); + } + if (\array_key_exists('package', $data)) { + $object->setPackage($this->denormalizer->denormalize($data['package'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartPackage', 'json', $context)); + unset($data['package']); + } + if (\array_key_exists('attached_iso', $data)) { + $object->setAttachedIso($this->denormalizer->denormalize($data['attached_iso'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartAttachedISO', 'json', $context)); + unset($data['attached_iso']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('gpu_type', $data)) { + $object->setGpuType($this->denormalizer->denormalize($data['gpu_type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGPUType', 'json', $context)); + unset($data['gpu_type']); + } + if (\array_key_exists('gpus', $data)) { + $values = []; + foreach ($data['gpus'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartGPUs', 'json', $context); + } + $object->setGpus($values); + unset($data['gpus']); + } + if (\array_key_exists('tags', $data)) { + $values_1 = []; + foreach ($data['tags'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartTags', 'json', $context); + } + $object->setTags($values_1); + unset($data['tags']); + } + if (\array_key_exists('tag_names', $data)) { + $values_2 = []; + foreach ($data['tag_names'] as $value_2) { + $values_2[] = $value_2; + } + $object->setTagNames($values_2); + unset($data['tag_names']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values_3 = []; + foreach ($data['ip_addresses'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\DeleteVirtualMachinePartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values_3); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_4; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('initialRootPassword') && null !== $object->getInitialRootPassword()) { + $data['initial_root_password'] = $object->getInitialRootPassword(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('zone') && null !== $object->getZone()) { + $data['zone'] = $this->normalizer->normalize($object->getZone(), 'json', $context); + } + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + } + if ($object->isInitialized('group') && null !== $object->getGroup()) { + $data['group'] = $this->normalizer->normalize($object->getGroup(), 'json', $context); + } + if ($object->isInitialized('package') && null !== $object->getPackage()) { + $data['package'] = $this->normalizer->normalize($object->getPackage(), 'json', $context); + } + if ($object->isInitialized('attachedIso') && null !== $object->getAttachedIso()) { + $data['attached_iso'] = $this->normalizer->normalize($object->getAttachedIso(), 'json', $context); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('gpuType') && null !== $object->getGpuType()) { + $data['gpu_type'] = $this->normalizer->normalize($object->getGpuType(), 'json', $context); + } + if ($object->isInitialized('gpus') && null !== $object->getGpus()) { + $values = []; + foreach ($object->getGpus() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['gpus'] = $values; + } + if ($object->isInitialized('tags') && null !== $object->getTags()) { + $values_1 = []; + foreach ($object->getTags() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['tags'] = $values_1; + } + if ($object->isInitialized('tagNames') && null !== $object->getTagNames()) { + $values_2 = []; + foreach ($object->getTagNames() as $value_2) { + $values_2[] = $value_2; + } + $data['tag_names'] = $values_2; + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values_3 = []; + foreach ($object->getIpAddresses() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['ip_addresses'] = $values_3; + } + foreach ($object as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_4; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDeleteResponse200VirtualMachine' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Normalizer.php new file mode 100644 index 00000000..86297c14 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('disk_backup_policies', $data)) { + $values = []; + foreach ($data['disk_backup_policies'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDiskBackupPolicies200ResponseDiskBackupPolicies', 'json', $context); + } + $object->setDiskBackupPolicies($values); + unset($data['disk_backup_policies']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getDiskBackupPolicies() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['disk_backup_policies'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200PaginationNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..0f5a3311 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesPostBodyNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesPostBodyNormalizer.php new file mode 100644 index 00000000..2b64030c --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesPostBodyNormalizer.php @@ -0,0 +1,90 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicyNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicyNormalizer.php new file mode 100644 index 00000000..68ed22bc --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicyNormalizer.php @@ -0,0 +1,125 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('retention', $data)) { + $object->setRetention($data['retention']); + unset($data['retention']); + } + if (\array_key_exists('total_size', $data)) { + $object->setTotalSize($data['total_size']); + unset($data['total_size']); + } + if (\array_key_exists('target', $data)) { + $object->setTarget($this->denormalizer->denormalize($data['target'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DiskBackupPolicyTarget', 'json', $context)); + unset($data['target']); + } + if (\array_key_exists('schedule', $data)) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PostVirtualMachineDiskBackupPoliciesPartSchedule', 'json', $context)); + unset($data['schedule']); + } + if (\array_key_exists('auto_move_to_trash_at', $data)) { + $object->setAutoMoveToTrashAt($data['auto_move_to_trash_at']); + unset($data['auto_move_to_trash_at']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('retention') && null !== $object->getRetention()) { + $data['retention'] = $object->getRetention(); + } + if ($object->isInitialized('totalSize') && null !== $object->getTotalSize()) { + $data['total_size'] = $object->getTotalSize(); + } + if ($object->isInitialized('target') && null !== $object->getTarget()) { + $data['target'] = $this->normalizer->normalize($object->getTarget(), 'json', $context); + } + if ($object->isInitialized('schedule') && null !== $object->getSchedule()) { + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + } + if ($object->isInitialized('autoMoveToTrashAt') && null !== $object->getAutoMoveToTrashAt()) { + $data['auto_move_to_trash_at'] = $object->getAutoMoveToTrashAt(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicy' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200Normalizer.php new file mode 100644 index 00000000..53af1bf5 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setDiskBackupPolicy($this->denormalizer->denormalize($data['disk_backup_policy'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200DiskBackupPolicy', 'json', $context)); + unset($data['disk_backup_policy']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['disk_backup_policy'] = $this->normalizer->normalize($object->getDiskBackupPolicy(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDiskBackupPoliciesPostResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineDisksGetResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineDisksGetResponse200Normalizer.php new file mode 100644 index 00000000..2e54a76b --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineDisksGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDisksGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('disks', $data)) { + $values = []; + foreach ($data['disks'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineDisks200ResponseDisks', 'json', $context); + } + $object->setDisks($values); + unset($data['disks']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getDisks() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['disks'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDisksGetResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineDisksGetResponse200PaginationNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineDisksGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..98e1db23 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineDisksGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineDisksGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineFlexibleResourcesPutBodyNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineFlexibleResourcesPutBodyNormalizer.php new file mode 100644 index 00000000..652abc2e --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineFlexibleResourcesPutBodyNormalizer.php @@ -0,0 +1,90 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('resources', $data)) { + $object->setResources($this->denormalizer->denormalize($data['resources'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineFlexibleResources', 'json', $context)); + unset($data['resources']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + $data['resources'] = $this->normalizer->normalize($object->getResources(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineFlexibleResourcesPutBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Normalizer.php new file mode 100644 index 00000000..0d732b89 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTask($this->denormalizer->denormalize($data['task'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Task', 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200TaskNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200TaskNormalizer.php new file mode 100644 index 00000000..f06337fc --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200TaskNormalizer.php @@ -0,0 +1,129 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('started_at', $data)) { + $object->setStartedAt($data['started_at']); + unset($data['started_at']); + } + if (\array_key_exists('finished_at', $data)) { + $object->setFinishedAt($data['finished_at']); + unset($data['finished_at']); + } + if (\array_key_exists('progress', $data)) { + $object->setProgress($data['progress']); + unset($data['progress']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('startedAt') && null !== $object->getStartedAt()) { + $data['started_at'] = $object->getStartedAt(); + } + if ($object->isInitialized('finishedAt') && null !== $object->getFinishedAt()) { + $data['finished_at'] = $object->getFinishedAt(); + } + if ($object->isInitialized('progress') && null !== $object->getProgress()) { + $data['progress'] = $object->getProgress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineFlexibleResourcesPutResponse200Task' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineGetResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineGetResponse200Normalizer.php new file mode 100644 index 00000000..972efc62 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineGetResponse200VirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineGetResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineGetResponse200VirtualMachineNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineGetResponse200VirtualMachineNormalizer.php new file mode 100644 index 00000000..9939c00d --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineGetResponse200VirtualMachineNormalizer.php @@ -0,0 +1,252 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('initial_root_password', $data)) { + $object->setInitialRootPassword($data['initial_root_password']); + unset($data['initial_root_password']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('zone', $data)) { + $object->setZone($this->denormalizer->denormalize($data['zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartZone', 'json', $context)); + unset($data['zone']); + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartOrganization', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('group', $data)) { + $object->setGroup($this->denormalizer->denormalize($data['group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGroup', 'json', $context)); + unset($data['group']); + } + if (\array_key_exists('package', $data)) { + $object->setPackage($this->denormalizer->denormalize($data['package'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartPackage', 'json', $context)); + unset($data['package']); + } + if (\array_key_exists('attached_iso', $data)) { + $object->setAttachedIso($this->denormalizer->denormalize($data['attached_iso'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartAttachedISO', 'json', $context)); + unset($data['attached_iso']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('gpu_type', $data)) { + $object->setGpuType($this->denormalizer->denormalize($data['gpu_type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGPUType', 'json', $context)); + unset($data['gpu_type']); + } + if (\array_key_exists('gpus', $data)) { + $values = []; + foreach ($data['gpus'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartGPUs', 'json', $context); + } + $object->setGpus($values); + unset($data['gpus']); + } + if (\array_key_exists('tags', $data)) { + $values_1 = []; + foreach ($data['tags'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartTags', 'json', $context); + } + $object->setTags($values_1); + unset($data['tags']); + } + if (\array_key_exists('tag_names', $data)) { + $values_2 = []; + foreach ($data['tag_names'] as $value_2) { + $values_2[] = $value_2; + } + $object->setTagNames($values_2); + unset($data['tag_names']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values_3 = []; + foreach ($data['ip_addresses'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachinePartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values_3); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_4; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('initialRootPassword') && null !== $object->getInitialRootPassword()) { + $data['initial_root_password'] = $object->getInitialRootPassword(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('zone') && null !== $object->getZone()) { + $data['zone'] = $this->normalizer->normalize($object->getZone(), 'json', $context); + } + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + } + if ($object->isInitialized('group') && null !== $object->getGroup()) { + $data['group'] = $this->normalizer->normalize($object->getGroup(), 'json', $context); + } + if ($object->isInitialized('package') && null !== $object->getPackage()) { + $data['package'] = $this->normalizer->normalize($object->getPackage(), 'json', $context); + } + if ($object->isInitialized('attachedIso') && null !== $object->getAttachedIso()) { + $data['attached_iso'] = $this->normalizer->normalize($object->getAttachedIso(), 'json', $context); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('gpuType') && null !== $object->getGpuType()) { + $data['gpu_type'] = $this->normalizer->normalize($object->getGpuType(), 'json', $context); + } + if ($object->isInitialized('gpus') && null !== $object->getGpus()) { + $values = []; + foreach ($object->getGpus() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['gpus'] = $values; + } + if ($object->isInitialized('tags') && null !== $object->getTags()) { + $values_1 = []; + foreach ($object->getTags() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['tags'] = $values_1; + } + if ($object->isInitialized('tagNames') && null !== $object->getTagNames()) { + $values_2 = []; + foreach ($object->getTagNames() as $value_2) { + $values_2[] = $value_2; + } + $data['tag_names'] = $values_2; + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values_3 = []; + foreach ($object->getIpAddresses() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['ip_addresses'] = $values_3; + } + foreach ($object as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_4; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineGetResponse200VirtualMachine' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Normalizer.php new file mode 100644 index 00000000..93742693 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Normalizer.php @@ -0,0 +1,98 @@ +setPagination($this->denormalizer->denormalize($data['pagination'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Pagination', 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('virtual_machine_network_interfaces', $data)) { + $values = []; + foreach ($data['virtual_machine_network_interfaces'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces', 'json', $context); + } + $object->setVirtualMachineNetworkInterfaces($values); + unset($data['virtual_machine_network_interfaces']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getVirtualMachineNetworkInterfaces() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['virtual_machine_network_interfaces'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200PaginationNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200PaginationNormalizer.php new file mode 100644 index 00000000..f4511da6 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200PaginationNormalizer.php @@ -0,0 +1,115 @@ +setCurrentPage($data['current_page']); + unset($data['current_page']); + } + if (\array_key_exists('total_pages', $data)) { + $object->setTotalPages($data['total_pages']); + unset($data['total_pages']); + } + if (\array_key_exists('total', $data)) { + $object->setTotal($data['total']); + unset($data['total']); + } + if (\array_key_exists('per_page', $data)) { + $object->setPerPage($data['per_page']); + unset($data['per_page']); + } + if (\array_key_exists('large_set', $data)) { + $object->setLargeSet($data['large_set']); + unset($data['large_set']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPage') && null !== $object->getCurrentPage()) { + $data['current_page'] = $object->getCurrentPage(); + } + if ($object->isInitialized('totalPages') && null !== $object->getTotalPages()) { + $data['total_pages'] = $object->getTotalPages(); + } + if ($object->isInitialized('total') && null !== $object->getTotal()) { + $data['total'] = $object->getTotal(); + } + if ($object->isInitialized('perPage') && null !== $object->getPerPage()) { + $data['per_page'] = $object->getPerPage(); + } + if ($object->isInitialized('largeSet') && null !== $object->getLargeSet()) { + $data['large_set'] = $object->getLargeSet(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Pagination' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200Normalizer.php new file mode 100644 index 00000000..787ca994 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface', 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..3500e13c --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,137 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartVirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartNetwork', 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetVirtualMachineNetworkInterfacePartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachinePackagePutBodyNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachinePackagePutBodyNormalizer.php new file mode 100644 index 00000000..1fb55ed8 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachinePackagePutBodyNormalizer.php @@ -0,0 +1,90 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('virtual_machine_package', $data)) { + $object->setVirtualMachinePackage($this->denormalizer->denormalize($data['virtual_machine_package'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinePackageLookup', 'json', $context)); + unset($data['virtual_machine_package']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + $data['virtual_machine_package'] = $this->normalizer->normalize($object->getVirtualMachinePackage(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePackagePutBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachinePackagePutResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachinePackagePutResponse200Normalizer.php new file mode 100644 index 00000000..660c7d11 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachinePackagePutResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTask($this->denormalizer->denormalize($data['task'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePackagePutResponse200Task', 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePackagePutResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachinePackagePutResponse200TaskNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachinePackagePutResponse200TaskNormalizer.php new file mode 100644 index 00000000..f197bb25 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachinePackagePutResponse200TaskNormalizer.php @@ -0,0 +1,129 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('started_at', $data)) { + $object->setStartedAt($data['started_at']); + unset($data['started_at']); + } + if (\array_key_exists('finished_at', $data)) { + $object->setFinishedAt($data['finished_at']); + unset($data['finished_at']); + } + if (\array_key_exists('progress', $data)) { + $object->setProgress($data['progress']); + unset($data['progress']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('startedAt') && null !== $object->getStartedAt()) { + $data['started_at'] = $object->getStartedAt(); + } + if ($object->isInitialized('finishedAt') && null !== $object->getFinishedAt()) { + $data['finished_at'] = $object->getFinishedAt(); + } + if ($object->isInitialized('progress') && null !== $object->getProgress()) { + $data['progress'] = $object->getProgress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePackagePutResponse200Task' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachinePatchBodyNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachinePatchBodyNormalizer.php new file mode 100644 index 00000000..e7d627dd --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachinePatchBodyNormalizer.php @@ -0,0 +1,90 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup', 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineArguments', 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePatchBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachinePatchResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachinePatchResponse200Normalizer.php new file mode 100644 index 00000000..198021ad --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachinePatchResponse200Normalizer.php @@ -0,0 +1,85 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePatchResponse200VirtualMachine', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePatchResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachinePatchResponse200VirtualMachineNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachinePatchResponse200VirtualMachineNormalizer.php new file mode 100644 index 00000000..1111df31 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachinePatchResponse200VirtualMachineNormalizer.php @@ -0,0 +1,252 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('hostname', $data)) { + $object->setHostname($data['hostname']); + unset($data['hostname']); + } + if (\array_key_exists('fqdn', $data)) { + $object->setFqdn($data['fqdn']); + unset($data['fqdn']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('initial_root_password', $data)) { + $object->setInitialRootPassword($data['initial_root_password']); + unset($data['initial_root_password']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('zone', $data)) { + $object->setZone($this->denormalizer->denormalize($data['zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartZone', 'json', $context)); + unset($data['zone']); + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartOrganization', 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('group', $data)) { + $object->setGroup($this->denormalizer->denormalize($data['group'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGroup', 'json', $context)); + unset($data['group']); + } + if (\array_key_exists('package', $data)) { + $object->setPackage($this->denormalizer->denormalize($data['package'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartPackage', 'json', $context)); + unset($data['package']); + } + if (\array_key_exists('attached_iso', $data)) { + $object->setAttachedIso($this->denormalizer->denormalize($data['attached_iso'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartAttachedISO', 'json', $context)); + unset($data['attached_iso']); + } + if (\array_key_exists('memory_in_gb', $data)) { + $object->setMemoryInGb($data['memory_in_gb']); + unset($data['memory_in_gb']); + } + if (\array_key_exists('cpu_cores', $data)) { + $object->setCpuCores($data['cpu_cores']); + unset($data['cpu_cores']); + } + if (\array_key_exists('gpu_type', $data)) { + $object->setGpuType($this->denormalizer->denormalize($data['gpu_type'], 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGPUType', 'json', $context)); + unset($data['gpu_type']); + } + if (\array_key_exists('gpus', $data)) { + $values = []; + foreach ($data['gpus'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartGPUs', 'json', $context); + } + $object->setGpus($values); + unset($data['gpus']); + } + if (\array_key_exists('tags', $data)) { + $values_1 = []; + foreach ($data['tags'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartTags', 'json', $context); + } + $object->setTags($values_1); + unset($data['tags']); + } + if (\array_key_exists('tag_names', $data)) { + $values_2 = []; + foreach ($data['tag_names'] as $value_2) { + $values_2[] = $value_2; + } + $object->setTagNames($values_2); + unset($data['tag_names']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values_3 = []; + foreach ($data['ip_addresses'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Krystal\\Katapult\\KatapultAPI\\Model\\PatchVirtualMachinePartIPAddresses', 'json', $context); + } + $object->setIpAddresses($values_3); + unset($data['ip_addresses']); + } + foreach ($data as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_4; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('hostname') && null !== $object->getHostname()) { + $data['hostname'] = $object->getHostname(); + } + if ($object->isInitialized('fqdn') && null !== $object->getFqdn()) { + $data['fqdn'] = $object->getFqdn(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('initialRootPassword') && null !== $object->getInitialRootPassword()) { + $data['initial_root_password'] = $object->getInitialRootPassword(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('zone') && null !== $object->getZone()) { + $data['zone'] = $this->normalizer->normalize($object->getZone(), 'json', $context); + } + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + } + if ($object->isInitialized('group') && null !== $object->getGroup()) { + $data['group'] = $this->normalizer->normalize($object->getGroup(), 'json', $context); + } + if ($object->isInitialized('package') && null !== $object->getPackage()) { + $data['package'] = $this->normalizer->normalize($object->getPackage(), 'json', $context); + } + if ($object->isInitialized('attachedIso') && null !== $object->getAttachedIso()) { + $data['attached_iso'] = $this->normalizer->normalize($object->getAttachedIso(), 'json', $context); + } + if ($object->isInitialized('memoryInGb') && null !== $object->getMemoryInGb()) { + $data['memory_in_gb'] = $object->getMemoryInGb(); + } + if ($object->isInitialized('cpuCores') && null !== $object->getCpuCores()) { + $data['cpu_cores'] = $object->getCpuCores(); + } + if ($object->isInitialized('gpuType') && null !== $object->getGpuType()) { + $data['gpu_type'] = $this->normalizer->normalize($object->getGpuType(), 'json', $context); + } + if ($object->isInitialized('gpus') && null !== $object->getGpus()) { + $values = []; + foreach ($object->getGpus() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['gpus'] = $values; + } + if ($object->isInitialized('tags') && null !== $object->getTags()) { + $values_1 = []; + foreach ($object->getTags() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['tags'] = $values_1; + } + if ($object->isInitialized('tagNames') && null !== $object->getTagNames()) { + $values_2 = []; + foreach ($object->getTagNames() as $value_2) { + $values_2[] = $value_2; + } + $data['tag_names'] = $values_2; + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values_3 = []; + foreach ($object->getIpAddresses() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['ip_addresses'] = $values_3; + } + foreach ($object as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_4; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachinePatchResponse200VirtualMachine' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineResetPostBodyNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineResetPostBodyNormalizer.php new file mode 100644 index 00000000..9442caa0 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineResetPostBodyNormalizer.php @@ -0,0 +1,85 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineResetPostBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineResetPostResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineResetPostResponse200Normalizer.php new file mode 100644 index 00000000..fdeb7b76 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineResetPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTask($this->denormalizer->denormalize($data['task'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineResetPostResponse200Task', 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineResetPostResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineResetPostResponse200TaskNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineResetPostResponse200TaskNormalizer.php new file mode 100644 index 00000000..55a18e59 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineResetPostResponse200TaskNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineResetPostResponse200Task' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineShutdownPostBodyNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineShutdownPostBodyNormalizer.php new file mode 100644 index 00000000..81647355 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineShutdownPostBodyNormalizer.php @@ -0,0 +1,85 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineShutdownPostBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineShutdownPostResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineShutdownPostResponse200Normalizer.php new file mode 100644 index 00000000..b23b60cd --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineShutdownPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTask($this->denormalizer->denormalize($data['task'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineShutdownPostResponse200Task', 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineShutdownPostResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineShutdownPostResponse200TaskNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineShutdownPostResponse200TaskNormalizer.php new file mode 100644 index 00000000..e975014a --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineShutdownPostResponse200TaskNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineShutdownPostResponse200Task' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineStartPostBodyNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineStartPostBodyNormalizer.php new file mode 100644 index 00000000..af918fa5 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineStartPostBodyNormalizer.php @@ -0,0 +1,85 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStartPostBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineStartPostResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineStartPostResponse200Normalizer.php new file mode 100644 index 00000000..20c31161 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineStartPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTask($this->denormalizer->denormalize($data['task'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStartPostResponse200Task', 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStartPostResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineStartPostResponse200TaskNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineStartPostResponse200TaskNormalizer.php new file mode 100644 index 00000000..7140efe2 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineStartPostResponse200TaskNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStartPostResponse200Task' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineStopPostBodyNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineStopPostBodyNormalizer.php new file mode 100644 index 00000000..ea802a2e --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineStopPostBodyNormalizer.php @@ -0,0 +1,85 @@ +setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachineLookup', 'json', $context)); + unset($data['virtual_machine']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStopPostBody' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineStopPostResponse200Normalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineStopPostResponse200Normalizer.php new file mode 100644 index 00000000..98004db5 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineStopPostResponse200Normalizer.php @@ -0,0 +1,85 @@ +setTask($this->denormalizer->denormalize($data['task'], 'Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStopPostResponse200Task', 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStopPostResponse200' => false]; + } +} diff --git a/src/Normalizer/VirtualMachinesVirtualMachineStopPostResponse200TaskNormalizer.php b/src/Normalizer/VirtualMachinesVirtualMachineStopPostResponse200TaskNormalizer.php new file mode 100644 index 00000000..db6fd200 --- /dev/null +++ b/src/Normalizer/VirtualMachinesVirtualMachineStopPostResponse200TaskNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('status', $data)) { + $object->setStatus($data['status']); + unset($data['status']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('status') && null !== $object->getStatus()) { + $data['status'] = $object->getStatus(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\VirtualMachinesVirtualMachineStopPostResponse200Task' => false]; + } +} diff --git a/src/Normalizer/ZoneLookupNormalizer.php b/src/Normalizer/ZoneLookupNormalizer.php new file mode 100644 index 00000000..fa0e7ead --- /dev/null +++ b/src/Normalizer/ZoneLookupNormalizer.php @@ -0,0 +1,94 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ZoneLookup' => false]; + } +} diff --git a/src/Normalizer/ZoneNormalizer.php b/src/Normalizer/ZoneNormalizer.php new file mode 100644 index 00000000..b70924ee --- /dev/null +++ b/src/Normalizer/ZoneNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\Zone' => false]; + } +} diff --git a/src/Normalizer/ZoneNotFoundSchemaNormalizer.php b/src/Normalizer/ZoneNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..1e05ffb7 --- /dev/null +++ b/src/Normalizer/ZoneNotFoundSchemaNormalizer.php @@ -0,0 +1,109 @@ +setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ZoneNotFoundSchema' => false]; + } +} diff --git a/src/Normalizer/ZonesGetResponse200Normalizer.php b/src/Normalizer/ZonesGetResponse200Normalizer.php new file mode 100644 index 00000000..8498bc31 --- /dev/null +++ b/src/Normalizer/ZonesGetResponse200Normalizer.php @@ -0,0 +1,93 @@ +denormalizer->denormalize($value, 'Krystal\\Katapult\\KatapultAPI\\Model\\GetZones200ResponseZones', 'json', $context); + } + $object->setZones($values); + unset($data['zones']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getZones() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['zones'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ZonesGetResponse200' => false]; + } +} diff --git a/src/Normalizer/ZonesZoneGetResponse200Normalizer.php b/src/Normalizer/ZonesZoneGetResponse200Normalizer.php new file mode 100644 index 00000000..4dffb750 --- /dev/null +++ b/src/Normalizer/ZonesZoneGetResponse200Normalizer.php @@ -0,0 +1,85 @@ +setZone($this->denormalizer->denormalize($data['zone'], 'Krystal\\Katapult\\KatapultAPI\\Model\\ZonesZoneGetResponse200Zone', 'json', $context)); + unset($data['zone']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['zone'] = $this->normalizer->normalize($object->getZone(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ZonesZoneGetResponse200' => false]; + } +} diff --git a/src/Normalizer/ZonesZoneGetResponse200ZoneNormalizer.php b/src/Normalizer/ZonesZoneGetResponse200ZoneNormalizer.php new file mode 100644 index 00000000..1faeb553 --- /dev/null +++ b/src/Normalizer/ZonesZoneGetResponse200ZoneNormalizer.php @@ -0,0 +1,108 @@ +setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], 'Krystal\\Katapult\\KatapultAPI\\Model\\DataCenter', 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(string $format = null): array + { + return ['Krystal\\Katapult\\KatapultAPI\\Model\\ZonesZoneGetResponse200Zone' => false]; + } +} diff --git a/src/Resources/DataCenter.php b/src/Resources/DataCenter.php deleted file mode 100644 index b9197e2b..00000000 --- a/src/Resources/DataCenter.php +++ /dev/null @@ -1,7 +0,0 @@ -attributes = (array)$attributes; - - return $this; - } - - public function setResourceController(ResourceControllerInterface $resourceController): ResourceInterface - { - $this->resourceController = $resourceController; - - return $this; - } - - public static function instantiateFromSpec(object $spec, ResourceControllerInterface $resourceController = null): ResourceInterface - { - $resourceName = get_called_class(); - $resource = new $resourceName(); - $resource->setAttributes($spec); - - // Set a controller? - if ($resourceController) { - $resource->setResourceController($resourceController); - } - - return $resource; - } - - public function __get(string $name) - { - return isset($this->attributes[$name]) ? $this->attributes[$name] : null; - } - - public function resourceIsScopedByOrganization(): bool - { - return strpos(get_class($this), "Krystal\Katapult\Resources\Organization\\") === 0; - } -} diff --git a/src/Resources/ResourceInterface.php b/src/Resources/ResourceInterface.php deleted file mode 100644 index c3786c9a..00000000 --- a/src/Resources/ResourceInterface.php +++ /dev/null @@ -1,13 +0,0 @@ -getQueryOptionsResolver()->resolve($this->queryParameters); + $optionsResolved = array_map(function ($value) { + return null !== $value ? $value : ''; + }, $optionsResolved); + + return http_build_query($optionsResolved, '', '&', PHP_QUERY_RFC3986); + } + + public function getHeaders(array $baseHeaders = []): array + { + return array_merge($this->getExtraHeaders(), $baseHeaders, $this->getHeadersOptionsResolver()->resolve($this->headerParameters)); + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + return new OptionsResolver(); + } + + protected function getHeadersOptionsResolver(): OptionsResolver + { + return new OptionsResolver(); + } + + // ---------------------------------------------------------------------------------------------------- + // Used for OpenApi2 compatibility + protected function getFormBody(): array + { + return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($this->getFormOptionsResolver()->resolve($this->formParameters))]; + } + + protected function getMultipartBody($streamFactory = null): array + { + $bodyBuilder = new MultipartStreamBuilder($streamFactory); + $formParameters = $this->getFormOptionsResolver()->resolve($this->formParameters); + foreach ($formParameters as $key => $value) { + $bodyBuilder->addResource($key, $value); + } + + return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; + } + + protected function getFormOptionsResolver(): OptionsResolver + { + return new OptionsResolver(); + } + + protected function getSerializedBody(SerializerInterface $serializer): array + { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } +} diff --git a/src/Runtime/Client/Client.php b/src/Runtime/Client/Client.php new file mode 100644 index 00000000..fb0a9bf8 --- /dev/null +++ b/src/Runtime/Client/Client.php @@ -0,0 +1,98 @@ +httpClient = $httpClient; + $this->requestFactory = $requestFactory; + $this->serializer = $serializer; + $this->streamFactory = $streamFactory; + } + + public function executeEndpoint(Endpoint $endpoint, string $fetch = self::FETCH_OBJECT) + { + if (self::FETCH_RESPONSE === $fetch) { + trigger_deprecation('jane-php/open-api-common', '7.3', 'Using %s::%s method with $fetch parameter equals to response is deprecated, use %s::%s instead.', __CLASS__, __METHOD__, __CLASS__, 'executeRawEndpoint'); + + return $this->executeRawEndpoint($endpoint); + } + + return $endpoint->parseResponse($this->processEndpoint($endpoint), $this->serializer, $fetch); + } + + public function executeRawEndpoint(Endpoint $endpoint): ResponseInterface + { + return $this->processEndpoint($endpoint); + } + + private function processEndpoint(Endpoint $endpoint): ResponseInterface + { + [$bodyHeaders, $body] = $endpoint->getBody($this->serializer, $this->streamFactory); + $queryString = $endpoint->getQueryString(); + $uriGlue = false === strpos($endpoint->getUri(), '?') ? '?' : '&'; + $uri = $queryString !== '' ? $endpoint->getUri() . $uriGlue . $queryString : $endpoint->getUri(); + $request = $this->requestFactory->createRequest($endpoint->getMethod(), $uri); + if ($body) { + if ($body instanceof StreamInterface) { + $request = $request->withBody($body); + } elseif (is_resource($body)) { + $request = $request->withBody($this->streamFactory->createStreamFromResource($body)); + } elseif (strlen($body) <= 4000 && @file_exists($body)) { + // more than 4096 chars will trigger an error + $request = $request->withBody($this->streamFactory->createStreamFromFile($body)); + } else { + $request = $request->withBody($this->streamFactory->createStream($body)); + } + } + foreach ($endpoint->getHeaders($bodyHeaders) as $name => $value) { + $request = $request->withHeader($name, $value); + } + if (count($endpoint->getAuthenticationScopes()) > 0) { + $scopes = []; + foreach ($endpoint->getAuthenticationScopes() as $scope) { + $scopes[] = $scope; + } + $request = $request->withHeader(AuthenticationRegistry::SCOPES_HEADER, $scopes); + } + + return $this->httpClient->sendRequest($request); + } +} diff --git a/src/Runtime/Client/CustomQueryResolver.php b/src/Runtime/Client/CustomQueryResolver.php new file mode 100644 index 00000000..638c9dd5 --- /dev/null +++ b/src/Runtime/Client/CustomQueryResolver.php @@ -0,0 +1,18 @@ +hasHeader('Content-Type') ? current($response->getHeader('Content-Type')) : null; + + return $this->transformResponseBody($response, $serializer, $contentType); + } +} diff --git a/src/Runtime/Normalizer/CheckArray.php b/src/Runtime/Normalizer/CheckArray.php new file mode 100644 index 00000000..e91ea27e --- /dev/null +++ b/src/Runtime/Normalizer/CheckArray.php @@ -0,0 +1,21 @@ +getReferenceUri(); + + return $ref; + } + + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } +} diff --git a/src/Runtime/Normalizer/ValidationException.php b/src/Runtime/Normalizer/ValidationException.php new file mode 100644 index 00000000..85211f65 --- /dev/null +++ b/src/Runtime/Normalizer/ValidationException.php @@ -0,0 +1,30 @@ +violationList = $violationList; + parent::__construct(sprintf('Model validation failed with %d errors.', $violationList->count()), 400); + } + + public function getViolationList(): ConstraintViolationListInterface + { + return $this->violationList; + } +} diff --git a/src/Runtime/Normalizer/ValidatorTrait.php b/src/Runtime/Normalizer/ValidatorTrait.php new file mode 100644 index 00000000..3dd5b42e --- /dev/null +++ b/src/Runtime/Normalizer/ValidatorTrait.php @@ -0,0 +1,25 @@ +validate($data, $constraint); + if ($violations->count() > 0) { + throw new ValidationException($violations); + } + } +} diff --git a/src/Traits/Makeable.php b/src/Traits/Makeable.php deleted file mode 100644 index f62d8a58..00000000 --- a/src/Traits/Makeable.php +++ /dev/null @@ -1,15 +0,0 @@ -createResource(); - } - - return $resources; - } -} diff --git a/tests/Concerns/Resources/TestsCreatingResource.php b/tests/Concerns/Resources/TestsCreatingResource.php deleted file mode 100644 index 7c751475..00000000 --- a/tests/Concerns/Resources/TestsCreatingResource.php +++ /dev/null @@ -1,17 +0,0 @@ -createResource(); - - $this->assertTrue( - is_a($resource, static::RESOURCE) - ); - } -} diff --git a/tests/Concerns/Resources/TestsDeletingResources.php b/tests/Concerns/Resources/TestsDeletingResources.php deleted file mode 100644 index c65ad5a9..00000000 --- a/tests/Concerns/Resources/TestsDeletingResources.php +++ /dev/null @@ -1,24 +0,0 @@ -createResources($resourcesToCreate); - - $this->assertEquals(count($resources), $resourcesToCreate); - - $deleted = 0; - - foreach ($resources as $resource) { - $resource->delete(); - $deleted++; - } - - $this->assertEquals($deleted, count($resources)); - } -} diff --git a/tests/Concerns/Resources/TestsFetchingResource.php b/tests/Concerns/Resources/TestsFetchingResource.php deleted file mode 100644 index 7729137d..00000000 --- a/tests/Concerns/Resources/TestsFetchingResource.php +++ /dev/null @@ -1,19 +0,0 @@ -hasTrait(CreateResourcesBeforeTesting::class)) { - $this->createResources(); - } - - $firstResource = $this->katapult->resource(static::RESOURCE, $this->scopeToOrganization())->first(); - - $fetchedResource = $this->katapult->resource(static::RESOURCE)->get($firstResource->id); - - $this->assertInstanceOf(static::RESOURCE, $fetchedResource); - } -} diff --git a/tests/Concerns/Resources/TestsListingResource.php b/tests/Concerns/Resources/TestsListingResource.php deleted file mode 100644 index 36ff2ef6..00000000 --- a/tests/Concerns/Resources/TestsListingResource.php +++ /dev/null @@ -1,33 +0,0 @@ -hasTrait(CreateResourcesBeforeTesting::class)) { - $this->createResources(); - } - - $resources = $this->katapult->resource(static::RESOURCE, $this->scopeToOrganization())->all(); - - $this->assertTrue(is_array($resources)); - $this->assertTrue(count($resources) > 0); - - foreach ($resources as $resource) { - $this->assertInstanceOf(static::RESOURCE, $resource); - } - } - - public function testCanFetchFirstResource() - { - if ($this->hasTrait(CreateResourcesBeforeTesting::class)) { - $this->createResources(); - } - - $resource = $this->katapult->resource(static::RESOURCE, $this->scopeToOrganization())->first(); - - $this->assertInstanceOf(static::RESOURCE, $resource); - } -} diff --git a/tests/MiddlewareTest.php b/tests/MiddlewareTest.php deleted file mode 100644 index 6de9628d..00000000 --- a/tests/MiddlewareTest.php +++ /dev/null @@ -1,60 +0,0 @@ -push(Middleware::mapRequest(function(RequestInterface $request) use(&$middlewareCalled) { - $middlewareCalled = true; - return $request; - })); - - $katapultApi = new RestfulKatapultApiV1( - getenv('KATAPULT_API_TOKEN'), true, $handlerStack - ); - - $katapult = Katapult::make($katapultApi); - - $katapult->resource(DataCenter::class)->first(); - - $this->assertTrue($middlewareCalled); - } - - public function testMiddlewareIsInvokedWhenRebuilt() - { - $handlerStack = HandlerStack::create(); - - $middlewareCalled = false; - - $handlerStack->push(Middleware::mapRequest(function(RequestInterface $request) use(&$middlewareCalled) { - $middlewareCalled = true; - return $request; - })); - - $katapultApi = new RestfulKatapultApiV1( - getenv('KATAPULT_API_TOKEN') - ); - - $katapultApi->rebuildClient($handlerStack); - - $katapult = Katapult::make($katapultApi); - - $katapult->resource(DataCenter::class)->first(); - - $this->assertTrue($middlewareCalled); - } -} - diff --git a/tests/Resources/DataCentresTest.php b/tests/Resources/DataCentresTest.php deleted file mode 100644 index 82342999..00000000 --- a/tests/Resources/DataCentresTest.php +++ /dev/null @@ -1,16 +0,0 @@ -katapult->resource(static::RESOURCE, $this->getFirstOrganization())->create([ - 'details' => ['name' => 'zone-' . self::randomString() . '.co.uk'] - ]); - - return $resource; - } -} diff --git a/tests/Resources/ManagedOrganizationTest.php b/tests/Resources/ManagedOrganizationTest.php deleted file mode 100644 index b420aa24..00000000 --- a/tests/Resources/ManagedOrganizationTest.php +++ /dev/null @@ -1,29 +0,0 @@ -katapult->resource(static::RESOURCE, $this->getFirstOrganization())->create([ - 'name' => $orgKey, - 'sub_domain' => $orgKey - ]); - - return $resource; - } -} diff --git a/tests/Resources/OrganizationsTest.php b/tests/Resources/OrganizationsTest.php deleted file mode 100644 index 2fe8d733..00000000 --- a/tests/Resources/OrganizationsTest.php +++ /dev/null @@ -1,16 +0,0 @@ -createResource(); - - // Start the VM and wait for it to come online - if ($vm->state !== VirtualMachine::STATE_STARTED) { - $this->executeVmPowerOperationAndWaitUntilComplete($vm, ApiV1VirtualMachine::ACTION_START); - } - - $consoleSession = $vm->createConsoleSession(); - - $this->assertInstanceOf(VirtualMachine\ConsoleSession::class, $consoleSession); - } - - /** - * @throws Exception - */ - public function testVmPackageCanBeChanged() - { - $vm = $this->createResource(); - - // Start the VM and wait for it to come online - if ($vm->state !== VirtualMachine::STATE_STARTED) { - $this->executeVmPowerOperationAndWaitUntilComplete($vm, ApiV1VirtualMachine::ACTION_START); - } - - $vmPackages = $this->katapult->resource(VirtualMachinePackage::class)->all(); - - foreach ($vmPackages as $vmPackage) { - if ($vmPackage->id === $vm->package->id) { - continue; - } - - $vmPackageToUse = $vmPackage; - break; - } - - $this->assertTrue( - isset($vmPackageToUse) - ); - - $this->assertTrue( - !!$vm->changePackage(['id' => $vmPackageToUse->id]) - ); - } - - /** - * @throws Exception - */ - public function testVmCanBeStarted() - { - $vm = $this->createResource(); - - $this->executeVmPowerOperationAndWaitUntilComplete($vm, ApiV1VirtualMachine::ACTION_STOP); - - // Kind of useless, we'd get an exception if we didn't run it successfully - $this->assertTrue( - !!$vm->start() - ); - } - - /** - * @throws Exception - */ - public function testVmCanBeStopped() - { - $vm = $this->createResource(); - - $this->executeVmPowerOperationAndWaitUntilComplete($vm, ApiV1VirtualMachine::ACTION_START); - - // Kind of useless, we'd get an exception if we didn't run it successfully - $this->assertTrue( - !!$vm->stop() - ); - } - - /** - * @throws Exception - */ - public function testVmCanBeShutdown() - { - $vm = $this->createResource(); - - $this->executeVmPowerOperationAndWaitUntilComplete($vm, ApiV1VirtualMachine::ACTION_START); - - // Kind of useless, we'd get an exception if we didn't run it successfully - $this->assertTrue( - !!$vm->shutdown() - ); - } - - /** - * @throws Exception - */ - public function testVmCanBeReset() - { - $vm = $this->createResource(); - - $this->executeVmPowerOperationAndWaitUntilComplete($vm, ApiV1VirtualMachine::ACTION_START); - - // Kind of useless, we'd get an exception if we didn't run it successfully - $this->assertTrue( - !!$vm->reset() - ); - } - - /** - * @throws Exception - */ - protected function createResource(): VirtualMachine - { - /** @var VirtualMachine $resource */ - $resource = $this->createVmsAndWaitUntilReady()[0]; - - return $resource; - } - - /** - * @param VirtualMachine $virtualMachine - * @param string $powerOperation - * @param bool $justWait - If true, just wait for the expected state, don't request it from Katapult - * @throws Exception - */ - protected function executeVmPowerOperationAndWaitUntilComplete(VirtualMachine $virtualMachine, string $powerOperation, bool $justWait = false) - { - if (!$justWait) { - try { - $virtualMachine->{$powerOperation}(); - } catch (RequestException $e) { - // Account for the VM being unable to transition to a state because it's already there. These are pre-flight checks. And these are just preceding calls for the actual power function test - // Rethrow the exception if it's not the error we're expecting. - if (strpos($e->getResponse()->getBody(), 'machine cannot transition') === false) { - throw $e; - } - } - } - - switch ($powerOperation) { - case ApiV1VirtualMachine::ACTION_START: - case ApiV1VirtualMachine::ACTION_RESET: - $expectedState = VirtualMachine::STATE_STARTED; - break; - - case ApiV1VirtualMachine::ACTION_SHUTDOWN: - case ApiV1VirtualMachine::ACTION_STOP: - $expectedState = VirtualMachine::STATE_STOPPED; - break; - - default: - throw new Exception('Unexpected action'); - } - - while (true) { - if ($this->katapult->resource(VirtualMachine::class)->get($virtualMachine->id)->state === $expectedState) { - return; - } - - sleep(1); - } - } - - protected function createVmsAndWaitUntilReady($total = 1, $waitPerVm = 5, $timeoutPerVm = 10): array - { - $vmBuilds = []; - - $packageId = $this->getVirtualMachinePackage()->id; - $dataCenterId = $this->getFirstDataCenter()->id; - - for ($i = 0; $i < $total; $i++) { - $response = $this->katapult->resource(Organization\VirtualMachine::class, $this->getFirstOrganization())->build([ - 'package' => ['id' => $packageId], - 'data_center' => ['id' => $dataCenterId] - ]); - - $vmBuilds[] = $response->build; - } - - $vms = []; - $startedAt = time(); - - while (count($vmBuilds) > 0) { - if ($startedAt < (time() - ($total * $timeoutPerVm))) { - throw new Exception('Timeout exceeded for creating VMs'); - } - - foreach ($vmBuilds as $buildIndex => $vmBuild) { - // Check if the VM is built - $virtualMachineBuild = $this->katapult->resource(VirtualMachineBuild::class)->get($vmBuild->id); - - // If built, add it to the VMs array and remove the build from the build array - if ($virtualMachineBuild->virtual_machine) { - $vms[] = $this->katapult->resource(VirtualMachine::class)->get($virtualMachineBuild->virtual_machine->id); - unset($vmBuilds[$buildIndex]); - } - } - - sleep(1); - } - - sleep($total * $waitPerVm); - - return $vms; - } -} diff --git a/tests/RestApiTestCase.php b/tests/RestApiTestCase.php deleted file mode 100644 index da973552..00000000 --- a/tests/RestApiTestCase.php +++ /dev/null @@ -1,67 +0,0 @@ -katapultApi = new RestfulKatapultApiV1( - getenv('KATAPULT_API_TOKEN') - ); - - $this->katapult = Katapult::make($this->katapultApi); - } - - protected function tearDown(): void - { - parent::tearDown(); - - $resources = $this->katapult->resource(static::RESOURCE, $this->getFirstOrganization())->all(); - - foreach ($resources as $resource) { - try { - $resource->delete(); - } catch (\Throwable $e) { - // - } - } - } - - protected function getFirstOrganization(): Organization - { - return $this->katapult->resource(Organization::class)->first(); - } - - protected function getFirstDataCenter(): DataCenter - { - return $this->katapult->resource(DataCenter::class)->first(); - } - - protected function getVirtualMachinePackage(): VirtualMachinePackage - { - return $this->katapult->resource(VirtualMachinePackage::class)->first(); - } - - protected function scopeToOrganization(): ? Organization - { - $resourceClass = static::RESOURCE; - - if (!(new $resourceClass)->resourceIsScopedByOrganization()) { - return null; - } - - return $this->getFirstOrganization(); - } -} diff --git a/tests/TestCase.php b/tests/TestCase.php deleted file mode 100644 index ff9d164c..00000000 --- a/tests/TestCase.php +++ /dev/null @@ -1,19 +0,0 @@ -