hyperstack 1.46.1a0__py3-none-any.whl → 1.46.4a0__py3-none-any.whl
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.
- hyperstack/__init__.py +18 -1
- hyperstack/api/__init__.py +4 -0
- hyperstack/api/access_keys_api.py +885 -0
- hyperstack/api/api_key_api.py +1 -0
- hyperstack/api/auth_api.py +69 -69
- hyperstack/api/buckets_api.py +865 -0
- hyperstack/api/health_api.py +282 -0
- hyperstack/api/partner_config_api.py +2 -0
- hyperstack/api/regions_api.py +282 -0
- hyperstack/api_client.py +1 -1
- hyperstack/configuration.py +1 -1
- hyperstack/models/__init__.py +13 -0
- hyperstack/models/generate_update_api_key_payload.py +3 -2
- hyperstack/models/object_storage_access_key_create_request.py +90 -0
- hyperstack/models/object_storage_access_key_create_response.py +101 -0
- hyperstack/models/object_storage_access_key_list_response.py +101 -0
- hyperstack/models/object_storage_access_key_response.py +99 -0
- hyperstack/models/object_storage_bucket_list_response.py +95 -0
- hyperstack/models/object_storage_bucket_response.py +101 -0
- hyperstack/models/object_storage_delete_response.py +87 -0
- hyperstack/models/object_storage_error_response.py +91 -0
- hyperstack/models/object_storage_health_response.py +87 -0
- hyperstack/models/object_storage_pagination_meta.py +91 -0
- hyperstack/models/object_storage_region_list_response.py +95 -0
- hyperstack/models/object_storage_region_response.py +87 -0
- hyperstack/models/object_storage_regions_enum.py +36 -0
- {hyperstack-1.46.1a0.dist-info → hyperstack-1.46.4a0.dist-info}/METADATA +1 -1
- {hyperstack-1.46.1a0.dist-info → hyperstack-1.46.4a0.dist-info}/RECORD +30 -13
- {hyperstack-1.46.1a0.dist-info → hyperstack-1.46.4a0.dist-info}/WHEEL +0 -0
- {hyperstack-1.46.1a0.dist-info → hyperstack-1.46.4a0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Infrahub-API
|
|
5
|
+
|
|
6
|
+
Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from ..models.object_storage_health_response import ObjectStorageHealthResponse
|
|
20
|
+
|
|
21
|
+
from ..api_client import ApiClient, RequestSerialized
|
|
22
|
+
from ..api_response import ApiResponse
|
|
23
|
+
from ..rest import RESTResponseType
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class HealthApi:
|
|
27
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
28
|
+
Ref: https://openapi-generator.tech
|
|
29
|
+
|
|
30
|
+
Do not edit the class manually.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def __init__(self, api_client=None) -> None:
|
|
34
|
+
if api_client is None:
|
|
35
|
+
api_client = ApiClient.get_default()
|
|
36
|
+
self.api_client = api_client
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@validate_call
|
|
40
|
+
def healthz_endpoint(
|
|
41
|
+
self,
|
|
42
|
+
_request_timeout: Union[
|
|
43
|
+
None,
|
|
44
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
45
|
+
Tuple[
|
|
46
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
48
|
+
]
|
|
49
|
+
] = None,
|
|
50
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
51
|
+
_content_type: Optional[StrictStr] = None,
|
|
52
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
54
|
+
) -> ObjectStorageHealthResponse:
|
|
55
|
+
"""Healthcheck
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
59
|
+
number provided, it will be total request
|
|
60
|
+
timeout. It can also be a pair (tuple) of
|
|
61
|
+
(connection, read) timeouts.
|
|
62
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
63
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
64
|
+
request; this effectively ignores the
|
|
65
|
+
authentication in the spec for a single request.
|
|
66
|
+
:type _request_auth: dict, optional
|
|
67
|
+
:param _content_type: force content-type for the request.
|
|
68
|
+
:type _content_type: str, Optional
|
|
69
|
+
:param _headers: set to override the headers for a single
|
|
70
|
+
request; this effectively ignores the headers
|
|
71
|
+
in the spec for a single request.
|
|
72
|
+
:type _headers: dict, optional
|
|
73
|
+
:param _host_index: set to override the host_index for a single
|
|
74
|
+
request; this effectively ignores the host_index
|
|
75
|
+
in the spec for a single request.
|
|
76
|
+
:type _host_index: int, optional
|
|
77
|
+
:return: Returns the result object.
|
|
78
|
+
""" # noqa: E501
|
|
79
|
+
|
|
80
|
+
_param = self._healthz_endpoint_serialize(
|
|
81
|
+
_request_auth=_request_auth,
|
|
82
|
+
_content_type=_content_type,
|
|
83
|
+
_headers=_headers,
|
|
84
|
+
_host_index=_host_index
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
88
|
+
'200': "ObjectStorageHealthResponse",
|
|
89
|
+
'422': None,
|
|
90
|
+
}
|
|
91
|
+
response_data = self.api_client.call_api(
|
|
92
|
+
*_param,
|
|
93
|
+
_request_timeout=_request_timeout
|
|
94
|
+
)
|
|
95
|
+
response_data.read()
|
|
96
|
+
return self.api_client.response_deserialize(
|
|
97
|
+
response_data=response_data,
|
|
98
|
+
response_types_map=_response_types_map,
|
|
99
|
+
).data
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@validate_call
|
|
103
|
+
def healthz_endpoint_with_http_info(
|
|
104
|
+
self,
|
|
105
|
+
_request_timeout: Union[
|
|
106
|
+
None,
|
|
107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
108
|
+
Tuple[
|
|
109
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
110
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
111
|
+
]
|
|
112
|
+
] = None,
|
|
113
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
114
|
+
_content_type: Optional[StrictStr] = None,
|
|
115
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
116
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
117
|
+
) -> ApiResponse[ObjectStorageHealthResponse]:
|
|
118
|
+
"""Healthcheck
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
122
|
+
number provided, it will be total request
|
|
123
|
+
timeout. It can also be a pair (tuple) of
|
|
124
|
+
(connection, read) timeouts.
|
|
125
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
126
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
127
|
+
request; this effectively ignores the
|
|
128
|
+
authentication in the spec for a single request.
|
|
129
|
+
:type _request_auth: dict, optional
|
|
130
|
+
:param _content_type: force content-type for the request.
|
|
131
|
+
:type _content_type: str, Optional
|
|
132
|
+
:param _headers: set to override the headers for a single
|
|
133
|
+
request; this effectively ignores the headers
|
|
134
|
+
in the spec for a single request.
|
|
135
|
+
:type _headers: dict, optional
|
|
136
|
+
:param _host_index: set to override the host_index for a single
|
|
137
|
+
request; this effectively ignores the host_index
|
|
138
|
+
in the spec for a single request.
|
|
139
|
+
:type _host_index: int, optional
|
|
140
|
+
:return: Returns the result object.
|
|
141
|
+
""" # noqa: E501
|
|
142
|
+
|
|
143
|
+
_param = self._healthz_endpoint_serialize(
|
|
144
|
+
_request_auth=_request_auth,
|
|
145
|
+
_content_type=_content_type,
|
|
146
|
+
_headers=_headers,
|
|
147
|
+
_host_index=_host_index
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
151
|
+
'200': "ObjectStorageHealthResponse",
|
|
152
|
+
'422': None,
|
|
153
|
+
}
|
|
154
|
+
response_data = self.api_client.call_api(
|
|
155
|
+
*_param,
|
|
156
|
+
_request_timeout=_request_timeout
|
|
157
|
+
)
|
|
158
|
+
response_data.read()
|
|
159
|
+
return self.api_client.response_deserialize(
|
|
160
|
+
response_data=response_data,
|
|
161
|
+
response_types_map=_response_types_map,
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
@validate_call
|
|
166
|
+
def healthz_endpoint_without_preload_content(
|
|
167
|
+
self,
|
|
168
|
+
_request_timeout: Union[
|
|
169
|
+
None,
|
|
170
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
171
|
+
Tuple[
|
|
172
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
173
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
174
|
+
]
|
|
175
|
+
] = None,
|
|
176
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
177
|
+
_content_type: Optional[StrictStr] = None,
|
|
178
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
179
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
180
|
+
) -> RESTResponseType:
|
|
181
|
+
"""Healthcheck
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
185
|
+
number provided, it will be total request
|
|
186
|
+
timeout. It can also be a pair (tuple) of
|
|
187
|
+
(connection, read) timeouts.
|
|
188
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
189
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
190
|
+
request; this effectively ignores the
|
|
191
|
+
authentication in the spec for a single request.
|
|
192
|
+
:type _request_auth: dict, optional
|
|
193
|
+
:param _content_type: force content-type for the request.
|
|
194
|
+
:type _content_type: str, Optional
|
|
195
|
+
:param _headers: set to override the headers for a single
|
|
196
|
+
request; this effectively ignores the headers
|
|
197
|
+
in the spec for a single request.
|
|
198
|
+
:type _headers: dict, optional
|
|
199
|
+
:param _host_index: set to override the host_index for a single
|
|
200
|
+
request; this effectively ignores the host_index
|
|
201
|
+
in the spec for a single request.
|
|
202
|
+
:type _host_index: int, optional
|
|
203
|
+
:return: Returns the result object.
|
|
204
|
+
""" # noqa: E501
|
|
205
|
+
|
|
206
|
+
_param = self._healthz_endpoint_serialize(
|
|
207
|
+
_request_auth=_request_auth,
|
|
208
|
+
_content_type=_content_type,
|
|
209
|
+
_headers=_headers,
|
|
210
|
+
_host_index=_host_index
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
214
|
+
'200': "ObjectStorageHealthResponse",
|
|
215
|
+
'422': None,
|
|
216
|
+
}
|
|
217
|
+
response_data = self.api_client.call_api(
|
|
218
|
+
*_param,
|
|
219
|
+
_request_timeout=_request_timeout
|
|
220
|
+
)
|
|
221
|
+
return response_data.response
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
def _healthz_endpoint_serialize(
|
|
225
|
+
self,
|
|
226
|
+
_request_auth,
|
|
227
|
+
_content_type,
|
|
228
|
+
_headers,
|
|
229
|
+
_host_index,
|
|
230
|
+
) -> RequestSerialized:
|
|
231
|
+
|
|
232
|
+
_host = None
|
|
233
|
+
|
|
234
|
+
_collection_formats: Dict[str, str] = {
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
_path_params: Dict[str, str] = {}
|
|
238
|
+
_query_params: List[Tuple[str, str]] = []
|
|
239
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
240
|
+
_form_params: List[Tuple[str, str]] = []
|
|
241
|
+
_files: Dict[
|
|
242
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
243
|
+
] = {}
|
|
244
|
+
_body_params: Optional[bytes] = None
|
|
245
|
+
|
|
246
|
+
# process the path parameters
|
|
247
|
+
# process the query parameters
|
|
248
|
+
# process the header parameters
|
|
249
|
+
# process the form parameters
|
|
250
|
+
# process the body parameter
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
# set the HTTP header `Accept`
|
|
254
|
+
if 'Accept' not in _header_params:
|
|
255
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
256
|
+
[
|
|
257
|
+
'application/json'
|
|
258
|
+
]
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
# authentication setting
|
|
263
|
+
_auth_settings: List[str] = [
|
|
264
|
+
'apiKey'
|
|
265
|
+
]
|
|
266
|
+
|
|
267
|
+
return self.api_client.param_serialize(
|
|
268
|
+
method='GET',
|
|
269
|
+
resource_path='/object-storage/healthz',
|
|
270
|
+
path_params=_path_params,
|
|
271
|
+
query_params=_query_params,
|
|
272
|
+
header_params=_header_params,
|
|
273
|
+
body=_body_params,
|
|
274
|
+
post_params=_form_params,
|
|
275
|
+
files=_files,
|
|
276
|
+
auth_settings=_auth_settings,
|
|
277
|
+
collection_formats=_collection_formats,
|
|
278
|
+
_host=_host,
|
|
279
|
+
_request_auth=_request_auth
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
|
|
@@ -273,6 +273,7 @@ class PartnerConfigApi:
|
|
|
273
273
|
|
|
274
274
|
# authentication setting
|
|
275
275
|
_auth_settings: List[str] = [
|
|
276
|
+
'apiKey'
|
|
276
277
|
]
|
|
277
278
|
|
|
278
279
|
return self.api_client.param_serialize(
|
|
@@ -544,6 +545,7 @@ class PartnerConfigApi:
|
|
|
544
545
|
|
|
545
546
|
# authentication setting
|
|
546
547
|
_auth_settings: List[str] = [
|
|
548
|
+
'apiKey'
|
|
547
549
|
]
|
|
548
550
|
|
|
549
551
|
return self.api_client.param_serialize(
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Infrahub-API
|
|
5
|
+
|
|
6
|
+
Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from ..models.object_storage_region_list_response import ObjectStorageRegionListResponse
|
|
20
|
+
|
|
21
|
+
from ..api_client import ApiClient, RequestSerialized
|
|
22
|
+
from ..api_response import ApiResponse
|
|
23
|
+
from ..rest import RESTResponseType
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class RegionsApi:
|
|
27
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
28
|
+
Ref: https://openapi-generator.tech
|
|
29
|
+
|
|
30
|
+
Do not edit the class manually.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def __init__(self, api_client=None) -> None:
|
|
34
|
+
if api_client is None:
|
|
35
|
+
api_client = ApiClient.get_default()
|
|
36
|
+
self.api_client = api_client
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@validate_call
|
|
40
|
+
def list_regions_endpoint(
|
|
41
|
+
self,
|
|
42
|
+
_request_timeout: Union[
|
|
43
|
+
None,
|
|
44
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
45
|
+
Tuple[
|
|
46
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
48
|
+
]
|
|
49
|
+
] = None,
|
|
50
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
51
|
+
_content_type: Optional[StrictStr] = None,
|
|
52
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
54
|
+
) -> ObjectStorageRegionListResponse:
|
|
55
|
+
"""Get a list of supported regions
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
59
|
+
number provided, it will be total request
|
|
60
|
+
timeout. It can also be a pair (tuple) of
|
|
61
|
+
(connection, read) timeouts.
|
|
62
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
63
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
64
|
+
request; this effectively ignores the
|
|
65
|
+
authentication in the spec for a single request.
|
|
66
|
+
:type _request_auth: dict, optional
|
|
67
|
+
:param _content_type: force content-type for the request.
|
|
68
|
+
:type _content_type: str, Optional
|
|
69
|
+
:param _headers: set to override the headers for a single
|
|
70
|
+
request; this effectively ignores the headers
|
|
71
|
+
in the spec for a single request.
|
|
72
|
+
:type _headers: dict, optional
|
|
73
|
+
:param _host_index: set to override the host_index for a single
|
|
74
|
+
request; this effectively ignores the host_index
|
|
75
|
+
in the spec for a single request.
|
|
76
|
+
:type _host_index: int, optional
|
|
77
|
+
:return: Returns the result object.
|
|
78
|
+
""" # noqa: E501
|
|
79
|
+
|
|
80
|
+
_param = self._list_regions_endpoint_serialize(
|
|
81
|
+
_request_auth=_request_auth,
|
|
82
|
+
_content_type=_content_type,
|
|
83
|
+
_headers=_headers,
|
|
84
|
+
_host_index=_host_index
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
88
|
+
'200': "ObjectStorageRegionListResponse",
|
|
89
|
+
'422': None,
|
|
90
|
+
}
|
|
91
|
+
response_data = self.api_client.call_api(
|
|
92
|
+
*_param,
|
|
93
|
+
_request_timeout=_request_timeout
|
|
94
|
+
)
|
|
95
|
+
response_data.read()
|
|
96
|
+
return self.api_client.response_deserialize(
|
|
97
|
+
response_data=response_data,
|
|
98
|
+
response_types_map=_response_types_map,
|
|
99
|
+
).data
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@validate_call
|
|
103
|
+
def list_regions_endpoint_with_http_info(
|
|
104
|
+
self,
|
|
105
|
+
_request_timeout: Union[
|
|
106
|
+
None,
|
|
107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
108
|
+
Tuple[
|
|
109
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
110
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
111
|
+
]
|
|
112
|
+
] = None,
|
|
113
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
114
|
+
_content_type: Optional[StrictStr] = None,
|
|
115
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
116
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
117
|
+
) -> ApiResponse[ObjectStorageRegionListResponse]:
|
|
118
|
+
"""Get a list of supported regions
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
122
|
+
number provided, it will be total request
|
|
123
|
+
timeout. It can also be a pair (tuple) of
|
|
124
|
+
(connection, read) timeouts.
|
|
125
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
126
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
127
|
+
request; this effectively ignores the
|
|
128
|
+
authentication in the spec for a single request.
|
|
129
|
+
:type _request_auth: dict, optional
|
|
130
|
+
:param _content_type: force content-type for the request.
|
|
131
|
+
:type _content_type: str, Optional
|
|
132
|
+
:param _headers: set to override the headers for a single
|
|
133
|
+
request; this effectively ignores the headers
|
|
134
|
+
in the spec for a single request.
|
|
135
|
+
:type _headers: dict, optional
|
|
136
|
+
:param _host_index: set to override the host_index for a single
|
|
137
|
+
request; this effectively ignores the host_index
|
|
138
|
+
in the spec for a single request.
|
|
139
|
+
:type _host_index: int, optional
|
|
140
|
+
:return: Returns the result object.
|
|
141
|
+
""" # noqa: E501
|
|
142
|
+
|
|
143
|
+
_param = self._list_regions_endpoint_serialize(
|
|
144
|
+
_request_auth=_request_auth,
|
|
145
|
+
_content_type=_content_type,
|
|
146
|
+
_headers=_headers,
|
|
147
|
+
_host_index=_host_index
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
151
|
+
'200': "ObjectStorageRegionListResponse",
|
|
152
|
+
'422': None,
|
|
153
|
+
}
|
|
154
|
+
response_data = self.api_client.call_api(
|
|
155
|
+
*_param,
|
|
156
|
+
_request_timeout=_request_timeout
|
|
157
|
+
)
|
|
158
|
+
response_data.read()
|
|
159
|
+
return self.api_client.response_deserialize(
|
|
160
|
+
response_data=response_data,
|
|
161
|
+
response_types_map=_response_types_map,
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
@validate_call
|
|
166
|
+
def list_regions_endpoint_without_preload_content(
|
|
167
|
+
self,
|
|
168
|
+
_request_timeout: Union[
|
|
169
|
+
None,
|
|
170
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
171
|
+
Tuple[
|
|
172
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
173
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
174
|
+
]
|
|
175
|
+
] = None,
|
|
176
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
177
|
+
_content_type: Optional[StrictStr] = None,
|
|
178
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
179
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
180
|
+
) -> RESTResponseType:
|
|
181
|
+
"""Get a list of supported regions
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
185
|
+
number provided, it will be total request
|
|
186
|
+
timeout. It can also be a pair (tuple) of
|
|
187
|
+
(connection, read) timeouts.
|
|
188
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
189
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
190
|
+
request; this effectively ignores the
|
|
191
|
+
authentication in the spec for a single request.
|
|
192
|
+
:type _request_auth: dict, optional
|
|
193
|
+
:param _content_type: force content-type for the request.
|
|
194
|
+
:type _content_type: str, Optional
|
|
195
|
+
:param _headers: set to override the headers for a single
|
|
196
|
+
request; this effectively ignores the headers
|
|
197
|
+
in the spec for a single request.
|
|
198
|
+
:type _headers: dict, optional
|
|
199
|
+
:param _host_index: set to override the host_index for a single
|
|
200
|
+
request; this effectively ignores the host_index
|
|
201
|
+
in the spec for a single request.
|
|
202
|
+
:type _host_index: int, optional
|
|
203
|
+
:return: Returns the result object.
|
|
204
|
+
""" # noqa: E501
|
|
205
|
+
|
|
206
|
+
_param = self._list_regions_endpoint_serialize(
|
|
207
|
+
_request_auth=_request_auth,
|
|
208
|
+
_content_type=_content_type,
|
|
209
|
+
_headers=_headers,
|
|
210
|
+
_host_index=_host_index
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
214
|
+
'200': "ObjectStorageRegionListResponse",
|
|
215
|
+
'422': None,
|
|
216
|
+
}
|
|
217
|
+
response_data = self.api_client.call_api(
|
|
218
|
+
*_param,
|
|
219
|
+
_request_timeout=_request_timeout
|
|
220
|
+
)
|
|
221
|
+
return response_data.response
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
def _list_regions_endpoint_serialize(
|
|
225
|
+
self,
|
|
226
|
+
_request_auth,
|
|
227
|
+
_content_type,
|
|
228
|
+
_headers,
|
|
229
|
+
_host_index,
|
|
230
|
+
) -> RequestSerialized:
|
|
231
|
+
|
|
232
|
+
_host = None
|
|
233
|
+
|
|
234
|
+
_collection_formats: Dict[str, str] = {
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
_path_params: Dict[str, str] = {}
|
|
238
|
+
_query_params: List[Tuple[str, str]] = []
|
|
239
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
240
|
+
_form_params: List[Tuple[str, str]] = []
|
|
241
|
+
_files: Dict[
|
|
242
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
243
|
+
] = {}
|
|
244
|
+
_body_params: Optional[bytes] = None
|
|
245
|
+
|
|
246
|
+
# process the path parameters
|
|
247
|
+
# process the query parameters
|
|
248
|
+
# process the header parameters
|
|
249
|
+
# process the form parameters
|
|
250
|
+
# process the body parameter
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
# set the HTTP header `Accept`
|
|
254
|
+
if 'Accept' not in _header_params:
|
|
255
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
256
|
+
[
|
|
257
|
+
'application/json'
|
|
258
|
+
]
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
# authentication setting
|
|
263
|
+
_auth_settings: List[str] = [
|
|
264
|
+
'apiKey'
|
|
265
|
+
]
|
|
266
|
+
|
|
267
|
+
return self.api_client.param_serialize(
|
|
268
|
+
method='GET',
|
|
269
|
+
resource_path='/object-storage/regions',
|
|
270
|
+
path_params=_path_params,
|
|
271
|
+
query_params=_query_params,
|
|
272
|
+
header_params=_header_params,
|
|
273
|
+
body=_body_params,
|
|
274
|
+
post_params=_form_params,
|
|
275
|
+
files=_files,
|
|
276
|
+
auth_settings=_auth_settings,
|
|
277
|
+
collection_formats=_collection_formats,
|
|
278
|
+
_host=_host,
|
|
279
|
+
_request_auth=_request_auth
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
|
hyperstack/api_client.py
CHANGED
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/v1.46.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/v1.46.4-alpha/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
hyperstack/configuration.py
CHANGED
|
@@ -524,7 +524,7 @@ conf = hyperstack.Configuration(
|
|
|
524
524
|
"OS: {env}\n"\
|
|
525
525
|
"Python Version: {pyversion}\n"\
|
|
526
526
|
"Version of the API: 1.0\n"\
|
|
527
|
-
"SDK Package Version: v1.46.
|
|
527
|
+
"SDK Package Version: v1.46.4-alpha".\
|
|
528
528
|
format(env=sys.platform, pyversion=sys.version)
|
|
529
529
|
|
|
530
530
|
def get_host_settings(self) -> List[HostSetting]:
|
hyperstack/models/__init__.py
CHANGED
|
@@ -178,6 +178,19 @@ from .new_configurations_response import NewConfigurationsResponse
|
|
|
178
178
|
from .new_model_response import NewModelResponse
|
|
179
179
|
from .new_stock_response import NewStockResponse
|
|
180
180
|
from .new_stock_retrive_response import NewStockRetriveResponse
|
|
181
|
+
from .object_storage_access_key_create_request import ObjectStorageAccessKeyCreateRequest
|
|
182
|
+
from .object_storage_access_key_create_response import ObjectStorageAccessKeyCreateResponse
|
|
183
|
+
from .object_storage_access_key_list_response import ObjectStorageAccessKeyListResponse
|
|
184
|
+
from .object_storage_access_key_response import ObjectStorageAccessKeyResponse
|
|
185
|
+
from .object_storage_bucket_list_response import ObjectStorageBucketListResponse
|
|
186
|
+
from .object_storage_bucket_response import ObjectStorageBucketResponse
|
|
187
|
+
from .object_storage_delete_response import ObjectStorageDeleteResponse
|
|
188
|
+
from .object_storage_error_response import ObjectStorageErrorResponse
|
|
189
|
+
from .object_storage_health_response import ObjectStorageHealthResponse
|
|
190
|
+
from .object_storage_pagination_meta import ObjectStoragePaginationMeta
|
|
191
|
+
from .object_storage_region_list_response import ObjectStorageRegionListResponse
|
|
192
|
+
from .object_storage_region_response import ObjectStorageRegionResponse
|
|
193
|
+
from .object_storage_regions_enum import ObjectStorageRegionsEnum
|
|
181
194
|
from .organization_fields import OrganizationFields
|
|
182
195
|
from .organization_level_billing_history import OrganizationLevelBillingHistory
|
|
183
196
|
from .organization_level_billing_history_resources import OrganizationLevelBillingHistoryResources
|
|
@@ -17,8 +17,9 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
22
23
|
from typing import Optional, Set
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
@@ -27,7 +28,7 @@ class GenerateUpdateApiKeyPayload(BaseModel):
|
|
|
27
28
|
GenerateUpdateApiKeyPayload
|
|
28
29
|
""" # noqa: E501
|
|
29
30
|
description: Optional[StrictStr] = None
|
|
30
|
-
name:
|
|
31
|
+
name: Annotated[str, Field(min_length=1, strict=True, max_length=200)]
|
|
31
32
|
__properties: ClassVar[List[str]] = ["description", "name"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|