stackit-opensearch 1.1.0__tar.gz → 1.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/PKG-INFO +2 -2
  2. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/pyproject.toml +1 -1
  3. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/__init__.py +0 -4
  4. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/api/default_api.py +11 -11
  5. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/__init__.py +0 -1
  6. stackit_opensearch-1.1.0/src/stackit/opensearch/models/list_backups_response.py +0 -99
  7. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/.gitignore +0 -0
  8. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/LICENSE.md +0 -0
  9. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/NOTICE.txt +0 -0
  10. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/README.md +0 -0
  11. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/api/__init__.py +0 -0
  12. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/api_client.py +0 -0
  13. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/api_response.py +0 -0
  14. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/configuration.py +0 -0
  15. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/exceptions.py +0 -0
  16. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/backup.py +0 -0
  17. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/create_backup_response_item.py +0 -0
  18. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/create_credentials_payload.py +0 -0
  19. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/create_instance_payload.py +0 -0
  20. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/create_instance_response.py +0 -0
  21. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/credentials.py +0 -0
  22. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/credentials_list_item.py +0 -0
  23. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/credentials_response.py +0 -0
  24. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/error.py +0 -0
  25. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/get_metrics_response.py +0 -0
  26. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/instance.py +0 -0
  27. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/instance_last_operation.py +0 -0
  28. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/instance_parameters.py +0 -0
  29. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/instance_schema.py +0 -0
  30. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/list_credentials_response.py +0 -0
  31. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/list_instances_response.py +0 -0
  32. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/list_offerings_response.py +0 -0
  33. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/list_restores_response.py +0 -0
  34. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/model_schema.py +0 -0
  35. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/offering.py +0 -0
  36. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/partial_update_instance_payload.py +0 -0
  37. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/plan.py +0 -0
  38. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/raw_credentials.py +0 -0
  39. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/restore.py +0 -0
  40. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/trigger_restore_response.py +0 -0
  41. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/update_backups_config_payload.py +0 -0
  42. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/models/update_backups_config_response.py +0 -0
  43. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/py.typed +0 -0
  44. {stackit_opensearch-1.1.0 → stackit_opensearch-1.3.0}/src/stackit/opensearch/rest.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: stackit-opensearch
3
- Version: 1.1.0
3
+ Version: 1.3.0
4
4
  Summary: STACKIT Opensearch API
5
5
  Project-URL: Homepage, https://github.com/stackitcloud/stackit-sdk-python
6
6
  Project-URL: Issues, https://github.com/stackitcloud/stackit-sdk-python/issues
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "stackit-opensearch"
3
- version = "v1.1.0"
3
+ version = "v1.3.0"
4
4
  description = "STACKIT Opensearch API"
5
5
  authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
6
6
  requires-python = ">=3.10,<4.0"
