Skip to content

Commit ea82602

Browse files
Generate opensearch
1 parent 815ef3e commit ea82602

6 files changed

Lines changed: 11 additions & 115 deletions

File tree

services/opensearch/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d4da229ba7a242ed561223c67f68683be824c126
1+
beeb2da62f7e0fe249320b50f07e328653c67055

services/opensearch/src/stackit/opensearch/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"InstanceLastOperation",
4343
"InstanceParameters",
4444
"InstanceSchema",
45-
"ListBackupsResponse",
4645
"ListCredentialsResponse",
4746
"ListInstancesResponse",
4847
"ListOfferingsResponse",
@@ -105,9 +104,6 @@
105104
InstanceParameters as InstanceParameters,
106105
)
107106
from stackit.opensearch.models.instance_schema import InstanceSchema as InstanceSchema
108-
from stackit.opensearch.models.list_backups_response import (
109-
ListBackupsResponse as ListBackupsResponse,
110-
)
111107
from stackit.opensearch.models.list_credentials_response import (
112108
ListCredentialsResponse as ListCredentialsResponse,
113109
)

services/opensearch/src/stackit/opensearch/api/default_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
from stackit.opensearch.api_client import ApiClient, RequestSerialized
2727
from stackit.opensearch.api_response import ApiResponse
28+
from stackit.opensearch.models.backup import Backup
2829
from stackit.opensearch.models.create_backup_response_item import (
2930
CreateBackupResponseItem,
3031
)
@@ -36,7 +37,6 @@
3637
from stackit.opensearch.models.credentials_response import CredentialsResponse
3738
from stackit.opensearch.models.get_metrics_response import GetMetricsResponse
3839
from stackit.opensearch.models.instance import Instance
39-
from stackit.opensearch.models.list_backups_response import ListBackupsResponse
4040
from stackit.opensearch.models.list_credentials_response import ListCredentialsResponse
4141
from stackit.opensearch.models.list_instances_response import ListInstancesResponse
4242
from stackit.opensearch.models.list_offerings_response import ListOfferingsResponse
@@ -2554,7 +2554,7 @@ def list_backups(
25542554
_content_type: Optional[StrictStr] = None,
25552555
_headers: Optional[Dict[StrictStr, Any]] = None,
25562556
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2557-
) -> ListBackupsResponse:
2557+
) -> List[Backup]:
25582558
"""get latest backup information for provided instanceId
25592559
25602560
@@ -2597,7 +2597,7 @@ def list_backups(
25972597
)
25982598

25992599
_response_types_map: Dict[str, Optional[str]] = {
2600-
"200": "ListBackupsResponse",
2600+
"200": "List[Backup]",
26012601
"400": "Error",
26022602
"401": "Error",
26032603
"404": "Error",
@@ -2624,7 +2624,7 @@ def list_backups_with_http_info(
26242624
_content_type: Optional[StrictStr] = None,
26252625
_headers: Optional[Dict[StrictStr, Any]] = None,
26262626
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2627-
) -> ApiResponse[ListBackupsResponse]:
2627+
) -> ApiResponse[List[Backup]]:
26282628
"""get latest backup information for provided instanceId
26292629
26302630
@@ -2667,7 +2667,7 @@ def list_backups_with_http_info(
26672667
)
26682668

26692669
_response_types_map: Dict[str, Optional[str]] = {
2670-
"200": "ListBackupsResponse",
2670+
"200": "List[Backup]",
26712671
"400": "Error",
26722672
"401": "Error",
26732673
"404": "Error",
@@ -2737,7 +2737,7 @@ def list_backups_without_preload_content(
27372737
)
27382738

27392739
_response_types_map: Dict[str, Optional[str]] = {
2740-
"200": "ListBackupsResponse",
2740+
"200": "List[Backup]",
27412741
"400": "Error",
27422742
"401": "Error",
27432743
"404": "Error",

services/opensearch/src/stackit/opensearch/exceptions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None) ->
4545
full_msg = msg
4646
if path_to_item:
4747
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
48-
super(ApiTypeError, self).__init__(full_msg)
48+
super(ApiTypeError, self).__init__(full_msg, path_to_item, valid_classes, key_type)
4949

5050

5151
class ApiValueError(OpenApiException, ValueError):
@@ -63,7 +63,7 @@ def __init__(self, msg, path_to_item=None) -> None:
6363
full_msg = msg
6464
if path_to_item:
6565
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
66-
super(ApiValueError, self).__init__(full_msg)
66+
super(ApiValueError, self).__init__(full_msg, path_to_item)
6767

6868

6969
class ApiAttributeError(OpenApiException, AttributeError):
@@ -82,7 +82,7 @@ def __init__(self, msg, path_to_item=None) -> None:
8282
full_msg = msg
8383
if path_to_item:
8484
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
85-
super(ApiAttributeError, self).__init__(full_msg)
85+
super(ApiAttributeError, self).__init__(full_msg, path_to_item)
8686

8787

8888
class ApiKeyError(OpenApiException, KeyError):
@@ -99,7 +99,7 @@ def __init__(self, msg, path_to_item=None) -> None:
9999
full_msg = msg
100100
if path_to_item:
101101
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
102-
super(ApiKeyError, self).__init__(full_msg)
102+
super(ApiKeyError, self).__init__(full_msg, path_to_item)
103103

104104

105105
class ApiException(OpenApiException):

services/opensearch/src/stackit/opensearch/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from stackit.opensearch.models.instance_last_operation import InstanceLastOperation
3232
from stackit.opensearch.models.instance_parameters import InstanceParameters
3333
from stackit.opensearch.models.instance_schema import InstanceSchema
34-
from stackit.opensearch.models.list_backups_response import ListBackupsResponse
3534
from stackit.opensearch.models.list_credentials_response import ListCredentialsResponse
3635
from stackit.opensearch.models.list_instances_response import ListInstancesResponse
3736
from stackit.opensearch.models.list_offerings_response import ListOfferingsResponse

services/opensearch/src/stackit/opensearch/models/list_backups_response.py

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)