diff --git a/services/redis/oas_commit b/services/redis/oas_commit index a77ddf5f5..0f8ce352b 100644 --- a/services/redis/oas_commit +++ b/services/redis/oas_commit @@ -1 +1 @@ -d4da229ba7a242ed561223c67f68683be824c126 +876a48fb56473c7c844baa697906d461c0675f47 diff --git a/services/redis/src/stackit/redis/__init__.py b/services/redis/src/stackit/redis/__init__.py index a2dbbd9b4..916a5e56c 100644 --- a/services/redis/src/stackit/redis/__init__.py +++ b/services/redis/src/stackit/redis/__init__.py @@ -3,16 +3,17 @@ # flake8: noqa """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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 @@ -41,7 +42,6 @@ "InstanceLastOperation", "InstanceParameters", "InstanceSchema", - "ListBackupsResponse", "ListCredentialsResponse", "ListInstancesResponse", "ListOfferingsResponse", @@ -104,9 +104,6 @@ InstanceParameters as InstanceParameters, ) from stackit.redis.models.instance_schema import InstanceSchema as InstanceSchema -from stackit.redis.models.list_backups_response import ( - ListBackupsResponse as ListBackupsResponse, -) from stackit.redis.models.list_credentials_response import ( ListCredentialsResponse as ListCredentialsResponse, ) diff --git a/services/redis/src/stackit/redis/api/default_api.py b/services/redis/src/stackit/redis/api/default_api.py index 0dd20f7c9..939348295 100644 --- a/services/redis/src/stackit/redis/api/default_api.py +++ b/services/redis/src/stackit/redis/api/default_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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 @@ -25,6 +25,7 @@ from stackit.redis.api_client import ApiClient, RequestSerialized from stackit.redis.api_response import ApiResponse +from stackit.redis.models.backup import Backup from stackit.redis.models.create_backup_response_item import CreateBackupResponseItem from stackit.redis.models.create_credentials_payload import CreateCredentialsPayload from stackit.redis.models.create_instance_payload import CreateInstancePayload @@ -32,7 +33,6 @@ from stackit.redis.models.credentials_response import CredentialsResponse from stackit.redis.models.get_metrics_response import GetMetricsResponse from stackit.redis.models.instance import Instance -from stackit.redis.models.list_backups_response import ListBackupsResponse from stackit.redis.models.list_credentials_response import ListCredentialsResponse from stackit.redis.models.list_instances_response import ListInstancesResponse from stackit.redis.models.list_offerings_response import ListOfferingsResponse @@ -2550,7 +2550,7 @@ def list_backups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListBackupsResponse: + ) -> List[Backup]: """get latest backup information for provided instanceId @@ -2593,7 +2593,7 @@ def list_backups( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListBackupsResponse", + "200": "List[Backup]", "400": "Error", "401": "Error", "404": "Error", @@ -2620,7 +2620,7 @@ def list_backups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListBackupsResponse]: + ) -> ApiResponse[List[Backup]]: """get latest backup information for provided instanceId @@ -2663,7 +2663,7 @@ def list_backups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListBackupsResponse", + "200": "List[Backup]", "400": "Error", "401": "Error", "404": "Error", @@ -2733,7 +2733,7 @@ def list_backups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListBackupsResponse", + "200": "List[Backup]", "400": "Error", "401": "Error", "404": "Error", diff --git a/services/redis/src/stackit/redis/api_client.py b/services/redis/src/stackit/redis/api_client.py index 1c5d5f5a4..228879473 100644 --- a/services/redis/src/stackit/redis/api_client.py +++ b/services/redis/src/stackit/redis/api_client.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import datetime @@ -36,6 +36,7 @@ ApiException, ) + RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] diff --git a/services/redis/src/stackit/redis/api_response.py b/services/redis/src/stackit/redis/api_response.py index ca801da0b..b3ba14a1d 100644 --- a/services/redis/src/stackit/redis/api_response.py +++ b/services/redis/src/stackit/redis/api_response.py @@ -6,6 +6,7 @@ from pydantic import BaseModel, Field, StrictBytes, StrictInt + T = TypeVar("T") diff --git a/services/redis/src/stackit/redis/configuration.py b/services/redis/src/stackit/redis/configuration.py index e0f38f9c0..8eea77f73 100644 --- a/services/redis/src/stackit/redis/configuration.py +++ b/services/redis/src/stackit/redis/configuration.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import sys @@ -18,6 +18,7 @@ import os + ServerVariablesT = Dict[str, str] diff --git a/services/redis/src/stackit/redis/exceptions.py b/services/redis/src/stackit/redis/exceptions.py index b5c5cf3da..c8cde5a61 100644 --- a/services/redis/src/stackit/redis/exceptions.py +++ b/services/redis/src/stackit/redis/exceptions.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/__init__.py b/services/redis/src/stackit/redis/models/__init__.py index 2ca59ec21..535fef954 100644 --- a/services/redis/src/stackit/redis/models/__init__.py +++ b/services/redis/src/stackit/redis/models/__init__.py @@ -2,14 +2,14 @@ # flake8: noqa """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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 @@ -27,7 +27,6 @@ from stackit.redis.models.instance_last_operation import InstanceLastOperation from stackit.redis.models.instance_parameters import InstanceParameters from stackit.redis.models.instance_schema import InstanceSchema -from stackit.redis.models.list_backups_response import ListBackupsResponse from stackit.redis.models.list_credentials_response import ListCredentialsResponse from stackit.redis.models.list_instances_response import ListInstancesResponse from stackit.redis.models.list_offerings_response import ListOfferingsResponse diff --git a/services/redis/src/stackit/redis/models/backup.py b/services/redis/src/stackit/redis/models/backup.py index 7cced5ab2..e6d6fe43d 100644 --- a/services/redis/src/stackit/redis/models/backup.py +++ b/services/redis/src/stackit/redis/models/backup.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/create_backup_response_item.py b/services/redis/src/stackit/redis/models/create_backup_response_item.py index c3b76be9c..726165966 100644 --- a/services/redis/src/stackit/redis/models/create_backup_response_item.py +++ b/services/redis/src/stackit/redis/models/create_backup_response_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/create_credentials_payload.py b/services/redis/src/stackit/redis/models/create_credentials_payload.py index 65343beda..d9bd0a3f3 100644 --- a/services/redis/src/stackit/redis/models/create_credentials_payload.py +++ b/services/redis/src/stackit/redis/models/create_credentials_payload.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/create_instance_payload.py b/services/redis/src/stackit/redis/models/create_instance_payload.py index 523cbf607..0986fb5cf 100644 --- a/services/redis/src/stackit/redis/models/create_instance_payload.py +++ b/services/redis/src/stackit/redis/models/create_instance_payload.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/create_instance_response.py b/services/redis/src/stackit/redis/models/create_instance_response.py index 5275e5800..f42c290cf 100644 --- a/services/redis/src/stackit/redis/models/create_instance_response.py +++ b/services/redis/src/stackit/redis/models/create_instance_response.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/credentials.py b/services/redis/src/stackit/redis/models/credentials.py index 509197c47..dd11b52ee 100644 --- a/services/redis/src/stackit/redis/models/credentials.py +++ b/services/redis/src/stackit/redis/models/credentials.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/credentials_list_item.py b/services/redis/src/stackit/redis/models/credentials_list_item.py index 33fc9da44..1ffeee1e7 100644 --- a/services/redis/src/stackit/redis/models/credentials_list_item.py +++ b/services/redis/src/stackit/redis/models/credentials_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/credentials_response.py b/services/redis/src/stackit/redis/models/credentials_response.py index 2b751477e..f75df6a78 100644 --- a/services/redis/src/stackit/redis/models/credentials_response.py +++ b/services/redis/src/stackit/redis/models/credentials_response.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/error.py b/services/redis/src/stackit/redis/models/error.py index db5c20729..11098d17a 100644 --- a/services/redis/src/stackit/redis/models/error.py +++ b/services/redis/src/stackit/redis/models/error.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/get_metrics_response.py b/services/redis/src/stackit/redis/models/get_metrics_response.py index 2b4ef12a7..8d513dd2e 100644 --- a/services/redis/src/stackit/redis/models/get_metrics_response.py +++ b/services/redis/src/stackit/redis/models/get_metrics_response.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/instance.py b/services/redis/src/stackit/redis/models/instance.py index 46bcfaeac..9f81646e1 100644 --- a/services/redis/src/stackit/redis/models/instance.py +++ b/services/redis/src/stackit/redis/models/instance.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/instance_last_operation.py b/services/redis/src/stackit/redis/models/instance_last_operation.py index 2da373a03..72c7ce180 100644 --- a/services/redis/src/stackit/redis/models/instance_last_operation.py +++ b/services/redis/src/stackit/redis/models/instance_last_operation.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/instance_parameters.py b/services/redis/src/stackit/redis/models/instance_parameters.py index 9d6710f2b..401ef9d80 100644 --- a/services/redis/src/stackit/redis/models/instance_parameters.py +++ b/services/redis/src/stackit/redis/models/instance_parameters.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/instance_schema.py b/services/redis/src/stackit/redis/models/instance_schema.py index 0542bbead..f1dde3e37 100644 --- a/services/redis/src/stackit/redis/models/instance_schema.py +++ b/services/redis/src/stackit/redis/models/instance_schema.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/list_backups_response.py b/services/redis/src/stackit/redis/models/list_backups_response.py deleted file mode 100644 index c83adcd95..000000000 --- a/services/redis/src/stackit/redis/models/list_backups_response.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" -STACKIT Redis API - -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. - -The version of the OpenAPI document: 2.1.0 -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 -from pydantic_core import to_jsonable_python -from typing_extensions import Self - -from stackit.redis.models.backup import Backup - - -class ListBackupsResponse(BaseModel): - """ - ListBackupsResponse - """ # noqa: E501 - - instance_backups: List[Backup] = Field(alias="instanceBackups") - __properties: ClassVar[List[str]] = ["instanceBackups"] - - 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 ListBackupsResponse 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, - ) - # override the default output from pydantic by calling `to_dict()` of each item in instance_backups (list) - _items = [] - if self.instance_backups: - for _item_instance_backups in self.instance_backups: - if _item_instance_backups: - _items.append(_item_instance_backups.to_dict()) - _dict["instanceBackups"] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListBackupsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate( - { - "instanceBackups": ( - [Backup.from_dict(_item) for _item in obj["instanceBackups"]] - if obj.get("instanceBackups") is not None - else None - ) - } - ) - return _obj diff --git a/services/redis/src/stackit/redis/models/list_credentials_response.py b/services/redis/src/stackit/redis/models/list_credentials_response.py index 3b650c9cf..d5e6c0369 100644 --- a/services/redis/src/stackit/redis/models/list_credentials_response.py +++ b/services/redis/src/stackit/redis/models/list_credentials_response.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/list_instances_response.py b/services/redis/src/stackit/redis/models/list_instances_response.py index 0073377bc..f2ae2e97e 100644 --- a/services/redis/src/stackit/redis/models/list_instances_response.py +++ b/services/redis/src/stackit/redis/models/list_instances_response.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/list_offerings_response.py b/services/redis/src/stackit/redis/models/list_offerings_response.py index 5e7d85f8e..cb1bf725d 100644 --- a/services/redis/src/stackit/redis/models/list_offerings_response.py +++ b/services/redis/src/stackit/redis/models/list_offerings_response.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/list_restores_response.py b/services/redis/src/stackit/redis/models/list_restores_response.py index c3b8d144b..580138f22 100644 --- a/services/redis/src/stackit/redis/models/list_restores_response.py +++ b/services/redis/src/stackit/redis/models/list_restores_response.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/model_schema.py b/services/redis/src/stackit/redis/models/model_schema.py index 490518458..2265f4e6d 100644 --- a/services/redis/src/stackit/redis/models/model_schema.py +++ b/services/redis/src/stackit/redis/models/model_schema.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/offering.py b/services/redis/src/stackit/redis/models/offering.py index 3671599c8..4528b8695 100644 --- a/services/redis/src/stackit/redis/models/offering.py +++ b/services/redis/src/stackit/redis/models/offering.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/partial_update_instance_payload.py b/services/redis/src/stackit/redis/models/partial_update_instance_payload.py index cbfa98548..4801068ad 100644 --- a/services/redis/src/stackit/redis/models/partial_update_instance_payload.py +++ b/services/redis/src/stackit/redis/models/partial_update_instance_payload.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/plan.py b/services/redis/src/stackit/redis/models/plan.py index 794e7c7e5..060214766 100644 --- a/services/redis/src/stackit/redis/models/plan.py +++ b/services/redis/src/stackit/redis/models/plan.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/raw_credentials.py b/services/redis/src/stackit/redis/models/raw_credentials.py index 2ba7f28d8..752c01e8a 100644 --- a/services/redis/src/stackit/redis/models/raw_credentials.py +++ b/services/redis/src/stackit/redis/models/raw_credentials.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/restore.py b/services/redis/src/stackit/redis/models/restore.py index db5674117..95d482bd8 100644 --- a/services/redis/src/stackit/redis/models/restore.py +++ b/services/redis/src/stackit/redis/models/restore.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/trigger_restore_response.py b/services/redis/src/stackit/redis/models/trigger_restore_response.py index 03c127a47..5ee215a62 100644 --- a/services/redis/src/stackit/redis/models/trigger_restore_response.py +++ b/services/redis/src/stackit/redis/models/trigger_restore_response.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/update_backups_config_payload.py b/services/redis/src/stackit/redis/models/update_backups_config_payload.py index f63e963ed..bfde2465b 100644 --- a/services/redis/src/stackit/redis/models/update_backups_config_payload.py +++ b/services/redis/src/stackit/redis/models/update_backups_config_payload.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/models/update_backups_config_response.py b/services/redis/src/stackit/redis/models/update_backups_config_response.py index 22b571fa7..541ebf3e4 100644 --- a/services/redis/src/stackit/redis/models/update_backups_config_response.py +++ b/services/redis/src/stackit/redis/models/update_backups_config_response.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + 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/redis/src/stackit/redis/rest.py b/services/redis/src/stackit/redis/rest.py index 72dbe6626..122466a66 100644 --- a/services/redis/src/stackit/redis/rest.py +++ b/services/redis/src/stackit/redis/rest.py @@ -1,14 +1,14 @@ # coding: utf-8 """ -STACKIT Redis API + STACKIT Redis API -The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -The version of the OpenAPI document: 2.1.0 -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import io @@ -21,6 +21,7 @@ from stackit.redis.exceptions import ApiException, ApiValueError + RESTResponseType = requests.Response