@@ -41,7 +41,6 @@ __all__ = [
41
41
  "InstanceLastOperation",
42
42
  "InstanceParameters",
43
43
  "InstanceSchema",
44
- "ListBackupsResponse",
45
44
  "ListCredentialsResponse",
46
45
  "ListInstancesResponse",
47
46
  "ListOfferingsResponse",
@@ -104,9 +103,6 @@ from stackit.opensearch.models.instance_parameters import (
104
103
  InstanceParameters as InstanceParameters,
105
104
  )
106
105
  from stackit.opensearch.models.instance_schema import InstanceSchema as InstanceSchema
107
- from stackit.opensearch.models.list_backups_response import (
108
- ListBackupsResponse as ListBackupsResponse,
109
- )
110
106
  from stackit.opensearch.models.list_credentials_response import (
111
107
  ListCredentialsResponse as ListCredentialsResponse,
112
108
  )
@@ -25,6 +25,7 @@ from typing_extensions import Annotated
25
25
 
26
26
  from stackit.opensearch.api_client import ApiClient, RequestSerialized
27
27
  from stackit.opensearch.api_response import ApiResponse
28
+ from stackit.opensearch.models.backup import Backup
28
29
  from stackit.opensearch.models.create_backup_response_item import (
29
30
  CreateBackupResponseItem,
30
31
  )
@@ -36,7 +37,6 @@ from stackit.opensearch.models.create_instance_response import CreateInstanceRes
36
37
  from stackit.opensearch.models.credentials_response import CredentialsResponse
37
38
  from stackit.opensearch.models.get_metrics_response import GetMetricsResponse
38
39
  from stackit.opensearch.models.instance import Instance
39
- from stackit.opensearch.models.list_backups_response import ListBackupsResponse
40
40
  from stackit.opensearch.models.list_credentials_response import ListCredentialsResponse
41
41
  from stackit.opensearch.models.list_instances_response import ListInstancesResponse
42
42
  from stackit.opensearch.models.list_offerings_response import ListOfferingsResponse
@@ -82,7 +82,7 @@ class DefaultApi:
82
82
  _content_type: Optional[StrictStr] = None,
83
83
  _headers: Optional[Dict[StrictStr, Any]] = None,
84
84
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
85
- ) -> List[CreateBackupResponseItem]:
85
+ ) -> CreateBackupResponseItem:
86
86
  """create a backup
87
87
 
88
88
 
@@ -125,7 +125,7 @@ class DefaultApi:
125
125
  )
126
126
 
127
127
  _response_types_map: Dict[str, Optional[str]] = {
128
- "201": "List[CreateBackupResponseItem]",
128
+ "200": "CreateBackupResponseItem",
129
129
  "400": "Error",
130
130
  "401": "Error",
131
131
  "404": "Error",
@@ -153,7 +153,7 @@ class DefaultApi:
153
153
  _content_type: Optional[StrictStr] = None,
154
154
  _headers: Optional[Dict[StrictStr, Any]] = None,
155
155
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
156
- ) -> ApiResponse[List[CreateBackupResponseItem]]:
156
+ ) -> ApiResponse[CreateBackupResponseItem]:
157
157
  """create a backup
158
158
 
159
159
 
@@ -196,7 +196,7 @@ class DefaultApi:
196
196
  )
197
197
 
198
198
  _response_types_map: Dict[str, Optional[str]] = {
199
- "201": "List[CreateBackupResponseItem]",
199
+ "200": "CreateBackupResponseItem",
200
200
  "400": "Error",
201
201
  "401": "Error",
202
202
  "404": "Error",
@@ -267,7 +267,7 @@ class DefaultApi:
267
267
  )
268
268
 
269
269
  _response_types_map: Dict[str, Optional[str]] = {
270
- "201": "List[CreateBackupResponseItem]",
270
+ "200": "CreateBackupResponseItem",
271
271
  "400": "Error",
272
272
  "401": "Error",
273
273
  "404": "Error",
@@ -2554,7 +2554,7 @@ class DefaultApi:
2554
2554
  _content_type: Optional[StrictStr] = None,
2555
2555
  _headers: Optional[Dict[StrictStr, Any]] = None,
2556
2556
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2557
- ) -> ListBackupsResponse:
2557
+ ) -> List[Backup]:
2558
2558
  """get latest backup information for provided instanceId
2559
2559
 
2560
2560
 
@@ -2597,7 +2597,7 @@ class DefaultApi:
2597
2597
  )
2598
2598
 
2599
2599
  _response_types_map: Dict[str, Optional[str]] = {
2600
- "200": "ListBackupsResponse",
2600
+ "200": "List[Backup]",
2601
2601
  "400": "Error",
2602
2602
  "401": "Error",
2603
2603
  "404": "Error",
@@ -2624,7 +2624,7 @@ class DefaultApi:
2624
2624
  _content_type: Optional[StrictStr] = None,
2625
2625
  _headers: Optional[Dict[StrictStr, Any]] = None,
2626
2626
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2627
- ) -> ApiResponse[ListBackupsResponse]:
2627
+ ) -> ApiResponse[List[Backup]]:
2628
2628
  """get latest backup information for provided instanceId
2629
2629
 
2630
2630
 
@@ -2667,7 +2667,7 @@ class DefaultApi:
2667
2667
  )
2668
2668
 
2669
2669
  _response_types_map: Dict[str, Optional[str]] = {
2670
- "200": "ListBackupsResponse",
2670
+ "200": "List[Backup]",
2671
2671
  "400": "Error",
2672
2672
  "401": "Error",
2673
2673
  "404": "Error",
@@ -2737,7 +2737,7 @@ class DefaultApi:
2737
2737
  )
