diff --git a/services/iaas/oas_commit b/services/iaas/oas_commit index 39bada35c..0c0e97d62 100644 --- a/services/iaas/oas_commit +++ b/services/iaas/oas_commit @@ -1 +1 @@ -a35d8f28738a45005b098b66b6debd08a67ab018 +327e1a89405f6b4994afaee72ecc7e5a24c9c42d diff --git a/services/iaas/src/stackit/iaas/api/default_api.py b/services/iaas/src/stackit/iaas/api/default_api.py index 531d19040..b817b73f5 100644 --- a/services/iaas/src/stackit/iaas/api/default_api.py +++ b/services/iaas/src/stackit/iaas/api/default_api.py @@ -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 @@ -27738,9 +27738,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 +27811,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 +27884,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 +31149,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 +31229,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 +31309,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 @@ -34899,6 +34899,548 @@ def _update_image_serialize( _request_auth=_request_auth, ) + @validate_call + def update_image_scope_local( + self, + project_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Project.")], + region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")], + image_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Image.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Image: + """Update Image Scope to Local. + + Update the scope property of an existing Image inside a project to local. + + :param project_id: The identifier (ID) of a STACKIT Project. (required) + :type project_id: UUID + :param region: The STACKIT Region of the resources. (required) + :type region: str + :param image_id: The identifier (ID) of a STACKIT Image. (required) + :type image_id: UUID + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_image_scope_local_serialize( + project_id=project_id, + region=region, + image_id=image_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Image", + "400": "Error", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def update_image_scope_local_with_http_info( + self, + project_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Project.")], + region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")], + image_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Image.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Image]: + """Update Image Scope to Local. + + Update the scope property of an existing Image inside a project to local. + + :param project_id: The identifier (ID) of a STACKIT Project. (required) + :type project_id: UUID + :param region: The STACKIT Region of the resources. (required) + :type region: str + :param image_id: The identifier (ID) of a STACKIT Image. (required) + :type image_id: UUID + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_image_scope_local_serialize( + project_id=project_id, + region=region, + image_id=image_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Image", + "400": "Error", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def update_image_scope_local_without_preload_content( + self, + project_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Project.")], + region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")], + image_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Image.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Image Scope to Local. + + Update the scope property of an existing Image inside a project to local. + + :param project_id: The identifier (ID) of a STACKIT Project. (required) + :type project_id: UUID + :param region: The STACKIT Region of the resources. (required) + :type region: str + :param image_id: The identifier (ID) of a STACKIT Image. (required) + :type image_id: UUID + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_image_scope_local_serialize( + project_id=project_id, + region=region, + image_id=image_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Image", + "400": "Error", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + return response_data.response + + def _update_image_scope_local_serialize( + self, + project_id, + region, + image_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if project_id is not None: + _path_params["projectId"] = project_id + if region is not None: + _path_params["region"] = region + if image_id is not None: + _path_params["imageId"] = image_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + # authentication setting + _auth_settings: List[str] = [] + + return self.api_client.param_serialize( + method="DELETE", + resource_path="/v2/projects/{projectId}/regions/{region}/images/{imageId}/publish", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def update_image_scope_public( + self, + project_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Project.")], + region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")], + image_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Image.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Image: + """Update Image Scope to Public. + + Update the scope property of an existing Image inside a project to public. + + :param project_id: The identifier (ID) of a STACKIT Project. (required) + :type project_id: UUID + :param region: The STACKIT Region of the resources. (required) + :type region: str + :param image_id: The identifier (ID) of a STACKIT Image. (required) + :type image_id: UUID + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_image_scope_public_serialize( + project_id=project_id, + region=region, + image_id=image_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Image", + "400": "Error", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def update_image_scope_public_with_http_info( + self, + project_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Project.")], + region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")], + image_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Image.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Image]: + """Update Image Scope to Public. + + Update the scope property of an existing Image inside a project to public. + + :param project_id: The identifier (ID) of a STACKIT Project. (required) + :type project_id: UUID + :param region: The STACKIT Region of the resources. (required) + :type region: str + :param image_id: The identifier (ID) of a STACKIT Image. (required) + :type image_id: UUID + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_image_scope_public_serialize( + project_id=project_id, + region=region, + image_id=image_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Image", + "400": "Error", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def update_image_scope_public_without_preload_content( + self, + project_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Project.")], + region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")], + image_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Image.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Image Scope to Public. + + Update the scope property of an existing Image inside a project to public. + + :param project_id: The identifier (ID) of a STACKIT Project. (required) + :type project_id: UUID + :param region: The STACKIT Region of the resources. (required) + :type region: str + :param image_id: The identifier (ID) of a STACKIT Image. (required) + :type image_id: UUID + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_image_scope_public_serialize( + project_id=project_id, + region=region, + image_id=image_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "Image", + "400": "Error", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + return response_data.response + + def _update_image_scope_public_serialize( + self, + project_id, + region, + image_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if project_id is not None: + _path_params["projectId"] = project_id + if region is not None: + _path_params["region"] = region + if image_id is not None: + _path_params["imageId"] = image_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + # authentication setting + _auth_settings: List[str] = [] + + return self.api_client.param_serialize( + method="PUT", + resource_path="/v2/projects/{projectId}/regions/{region}/images/{imageId}/publish", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + @validate_call def update_image_share( self, 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 08a4ecc4b..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 @@ -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_snapshot_payload.py b/services/iaas/src/stackit/iaas/models/create_snapshot_payload.py index fe1a587f2..f12589f8b 100644 --- a/services/iaas/src/stackit/iaas/models/create_snapshot_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_snapshot_payload.py @@ -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/network_range.py b/services/iaas/src/stackit/iaas/models/network_range.py index df4281fd9..aa2100999 100644 --- a/services/iaas/src/stackit/iaas/models/network_range.py +++ b/services/iaas/src/stackit/iaas/models/network_range.py @@ -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 34b774b24..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 @@ -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/regional_area_ipv4.py b/services/iaas/src/stackit/iaas/models/regional_area_ipv4.py index 2a4538ce0..bd45b3902 100644 --- a/services/iaas/src/stackit/iaas/models/regional_area_ipv4.py +++ b/services/iaas/src/stackit/iaas/models/regional_area_ipv4.py @@ -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/snapshot.py b/services/iaas/src/stackit/iaas/models/snapshot.py index d30d9549d..620b4551f 100644 --- a/services/iaas/src/stackit/iaas/models/snapshot.py +++ b/services/iaas/src/stackit/iaas/models/snapshot.py @@ -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"),