diff --git a/services/iaas/oas_commit b/services/iaas/oas_commit index 39bada35c..0f8ce352b 100644 --- a/services/iaas/oas_commit +++ b/services/iaas/oas_commit @@ -1 +1 @@ -a35d8f28738a45005b098b66b6debd08a67ab018 +876a48fb56473c7c844baa697906d461c0675f47 diff --git a/services/iaas/src/stackit/iaas/__init__.py b/services/iaas/src/stackit/iaas/__init__.py index 5fa26a000..3e103b149 100644 --- a/services/iaas/src/stackit/iaas/__init__.py +++ b/services/iaas/src/stackit/iaas/__init__.py @@ -3,17 +3,18 @@ # flake8: noqa """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + __version__ = "1.0.0" # Define package exports @@ -141,6 +142,7 @@ "ServerMaintenance", "ServerNetwork", "ServerNetworking", + "ServerVTPM", "ServiceAccountMailListResponse", "SetImageSharePayload", "Snapshot", @@ -430,6 +432,7 @@ ) from stackit.iaas.models.server_network import ServerNetwork as ServerNetwork from stackit.iaas.models.server_networking import ServerNetworking as ServerNetworking +from stackit.iaas.models.server_vtpm import ServerVTPM as ServerVTPM from stackit.iaas.models.service_account_mail_list_response import ( ServiceAccountMailListResponse as ServiceAccountMailListResponse, ) diff --git a/services/iaas/src/stackit/iaas/api/default_api.py b/services/iaas/src/stackit/iaas/api/default_api.py index 985b70f0d..63780c230 100644 --- a/services/iaas/src/stackit/iaas/api/default_api.py +++ b/services/iaas/src/stackit/iaas/api/default_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from typing import Any, Dict, List, Optional, Tuple, Union @@ -1971,7 +1971,7 @@ def add_service_account_to_server( ) -> ServiceAccountMailListResponse: """Attach service account to a server. - Attach an additional service account to the server. + Attach a service account to the server. :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: UUID @@ -2051,7 +2051,7 @@ def add_service_account_to_server_with_http_info( ) -> ApiResponse[ServiceAccountMailListResponse]: """Attach service account to a server. - Attach an additional service account to the server. + Attach a service account to the server. :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: UUID @@ -2131,7 +2131,7 @@ def add_service_account_to_server_without_preload_content( ) -> RESTResponseType: """Attach service account to a server. - Attach an additional service account to the server. + Attach a service account to the server. :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: UUID @@ -2912,6 +2912,7 @@ def create_backup( "401": "Error", "403": "Error", "404": "Error", + "413": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -2985,6 +2986,7 @@ def create_backup_with_http_info( "401": "Error", "403": "Error", "404": "Error", + "413": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -3058,6 +3060,7 @@ def create_backup_without_preload_content( "401": "Error", "403": "Error", "404": "Error", + "413": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -3145,7 +3148,7 @@ def create_image( ) -> ImageCreateResponse: """Create new Image. - Create a new Image in a project. This call, if successful, returns a pre-signed URL for the customer to upload the image. + Create a new Image in a project in queued state. Image data must be imported separately. This call returns a pre-signed URL to upload small images. :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: UUID @@ -3191,6 +3194,7 @@ def create_image( "401": "Error", "403": "Error", "404": "Error", + "413": "Error", "429": "Error", "500": "Error", } @@ -3219,7 +3223,7 @@ def create_image_with_http_info( ) -> ApiResponse[ImageCreateResponse]: """Create new Image. - Create a new Image in a project. This call, if successful, returns a pre-signed URL for the customer to upload the image. + Create a new Image in a project in queued state. Image data must be imported separately. This call returns a pre-signed URL to upload small images. :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: UUID @@ -3265,6 +3269,7 @@ def create_image_with_http_info( "401": "Error", "403": "Error", "404": "Error", + "413": "Error", "429": "Error", "500": "Error", } @@ -3293,7 +3298,7 @@ def create_image_without_preload_content( ) -> RESTResponseType: """Create new Image. - Create a new Image in a project. This call, if successful, returns a pre-signed URL for the customer to upload the image. + Create a new Image in a project in queued state. Image data must be imported separately. This call returns a pre-signed URL to upload small images. :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: UUID @@ -3339,6 +3344,7 @@ def create_image_without_preload_content( "401": "Error", "403": "Error", "404": "Error", + "413": "Error", "429": "Error", "500": "Error", } @@ -6923,6 +6929,8 @@ def create_snapshot( "401": "Error", "403": "Error", "404": "Error", + "409": "Error", + "413": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -6996,6 +7004,8 @@ def create_snapshot_with_http_info( "401": "Error", "403": "Error", "404": "Error", + "409": "Error", + "413": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -7069,6 +7079,8 @@ def create_snapshot_without_preload_content( "401": "Error", "403": "Error", "404": "Error", + "409": "Error", + "413": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -7202,6 +7214,8 @@ def create_volume( "401": "Error", "403": "Error", "404": "Error", + "409": "Error", + "413": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -7275,6 +7289,8 @@ def create_volume_with_http_info( "401": "Error", "403": "Error", "404": "Error", + "409": "Error", + "413": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -7348,6 +7364,8 @@ def create_volume_without_preload_content( "401": "Error", "403": "Error", "404": "Error", + "409": "Error", + "413": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -27738,9 +27756,9 @@ def list_server_service_accounts( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ServiceAccountMailListResponse: - """List all service accounts of the Server. + """List the service account of the Server. - Get the list of the service accounts of the server. + Get service account of the server in a list. :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: UUID @@ -27811,9 +27829,9 @@ def list_server_service_accounts_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ServiceAccountMailListResponse]: - """List all service accounts of the Server. + """List the service account of the Server. - Get the list of the service accounts of the server. + Get service account of the server in a list. :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: UUID @@ -27884,9 +27902,9 @@ def list_server_service_accounts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """List all service accounts of the Server. + """List the service account of the Server. - Get the list of the service accounts of the server. + Get service account of the server in a list. :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: UUID @@ -31149,7 +31167,7 @@ def remove_service_account_from_server( ) -> ServiceAccountMailListResponse: """Detach a service account from a server. - Detach an additional service account from the server. + Detach a service account from the server. :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: UUID @@ -31229,7 +31247,7 @@ def remove_service_account_from_server_with_http_info( ) -> ApiResponse[ServiceAccountMailListResponse]: """Detach a service account from a server. - Detach an additional service account from the server. + Detach a service account from the server. :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: UUID @@ -31309,7 +31327,7 @@ def remove_service_account_from_server_without_preload_content( ) -> RESTResponseType: """Detach a service account from a server. - Detach an additional service account from the server. + Detach a service account from the server. :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: UUID diff --git a/services/iaas/src/stackit/iaas/api_client.py b/services/iaas/src/stackit/iaas/api_client.py index 960da093d..a41580db0 100644 --- a/services/iaas/src/stackit/iaas/api_client.py +++ b/services/iaas/src/stackit/iaas/api_client.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import datetime @@ -37,6 +37,7 @@ ApiException, ) + RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] diff --git a/services/iaas/src/stackit/iaas/api_response.py b/services/iaas/src/stackit/iaas/api_response.py index ca801da0b..b3ba14a1d 100644 --- a/services/iaas/src/stackit/iaas/api_response.py +++ b/services/iaas/src/stackit/iaas/api_response.py @@ -6,6 +6,7 @@ from pydantic import BaseModel, Field, StrictBytes, StrictInt + T = TypeVar("T") diff --git a/services/iaas/src/stackit/iaas/configuration.py b/services/iaas/src/stackit/iaas/configuration.py index f68dce9eb..991dff32b 100644 --- a/services/iaas/src/stackit/iaas/configuration.py +++ b/services/iaas/src/stackit/iaas/configuration.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import sys @@ -19,6 +19,7 @@ import os + ServerVariablesT = Dict[str, str] diff --git a/services/iaas/src/stackit/iaas/exceptions.py b/services/iaas/src/stackit/iaas/exceptions.py index 368c8de9c..9992f35fc 100644 --- a/services/iaas/src/stackit/iaas/exceptions.py +++ b/services/iaas/src/stackit/iaas/exceptions.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from typing import Any, Optional diff --git a/services/iaas/src/stackit/iaas/models/__init__.py b/services/iaas/src/stackit/iaas/models/__init__.py index a6a2f14c4..cd38c59d1 100644 --- a/services/iaas/src/stackit/iaas/models/__init__.py +++ b/services/iaas/src/stackit/iaas/models/__init__.py @@ -2,15 +2,15 @@ # flake8: noqa """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 # import models into model package @@ -163,6 +163,7 @@ from stackit.iaas.models.server_maintenance import ServerMaintenance from stackit.iaas.models.server_network import ServerNetwork from stackit.iaas.models.server_networking import ServerNetworking +from stackit.iaas.models.server_vtpm import ServerVTPM from stackit.iaas.models.service_account_mail_list_response import ( ServiceAccountMailListResponse, ) diff --git a/services/iaas/src/stackit/iaas/models/add_routes_to_routing_table_payload.py b/services/iaas/src/stackit/iaas/models/add_routes_to_routing_table_payload.py index b7d69e51a..ac6d66031 100644 --- a/services/iaas/src/stackit/iaas/models/add_routes_to_routing_table_payload.py +++ b/services/iaas/src/stackit/iaas/models/add_routes_to_routing_table_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/add_routing_table_to_area_payload.py b/services/iaas/src/stackit/iaas/models/add_routing_table_to_area_payload.py index 4c6be23f9..f5ed01e7c 100644 --- a/services/iaas/src/stackit/iaas/models/add_routing_table_to_area_payload.py +++ b/services/iaas/src/stackit/iaas/models/add_routing_table_to_area_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -28,7 +28,7 @@ class AddRoutingTableToAreaPayload(BaseModel): """ - An object representing a routing table. + An object representing a routing table. Filterable Fields: `dynamicRoutes`, `systemRoutes`. """ # noqa: E501 created_at: Optional[datetime] = Field( diff --git a/services/iaas/src/stackit/iaas/models/add_volume_to_server_payload.py b/services/iaas/src/stackit/iaas/models/add_volume_to_server_payload.py index 2b324cd14..9c74a452f 100644 --- a/services/iaas/src/stackit/iaas/models/add_volume_to_server_payload.py +++ b/services/iaas/src/stackit/iaas/models/add_volume_to_server_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/affinity_group.py b/services/iaas/src/stackit/iaas/models/affinity_group.py index 6c9932feb..d76f7b50c 100644 --- a/services/iaas/src/stackit/iaas/models/affinity_group.py +++ b/services/iaas/src/stackit/iaas/models/affinity_group.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/affinity_group_list_response.py b/services/iaas/src/stackit/iaas/models/affinity_group_list_response.py index e0873df6b..153f9ad8a 100644 --- a/services/iaas/src/stackit/iaas/models/affinity_group_list_response.py +++ b/services/iaas/src/stackit/iaas/models/affinity_group_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/allowed_addresses_inner.py b/services/iaas/src/stackit/iaas/models/allowed_addresses_inner.py index bdc8acbc2..7a721c3fc 100644 --- a/services/iaas/src/stackit/iaas/models/allowed_addresses_inner.py +++ b/services/iaas/src/stackit/iaas/models/allowed_addresses_inner.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -28,6 +28,7 @@ ) from typing_extensions import Annotated, Self + ALLOWEDADDRESSESINNER_ONE_OF_SCHEMAS = ["str"] diff --git a/services/iaas/src/stackit/iaas/models/area_id.py b/services/iaas/src/stackit/iaas/models/area_id.py index 5ec1c119f..81fc4642e 100644 --- a/services/iaas/src/stackit/iaas/models/area_id.py +++ b/services/iaas/src/stackit/iaas/models/area_id.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -33,6 +33,7 @@ from typing import Annotated + AREAID_ONE_OF_SCHEMAS = ["StaticAreaID", "UUID"] diff --git a/services/iaas/src/stackit/iaas/models/availability_zone_list_response.py b/services/iaas/src/stackit/iaas/models/availability_zone_list_response.py index 42d1acab0..59b68c2e8 100644 --- a/services/iaas/src/stackit/iaas/models/availability_zone_list_response.py +++ b/services/iaas/src/stackit/iaas/models/availability_zone_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/backup.py b/services/iaas/src/stackit/iaas/models/backup.py index 82813907c..84c5429aa 100644 --- a/services/iaas/src/stackit/iaas/models/backup.py +++ b/services/iaas/src/stackit/iaas/models/backup.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/backup_list_response.py b/services/iaas/src/stackit/iaas/models/backup_list_response.py index d3b9675d1..c469cb052 100644 --- a/services/iaas/src/stackit/iaas/models/backup_list_response.py +++ b/services/iaas/src/stackit/iaas/models/backup_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/backup_source.py b/services/iaas/src/stackit/iaas/models/backup_source.py index 5d7d2b864..4fcc173e5 100644 --- a/services/iaas/src/stackit/iaas/models/backup_source.py +++ b/services/iaas/src/stackit/iaas/models/backup_source.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/base_security_group_rule.py b/services/iaas/src/stackit/iaas/models/base_security_group_rule.py index d556d1293..c023f7b6b 100644 --- a/services/iaas/src/stackit/iaas/models/base_security_group_rule.py +++ b/services/iaas/src/stackit/iaas/models/base_security_group_rule.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/boot_volume.py b/services/iaas/src/stackit/iaas/models/boot_volume.py index d46d5583a..b93078830 100644 --- a/services/iaas/src/stackit/iaas/models/boot_volume.py +++ b/services/iaas/src/stackit/iaas/models/boot_volume.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/boot_volume_source.py b/services/iaas/src/stackit/iaas/models/boot_volume_source.py index 7cac2e45e..8fb12fe31 100644 --- a/services/iaas/src/stackit/iaas/models/boot_volume_source.py +++ b/services/iaas/src/stackit/iaas/models/boot_volume_source.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_affinity_group_payload.py b/services/iaas/src/stackit/iaas/models/create_affinity_group_payload.py index 314c2efa5..59e6a3a6f 100644 --- a/services/iaas/src/stackit/iaas/models/create_affinity_group_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_affinity_group_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_backup_payload.py b/services/iaas/src/stackit/iaas/models/create_backup_payload.py index 51d00a911..def0f8b40 100644 --- a/services/iaas/src/stackit/iaas/models/create_backup_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_backup_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_image_payload.py b/services/iaas/src/stackit/iaas/models/create_image_payload.py index 0e5d27f37..92a7a40be 100644 --- a/services/iaas/src/stackit/iaas/models/create_image_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_image_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_isolated_network_payload.py b/services/iaas/src/stackit/iaas/models/create_isolated_network_payload.py index cc11bba06..4d7684012 100644 --- a/services/iaas/src/stackit/iaas/models/create_isolated_network_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_isolated_network_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_key_pair_payload.py b/services/iaas/src/stackit/iaas/models/create_key_pair_payload.py index 9c638d0d8..65c5c7a5f 100644 --- a/services/iaas/src/stackit/iaas/models/create_key_pair_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_key_pair_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_network_area_payload.py b/services/iaas/src/stackit/iaas/models/create_network_area_payload.py index c46a32d99..cd8e1cc63 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_area_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_network_area_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_network_area_range_payload.py b/services/iaas/src/stackit/iaas/models/create_network_area_range_payload.py index bf38c6e8e..b4310eba1 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_area_range_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_network_area_range_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -31,7 +31,7 @@ class CreateNetworkAreaRangePayload(BaseModel): """ # noqa: E501 ipv4: Optional[Annotated[List[NetworkRange], Field(min_length=1, max_length=64)]] = Field( - default=None, description="A list of network ranges." + default=None, description="A list of network area network ranges." ) __properties: ClassVar[List[str]] = ["ipv4"] diff --git a/services/iaas/src/stackit/iaas/models/create_network_area_region_payload.py b/services/iaas/src/stackit/iaas/models/create_network_area_region_payload.py index 3e9b025dc..e50ad04ba 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_area_region_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_network_area_region_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_network_area_route_payload.py b/services/iaas/src/stackit/iaas/models/create_network_area_route_payload.py index 4c43414a2..1ab0ea1f4 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_area_route_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_network_area_route_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_network_ipv4.py b/services/iaas/src/stackit/iaas/models/create_network_ipv4.py index 0be1e5bdb..edc6de869 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_ipv4.py +++ b/services/iaas/src/stackit/iaas/models/create_network_ipv4.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -33,6 +33,7 @@ CreateNetworkIPv4WithPrefixLength, ) + CREATENETWORKIPV4_ONE_OF_SCHEMAS = ["CreateNetworkIPv4WithPrefix", "CreateNetworkIPv4WithPrefixLength"] diff --git a/services/iaas/src/stackit/iaas/models/create_network_ipv4_with_prefix.py b/services/iaas/src/stackit/iaas/models/create_network_ipv4_with_prefix.py index 25e83b87b..b608e2f4b 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_ipv4_with_prefix.py +++ b/services/iaas/src/stackit/iaas/models/create_network_ipv4_with_prefix.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -18,6 +18,7 @@ import pprint import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set +from uuid import UUID from pydantic import BaseModel, ConfigDict, Field, field_validator from pydantic_core import to_jsonable_python @@ -37,7 +38,10 @@ class CreateNetworkIPv4WithPrefix(BaseModel): default=None, description="A list containing DNS Servers/Nameservers for IPv4." ) prefix: Annotated[str, Field(strict=True)] = Field(description="IPv4 Classless Inter-Domain Routing (CIDR).") - __properties: ClassVar[List[str]] = ["gateway", "nameservers", "prefix"] + vpc_network_range_id: Optional[UUID] = Field( + default=None, description="Universally Unique Identifier (UUID).", alias="vpcNetworkRangeId" + ) + __properties: ClassVar[List[str]] = ["gateway", "nameservers", "prefix", "vpcNetworkRangeId"] @field_validator("gateway") def gateway_validate_regular_expression(cls, value): @@ -72,6 +76,21 @@ def prefix_validate_regular_expression(cls, value): ) return value + @field_validator("vpc_network_range_id") + def vpc_network_range_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not isinstance(value, str): + value = str(value) + + if not re.match(r"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", value): + raise ValueError( + r"must validate the regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/" + ) + return value + model_config = ConfigDict( validate_by_name=True, validate_by_alias=True, @@ -126,6 +145,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate( - {"gateway": obj.get("gateway"), "nameservers": obj.get("nameservers"), "prefix": obj.get("prefix")} + { + "gateway": obj.get("gateway"), + "nameservers": obj.get("nameservers"), + "prefix": obj.get("prefix"), + "vpcNetworkRangeId": obj.get("vpcNetworkRangeId"), + } ) return _obj diff --git a/services/iaas/src/stackit/iaas/models/create_network_ipv4_with_prefix_length.py b/services/iaas/src/stackit/iaas/models/create_network_ipv4_with_prefix_length.py index 01c51c486..eac401887 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_ipv4_with_prefix_length.py +++ b/services/iaas/src/stackit/iaas/models/create_network_ipv4_with_prefix_length.py @@ -1,24 +1,26 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations import json import pprint +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set +from uuid import UUID -from pydantic import BaseModel, ConfigDict, Field +from pydantic import BaseModel, ConfigDict, Field, field_validator from pydantic_core import to_jsonable_python from typing_extensions import Annotated, Self @@ -32,7 +34,25 @@ class CreateNetworkIPv4WithPrefixLength(BaseModel): default=None, description="A list containing DNS Servers/Nameservers for IPv4." ) prefix_length: Annotated[int, Field(le=29, strict=True, ge=8)] = Field(alias="prefixLength") - __properties: ClassVar[List[str]] = ["nameservers", "prefixLength"] + vpc_network_range_id: Optional[UUID] = Field( + default=None, description="Universally Unique Identifier (UUID).", alias="vpcNetworkRangeId" + ) + __properties: ClassVar[List[str]] = ["nameservers", "prefixLength", "vpcNetworkRangeId"] + + @field_validator("vpc_network_range_id") + def vpc_network_range_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not isinstance(value, str): + value = str(value) + + if not re.match(r"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", value): + raise ValueError( + r"must validate the regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/" + ) + return value model_config = ConfigDict( validate_by_name=True, @@ -82,5 +102,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"nameservers": obj.get("nameservers"), "prefixLength": obj.get("prefixLength")}) + _obj = cls.model_validate( + { + "nameservers": obj.get("nameservers"), + "prefixLength": obj.get("prefixLength"), + "vpcNetworkRangeId": obj.get("vpcNetworkRangeId"), + } + ) return _obj diff --git a/services/iaas/src/stackit/iaas/models/create_network_ipv6.py b/services/iaas/src/stackit/iaas/models/create_network_ipv6.py index 147298359..b1ed86759 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_ipv6.py +++ b/services/iaas/src/stackit/iaas/models/create_network_ipv6.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -33,6 +33,7 @@ CreateNetworkIPv6WithPrefixLength, ) + CREATENETWORKIPV6_ONE_OF_SCHEMAS = ["CreateNetworkIPv6WithPrefix", "CreateNetworkIPv6WithPrefixLength"] diff --git a/services/iaas/src/stackit/iaas/models/create_network_ipv6_with_prefix.py b/services/iaas/src/stackit/iaas/models/create_network_ipv6_with_prefix.py index 383b4db79..3b98408f4 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_ipv6_with_prefix.py +++ b/services/iaas/src/stackit/iaas/models/create_network_ipv6_with_prefix.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -18,6 +18,7 @@ import pprint import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set +from uuid import UUID from pydantic import BaseModel, ConfigDict, Field, field_validator from pydantic_core import to_jsonable_python @@ -37,7 +38,10 @@ class CreateNetworkIPv6WithPrefix(BaseModel): default=None, description="A list containing DNS Servers/Nameservers for IPv6." ) prefix: Annotated[str, Field(strict=True)] = Field(description="Classless Inter-Domain Routing (CIDR) for IPv6.") - __properties: ClassVar[List[str]] = ["gateway", "nameservers", "prefix"] + vpc_network_range_id: Optional[UUID] = Field( + default=None, description="Universally Unique Identifier (UUID).", alias="vpcNetworkRangeId" + ) + __properties: ClassVar[List[str]] = ["gateway", "nameservers", "prefix", "vpcNetworkRangeId"] @field_validator("gateway") def gateway_validate_regular_expression(cls, value): @@ -72,6 +76,21 @@ def prefix_validate_regular_expression(cls, value): ) return value + @field_validator("vpc_network_range_id") + def vpc_network_range_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not isinstance(value, str): + value = str(value) + + if not re.match(r"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", value): + raise ValueError( + r"must validate the regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/" + ) + return value + model_config = ConfigDict( validate_by_name=True, validate_by_alias=True, @@ -126,6 +145,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate( - {"gateway": obj.get("gateway"), "nameservers": obj.get("nameservers"), "prefix": obj.get("prefix")} + { + "gateway": obj.get("gateway"), + "nameservers": obj.get("nameservers"), + "prefix": obj.get("prefix"), + "vpcNetworkRangeId": obj.get("vpcNetworkRangeId"), + } ) return _obj diff --git a/services/iaas/src/stackit/iaas/models/create_network_ipv6_with_prefix_length.py b/services/iaas/src/stackit/iaas/models/create_network_ipv6_with_prefix_length.py index 46d59cdf4..eeac42916 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_ipv6_with_prefix_length.py +++ b/services/iaas/src/stackit/iaas/models/create_network_ipv6_with_prefix_length.py @@ -1,24 +1,26 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations import json import pprint +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set +from uuid import UUID -from pydantic import BaseModel, ConfigDict, Field +from pydantic import BaseModel, ConfigDict, Field, field_validator from pydantic_core import to_jsonable_python from typing_extensions import Annotated, Self @@ -32,7 +34,25 @@ class CreateNetworkIPv6WithPrefixLength(BaseModel): default=None, description="A list containing DNS Servers/Nameservers for IPv6." ) prefix_length: Annotated[int, Field(le=128, strict=True, ge=56)] = Field(alias="prefixLength") - __properties: ClassVar[List[str]] = ["nameservers", "prefixLength"] + vpc_network_range_id: Optional[UUID] = Field( + default=None, description="Universally Unique Identifier (UUID).", alias="vpcNetworkRangeId" + ) + __properties: ClassVar[List[str]] = ["nameservers", "prefixLength", "vpcNetworkRangeId"] + + @field_validator("vpc_network_range_id") + def vpc_network_range_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not isinstance(value, str): + value = str(value) + + if not re.match(r"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", value): + raise ValueError( + r"must validate the regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/" + ) + return value model_config = ConfigDict( validate_by_name=True, @@ -82,5 +102,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"nameservers": obj.get("nameservers"), "prefixLength": obj.get("prefixLength")}) + _obj = cls.model_validate( + { + "nameservers": obj.get("nameservers"), + "prefixLength": obj.get("prefixLength"), + "vpcNetworkRangeId": obj.get("vpcNetworkRangeId"), + } + ) return _obj diff --git a/services/iaas/src/stackit/iaas/models/create_network_payload.py b/services/iaas/src/stackit/iaas/models/create_network_payload.py index 4adb5987e..522844a41 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_network_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -49,7 +49,8 @@ class CreateNetworkPayload(BaseModel): routing_table_id: Optional[UUID] = Field( default=None, description="Universally Unique Identifier (UUID).", alias="routingTableId" ) - __properties: ClassVar[List[str]] = ["dhcp", "ipv4", "ipv6", "labels", "name", "routed", "routingTableId"] + vpc_id: Optional[UUID] = Field(default=None, description="The identifier (ID) of a STACKIT VPC.", alias="vpcId") + __properties: ClassVar[List[str]] = ["dhcp", "ipv4", "ipv6", "labels", "name", "routed", "routingTableId", "vpcId"] @field_validator("name") def name_validate_regular_expression(cls, value): @@ -76,6 +77,21 @@ def routing_table_id_validate_regular_expression(cls, value): ) return value + @field_validator("vpc_id") + def vpc_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not isinstance(value, str): + value = str(value) + + if not re.match(r"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", value): + raise ValueError( + r"must validate the regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/" + ) + return value + model_config = ConfigDict( validate_by_name=True, validate_by_alias=True, @@ -139,6 +155,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "routed": obj.get("routed"), "routingTableId": obj.get("routingTableId"), + "vpcId": obj.get("vpcId"), } ) return _obj diff --git a/services/iaas/src/stackit/iaas/models/create_nic_payload.py b/services/iaas/src/stackit/iaas/models/create_nic_payload.py index e75e84b7a..c01866de8 100644 --- a/services/iaas/src/stackit/iaas/models/create_nic_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_nic_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_protocol.py b/services/iaas/src/stackit/iaas/models/create_protocol.py index 9ce7d5ec9..3233304db 100644 --- a/services/iaas/src/stackit/iaas/models/create_protocol.py +++ b/services/iaas/src/stackit/iaas/models/create_protocol.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -27,6 +27,7 @@ ) from typing_extensions import Annotated, Self + CREATEPROTOCOL_ONE_OF_SCHEMAS = ["int", "str"] diff --git a/services/iaas/src/stackit/iaas/models/create_public_ip_payload.py b/services/iaas/src/stackit/iaas/models/create_public_ip_payload.py index 38bd8e281..7af4294bc 100644 --- a/services/iaas/src/stackit/iaas/models/create_public_ip_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_public_ip_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_security_group_payload.py b/services/iaas/src/stackit/iaas/models/create_security_group_payload.py index 8db636761..a5e097984 100644 --- a/services/iaas/src/stackit/iaas/models/create_security_group_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_security_group_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_security_group_rule_payload.py b/services/iaas/src/stackit/iaas/models/create_security_group_rule_payload.py index eee80c3b7..7720dfc71 100644 --- a/services/iaas/src/stackit/iaas/models/create_security_group_rule_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_security_group_rule_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_security_group_rule_protocol.py b/services/iaas/src/stackit/iaas/models/create_security_group_rule_protocol.py index b1e585f5b..c711a9eae 100644 --- a/services/iaas/src/stackit/iaas/models/create_security_group_rule_protocol.py +++ b/services/iaas/src/stackit/iaas/models/create_security_group_rule_protocol.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_server_networking.py b/services/iaas/src/stackit/iaas/models/create_server_networking.py index 38693f8de..f0cba7d05 100644 --- a/services/iaas/src/stackit/iaas/models/create_server_networking.py +++ b/services/iaas/src/stackit/iaas/models/create_server_networking.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_server_networking_with_nics.py b/services/iaas/src/stackit/iaas/models/create_server_networking_with_nics.py index 0366ee366..0e8b1aefd 100644 --- a/services/iaas/src/stackit/iaas/models/create_server_networking_with_nics.py +++ b/services/iaas/src/stackit/iaas/models/create_server_networking_with_nics.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_server_payload.py b/services/iaas/src/stackit/iaas/models/create_server_payload.py index 4bbb446e3..3546ad6b3 100644 --- a/services/iaas/src/stackit/iaas/models/create_server_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_server_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -40,6 +40,7 @@ from stackit.iaas.models.server_agent import ServerAgent from stackit.iaas.models.server_maintenance import ServerMaintenance from stackit.iaas.models.server_network import ServerNetwork +from stackit.iaas.models.server_vtpm import ServerVTPM class CreateServerPayload(BaseModel): @@ -118,6 +119,7 @@ class CreateServerPayload(BaseModel): alias="userData", ) volumes: Optional[List[UUID]] = Field(default=None, description="The list of volumes attached to the server.") + vtpm: Optional[ServerVTPM] = None __properties: ClassVar[List[str]] = [ "affinityGroup", "agent", @@ -144,6 +146,7 @@ class CreateServerPayload(BaseModel): "updatedAt", "userData", "volumes", + "vtpm", ] @field_validator("affinity_group") @@ -345,6 +348,9 @@ def to_dict(self) -> Dict[str, Any]: if _item_nics: _items.append(_item_nics.to_dict()) _dict["nics"] = _items + # override the default output from pydantic by calling `to_dict()` of vtpm + if self.vtpm: + _dict["vtpm"] = self.vtpm.to_dict() return _dict @classmethod @@ -393,6 +399,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "updatedAt": obj.get("updatedAt"), "userData": obj.get("userData"), "volumes": obj.get("volumes"), + "vtpm": ServerVTPM.from_dict(obj["vtpm"]) if obj.get("vtpm") is not None else None, } ) return _obj diff --git a/services/iaas/src/stackit/iaas/models/create_server_payload_all_of_networking.py b/services/iaas/src/stackit/iaas/models/create_server_payload_all_of_networking.py index 8af53e904..cd6ae5698 100644 --- a/services/iaas/src/stackit/iaas/models/create_server_payload_all_of_networking.py +++ b/services/iaas/src/stackit/iaas/models/create_server_payload_all_of_networking.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -31,6 +31,7 @@ CreateServerNetworkingWithNics, ) + CREATESERVERPAYLOADALLOFNETWORKING_ONE_OF_SCHEMAS = ["CreateServerNetworking", "CreateServerNetworkingWithNics"] diff --git a/services/iaas/src/stackit/iaas/models/create_snapshot_payload.py b/services/iaas/src/stackit/iaas/models/create_snapshot_payload.py index f2e5e1d1c..f12589f8b 100644 --- a/services/iaas/src/stackit/iaas/models/create_snapshot_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_snapshot_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -31,6 +31,9 @@ class CreateSnapshotPayload(BaseModel): Object that represents a snapshot. """ # noqa: E501 + availability_zone: Optional[StrictStr] = Field( + default=None, description="Object that represents an availability zone.", alias="availabilityZone" + ) created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" ) @@ -55,6 +58,7 @@ class CreateSnapshotPayload(BaseModel): ) volume_id: UUID = Field(description="Universally Unique Identifier (UUID).", alias="volumeId") __properties: ClassVar[List[str]] = [ + "availabilityZone", "createdAt", "description", "id", @@ -166,9 +170,11 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set( [ + "availability_zone", "created_at", "id", "size", @@ -195,6 +201,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "availabilityZone": obj.get("availabilityZone"), "createdAt": obj.get("createdAt"), "description": obj.get("description"), "id": obj.get("id"), diff --git a/services/iaas/src/stackit/iaas/models/create_volume_payload.py b/services/iaas/src/stackit/iaas/models/create_volume_payload.py index 4fd9ea345..c4f6558e5 100644 --- a/services/iaas/src/stackit/iaas/models/create_volume_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_volume_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -76,7 +76,7 @@ class CreateVolumePayload(BaseModel): source: Optional[VolumeSource] = None status: Optional[StrictStr] = Field( default=None, - description="The status of a volume object. Possible values: `ATTACHED`, `ATTACHING`, `AVAILABLE`, `AWAITING-TRANSFER`, `BACKING-UP`, `CREATING`, `DELETED`, `DELETING`, `DETACHING`, `DOWNLOADING`, `ERROR`, `ERROR_BACKING-UP`, `ERROR_DELETING`, `ERROR_RESIZING`, `ERROR_RESTORING-BACKUP`, `MAINTENANCE`, `RESERVED`, `RESIZING`, `RESTORING-BACKUP`, `RETYPING`, `UPLOADING`.", + description="The status of a volume object. Possible values: `ATTACHED`, `ATTACHING`, `AVAILABLE`, `AWAITING-TRANSFER`, `BACKING-UP`, `CREATING`, `DELETED`, `DELETING`, `DETACHING`, `DOWNLOADING`, `ERROR`, `ERROR_BACKING-UP`, `ERROR_DELETING`, `ERROR_RESIZING`, `ERROR_RESTORING-BACKUP`, `ERROR_KMS-ENCRYPTION-PARAMS`, `MAINTENANCE`, `RESERVED`, `RESIZING`, `RESTORING-BACKUP`, `RETYPING`, `UPLOADING`.", ) updated_at: Optional[datetime] = Field( default=None, description="Date-time when resource was last updated.", alias="updatedAt" diff --git a/services/iaas/src/stackit/iaas/models/destination_cidrv4.py b/services/iaas/src/stackit/iaas/models/destination_cidrv4.py index 2814acfa5..db516f074 100644 --- a/services/iaas/src/stackit/iaas/models/destination_cidrv4.py +++ b/services/iaas/src/stackit/iaas/models/destination_cidrv4.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/destination_cidrv6.py b/services/iaas/src/stackit/iaas/models/destination_cidrv6.py index f70743148..852dcb17b 100644 --- a/services/iaas/src/stackit/iaas/models/destination_cidrv6.py +++ b/services/iaas/src/stackit/iaas/models/destination_cidrv6.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/error.py b/services/iaas/src/stackit/iaas/models/error.py index 673ba48d5..5505720fc 100644 --- a/services/iaas/src/stackit/iaas/models/error.py +++ b/services/iaas/src/stackit/iaas/models/error.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/get_server_log200_response.py b/services/iaas/src/stackit/iaas/models/get_server_log200_response.py index 485d9adc4..f4071cce9 100644 --- a/services/iaas/src/stackit/iaas/models/get_server_log200_response.py +++ b/services/iaas/src/stackit/iaas/models/get_server_log200_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/icmp_parameters.py b/services/iaas/src/stackit/iaas/models/icmp_parameters.py index b627960a9..4ae83979e 100644 --- a/services/iaas/src/stackit/iaas/models/icmp_parameters.py +++ b/services/iaas/src/stackit/iaas/models/icmp_parameters.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/image.py b/services/iaas/src/stackit/iaas/models/image.py index 8d4f3c99d..2ebb45beb 100644 --- a/services/iaas/src/stackit/iaas/models/image.py +++ b/services/iaas/src/stackit/iaas/models/image.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/image_agent.py b/services/iaas/src/stackit/iaas/models/image_agent.py index b8098a829..85feab84d 100644 --- a/services/iaas/src/stackit/iaas/models/image_agent.py +++ b/services/iaas/src/stackit/iaas/models/image_agent.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/image_checksum.py b/services/iaas/src/stackit/iaas/models/image_checksum.py index d4d660cb0..2923a8976 100644 --- a/services/iaas/src/stackit/iaas/models/image_checksum.py +++ b/services/iaas/src/stackit/iaas/models/image_checksum.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/image_config.py b/services/iaas/src/stackit/iaas/models/image_config.py index 204f2bfa9..464547ea2 100644 --- a/services/iaas/src/stackit/iaas/models/image_config.py +++ b/services/iaas/src/stackit/iaas/models/image_config.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/image_create_response.py b/services/iaas/src/stackit/iaas/models/image_create_response.py index f1f2b7ed5..c61f93090 100644 --- a/services/iaas/src/stackit/iaas/models/image_create_response.py +++ b/services/iaas/src/stackit/iaas/models/image_create_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/image_from_volume_payload.py b/services/iaas/src/stackit/iaas/models/image_from_volume_payload.py index 69e5b281d..c817a748f 100644 --- a/services/iaas/src/stackit/iaas/models/image_from_volume_payload.py +++ b/services/iaas/src/stackit/iaas/models/image_from_volume_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/image_list_response.py b/services/iaas/src/stackit/iaas/models/image_list_response.py index 7f1b8c861..41abb08d7 100644 --- a/services/iaas/src/stackit/iaas/models/image_list_response.py +++ b/services/iaas/src/stackit/iaas/models/image_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/image_share.py b/services/iaas/src/stackit/iaas/models/image_share.py index 9a208c7c9..56b39875f 100644 --- a/services/iaas/src/stackit/iaas/models/image_share.py +++ b/services/iaas/src/stackit/iaas/models/image_share.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/image_share_consumer.py b/services/iaas/src/stackit/iaas/models/image_share_consumer.py index 44b38f063..a4e08f044 100644 --- a/services/iaas/src/stackit/iaas/models/image_share_consumer.py +++ b/services/iaas/src/stackit/iaas/models/image_share_consumer.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/key_pair_list_response.py b/services/iaas/src/stackit/iaas/models/key_pair_list_response.py index 55aeb2d16..c0d0d8c21 100644 --- a/services/iaas/src/stackit/iaas/models/key_pair_list_response.py +++ b/services/iaas/src/stackit/iaas/models/key_pair_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/keypair.py b/services/iaas/src/stackit/iaas/models/keypair.py index 5649782eb..67921d903 100644 --- a/services/iaas/src/stackit/iaas/models/keypair.py +++ b/services/iaas/src/stackit/iaas/models/keypair.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/machine_type.py b/services/iaas/src/stackit/iaas/models/machine_type.py index d9c230dfa..a21db9727 100644 --- a/services/iaas/src/stackit/iaas/models/machine_type.py +++ b/services/iaas/src/stackit/iaas/models/machine_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/machine_type_list_response.py b/services/iaas/src/stackit/iaas/models/machine_type_list_response.py index f58c822ea..4f8a7673b 100644 --- a/services/iaas/src/stackit/iaas/models/machine_type_list_response.py +++ b/services/iaas/src/stackit/iaas/models/machine_type_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/network.py b/services/iaas/src/stackit/iaas/models/network.py index cb856c6ce..98b6806b9 100644 --- a/services/iaas/src/stackit/iaas/models/network.py +++ b/services/iaas/src/stackit/iaas/models/network.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -65,6 +65,7 @@ class Network(BaseModel): updated_at: Optional[datetime] = Field( default=None, description="Date-time when resource was last updated.", alias="updatedAt" ) + vpc_id: Optional[UUID] = Field(default=None, description="The identifier (ID) of a STACKIT VPC.", alias="vpcId") __properties: ClassVar[List[str]] = [ "createdAt", "dhcp", @@ -77,6 +78,7 @@ class Network(BaseModel): "routingTableId", "status", "updatedAt", + "vpcId", ] @field_validator("created_at", mode="before") @@ -132,6 +134,21 @@ def updated_at_change_year_zero_to_one(cls, value): return "0001" + value[4:] # Take "0001" and append the rest of the string return value + @field_validator("vpc_id") + def vpc_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not isinstance(value, str): + value = str(value) + + if not re.match(r"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", value): + raise ValueError( + r"must validate the regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/" + ) + return value + model_config = ConfigDict( validate_by_name=True, validate_by_alias=True, @@ -206,6 +223,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "routingTableId": obj.get("routingTableId"), "status": obj.get("status"), "updatedAt": obj.get("updatedAt"), + "vpcId": obj.get("vpcId"), } ) return _obj diff --git a/services/iaas/src/stackit/iaas/models/network_area.py b/services/iaas/src/stackit/iaas/models/network_area.py index 061c82a63..a83a5dee0 100644 --- a/services/iaas/src/stackit/iaas/models/network_area.py +++ b/services/iaas/src/stackit/iaas/models/network_area.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/network_area_list_response.py b/services/iaas/src/stackit/iaas/models/network_area_list_response.py index 6cc7001f8..f32551e08 100644 --- a/services/iaas/src/stackit/iaas/models/network_area_list_response.py +++ b/services/iaas/src/stackit/iaas/models/network_area_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/network_ipv4.py b/services/iaas/src/stackit/iaas/models/network_ipv4.py index bb0b53e57..6b3b5481e 100644 --- a/services/iaas/src/stackit/iaas/models/network_ipv4.py +++ b/services/iaas/src/stackit/iaas/models/network_ipv4.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -18,6 +18,7 @@ import pprint import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set +from uuid import UUID from pydantic import BaseModel, ConfigDict, Field, field_validator from pydantic_core import to_jsonable_python @@ -40,7 +41,10 @@ class NetworkIPv4(BaseModel): public_ip: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="String that represents an IPv4 address.", alias="publicIp" ) - __properties: ClassVar[List[str]] = ["gateway", "nameservers", "prefixes", "publicIp"] + vpc_network_range_id: Optional[UUID] = Field( + default=None, description="Universally Unique Identifier (UUID).", alias="vpcNetworkRangeId" + ) + __properties: ClassVar[List[str]] = ["gateway", "nameservers", "prefixes", "publicIp", "vpcNetworkRangeId"] @field_validator("gateway") def gateway_validate_regular_expression(cls, value): @@ -78,6 +82,21 @@ def public_ip_validate_regular_expression(cls, value): ) return value + @field_validator("vpc_network_range_id") + def vpc_network_range_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not isinstance(value, str): + value = str(value) + + if not re.match(r"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", value): + raise ValueError( + r"must validate the regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/" + ) + return value + model_config = ConfigDict( validate_by_name=True, validate_by_alias=True, @@ -142,6 +161,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "nameservers": obj.get("nameservers"), "prefixes": obj.get("prefixes"), "publicIp": obj.get("publicIp"), + "vpcNetworkRangeId": obj.get("vpcNetworkRangeId"), } ) return _obj diff --git a/services/iaas/src/stackit/iaas/models/network_ipv6.py b/services/iaas/src/stackit/iaas/models/network_ipv6.py index 2c52b0895..55fd0495e 100644 --- a/services/iaas/src/stackit/iaas/models/network_ipv6.py +++ b/services/iaas/src/stackit/iaas/models/network_ipv6.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -18,6 +18,7 @@ import pprint import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set +from uuid import UUID from pydantic import BaseModel, ConfigDict, Field, field_validator from pydantic_core import to_jsonable_python @@ -37,7 +38,10 @@ class NetworkIPv6(BaseModel): default=None, description="A list containing DNS Servers/Nameservers for IPv6." ) prefixes: List[Annotated[str, Field(strict=True)]] - __properties: ClassVar[List[str]] = ["gateway", "nameservers", "prefixes"] + vpc_network_range_id: Optional[UUID] = Field( + default=None, description="Universally Unique Identifier (UUID).", alias="vpcNetworkRangeId" + ) + __properties: ClassVar[List[str]] = ["gateway", "nameservers", "prefixes", "vpcNetworkRangeId"] @field_validator("gateway") def gateway_validate_regular_expression(cls, value): @@ -57,6 +61,21 @@ def gateway_validate_regular_expression(cls, value): ) return value + @field_validator("vpc_network_range_id") + def vpc_network_range_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not isinstance(value, str): + value = str(value) + + if not re.match(r"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", value): + raise ValueError( + r"must validate the regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/" + ) + return value + model_config = ConfigDict( validate_by_name=True, validate_by_alias=True, @@ -111,6 +130,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate( - {"gateway": obj.get("gateway"), "nameservers": obj.get("nameservers"), "prefixes": obj.get("prefixes")} + { + "gateway": obj.get("gateway"), + "nameservers": obj.get("nameservers"), + "prefixes": obj.get("prefixes"), + "vpcNetworkRangeId": obj.get("vpcNetworkRangeId"), + } ) return _obj diff --git a/services/iaas/src/stackit/iaas/models/network_list_response.py b/services/iaas/src/stackit/iaas/models/network_list_response.py index 707d44ba5..e2f2c9332 100644 --- a/services/iaas/src/stackit/iaas/models/network_list_response.py +++ b/services/iaas/src/stackit/iaas/models/network_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/network_range.py b/services/iaas/src/stackit/iaas/models/network_range.py index 64520e015..aa2100999 100644 --- a/services/iaas/src/stackit/iaas/models/network_range.py +++ b/services/iaas/src/stackit/iaas/models/network_range.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -28,7 +28,7 @@ class NetworkRange(BaseModel): """ - Object that represents a network range. + Object that represents a network range of a network area. """ # noqa: E501 created_at: Optional[datetime] = Field( diff --git a/services/iaas/src/stackit/iaas/models/network_range_list_response.py b/services/iaas/src/stackit/iaas/models/network_range_list_response.py index b7b4269b9..2b5129a81 100644 --- a/services/iaas/src/stackit/iaas/models/network_range_list_response.py +++ b/services/iaas/src/stackit/iaas/models/network_range_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -27,11 +27,11 @@ class NetworkRangeListResponse(BaseModel): """ - Network Range list response. + Network Range list response of a network area. """ # noqa: E501 items: Annotated[List[NetworkRange], Field(min_length=1, max_length=64)] = Field( - description="A list of network ranges." + description="A list of network area network ranges." ) __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/nexthop_blackhole.py b/services/iaas/src/stackit/iaas/models/nexthop_blackhole.py index 51572a4c9..1dcb48e6f 100644 --- a/services/iaas/src/stackit/iaas/models/nexthop_blackhole.py +++ b/services/iaas/src/stackit/iaas/models/nexthop_blackhole.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/nexthop_internet.py b/services/iaas/src/stackit/iaas/models/nexthop_internet.py index 2357503e0..17041aa69 100644 --- a/services/iaas/src/stackit/iaas/models/nexthop_internet.py +++ b/services/iaas/src/stackit/iaas/models/nexthop_internet.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/nexthop_ipv4.py b/services/iaas/src/stackit/iaas/models/nexthop_ipv4.py index a90b2e59d..27e84f62f 100644 --- a/services/iaas/src/stackit/iaas/models/nexthop_ipv4.py +++ b/services/iaas/src/stackit/iaas/models/nexthop_ipv4.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/nexthop_ipv6.py b/services/iaas/src/stackit/iaas/models/nexthop_ipv6.py index 78e960226..a06f452e9 100644 --- a/services/iaas/src/stackit/iaas/models/nexthop_ipv6.py +++ b/services/iaas/src/stackit/iaas/models/nexthop_ipv6.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/nic.py b/services/iaas/src/stackit/iaas/models/nic.py index db7128ca2..3755753c6 100644 --- a/services/iaas/src/stackit/iaas/models/nic.py +++ b/services/iaas/src/stackit/iaas/models/nic.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/nic_list_response.py b/services/iaas/src/stackit/iaas/models/nic_list_response.py index ac1324f1f..dcb9318c5 100644 --- a/services/iaas/src/stackit/iaas/models/nic_list_response.py +++ b/services/iaas/src/stackit/iaas/models/nic_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/partial_update_network_area_payload.py b/services/iaas/src/stackit/iaas/models/partial_update_network_area_payload.py index 0c396ca06..506b57225 100644 --- a/services/iaas/src/stackit/iaas/models/partial_update_network_area_payload.py +++ b/services/iaas/src/stackit/iaas/models/partial_update_network_area_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/partial_update_network_payload.py b/services/iaas/src/stackit/iaas/models/partial_update_network_payload.py index ba2ab6421..61d400491 100644 --- a/services/iaas/src/stackit/iaas/models/partial_update_network_payload.py +++ b/services/iaas/src/stackit/iaas/models/partial_update_network_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/port_range.py b/services/iaas/src/stackit/iaas/models/port_range.py index fc105b4c4..552bbd686 100644 --- a/services/iaas/src/stackit/iaas/models/port_range.py +++ b/services/iaas/src/stackit/iaas/models/port_range.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/project.py b/services/iaas/src/stackit/iaas/models/project.py index d6cdfc111..db247fd95 100644 --- a/services/iaas/src/stackit/iaas/models/project.py +++ b/services/iaas/src/stackit/iaas/models/project.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/project_list_response.py b/services/iaas/src/stackit/iaas/models/project_list_response.py index 174601365..7a1fe6e29 100644 --- a/services/iaas/src/stackit/iaas/models/project_list_response.py +++ b/services/iaas/src/stackit/iaas/models/project_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/protocol.py b/services/iaas/src/stackit/iaas/models/protocol.py index 37e0a1a59..dd861238a 100644 --- a/services/iaas/src/stackit/iaas/models/protocol.py +++ b/services/iaas/src/stackit/iaas/models/protocol.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/public_ip.py b/services/iaas/src/stackit/iaas/models/public_ip.py index eb3a84358..f08630dd1 100644 --- a/services/iaas/src/stackit/iaas/models/public_ip.py +++ b/services/iaas/src/stackit/iaas/models/public_ip.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/public_ip_list_response.py b/services/iaas/src/stackit/iaas/models/public_ip_list_response.py index 18cdc2d44..3f2d42f58 100644 --- a/services/iaas/src/stackit/iaas/models/public_ip_list_response.py +++ b/services/iaas/src/stackit/iaas/models/public_ip_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/public_network.py b/services/iaas/src/stackit/iaas/models/public_network.py index fcfa619c6..2dfcb03c8 100644 --- a/services/iaas/src/stackit/iaas/models/public_network.py +++ b/services/iaas/src/stackit/iaas/models/public_network.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/public_network_list_response.py b/services/iaas/src/stackit/iaas/models/public_network_list_response.py index c36901167..53db0326f 100644 --- a/services/iaas/src/stackit/iaas/models/public_network_list_response.py +++ b/services/iaas/src/stackit/iaas/models/public_network_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/quota.py b/services/iaas/src/stackit/iaas/models/quota.py index eae7f3127..0b7ea474e 100644 --- a/services/iaas/src/stackit/iaas/models/quota.py +++ b/services/iaas/src/stackit/iaas/models/quota.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/quota_list.py b/services/iaas/src/stackit/iaas/models/quota_list.py index 4e5c786bb..257e9bf51 100644 --- a/services/iaas/src/stackit/iaas/models/quota_list.py +++ b/services/iaas/src/stackit/iaas/models/quota_list.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/quota_list_response.py b/services/iaas/src/stackit/iaas/models/quota_list_response.py index d3c580c11..579d9404a 100644 --- a/services/iaas/src/stackit/iaas/models/quota_list_response.py +++ b/services/iaas/src/stackit/iaas/models/quota_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/regional_area.py b/services/iaas/src/stackit/iaas/models/regional_area.py index b8a3eeaaf..6894275ac 100644 --- a/services/iaas/src/stackit/iaas/models/regional_area.py +++ b/services/iaas/src/stackit/iaas/models/regional_area.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/regional_area_ipv4.py b/services/iaas/src/stackit/iaas/models/regional_area_ipv4.py index 9a5fe7bce..bd45b3902 100644 --- a/services/iaas/src/stackit/iaas/models/regional_area_ipv4.py +++ b/services/iaas/src/stackit/iaas/models/regional_area_ipv4.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -44,7 +44,7 @@ class RegionalAreaIPv4(BaseModel): description="The minimal prefix length for networks in the network area.", alias="minPrefixLen" ) network_ranges: Annotated[List[NetworkRange], Field(min_length=1, max_length=64)] = Field( - description="A list of network ranges.", alias="networkRanges" + description="A list of network area network ranges.", alias="networkRanges" ) transfer_network: Annotated[str, Field(strict=True)] = Field( description="IPv4 Classless Inter-Domain Routing (CIDR).", alias="transferNetwork" diff --git a/services/iaas/src/stackit/iaas/models/regional_area_list_response.py b/services/iaas/src/stackit/iaas/models/regional_area_list_response.py index d6317224b..40627c180 100644 --- a/services/iaas/src/stackit/iaas/models/regional_area_list_response.py +++ b/services/iaas/src/stackit/iaas/models/regional_area_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/request.py b/services/iaas/src/stackit/iaas/models/request.py index 97d70ad1f..d4bd151bb 100644 --- a/services/iaas/src/stackit/iaas/models/request.py +++ b/services/iaas/src/stackit/iaas/models/request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -40,7 +40,7 @@ class Request(BaseModel): description="Identifier (ID) representing a single API request.", alias="requestId" ) request_type: StrictStr = Field( - description="Object that represents a resource type. Possible values: `BACKUP`, `IMAGE`, `NETWORK`, `NETWORKAREA`, `NIC`, `PROJECT`, `ROUTE`, `SERVER`, `SERVICEACCOUNT`, `SNAPSHOT`, `VIRTUALIP`, `VOLUME`.", + description="Object that represents a resource type. Possible values: `BACKUP`, `IMAGE`, `NETWORK`, `NETWORKAREA`, `NIC`, `PROJECT`, `ROUTE`, `SERVER`, `SERVICEACCOUNT`, `SNAPSHOT`, `VIRTUALIP`, `VOLUME`, `VPC`, `VPCNETWORKRANGE`.", alias="requestType", ) resources: List[RequestResource] diff --git a/services/iaas/src/stackit/iaas/models/request_resource.py b/services/iaas/src/stackit/iaas/models/request_resource.py index 3da83a34e..496d40d23 100644 --- a/services/iaas/src/stackit/iaas/models/request_resource.py +++ b/services/iaas/src/stackit/iaas/models/request_resource.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -35,7 +35,7 @@ class RequestResource(BaseModel): description="The state of a resource object. Possible values: `CREATING`, `CREATED`, `DELETING`, `DELETED`, `FAILED`, `UPDATED`, `UPDATING`." ) type: StrictStr = Field( - description="Object that represents a resource type. Possible values: `BACKUP`, `IMAGE`, `NETWORK`, `NETWORKAREA`, `NIC`, `PROJECT`, `ROUTE`, `SERVER`, `SERVICEACCOUNT`, `SNAPSHOT`, `VIRTUALIP`, `VOLUME`." + description="Object that represents a resource type. Possible values: `BACKUP`, `IMAGE`, `NETWORK`, `NETWORKAREA`, `NIC`, `PROJECT`, `ROUTE`, `SERVER`, `SERVICEACCOUNT`, `SNAPSHOT`, `VIRTUALIP`, `VOLUME`, `VPC`, `VPCNETWORKRANGE`." ) __properties: ClassVar[List[str]] = ["id", "status", "type"] diff --git a/services/iaas/src/stackit/iaas/models/rescue_server_payload.py b/services/iaas/src/stackit/iaas/models/rescue_server_payload.py index 67459b324..54c7f8b8e 100644 --- a/services/iaas/src/stackit/iaas/models/rescue_server_payload.py +++ b/services/iaas/src/stackit/iaas/models/rescue_server_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/resize_server_payload.py b/services/iaas/src/stackit/iaas/models/resize_server_payload.py index 6e851afe8..2bbd0335d 100644 --- a/services/iaas/src/stackit/iaas/models/resize_server_payload.py +++ b/services/iaas/src/stackit/iaas/models/resize_server_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/resize_volume_payload.py b/services/iaas/src/stackit/iaas/models/resize_volume_payload.py index 78ab93e04..daf5e6f73 100644 --- a/services/iaas/src/stackit/iaas/models/resize_volume_payload.py +++ b/services/iaas/src/stackit/iaas/models/resize_volume_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/route.py b/services/iaas/src/stackit/iaas/models/route.py index 39451304f..095d0762e 100644 --- a/services/iaas/src/stackit/iaas/models/route.py +++ b/services/iaas/src/stackit/iaas/models/route.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/route_destination.py b/services/iaas/src/stackit/iaas/models/route_destination.py index e0031e38c..449a1e326 100644 --- a/services/iaas/src/stackit/iaas/models/route_destination.py +++ b/services/iaas/src/stackit/iaas/models/route_destination.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -29,6 +29,7 @@ from stackit.iaas.models.destination_cidrv4 import DestinationCIDRv4 from stackit.iaas.models.destination_cidrv6 import DestinationCIDRv6 + ROUTEDESTINATION_ONE_OF_SCHEMAS = ["DestinationCIDRv4", "DestinationCIDRv6"] diff --git a/services/iaas/src/stackit/iaas/models/route_list_response.py b/services/iaas/src/stackit/iaas/models/route_list_response.py index 3f25ab876..55754f7d9 100644 --- a/services/iaas/src/stackit/iaas/models/route_list_response.py +++ b/services/iaas/src/stackit/iaas/models/route_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/route_nexthop.py b/services/iaas/src/stackit/iaas/models/route_nexthop.py index cdec86cc6..4f10b8279 100644 --- a/services/iaas/src/stackit/iaas/models/route_nexthop.py +++ b/services/iaas/src/stackit/iaas/models/route_nexthop.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -31,6 +31,7 @@ from stackit.iaas.models.nexthop_ipv4 import NexthopIPv4 from stackit.iaas.models.nexthop_ipv6 import NexthopIPv6 + ROUTENEXTHOP_ONE_OF_SCHEMAS = ["NexthopBlackhole", "NexthopIPv4", "NexthopIPv6", "NexthopInternet"] diff --git a/services/iaas/src/stackit/iaas/models/routing_table.py b/services/iaas/src/stackit/iaas/models/routing_table.py index 10a843e49..2b74e643c 100644 --- a/services/iaas/src/stackit/iaas/models/routing_table.py +++ b/services/iaas/src/stackit/iaas/models/routing_table.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -28,7 +28,7 @@ class RoutingTable(BaseModel): """ - An object representing a routing table. + An object representing a routing table. Filterable Fields: `dynamicRoutes`, `systemRoutes`. """ # noqa: E501 created_at: Optional[datetime] = Field( diff --git a/services/iaas/src/stackit/iaas/models/routing_table_list_response.py b/services/iaas/src/stackit/iaas/models/routing_table_list_response.py index a70123cd5..df8a32a2e 100644 --- a/services/iaas/src/stackit/iaas/models/routing_table_list_response.py +++ b/services/iaas/src/stackit/iaas/models/routing_table_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/security_group.py b/services/iaas/src/stackit/iaas/models/security_group.py index 9f3707506..7ce7103f9 100644 --- a/services/iaas/src/stackit/iaas/models/security_group.py +++ b/services/iaas/src/stackit/iaas/models/security_group.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/security_group_list_response.py b/services/iaas/src/stackit/iaas/models/security_group_list_response.py index 482a2f9f9..1a1858906 100644 --- a/services/iaas/src/stackit/iaas/models/security_group_list_response.py +++ b/services/iaas/src/stackit/iaas/models/security_group_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/security_group_rule.py b/services/iaas/src/stackit/iaas/models/security_group_rule.py index 3f2b9b250..667c07dee 100644 --- a/services/iaas/src/stackit/iaas/models/security_group_rule.py +++ b/services/iaas/src/stackit/iaas/models/security_group_rule.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/security_group_rule_list_response.py b/services/iaas/src/stackit/iaas/models/security_group_rule_list_response.py index 4206b192c..d2751a305 100644 --- a/services/iaas/src/stackit/iaas/models/security_group_rule_list_response.py +++ b/services/iaas/src/stackit/iaas/models/security_group_rule_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/security_group_rule_protocol.py b/services/iaas/src/stackit/iaas/models/security_group_rule_protocol.py index 7f540d7b0..d7cbbc886 100644 --- a/services/iaas/src/stackit/iaas/models/security_group_rule_protocol.py +++ b/services/iaas/src/stackit/iaas/models/security_group_rule_protocol.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/server.py b/services/iaas/src/stackit/iaas/models/server.py index 5939961ca..cb3a7a4f1 100644 --- a/services/iaas/src/stackit/iaas/models/server.py +++ b/services/iaas/src/stackit/iaas/models/server.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -38,6 +38,7 @@ from stackit.iaas.models.server_maintenance import ServerMaintenance from stackit.iaas.models.server_network import ServerNetwork from stackit.iaas.models.server_networking import ServerNetworking +from stackit.iaas.models.server_vtpm import ServerVTPM class Server(BaseModel): @@ -116,6 +117,7 @@ class Server(BaseModel): alias="userData", ) volumes: Optional[List[UUID]] = Field(default=None, description="The list of volumes attached to the server.") + vtpm: Optional[ServerVTPM] = None __properties: ClassVar[List[str]] = [ "affinityGroup", "agent", @@ -142,6 +144,7 @@ class Server(BaseModel): "updatedAt", "userData", "volumes", + "vtpm", ] @field_validator("affinity_group") @@ -343,6 +346,9 @@ def to_dict(self) -> Dict[str, Any]: if _item_nics: _items.append(_item_nics.to_dict()) _dict["nics"] = _items + # override the default output from pydantic by calling `to_dict()` of vtpm + if self.vtpm: + _dict["vtpm"] = self.vtpm.to_dict() return _dict @classmethod @@ -389,6 +395,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "updatedAt": obj.get("updatedAt"), "userData": obj.get("userData"), "volumes": obj.get("volumes"), + "vtpm": ServerVTPM.from_dict(obj["vtpm"]) if obj.get("vtpm") is not None else None, } ) return _obj diff --git a/services/iaas/src/stackit/iaas/models/server_agent.py b/services/iaas/src/stackit/iaas/models/server_agent.py index c97061c6e..60db78560 100644 --- a/services/iaas/src/stackit/iaas/models/server_agent.py +++ b/services/iaas/src/stackit/iaas/models/server_agent.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/server_console_url.py b/services/iaas/src/stackit/iaas/models/server_console_url.py index 6482e0576..2cd3817de 100644 --- a/services/iaas/src/stackit/iaas/models/server_console_url.py +++ b/services/iaas/src/stackit/iaas/models/server_console_url.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/server_list_response.py b/services/iaas/src/stackit/iaas/models/server_list_response.py index 114a83c01..26c4f38a1 100644 --- a/services/iaas/src/stackit/iaas/models/server_list_response.py +++ b/services/iaas/src/stackit/iaas/models/server_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/server_maintenance.py b/services/iaas/src/stackit/iaas/models/server_maintenance.py index b6fece362..555191a52 100644 --- a/services/iaas/src/stackit/iaas/models/server_maintenance.py +++ b/services/iaas/src/stackit/iaas/models/server_maintenance.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/server_network.py b/services/iaas/src/stackit/iaas/models/server_network.py index 15f114170..7c7efcf12 100644 --- a/services/iaas/src/stackit/iaas/models/server_network.py +++ b/services/iaas/src/stackit/iaas/models/server_network.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/server_networking.py b/services/iaas/src/stackit/iaas/models/server_networking.py index e2cf16252..1ecd5fad8 100644 --- a/services/iaas/src/stackit/iaas/models/server_networking.py +++ b/services/iaas/src/stackit/iaas/models/server_networking.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -31,6 +31,7 @@ CreateServerNetworkingWithNics, ) + SERVERNETWORKING_ONE_OF_SCHEMAS = ["CreateServerNetworking", "CreateServerNetworkingWithNics"] diff --git a/services/iaas/src/stackit/iaas/models/server_vtpm.py b/services/iaas/src/stackit/iaas/models/server_vtpm.py new file mode 100644 index 000000000..7d2d19c5c --- /dev/null +++ b/services/iaas/src/stackit/iaas/models/server_vtpm.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + STACKIT IaaS API + + This API allows you to create and modify IaaS resources. + + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic_core import to_jsonable_python +from typing_extensions import Self + + +class ServerVTPM(BaseModel): + """ + Configuration for the Virtual Trusted Platform Module (vTPM). + """ # noqa: E501 + + enabled: StrictBool = Field( + description="Defines whether the server instance has the Virtual Trusted Platform Module (vTPM) enabled." + ) + __properties: ClassVar[List[str]] = ["enabled"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServerVTPM from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServerVTPM from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({"enabled": obj.get("enabled") if obj.get("enabled") is not None else False}) + return _obj diff --git a/services/iaas/src/stackit/iaas/models/service_account_mail_list_response.py b/services/iaas/src/stackit/iaas/models/service_account_mail_list_response.py index c2a140187..f55637cc7 100644 --- a/services/iaas/src/stackit/iaas/models/service_account_mail_list_response.py +++ b/services/iaas/src/stackit/iaas/models/service_account_mail_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/set_image_share_payload.py b/services/iaas/src/stackit/iaas/models/set_image_share_payload.py index f7513b6d0..8b867be7a 100644 --- a/services/iaas/src/stackit/iaas/models/set_image_share_payload.py +++ b/services/iaas/src/stackit/iaas/models/set_image_share_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/snapshot.py b/services/iaas/src/stackit/iaas/models/snapshot.py index 03c4b64b3..620b4551f 100644 --- a/services/iaas/src/stackit/iaas/models/snapshot.py +++ b/services/iaas/src/stackit/iaas/models/snapshot.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -31,6 +31,9 @@ class Snapshot(BaseModel): Object that represents a snapshot. """ # noqa: E501 + availability_zone: Optional[StrictStr] = Field( + default=None, description="Object that represents an availability zone.", alias="availabilityZone" + ) created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" ) @@ -55,6 +58,7 @@ class Snapshot(BaseModel): ) volume_id: UUID = Field(description="Universally Unique Identifier (UUID).", alias="volumeId") __properties: ClassVar[List[str]] = [ + "availabilityZone", "createdAt", "description", "id", @@ -166,9 +170,11 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set( [ + "availability_zone", "created_at", "id", "size", @@ -195,6 +201,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "availabilityZone": obj.get("availabilityZone"), "createdAt": obj.get("createdAt"), "description": obj.get("description"), "id": obj.get("id"), diff --git a/services/iaas/src/stackit/iaas/models/snapshot_list_response.py b/services/iaas/src/stackit/iaas/models/snapshot_list_response.py index 6ca8bf3d4..e3dcabc9b 100644 --- a/services/iaas/src/stackit/iaas/models/snapshot_list_response.py +++ b/services/iaas/src/stackit/iaas/models/snapshot_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/static_area_id.py b/services/iaas/src/stackit/iaas/models/static_area_id.py index 243e50afa..f52ea1aa7 100644 --- a/services/iaas/src/stackit/iaas/models/static_area_id.py +++ b/services/iaas/src/stackit/iaas/models/static_area_id.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_attached_volume_payload.py b/services/iaas/src/stackit/iaas/models/update_attached_volume_payload.py index b1b107c38..4563f223d 100644 --- a/services/iaas/src/stackit/iaas/models/update_attached_volume_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_attached_volume_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_backup_payload.py b/services/iaas/src/stackit/iaas/models/update_backup_payload.py index 90ece0208..714d04e81 100644 --- a/services/iaas/src/stackit/iaas/models/update_backup_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_backup_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_image_payload.py b/services/iaas/src/stackit/iaas/models/update_image_payload.py index 5cee3e733..627220aff 100644 --- a/services/iaas/src/stackit/iaas/models/update_image_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_image_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_image_share_payload.py b/services/iaas/src/stackit/iaas/models/update_image_share_payload.py index a8ba8da9e..ea68b11a3 100644 --- a/services/iaas/src/stackit/iaas/models/update_image_share_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_image_share_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_key_pair_payload.py b/services/iaas/src/stackit/iaas/models/update_key_pair_payload.py index d40ec18da..e103ea346 100644 --- a/services/iaas/src/stackit/iaas/models/update_key_pair_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_key_pair_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_network_area_region_payload.py b/services/iaas/src/stackit/iaas/models/update_network_area_region_payload.py index 256f5cb41..5744ef2fe 100644 --- a/services/iaas/src/stackit/iaas/models/update_network_area_region_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_network_area_region_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_network_area_route_payload.py b/services/iaas/src/stackit/iaas/models/update_network_area_route_payload.py index 1536f573e..943d4a4a0 100644 --- a/services/iaas/src/stackit/iaas/models/update_network_area_route_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_network_area_route_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_network_ipv4_body.py b/services/iaas/src/stackit/iaas/models/update_network_ipv4_body.py index 31b131c41..871ee4531 100644 --- a/services/iaas/src/stackit/iaas/models/update_network_ipv4_body.py +++ b/services/iaas/src/stackit/iaas/models/update_network_ipv4_body.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_network_ipv6_body.py b/services/iaas/src/stackit/iaas/models/update_network_ipv6_body.py index a30aaae83..e5b358488 100644 --- a/services/iaas/src/stackit/iaas/models/update_network_ipv6_body.py +++ b/services/iaas/src/stackit/iaas/models/update_network_ipv6_body.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_nic_payload.py b/services/iaas/src/stackit/iaas/models/update_nic_payload.py index c702363ce..dcfc7c9c1 100644 --- a/services/iaas/src/stackit/iaas/models/update_nic_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_nic_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_public_ip_payload.py b/services/iaas/src/stackit/iaas/models/update_public_ip_payload.py index 03fc60260..9ec582a86 100644 --- a/services/iaas/src/stackit/iaas/models/update_public_ip_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_public_ip_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_regional_area_ipv4.py b/services/iaas/src/stackit/iaas/models/update_regional_area_ipv4.py index 63238aafa..c1fa5e036 100644 --- a/services/iaas/src/stackit/iaas/models/update_regional_area_ipv4.py +++ b/services/iaas/src/stackit/iaas/models/update_regional_area_ipv4.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_route_of_routing_table_payload.py b/services/iaas/src/stackit/iaas/models/update_route_of_routing_table_payload.py index 0014c22dc..bbc5340a2 100644 --- a/services/iaas/src/stackit/iaas/models/update_route_of_routing_table_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_route_of_routing_table_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_routing_table_of_area_payload.py b/services/iaas/src/stackit/iaas/models/update_routing_table_of_area_payload.py index e0a9d0543..01215dd0e 100644 --- a/services/iaas/src/stackit/iaas/models/update_routing_table_of_area_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_routing_table_of_area_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_security_group_payload.py b/services/iaas/src/stackit/iaas/models/update_security_group_payload.py index 2ee386396..4b0aed59c 100644 --- a/services/iaas/src/stackit/iaas/models/update_security_group_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_security_group_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_server_payload.py b/services/iaas/src/stackit/iaas/models/update_server_payload.py index 5461a0099..9a2874f66 100644 --- a/services/iaas/src/stackit/iaas/models/update_server_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_server_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_snapshot_payload.py b/services/iaas/src/stackit/iaas/models/update_snapshot_payload.py index a7c8c26f0..e5cafbc9b 100644 --- a/services/iaas/src/stackit/iaas/models/update_snapshot_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_snapshot_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/update_volume_payload.py b/services/iaas/src/stackit/iaas/models/update_volume_payload.py index 68933ae6e..7a7854a06 100644 --- a/services/iaas/src/stackit/iaas/models/update_volume_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_volume_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/volume.py b/services/iaas/src/stackit/iaas/models/volume.py index 7dda92070..e93c8d342 100644 --- a/services/iaas/src/stackit/iaas/models/volume.py +++ b/services/iaas/src/stackit/iaas/models/volume.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -76,7 +76,7 @@ class Volume(BaseModel): source: Optional[VolumeSource] = None status: Optional[StrictStr] = Field( default=None, - description="The status of a volume object. Possible values: `ATTACHED`, `ATTACHING`, `AVAILABLE`, `AWAITING-TRANSFER`, `BACKING-UP`, `CREATING`, `DELETED`, `DELETING`, `DETACHING`, `DOWNLOADING`, `ERROR`, `ERROR_BACKING-UP`, `ERROR_DELETING`, `ERROR_RESIZING`, `ERROR_RESTORING-BACKUP`, `MAINTENANCE`, `RESERVED`, `RESIZING`, `RESTORING-BACKUP`, `RETYPING`, `UPLOADING`.", + description="The status of a volume object. Possible values: `ATTACHED`, `ATTACHING`, `AVAILABLE`, `AWAITING-TRANSFER`, `BACKING-UP`, `CREATING`, `DELETED`, `DELETING`, `DETACHING`, `DOWNLOADING`, `ERROR`, `ERROR_BACKING-UP`, `ERROR_DELETING`, `ERROR_RESIZING`, `ERROR_RESTORING-BACKUP`, `ERROR_KMS-ENCRYPTION-PARAMS`, `MAINTENANCE`, `RESERVED`, `RESIZING`, `RESTORING-BACKUP`, `RETYPING`, `UPLOADING`.", ) updated_at: Optional[datetime] = Field( default=None, description="Date-time when resource was last updated.", alias="updatedAt" diff --git a/services/iaas/src/stackit/iaas/models/volume_attachment.py b/services/iaas/src/stackit/iaas/models/volume_attachment.py index 224fcdbd9..16fc31c1f 100644 --- a/services/iaas/src/stackit/iaas/models/volume_attachment.py +++ b/services/iaas/src/stackit/iaas/models/volume_attachment.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/volume_attachment_list_response.py b/services/iaas/src/stackit/iaas/models/volume_attachment_list_response.py index c2ca8d76e..b1c12b7d2 100644 --- a/services/iaas/src/stackit/iaas/models/volume_attachment_list_response.py +++ b/services/iaas/src/stackit/iaas/models/volume_attachment_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/volume_encryption_parameter.py b/services/iaas/src/stackit/iaas/models/volume_encryption_parameter.py index 8dcf70500..4af7a2cb2 100644 --- a/services/iaas/src/stackit/iaas/models/volume_encryption_parameter.py +++ b/services/iaas/src/stackit/iaas/models/volume_encryption_parameter.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/volume_list_response.py b/services/iaas/src/stackit/iaas/models/volume_list_response.py index 76e6cc649..d2f16a5e4 100644 --- a/services/iaas/src/stackit/iaas/models/volume_list_response.py +++ b/services/iaas/src/stackit/iaas/models/volume_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/volume_performance_class.py b/services/iaas/src/stackit/iaas/models/volume_performance_class.py index 6e461e360..535bca85d 100644 --- a/services/iaas/src/stackit/iaas/models/volume_performance_class.py +++ b/services/iaas/src/stackit/iaas/models/volume_performance_class.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/volume_performance_class_list_response.py b/services/iaas/src/stackit/iaas/models/volume_performance_class_list_response.py index 3d958a6d5..d458b0127 100644 --- a/services/iaas/src/stackit/iaas/models/volume_performance_class_list_response.py +++ b/services/iaas/src/stackit/iaas/models/volume_performance_class_list_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/volume_source.py b/services/iaas/src/stackit/iaas/models/volume_source.py index bf8d3dcc6..4f778fd45 100644 --- a/services/iaas/src/stackit/iaas/models/volume_source.py +++ b/services/iaas/src/stackit/iaas/models/volume_source.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/rest.py b/services/iaas/src/stackit/iaas/rest.py index f6eca5266..a75c76c25 100644 --- a/services/iaas/src/stackit/iaas/rest.py +++ b/services/iaas/src/stackit/iaas/rest.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT IaaS API + STACKIT IaaS API -This API allows you to create and modify IaaS resources. + This API allows you to create and modify IaaS resources. -The version of the OpenAPI document: 2 -Contact: stackit-iaas@mail.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2 + Contact: stackit-iaas@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import io @@ -22,6 +22,7 @@ from stackit.iaas.exceptions import ApiException, ApiValueError + RESTResponseType = requests.Response