2738
2738
 
2739
2739
  _response_types_map: Dict[str, Optional[str]] = {
2740
- "200": "ListBackupsResponse",
2740
+ "200": "List[Backup]",
2741
2741
  "400": "Error",
2742
2742
  "401": "Error",
2743
2743
  "404": "Error",
@@ -31,7 +31,6 @@ from stackit.opensearch.models.instance import Instance
31
31
  from stackit.opensearch.models.instance_last_operation import InstanceLastOperation
32
32
  from stackit.opensearch.models.instance_parameters import InstanceParameters
33
33
  from stackit.opensearch.models.instance_schema import InstanceSchema
34
- from stackit.opensearch.models.list_backups_response import ListBackupsResponse
35
34
  from stackit.opensearch.models.list_credentials_response import ListCredentialsResponse
36
35
  from stackit.opensearch.models.list_instances_response import ListInstancesResponse
37
36
  from stackit.opensearch.models.list_offerings_response import ListOfferingsResponse
@@ -1,99 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- STACKIT Opensearch API
5
-
6
- The STACKIT Opensearch API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
7
-
8
- The version of the OpenAPI document: 2.1.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
- from __future__ import annotations
15
-
16
- import json
17
- import pprint
18
- from typing import Any, ClassVar, Dict, List, Optional, Set
19
-
20
- from pydantic import BaseModel, ConfigDict, Field
21
- from pydantic_core import to_jsonable_python
22
- from typing_extensions import Self
23
-
24
- from stackit.opensearch.models.backup import Backup
25
-
26
-
27
- class ListBackupsResponse(BaseModel):
28
- """
29
- ListBackupsResponse
30
- """ # noqa: E501
31
-
32
- instance_backups: List[Backup] = Field(alias="instanceBackups")
33
- __properties: ClassVar[List[str]] = ["instanceBackups"]
34
-
35
- model_config = ConfigDict(
36
- validate_by_name=True,
37
- validate_by_alias=True,
38
- validate_assignment=True,
39
- protected_namespaces=(),
40
- )
41
-
42
- def to_str(self) -> str:
43
- """Returns the string representation of the model using alias"""
44
- return pprint.pformat(self.model_dump(by_alias=True))
45
-
46
- def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(to_jsonable_python(self.to_dict()))
49
-
50
- @classmethod
51
- def from_json(cls, json_str: str) -> Optional[Self]:
52
- """Create an instance of ListBackupsResponse from a JSON string"""
53
- return cls.from_dict(json.loads(json_str))
54
-
55
- def to_dict(self) -> Dict[str, Any]:
56
- """Return the dictionary representation of the model using alias.
57
-
58
- This has the following differences from calling pydantic's
59
- `self.model_dump(by_alias=True)`:
60
-
61
- * `None` is only added to the output dict for nullable fields that
62
- were set at model initialization. Other fields with value `None`
63
- are ignored.
64
- """
65
- excluded_fields: Set[str] = set([])
66
-
67
- _dict = self.model_dump(
68
- by_alias=True,
69
- exclude=excluded_fields,
70
- exclude_none=True,
71
- )
72
- # override the default output from pydantic by calling `to_dict()` of each item in instance_backups (list)
73
- _items = []
74
- if self.instance_backups:
75
- for _item_instance_backups in self.instance_backups:
76
- if _item_instance_backups:
77
- _items.append(_item_instance_backups.to_dict())
78
- _dict["instanceBackups"] = _items
79
- return _dict
80
-
81
- @classmethod
82
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
83
- """Create an instance of ListBackupsResponse from a dict"""
84
- if obj is None:
85
- return None
86
-
87
- if not isinstance(obj, dict):
88
- return cls.model_validate(obj)
89
-
90
- _obj = cls.model_validate(
91
- {
92
- "instanceBackups": (
93
- [Backup.from_dict(_item) for _item in obj["instanceBackups"]]
94
- if obj.get("instanceBackups") is not None
95
- else None
96
- )
97
- }
98
- )
99
- return _obj