stackit-logs 0.1.0__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.
- stackit/logs/__init__.py +73 -0
- stackit/logs/api/__init__.py +4 -0
- stackit/logs/api/default_api.py +3472 -0
- stackit/logs/api_client.py +639 -0
- stackit/logs/api_response.py +23 -0
- stackit/logs/configuration.py +163 -0
- stackit/logs/exceptions.py +217 -0
- stackit/logs/models/__init__.py +24 -0
- stackit/logs/models/access_token.py +165 -0
- stackit/logs/models/access_token_list.py +96 -0
- stackit/logs/models/create_access_token_payload.py +113 -0
- stackit/logs/models/create_logs_instance_payload.py +105 -0
- stackit/logs/models/logs_instance.py +165 -0
- stackit/logs/models/logs_instances_list.py +98 -0
- stackit/logs/models/update_access_token_payload.py +97 -0
- stackit/logs/models/update_logs_instance_payload.py +108 -0
- stackit/logs/py.typed +0 -0
- stackit/logs/rest.py +148 -0
- stackit_logs-0.1.0.dist-info/METADATA +49 -0
- stackit_logs-0.1.0.dist-info/RECORD +23 -0
- stackit_logs-0.1.0.dist-info/WHEEL +4 -0
- stackit_logs-0.1.0.dist-info/licenses/LICENSE.md +201 -0
- stackit_logs-0.1.0.dist-info/licenses/NOTICE.txt +2 -0
|
@@ -0,0 +1,3472 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
STACKIT Logs API
|
|
5
|
+
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1beta.0.3
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
15
|
+
|
|
16
|
+
from pydantic import (
|
|
17
|
+
Field,
|
|
18
|
+
StrictFloat,
|
|
19
|
+
StrictInt,
|
|
20
|
+
StrictStr,
|
|
21
|
+
validate_call,
|
|
22
|
+
)
|
|
23
|
+
from stackit.core.configuration import Configuration
|
|
24
|
+
from typing_extensions import Annotated
|
|
25
|
+
|
|
26
|
+
from stackit.logs.api_client import ApiClient, RequestSerialized
|
|
27
|
+
from stackit.logs.api_response import ApiResponse
|
|
28
|
+
from stackit.logs.models.access_token import AccessToken
|
|
29
|
+
from stackit.logs.models.access_token_list import AccessTokenList
|
|
30
|
+
from stackit.logs.models.create_access_token_payload import CreateAccessTokenPayload
|
|
31
|
+
from stackit.logs.models.create_logs_instance_payload import CreateLogsInstancePayload
|
|
32
|
+
from stackit.logs.models.logs_instance import LogsInstance
|
|
33
|
+
from stackit.logs.models.logs_instances_list import LogsInstancesList
|
|
34
|
+
from stackit.logs.models.update_access_token_payload import UpdateAccessTokenPayload
|
|
35
|
+
from stackit.logs.models.update_logs_instance_payload import UpdateLogsInstancePayload
|
|
36
|
+
from stackit.logs.rest import RESTResponseType
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class DefaultApi:
|
|
40
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
41
|
+
Ref: https://openapi-generator.tech
|
|
42
|
+
|
|
43
|
+
Do not edit the class manually.
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def __init__(self, configuration: Configuration = None) -> None:
|
|
47
|
+
if configuration is None:
|
|
48
|
+
configuration = Configuration()
|
|
49
|
+
self.configuration = configuration
|
|
50
|
+
self.api_client = ApiClient(self.configuration)
|
|
51
|
+
|
|
52
|
+
@validate_call
|
|
53
|
+
def create_access_token(
|
|
54
|
+
self,
|
|
55
|
+
project_id: Annotated[
|
|
56
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
57
|
+
],
|
|
58
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
59
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
60
|
+
create_access_token_payload: CreateAccessTokenPayload,
|
|
61
|
+
_request_timeout: Union[
|
|
62
|
+
None,
|
|
63
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
64
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
65
|
+
] = None,
|
|
66
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
67
|
+
_content_type: Optional[StrictStr] = None,
|
|
68
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
69
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
70
|
+
) -> AccessToken:
|
|
71
|
+
"""Create Access Token
|
|
72
|
+
|
|
73
|
+
Create a new Logs instance access token
|
|
74
|
+
|
|
75
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
76
|
+
:type project_id: str
|
|
77
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
78
|
+
:type region_id: str
|
|
79
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
80
|
+
:type instance_id: str
|
|
81
|
+
:param create_access_token_payload: (required)
|
|
82
|
+
:type create_access_token_payload: CreateAccessTokenPayload
|
|
83
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
84
|
+
number provided, it will be total request
|
|
85
|
+
timeout. It can also be a pair (tuple) of
|
|
86
|
+
(connection, read) timeouts.
|
|
87
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
88
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
89
|
+
request; this effectively ignores the
|
|
90
|
+
authentication in the spec for a single request.
|
|
91
|
+
:type _request_auth: dict, optional
|
|
92
|
+
:param _content_type: force content-type for the request.
|
|
93
|
+
:type _content_type: str, Optional
|
|
94
|
+
:param _headers: set to override the headers for a single
|
|
95
|
+
request; this effectively ignores the headers
|
|
96
|
+
in the spec for a single request.
|
|
97
|
+
:type _headers: dict, optional
|
|
98
|
+
:param _host_index: set to override the host_index for a single
|
|
99
|
+
request; this effectively ignores the host_index
|
|
100
|
+
in the spec for a single request.
|
|
101
|
+
:type _host_index: int, optional
|
|
102
|
+
:return: Returns the result object.
|
|
103
|
+
""" # noqa: E501
|
|
104
|
+
|
|
105
|
+
_param = self._create_access_token_serialize(
|
|
106
|
+
project_id=project_id,
|
|
107
|
+
region_id=region_id,
|
|
108
|
+
instance_id=instance_id,
|
|
109
|
+
create_access_token_payload=create_access_token_payload,
|
|
110
|
+
_request_auth=_request_auth,
|
|
111
|
+
_content_type=_content_type,
|
|
112
|
+
_headers=_headers,
|
|
113
|
+
_host_index=_host_index,
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
117
|
+
"201": "AccessToken",
|
|
118
|
+
"400": None,
|
|
119
|
+
"401": "str",
|
|
120
|
+
"404": None,
|
|
121
|
+
"409": None,
|
|
122
|
+
"500": None,
|
|
123
|
+
}
|
|
124
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
125
|
+
response_data.read()
|
|
126
|
+
return self.api_client.response_deserialize(
|
|
127
|
+
response_data=response_data,
|
|
128
|
+
response_types_map=_response_types_map,
|
|
129
|
+
).data
|
|
130
|
+
|
|
131
|
+
@validate_call
|
|
132
|
+
def create_access_token_with_http_info(
|
|
133
|
+
self,
|
|
134
|
+
project_id: Annotated[
|
|
135
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
136
|
+
],
|
|
137
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
138
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
139
|
+
create_access_token_payload: CreateAccessTokenPayload,
|
|
140
|
+
_request_timeout: Union[
|
|
141
|
+
None,
|
|
142
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
143
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
144
|
+
] = None,
|
|
145
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
146
|
+
_content_type: Optional[StrictStr] = None,
|
|
147
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
148
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
149
|
+
) -> ApiResponse[AccessToken]:
|
|
150
|
+
"""Create Access Token
|
|
151
|
+
|
|
152
|
+
Create a new Logs instance access token
|
|
153
|
+
|
|
154
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
155
|
+
:type project_id: str
|
|
156
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
157
|
+
:type region_id: str
|
|
158
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
159
|
+
:type instance_id: str
|
|
160
|
+
:param create_access_token_payload: (required)
|
|
161
|
+
:type create_access_token_payload: CreateAccessTokenPayload
|
|
162
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
163
|
+
number provided, it will be total request
|
|
164
|
+
timeout. It can also be a pair (tuple) of
|
|
165
|
+
(connection, read) timeouts.
|
|
166
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
167
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
168
|
+
request; this effectively ignores the
|
|
169
|
+
authentication in the spec for a single request.
|
|
170
|
+
:type _request_auth: dict, optional
|
|
171
|
+
:param _content_type: force content-type for the request.
|
|
172
|
+
:type _content_type: str, Optional
|
|
173
|
+
:param _headers: set to override the headers for a single
|
|
174
|
+
request; this effectively ignores the headers
|
|
175
|
+
in the spec for a single request.
|
|
176
|
+
:type _headers: dict, optional
|
|
177
|
+
:param _host_index: set to override the host_index for a single
|
|
178
|
+
request; this effectively ignores the host_index
|
|
179
|
+
in the spec for a single request.
|
|
180
|
+
:type _host_index: int, optional
|
|
181
|
+
:return: Returns the result object.
|
|
182
|
+
""" # noqa: E501
|
|
183
|
+
|
|
184
|
+
_param = self._create_access_token_serialize(
|
|
185
|
+
project_id=project_id,
|
|
186
|
+
region_id=region_id,
|
|
187
|
+
instance_id=instance_id,
|
|
188
|
+
create_access_token_payload=create_access_token_payload,
|
|
189
|
+
_request_auth=_request_auth,
|
|
190
|
+
_content_type=_content_type,
|
|
191
|
+
_headers=_headers,
|
|
192
|
+
_host_index=_host_index,
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
196
|
+
"201": "AccessToken",
|
|
197
|
+
"400": None,
|
|
198
|
+
"401": "str",
|
|
199
|
+
"404": None,
|
|
200
|
+
"409": None,
|
|
201
|
+
"500": None,
|
|
202
|
+
}
|
|
203
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
204
|
+
response_data.read()
|
|
205
|
+
return self.api_client.response_deserialize(
|
|
206
|
+
response_data=response_data,
|
|
207
|
+
response_types_map=_response_types_map,
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
@validate_call
|
|
211
|
+
def create_access_token_without_preload_content(
|
|
212
|
+
self,
|
|
213
|
+
project_id: Annotated[
|
|
214
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
215
|
+
],
|
|
216
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
217
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
218
|
+
create_access_token_payload: CreateAccessTokenPayload,
|
|
219
|
+
_request_timeout: Union[
|
|
220
|
+
None,
|
|
221
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
222
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
223
|
+
] = None,
|
|
224
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
225
|
+
_content_type: Optional[StrictStr] = None,
|
|
226
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
227
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
228
|
+
) -> RESTResponseType:
|
|
229
|
+
"""Create Access Token
|
|
230
|
+
|
|
231
|
+
Create a new Logs instance access token
|
|
232
|
+
|
|
233
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
234
|
+
:type project_id: str
|
|
235
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
236
|
+
:type region_id: str
|
|
237
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
238
|
+
:type instance_id: str
|
|
239
|
+
:param create_access_token_payload: (required)
|
|
240
|
+
:type create_access_token_payload: CreateAccessTokenPayload
|
|
241
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
242
|
+
number provided, it will be total request
|
|
243
|
+
timeout. It can also be a pair (tuple) of
|
|
244
|
+
(connection, read) timeouts.
|
|
245
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
246
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
247
|
+
request; this effectively ignores the
|
|
248
|
+
authentication in the spec for a single request.
|
|
249
|
+
:type _request_auth: dict, optional
|
|
250
|
+
:param _content_type: force content-type for the request.
|
|
251
|
+
:type _content_type: str, Optional
|
|
252
|
+
:param _headers: set to override the headers for a single
|
|
253
|
+
request; this effectively ignores the headers
|
|
254
|
+
in the spec for a single request.
|
|
255
|
+
:type _headers: dict, optional
|
|
256
|
+
:param _host_index: set to override the host_index for a single
|
|
257
|
+
request; this effectively ignores the host_index
|
|
258
|
+
in the spec for a single request.
|
|
259
|
+
:type _host_index: int, optional
|
|
260
|
+
:return: Returns the result object.
|
|
261
|
+
""" # noqa: E501
|
|
262
|
+
|
|
263
|
+
_param = self._create_access_token_serialize(
|
|
264
|
+
project_id=project_id,
|
|
265
|
+
region_id=region_id,
|
|
266
|
+
instance_id=instance_id,
|
|
267
|
+
create_access_token_payload=create_access_token_payload,
|
|
268
|
+
_request_auth=_request_auth,
|
|
269
|
+
_content_type=_content_type,
|
|
270
|
+
_headers=_headers,
|
|
271
|
+
_host_index=_host_index,
|
|
272
|
+
)
|
|
273
|
+
|
|
274
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
275
|
+
"201": "AccessToken",
|
|
276
|
+
"400": None,
|
|
277
|
+
"401": "str",
|
|
278
|
+
"404": None,
|
|
279
|
+
"409": None,
|
|
280
|
+
"500": None,
|
|
281
|
+
}
|
|
282
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
283
|
+
return response_data.response
|
|
284
|
+
|
|
285
|
+
def _create_access_token_serialize(
|
|
286
|
+
self,
|
|
287
|
+
project_id,
|
|
288
|
+
region_id,
|
|
289
|
+
instance_id,
|
|
290
|
+
create_access_token_payload,
|
|
291
|
+
_request_auth,
|
|
292
|
+
_content_type,
|
|
293
|
+
_headers,
|
|
294
|
+
_host_index,
|
|
295
|
+
) -> RequestSerialized:
|
|
296
|
+
|
|
297
|
+
_host = None
|
|
298
|
+
|
|
299
|
+
_collection_formats: Dict[str, str] = {}
|
|
300
|
+
|
|
301
|
+
_path_params: Dict[str, str] = {}
|
|
302
|
+
_query_params: List[Tuple[str, str]] = []
|
|
303
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
304
|
+
_form_params: List[Tuple[str, str]] = []
|
|
305
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
306
|
+
_body_params: Optional[bytes] = None
|
|
307
|
+
|
|
308
|
+
# process the path parameters
|
|
309
|
+
if project_id is not None:
|
|
310
|
+
_path_params["projectId"] = project_id
|
|
311
|
+
if region_id is not None:
|
|
312
|
+
_path_params["regionId"] = region_id
|
|
313
|
+
if instance_id is not None:
|
|
314
|
+
_path_params["instanceId"] = instance_id
|
|
315
|
+
# process the query parameters
|
|
316
|
+
# process the header parameters
|
|
317
|
+
# process the form parameters
|
|
318
|
+
# process the body parameter
|
|
319
|
+
if create_access_token_payload is not None:
|
|
320
|
+
_body_params = create_access_token_payload
|
|
321
|
+
|
|
322
|
+
# set the HTTP header `Accept`
|
|
323
|
+
if "Accept" not in _header_params:
|
|
324
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["application/json", "text/plain"])
|
|
325
|
+
|
|
326
|
+
# set the HTTP header `Content-Type`
|
|
327
|
+
if _content_type:
|
|
328
|
+
_header_params["Content-Type"] = _content_type
|
|
329
|
+
else:
|
|
330
|
+
_default_content_type = self.api_client.select_header_content_type(["application/json"])
|
|
331
|
+
if _default_content_type is not None:
|
|
332
|
+
_header_params["Content-Type"] = _default_content_type
|
|
333
|
+
|
|
334
|
+
# authentication setting
|
|
335
|
+
_auth_settings: List[str] = []
|
|
336
|
+
|
|
337
|
+
return self.api_client.param_serialize(
|
|
338
|
+
method="POST",
|
|
339
|
+
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens",
|
|
340
|
+
path_params=_path_params,
|
|
341
|
+
query_params=_query_params,
|
|
342
|
+
header_params=_header_params,
|
|
343
|
+
body=_body_params,
|
|
344
|
+
post_params=_form_params,
|
|
345
|
+
files=_files,
|
|
346
|
+
auth_settings=_auth_settings,
|
|
347
|
+
collection_formats=_collection_formats,
|
|
348
|
+
_host=_host,
|
|
349
|
+
_request_auth=_request_auth,
|
|
350
|
+
)
|
|
351
|
+
|
|
352
|
+
@validate_call
|
|
353
|
+
def create_logs_instance(
|
|
354
|
+
self,
|
|
355
|
+
project_id: Annotated[
|
|
356
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
357
|
+
],
|
|
358
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
359
|
+
create_logs_instance_payload: CreateLogsInstancePayload,
|
|
360
|
+
_request_timeout: Union[
|
|
361
|
+
None,
|
|
362
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
363
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
364
|
+
] = None,
|
|
365
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
366
|
+
_content_type: Optional[StrictStr] = None,
|
|
367
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
368
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
369
|
+
) -> LogsInstance:
|
|
370
|
+
"""Create Logs instance
|
|
371
|
+
|
|
372
|
+
Creates a new Logs instance within the project.
|
|
373
|
+
|
|
374
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
375
|
+
:type project_id: str
|
|
376
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
377
|
+
:type region_id: str
|
|
378
|
+
:param create_logs_instance_payload: (required)
|
|
379
|
+
:type create_logs_instance_payload: CreateLogsInstancePayload
|
|
380
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
381
|
+
number provided, it will be total request
|
|
382
|
+
timeout. It can also be a pair (tuple) of
|
|
383
|
+
(connection, read) timeouts.
|
|
384
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
385
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
386
|
+
request; this effectively ignores the
|
|
387
|
+
authentication in the spec for a single request.
|
|
388
|
+
:type _request_auth: dict, optional
|
|
389
|
+
:param _content_type: force content-type for the request.
|
|
390
|
+
:type _content_type: str, Optional
|
|
391
|
+
:param _headers: set to override the headers for a single
|
|
392
|
+
request; this effectively ignores the headers
|
|
393
|
+
in the spec for a single request.
|
|
394
|
+
:type _headers: dict, optional
|
|
395
|
+
:param _host_index: set to override the host_index for a single
|
|
396
|
+
request; this effectively ignores the host_index
|
|
397
|
+
in the spec for a single request.
|
|
398
|
+
:type _host_index: int, optional
|
|
399
|
+
:return: Returns the result object.
|
|
400
|
+
""" # noqa: E501
|
|
401
|
+
|
|
402
|
+
_param = self._create_logs_instance_serialize(
|
|
403
|
+
project_id=project_id,
|
|
404
|
+
region_id=region_id,
|
|
405
|
+
create_logs_instance_payload=create_logs_instance_payload,
|
|
406
|
+
_request_auth=_request_auth,
|
|
407
|
+
_content_type=_content_type,
|
|
408
|
+
_headers=_headers,
|
|
409
|
+
_host_index=_host_index,
|
|
410
|
+
)
|
|
411
|
+
|
|
412
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
413
|
+
"201": "LogsInstance",
|
|
414
|
+
"400": None,
|
|
415
|
+
"401": "str",
|
|
416
|
+
"404": None,
|
|
417
|
+
"409": None,
|
|
418
|
+
"500": None,
|
|
419
|
+
}
|
|
420
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
421
|
+
response_data.read()
|
|
422
|
+
return self.api_client.response_deserialize(
|
|
423
|
+
response_data=response_data,
|
|
424
|
+
response_types_map=_response_types_map,
|
|
425
|
+
).data
|
|
426
|
+
|
|
427
|
+
@validate_call
|
|
428
|
+
def create_logs_instance_with_http_info(
|
|
429
|
+
self,
|
|
430
|
+
project_id: Annotated[
|
|
431
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
432
|
+
],
|
|
433
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
434
|
+
create_logs_instance_payload: CreateLogsInstancePayload,
|
|
435
|
+
_request_timeout: Union[
|
|
436
|
+
None,
|
|
437
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
438
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
439
|
+
] = None,
|
|
440
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
441
|
+
_content_type: Optional[StrictStr] = None,
|
|
442
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
443
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
444
|
+
) -> ApiResponse[LogsInstance]:
|
|
445
|
+
"""Create Logs instance
|
|
446
|
+
|
|
447
|
+
Creates a new Logs instance within the project.
|
|
448
|
+
|
|
449
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
450
|
+
:type project_id: str
|
|
451
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
452
|
+
:type region_id: str
|
|
453
|
+
:param create_logs_instance_payload: (required)
|
|
454
|
+
:type create_logs_instance_payload: CreateLogsInstancePayload
|
|
455
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
456
|
+
number provided, it will be total request
|
|
457
|
+
timeout. It can also be a pair (tuple) of
|
|
458
|
+
(connection, read) timeouts.
|
|
459
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
460
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
461
|
+
request; this effectively ignores the
|
|
462
|
+
authentication in the spec for a single request.
|
|
463
|
+
:type _request_auth: dict, optional
|
|
464
|
+
:param _content_type: force content-type for the request.
|
|
465
|
+
:type _content_type: str, Optional
|
|
466
|
+
:param _headers: set to override the headers for a single
|
|
467
|
+
request; this effectively ignores the headers
|
|
468
|
+
in the spec for a single request.
|
|
469
|
+
:type _headers: dict, optional
|
|
470
|
+
:param _host_index: set to override the host_index for a single
|
|
471
|
+
request; this effectively ignores the host_index
|
|
472
|
+
in the spec for a single request.
|
|
473
|
+
:type _host_index: int, optional
|
|
474
|
+
:return: Returns the result object.
|
|
475
|
+
""" # noqa: E501
|
|
476
|
+
|
|
477
|
+
_param = self._create_logs_instance_serialize(
|
|
478
|
+
project_id=project_id,
|
|
479
|
+
region_id=region_id,
|
|
480
|
+
create_logs_instance_payload=create_logs_instance_payload,
|
|
481
|
+
_request_auth=_request_auth,
|
|
482
|
+
_content_type=_content_type,
|
|
483
|
+
_headers=_headers,
|
|
484
|
+
_host_index=_host_index,
|
|
485
|
+
)
|
|
486
|
+
|
|
487
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
488
|
+
"201": "LogsInstance",
|
|
489
|
+
"400": None,
|
|
490
|
+
"401": "str",
|
|
491
|
+
"404": None,
|
|
492
|
+
"409": None,
|
|
493
|
+
"500": None,
|
|
494
|
+
}
|
|
495
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
496
|
+
response_data.read()
|
|
497
|
+
return self.api_client.response_deserialize(
|
|
498
|
+
response_data=response_data,
|
|
499
|
+
response_types_map=_response_types_map,
|
|
500
|
+
)
|
|
501
|
+
|
|
502
|
+
@validate_call
|
|
503
|
+
def create_logs_instance_without_preload_content(
|
|
504
|
+
self,
|
|
505
|
+
project_id: Annotated[
|
|
506
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
507
|
+
],
|
|
508
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
509
|
+
create_logs_instance_payload: CreateLogsInstancePayload,
|
|
510
|
+
_request_timeout: Union[
|
|
511
|
+
None,
|
|
512
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
513
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
514
|
+
] = None,
|
|
515
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
516
|
+
_content_type: Optional[StrictStr] = None,
|
|
517
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
518
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
519
|
+
) -> RESTResponseType:
|
|
520
|
+
"""Create Logs instance
|
|
521
|
+
|
|
522
|
+
Creates a new Logs instance within the project.
|
|
523
|
+
|
|
524
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
525
|
+
:type project_id: str
|
|
526
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
527
|
+
:type region_id: str
|
|
528
|
+
:param create_logs_instance_payload: (required)
|
|
529
|
+
:type create_logs_instance_payload: CreateLogsInstancePayload
|
|
530
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
531
|
+
number provided, it will be total request
|
|
532
|
+
timeout. It can also be a pair (tuple) of
|
|
533
|
+
(connection, read) timeouts.
|
|
534
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
535
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
536
|
+
request; this effectively ignores the
|
|
537
|
+
authentication in the spec for a single request.
|
|
538
|
+
:type _request_auth: dict, optional
|
|
539
|
+
:param _content_type: force content-type for the request.
|
|
540
|
+
:type _content_type: str, Optional
|
|
541
|
+
:param _headers: set to override the headers for a single
|
|
542
|
+
request; this effectively ignores the headers
|
|
543
|
+
in the spec for a single request.
|
|
544
|
+
:type _headers: dict, optional
|
|
545
|
+
:param _host_index: set to override the host_index for a single
|
|
546
|
+
request; this effectively ignores the host_index
|
|
547
|
+
in the spec for a single request.
|
|
548
|
+
:type _host_index: int, optional
|
|
549
|
+
:return: Returns the result object.
|
|
550
|
+
""" # noqa: E501
|
|
551
|
+
|
|
552
|
+
_param = self._create_logs_instance_serialize(
|
|
553
|
+
project_id=project_id,
|
|
554
|
+
region_id=region_id,
|
|
555
|
+
create_logs_instance_payload=create_logs_instance_payload,
|
|
556
|
+
_request_auth=_request_auth,
|
|
557
|
+
_content_type=_content_type,
|
|
558
|
+
_headers=_headers,
|
|
559
|
+
_host_index=_host_index,
|
|
560
|
+
)
|
|
561
|
+
|
|
562
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
563
|
+
"201": "LogsInstance",
|
|
564
|
+
"400": None,
|
|
565
|
+
"401": "str",
|
|
566
|
+
"404": None,
|
|
567
|
+
"409": None,
|
|
568
|
+
"500": None,
|
|
569
|
+
}
|
|
570
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
571
|
+
return response_data.response
|
|
572
|
+
|
|
573
|
+
def _create_logs_instance_serialize(
|
|
574
|
+
self,
|
|
575
|
+
project_id,
|
|
576
|
+
region_id,
|
|
577
|
+
create_logs_instance_payload,
|
|
578
|
+
_request_auth,
|
|
579
|
+
_content_type,
|
|
580
|
+
_headers,
|
|
581
|
+
_host_index,
|
|
582
|
+
) -> RequestSerialized:
|
|
583
|
+
|
|
584
|
+
_host = None
|
|
585
|
+
|
|
586
|
+
_collection_formats: Dict[str, str] = {}
|
|
587
|
+
|
|
588
|
+
_path_params: Dict[str, str] = {}
|
|
589
|
+
_query_params: List[Tuple[str, str]] = []
|
|
590
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
591
|
+
_form_params: List[Tuple[str, str]] = []
|
|
592
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
593
|
+
_body_params: Optional[bytes] = None
|
|
594
|
+
|
|
595
|
+
# process the path parameters
|
|
596
|
+
if project_id is not None:
|
|
597
|
+
_path_params["projectId"] = project_id
|
|
598
|
+
if region_id is not None:
|
|
599
|
+
_path_params["regionId"] = region_id
|
|
600
|
+
# process the query parameters
|
|
601
|
+
# process the header parameters
|
|
602
|
+
# process the form parameters
|
|
603
|
+
# process the body parameter
|
|
604
|
+
if create_logs_instance_payload is not None:
|
|
605
|
+
_body_params = create_logs_instance_payload
|
|
606
|
+
|
|
607
|
+
# set the HTTP header `Accept`
|
|
608
|
+
if "Accept" not in _header_params:
|
|
609
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["application/json", "text/plain"])
|
|
610
|
+
|
|
611
|
+
# set the HTTP header `Content-Type`
|
|
612
|
+
if _content_type:
|
|
613
|
+
_header_params["Content-Type"] = _content_type
|
|
614
|
+
else:
|
|
615
|
+
_default_content_type = self.api_client.select_header_content_type(["application/json"])
|
|
616
|
+
if _default_content_type is not None:
|
|
617
|
+
_header_params["Content-Type"] = _default_content_type
|
|
618
|
+
|
|
619
|
+
# authentication setting
|
|
620
|
+
_auth_settings: List[str] = []
|
|
621
|
+
|
|
622
|
+
return self.api_client.param_serialize(
|
|
623
|
+
method="POST",
|
|
624
|
+
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances",
|
|
625
|
+
path_params=_path_params,
|
|
626
|
+
query_params=_query_params,
|
|
627
|
+
header_params=_header_params,
|
|
628
|
+
body=_body_params,
|
|
629
|
+
post_params=_form_params,
|
|
630
|
+
files=_files,
|
|
631
|
+
auth_settings=_auth_settings,
|
|
632
|
+
collection_formats=_collection_formats,
|
|
633
|
+
_host=_host,
|
|
634
|
+
_request_auth=_request_auth,
|
|
635
|
+
)
|
|
636
|
+
|
|
637
|
+
@validate_call
|
|
638
|
+
def delete_access_token(
|
|
639
|
+
self,
|
|
640
|
+
project_id: Annotated[
|
|
641
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
642
|
+
],
|
|
643
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
644
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
645
|
+
t_id: Annotated[StrictStr, Field(description="The access token UUID.")],
|
|
646
|
+
_request_timeout: Union[
|
|
647
|
+
None,
|
|
648
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
649
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
650
|
+
] = None,
|
|
651
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
652
|
+
_content_type: Optional[StrictStr] = None,
|
|
653
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
654
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
655
|
+
) -> None:
|
|
656
|
+
"""Delete Access Token
|
|
657
|
+
|
|
658
|
+
Deletes a Logs instance access token
|
|
659
|
+
|
|
660
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
661
|
+
:type project_id: str
|
|
662
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
663
|
+
:type region_id: str
|
|
664
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
665
|
+
:type instance_id: str
|
|
666
|
+
:param t_id: The access token UUID. (required)
|
|
667
|
+
:type t_id: str
|
|
668
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
669
|
+
number provided, it will be total request
|
|
670
|
+
timeout. It can also be a pair (tuple) of
|
|
671
|
+
(connection, read) timeouts.
|
|
672
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
673
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
674
|
+
request; this effectively ignores the
|
|
675
|
+
authentication in the spec for a single request.
|
|
676
|
+
:type _request_auth: dict, optional
|
|
677
|
+
:param _content_type: force content-type for the request.
|
|
678
|
+
:type _content_type: str, Optional
|
|
679
|
+
:param _headers: set to override the headers for a single
|
|
680
|
+
request; this effectively ignores the headers
|
|
681
|
+
in the spec for a single request.
|
|
682
|
+
:type _headers: dict, optional
|
|
683
|
+
:param _host_index: set to override the host_index for a single
|
|
684
|
+
request; this effectively ignores the host_index
|
|
685
|
+
in the spec for a single request.
|
|
686
|
+
:type _host_index: int, optional
|
|
687
|
+
:return: Returns the result object.
|
|
688
|
+
""" # noqa: E501
|
|
689
|
+
|
|
690
|
+
_param = self._delete_access_token_serialize(
|
|
691
|
+
project_id=project_id,
|
|
692
|
+
region_id=region_id,
|
|
693
|
+
instance_id=instance_id,
|
|
694
|
+
t_id=t_id,
|
|
695
|
+
_request_auth=_request_auth,
|
|
696
|
+
_content_type=_content_type,
|
|
697
|
+
_headers=_headers,
|
|
698
|
+
_host_index=_host_index,
|
|
699
|
+
)
|
|
700
|
+
|
|
701
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
702
|
+
"204": None,
|
|
703
|
+
"400": None,
|
|
704
|
+
"401": "str",
|
|
705
|
+
"404": None,
|
|
706
|
+
"409": None,
|
|
707
|
+
"500": None,
|
|
708
|
+
}
|
|
709
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
710
|
+
response_data.read()
|
|
711
|
+
return self.api_client.response_deserialize(
|
|
712
|
+
response_data=response_data,
|
|
713
|
+
response_types_map=_response_types_map,
|
|
714
|
+
).data
|
|
715
|
+
|
|
716
|
+
@validate_call
|
|
717
|
+
def delete_access_token_with_http_info(
|
|
718
|
+
self,
|
|
719
|
+
project_id: Annotated[
|
|
720
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
721
|
+
],
|
|
722
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
723
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
724
|
+
t_id: Annotated[StrictStr, Field(description="The access token UUID.")],
|
|
725
|
+
_request_timeout: Union[
|
|
726
|
+
None,
|
|
727
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
728
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
729
|
+
] = None,
|
|
730
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
731
|
+
_content_type: Optional[StrictStr] = None,
|
|
732
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
733
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
734
|
+
) -> ApiResponse[None]:
|
|
735
|
+
"""Delete Access Token
|
|
736
|
+
|
|
737
|
+
Deletes a Logs instance access token
|
|
738
|
+
|
|
739
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
740
|
+
:type project_id: str
|
|
741
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
742
|
+
:type region_id: str
|
|
743
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
744
|
+
:type instance_id: str
|
|
745
|
+
:param t_id: The access token UUID. (required)
|
|
746
|
+
:type t_id: str
|
|
747
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
748
|
+
number provided, it will be total request
|
|
749
|
+
timeout. It can also be a pair (tuple) of
|
|
750
|
+
(connection, read) timeouts.
|
|
751
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
752
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
753
|
+
request; this effectively ignores the
|
|
754
|
+
authentication in the spec for a single request.
|
|
755
|
+
:type _request_auth: dict, optional
|
|
756
|
+
:param _content_type: force content-type for the request.
|
|
757
|
+
:type _content_type: str, Optional
|
|
758
|
+
:param _headers: set to override the headers for a single
|
|
759
|
+
request; this effectively ignores the headers
|
|
760
|
+
in the spec for a single request.
|
|
761
|
+
:type _headers: dict, optional
|
|
762
|
+
:param _host_index: set to override the host_index for a single
|
|
763
|
+
request; this effectively ignores the host_index
|
|
764
|
+
in the spec for a single request.
|
|
765
|
+
:type _host_index: int, optional
|
|
766
|
+
:return: Returns the result object.
|
|
767
|
+
""" # noqa: E501
|
|
768
|
+
|
|
769
|
+
_param = self._delete_access_token_serialize(
|
|
770
|
+
project_id=project_id,
|
|
771
|
+
region_id=region_id,
|
|
772
|
+
instance_id=instance_id,
|
|
773
|
+
t_id=t_id,
|
|
774
|
+
_request_auth=_request_auth,
|
|
775
|
+
_content_type=_content_type,
|
|
776
|
+
_headers=_headers,
|
|
777
|
+
_host_index=_host_index,
|
|
778
|
+
)
|
|
779
|
+
|
|
780
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
781
|
+
"204": None,
|
|
782
|
+
"400": None,
|
|
783
|
+
"401": "str",
|
|
784
|
+
"404": None,
|
|
785
|
+
"409": None,
|
|
786
|
+
"500": None,
|
|
787
|
+
}
|
|
788
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
789
|
+
response_data.read()
|
|
790
|
+
return self.api_client.response_deserialize(
|
|
791
|
+
response_data=response_data,
|
|
792
|
+
response_types_map=_response_types_map,
|
|
793
|
+
)
|
|
794
|
+
|
|
795
|
+
@validate_call
|
|
796
|
+
def delete_access_token_without_preload_content(
|
|
797
|
+
self,
|
|
798
|
+
project_id: Annotated[
|
|
799
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
800
|
+
],
|
|
801
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
802
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
803
|
+
t_id: Annotated[StrictStr, Field(description="The access token UUID.")],
|
|
804
|
+
_request_timeout: Union[
|
|
805
|
+
None,
|
|
806
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
807
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
808
|
+
] = None,
|
|
809
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
810
|
+
_content_type: Optional[StrictStr] = None,
|
|
811
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
812
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
813
|
+
) -> RESTResponseType:
|
|
814
|
+
"""Delete Access Token
|
|
815
|
+
|
|
816
|
+
Deletes a Logs instance access token
|
|
817
|
+
|
|
818
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
819
|
+
:type project_id: str
|
|
820
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
821
|
+
:type region_id: str
|
|
822
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
823
|
+
:type instance_id: str
|
|
824
|
+
:param t_id: The access token UUID. (required)
|
|
825
|
+
:type t_id: str
|
|
826
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
827
|
+
number provided, it will be total request
|
|
828
|
+
timeout. It can also be a pair (tuple) of
|
|
829
|
+
(connection, read) timeouts.
|
|
830
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
831
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
832
|
+
request; this effectively ignores the
|
|
833
|
+
authentication in the spec for a single request.
|
|
834
|
+
:type _request_auth: dict, optional
|
|
835
|
+
:param _content_type: force content-type for the request.
|
|
836
|
+
:type _content_type: str, Optional
|
|
837
|
+
:param _headers: set to override the headers for a single
|
|
838
|
+
request; this effectively ignores the headers
|
|
839
|
+
in the spec for a single request.
|
|
840
|
+
:type _headers: dict, optional
|
|
841
|
+
:param _host_index: set to override the host_index for a single
|
|
842
|
+
request; this effectively ignores the host_index
|
|
843
|
+
in the spec for a single request.
|
|
844
|
+
:type _host_index: int, optional
|
|
845
|
+
:return: Returns the result object.
|
|
846
|
+
""" # noqa: E501
|
|
847
|
+
|
|
848
|
+
_param = self._delete_access_token_serialize(
|
|
849
|
+
project_id=project_id,
|
|
850
|
+
region_id=region_id,
|
|
851
|
+
instance_id=instance_id,
|
|
852
|
+
t_id=t_id,
|
|
853
|
+
_request_auth=_request_auth,
|
|
854
|
+
_content_type=_content_type,
|
|
855
|
+
_headers=_headers,
|
|
856
|
+
_host_index=_host_index,
|
|
857
|
+
)
|
|
858
|
+
|
|
859
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
860
|
+
"204": None,
|
|
861
|
+
"400": None,
|
|
862
|
+
"401": "str",
|
|
863
|
+
"404": None,
|
|
864
|
+
"409": None,
|
|
865
|
+
"500": None,
|
|
866
|
+
}
|
|
867
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
868
|
+
return response_data.response
|
|
869
|
+
|
|
870
|
+
def _delete_access_token_serialize(
|
|
871
|
+
self,
|
|
872
|
+
project_id,
|
|
873
|
+
region_id,
|
|
874
|
+
instance_id,
|
|
875
|
+
t_id,
|
|
876
|
+
_request_auth,
|
|
877
|
+
_content_type,
|
|
878
|
+
_headers,
|
|
879
|
+
_host_index,
|
|
880
|
+
) -> RequestSerialized:
|
|
881
|
+
|
|
882
|
+
_host = None
|
|
883
|
+
|
|
884
|
+
_collection_formats: Dict[str, str] = {}
|
|
885
|
+
|
|
886
|
+
_path_params: Dict[str, str] = {}
|
|
887
|
+
_query_params: List[Tuple[str, str]] = []
|
|
888
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
889
|
+
_form_params: List[Tuple[str, str]] = []
|
|
890
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
891
|
+
_body_params: Optional[bytes] = None
|
|
892
|
+
|
|
893
|
+
# process the path parameters
|
|
894
|
+
if project_id is not None:
|
|
895
|
+
_path_params["projectId"] = project_id
|
|
896
|
+
if region_id is not None:
|
|
897
|
+
_path_params["regionId"] = region_id
|
|
898
|
+
if instance_id is not None:
|
|
899
|
+
_path_params["instanceId"] = instance_id
|
|
900
|
+
if t_id is not None:
|
|
901
|
+
_path_params["tId"] = t_id
|
|
902
|
+
# process the query parameters
|
|
903
|
+
# process the header parameters
|
|
904
|
+
# process the form parameters
|
|
905
|
+
# process the body parameter
|
|
906
|
+
|
|
907
|
+
# set the HTTP header `Accept`
|
|
908
|
+
if "Accept" not in _header_params:
|
|
909
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["text/plain"])
|
|
910
|
+
|
|
911
|
+
# authentication setting
|
|
912
|
+
_auth_settings: List[str] = []
|
|
913
|
+
|
|
914
|
+
return self.api_client.param_serialize(
|
|
915
|
+
method="DELETE",
|
|
916
|
+
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}",
|
|
917
|
+
path_params=_path_params,
|
|
918
|
+
query_params=_query_params,
|
|
919
|
+
header_params=_header_params,
|
|
920
|
+
body=_body_params,
|
|
921
|
+
post_params=_form_params,
|
|
922
|
+
files=_files,
|
|
923
|
+
auth_settings=_auth_settings,
|
|
924
|
+
collection_formats=_collection_formats,
|
|
925
|
+
_host=_host,
|
|
926
|
+
_request_auth=_request_auth,
|
|
927
|
+
)
|
|
928
|
+
|
|
929
|
+
@validate_call
|
|
930
|
+
def delete_all_access_tokens(
|
|
931
|
+
self,
|
|
932
|
+
project_id: Annotated[
|
|
933
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
934
|
+
],
|
|
935
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
936
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
937
|
+
_request_timeout: Union[
|
|
938
|
+
None,
|
|
939
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
940
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
941
|
+
] = None,
|
|
942
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
943
|
+
_content_type: Optional[StrictStr] = None,
|
|
944
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
945
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
946
|
+
) -> AccessTokenList:
|
|
947
|
+
"""Delete All Access Tokens
|
|
948
|
+
|
|
949
|
+
Deletes all access tokens available for a Logs instance
|
|
950
|
+
|
|
951
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
952
|
+
:type project_id: str
|
|
953
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
954
|
+
:type region_id: str
|
|
955
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
956
|
+
:type instance_id: str
|
|
957
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
958
|
+
number provided, it will be total request
|
|
959
|
+
timeout. It can also be a pair (tuple) of
|
|
960
|
+
(connection, read) timeouts.
|
|
961
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
962
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
963
|
+
request; this effectively ignores the
|
|
964
|
+
authentication in the spec for a single request.
|
|
965
|
+
:type _request_auth: dict, optional
|
|
966
|
+
:param _content_type: force content-type for the request.
|
|
967
|
+
:type _content_type: str, Optional
|
|
968
|
+
:param _headers: set to override the headers for a single
|
|
969
|
+
request; this effectively ignores the headers
|
|
970
|
+
in the spec for a single request.
|
|
971
|
+
:type _headers: dict, optional
|
|
972
|
+
:param _host_index: set to override the host_index for a single
|
|
973
|
+
request; this effectively ignores the host_index
|
|
974
|
+
in the spec for a single request.
|
|
975
|
+
:type _host_index: int, optional
|
|
976
|
+
:return: Returns the result object.
|
|
977
|
+
""" # noqa: E501
|
|
978
|
+
|
|
979
|
+
_param = self._delete_all_access_tokens_serialize(
|
|
980
|
+
project_id=project_id,
|
|
981
|
+
region_id=region_id,
|
|
982
|
+
instance_id=instance_id,
|
|
983
|
+
_request_auth=_request_auth,
|
|
984
|
+
_content_type=_content_type,
|
|
985
|
+
_headers=_headers,
|
|
986
|
+
_host_index=_host_index,
|
|
987
|
+
)
|
|
988
|
+
|
|
989
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
990
|
+
"200": "AccessTokenList",
|
|
991
|
+
"400": None,
|
|
992
|
+
"401": "str",
|
|
993
|
+
"404": None,
|
|
994
|
+
"409": None,
|
|
995
|
+
"500": None,
|
|
996
|
+
}
|
|
997
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
998
|
+
response_data.read()
|
|
999
|
+
return self.api_client.response_deserialize(
|
|
1000
|
+
response_data=response_data,
|
|
1001
|
+
response_types_map=_response_types_map,
|
|
1002
|
+
).data
|
|
1003
|
+
|
|
1004
|
+
@validate_call
|
|
1005
|
+
def delete_all_access_tokens_with_http_info(
|
|
1006
|
+
self,
|
|
1007
|
+
project_id: Annotated[
|
|
1008
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
1009
|
+
],
|
|
1010
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
1011
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
1012
|
+
_request_timeout: Union[
|
|
1013
|
+
None,
|
|
1014
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1015
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
1016
|
+
] = None,
|
|
1017
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1018
|
+
_content_type: Optional[StrictStr] = None,
|
|
1019
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1020
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1021
|
+
) -> ApiResponse[AccessTokenList]:
|
|
1022
|
+
"""Delete All Access Tokens
|
|
1023
|
+
|
|
1024
|
+
Deletes all access tokens available for a Logs instance
|
|
1025
|
+
|
|
1026
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
1027
|
+
:type project_id: str
|
|
1028
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
1029
|
+
:type region_id: str
|
|
1030
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
1031
|
+
:type instance_id: str
|
|
1032
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1033
|
+
number provided, it will be total request
|
|
1034
|
+
timeout. It can also be a pair (tuple) of
|
|
1035
|
+
(connection, read) timeouts.
|
|
1036
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1037
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1038
|
+
request; this effectively ignores the
|
|
1039
|
+
authentication in the spec for a single request.
|
|
1040
|
+
:type _request_auth: dict, optional
|
|
1041
|
+
:param _content_type: force content-type for the request.
|
|
1042
|
+
:type _content_type: str, Optional
|
|
1043
|
+
:param _headers: set to override the headers for a single
|
|
1044
|
+
request; this effectively ignores the headers
|
|
1045
|
+
in the spec for a single request.
|
|
1046
|
+
:type _headers: dict, optional
|
|
1047
|
+
:param _host_index: set to override the host_index for a single
|
|
1048
|
+
request; this effectively ignores the host_index
|
|
1049
|
+
in the spec for a single request.
|
|
1050
|
+
:type _host_index: int, optional
|
|
1051
|
+
:return: Returns the result object.
|
|
1052
|
+
""" # noqa: E501
|
|
1053
|
+
|
|
1054
|
+
_param = self._delete_all_access_tokens_serialize(
|
|
1055
|
+
project_id=project_id,
|
|
1056
|
+
region_id=region_id,
|
|
1057
|
+
instance_id=instance_id,
|
|
1058
|
+
_request_auth=_request_auth,
|
|
1059
|
+
_content_type=_content_type,
|
|
1060
|
+
_headers=_headers,
|
|
1061
|
+
_host_index=_host_index,
|
|
1062
|
+
)
|
|
1063
|
+
|
|
1064
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1065
|
+
"200": "AccessTokenList",
|
|
1066
|
+
"400": None,
|
|
1067
|
+
"401": "str",
|
|
1068
|
+
"404": None,
|
|
1069
|
+
"409": None,
|
|
1070
|
+
"500": None,
|
|
1071
|
+
}
|
|
1072
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
1073
|
+
response_data.read()
|
|
1074
|
+
return self.api_client.response_deserialize(
|
|
1075
|
+
response_data=response_data,
|
|
1076
|
+
response_types_map=_response_types_map,
|
|
1077
|
+
)
|
|
1078
|
+
|
|
1079
|
+
@validate_call
|
|
1080
|
+
def delete_all_access_tokens_without_preload_content(
|
|
1081
|
+
self,
|
|
1082
|
+
project_id: Annotated[
|
|
1083
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
1084
|
+
],
|
|
1085
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
1086
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
1087
|
+
_request_timeout: Union[
|
|
1088
|
+
None,
|
|
1089
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1090
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
1091
|
+
] = None,
|
|
1092
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1093
|
+
_content_type: Optional[StrictStr] = None,
|
|
1094
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1095
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1096
|
+
) -> RESTResponseType:
|
|
1097
|
+
"""Delete All Access Tokens
|
|
1098
|
+
|
|
1099
|
+
Deletes all access tokens available for a Logs instance
|
|
1100
|
+
|
|
1101
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
1102
|
+
:type project_id: str
|
|
1103
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
1104
|
+
:type region_id: str
|
|
1105
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
1106
|
+
:type instance_id: str
|
|
1107
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1108
|
+
number provided, it will be total request
|
|
1109
|
+
timeout. It can also be a pair (tuple) of
|
|
1110
|
+
(connection, read) timeouts.
|
|
1111
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1112
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1113
|
+
request; this effectively ignores the
|
|
1114
|
+
authentication in the spec for a single request.
|
|
1115
|
+
:type _request_auth: dict, optional
|
|
1116
|
+
:param _content_type: force content-type for the request.
|
|
1117
|
+
:type _content_type: str, Optional
|
|
1118
|
+
:param _headers: set to override the headers for a single
|
|
1119
|
+
request; this effectively ignores the headers
|
|
1120
|
+
in the spec for a single request.
|
|
1121
|
+
:type _headers: dict, optional
|
|
1122
|
+
:param _host_index: set to override the host_index for a single
|
|
1123
|
+
request; this effectively ignores the host_index
|
|
1124
|
+
in the spec for a single request.
|
|
1125
|
+
:type _host_index: int, optional
|
|
1126
|
+
:return: Returns the result object.
|
|
1127
|
+
""" # noqa: E501
|
|
1128
|
+
|
|
1129
|
+
_param = self._delete_all_access_tokens_serialize(
|
|
1130
|
+
project_id=project_id,
|
|
1131
|
+
region_id=region_id,
|
|
1132
|
+
instance_id=instance_id,
|
|
1133
|
+
_request_auth=_request_auth,
|
|
1134
|
+
_content_type=_content_type,
|
|
1135
|
+
_headers=_headers,
|
|
1136
|
+
_host_index=_host_index,
|
|
1137
|
+
)
|
|
1138
|
+
|
|
1139
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1140
|
+
"200": "AccessTokenList",
|
|
1141
|
+
"400": None,
|
|
1142
|
+
"401": "str",
|
|
1143
|
+
"404": None,
|
|
1144
|
+
"409": None,
|
|
1145
|
+
"500": None,
|
|
1146
|
+
}
|
|
1147
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
1148
|
+
return response_data.response
|
|
1149
|
+
|
|
1150
|
+
def _delete_all_access_tokens_serialize(
|
|
1151
|
+
self,
|
|
1152
|
+
project_id,
|
|
1153
|
+
region_id,
|
|
1154
|
+
instance_id,
|
|
1155
|
+
_request_auth,
|
|
1156
|
+
_content_type,
|
|
1157
|
+
_headers,
|
|
1158
|
+
_host_index,
|
|
1159
|
+
) -> RequestSerialized:
|
|
1160
|
+
|
|
1161
|
+
_host = None
|
|
1162
|
+
|
|
1163
|
+
_collection_formats: Dict[str, str] = {}
|
|
1164
|
+
|
|
1165
|
+
_path_params: Dict[str, str] = {}
|
|
1166
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1167
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1168
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1169
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
1170
|
+
_body_params: Optional[bytes] = None
|
|
1171
|
+
|
|
1172
|
+
# process the path parameters
|
|
1173
|
+
if project_id is not None:
|
|
1174
|
+
_path_params["projectId"] = project_id
|
|
1175
|
+
if region_id is not None:
|
|
1176
|
+
_path_params["regionId"] = region_id
|
|
1177
|
+
if instance_id is not None:
|
|
1178
|
+
_path_params["instanceId"] = instance_id
|
|
1179
|
+
# process the query parameters
|
|
1180
|
+
# process the header parameters
|
|
1181
|
+
# process the form parameters
|
|
1182
|
+
# process the body parameter
|
|
1183
|
+
|
|
1184
|
+
# set the HTTP header `Accept`
|
|
1185
|
+
if "Accept" not in _header_params:
|
|
1186
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["application/json", "text/plain"])
|
|
1187
|
+
|
|
1188
|
+
# authentication setting
|
|
1189
|
+
_auth_settings: List[str] = []
|
|
1190
|
+
|
|
1191
|
+
return self.api_client.param_serialize(
|
|
1192
|
+
method="DELETE",
|
|
1193
|
+
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens",
|
|
1194
|
+
path_params=_path_params,
|
|
1195
|
+
query_params=_query_params,
|
|
1196
|
+
header_params=_header_params,
|
|
1197
|
+
body=_body_params,
|
|
1198
|
+
post_params=_form_params,
|
|
1199
|
+
files=_files,
|
|
1200
|
+
auth_settings=_auth_settings,
|
|
1201
|
+
collection_formats=_collection_formats,
|
|
1202
|
+
_host=_host,
|
|
1203
|
+
_request_auth=_request_auth,
|
|
1204
|
+
)
|
|
1205
|
+
|
|
1206
|
+
@validate_call
|
|
1207
|
+
def delete_all_expired_access_tokens(
|
|
1208
|
+
self,
|
|
1209
|
+
project_id: Annotated[
|
|
1210
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
1211
|
+
],
|
|
1212
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
1213
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
1214
|
+
_request_timeout: Union[
|
|
1215
|
+
None,
|
|
1216
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1217
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
1218
|
+
] = None,
|
|
1219
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1220
|
+
_content_type: Optional[StrictStr] = None,
|
|
1221
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1222
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1223
|
+
) -> AccessTokenList:
|
|
1224
|
+
"""Deletes all expired access tokens
|
|
1225
|
+
|
|
1226
|
+
Deletes all expired access tokens
|
|
1227
|
+
|
|
1228
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
1229
|
+
:type project_id: str
|
|
1230
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
1231
|
+
:type region_id: str
|
|
1232
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
1233
|
+
:type instance_id: str
|
|
1234
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1235
|
+
number provided, it will be total request
|
|
1236
|
+
timeout. It can also be a pair (tuple) of
|
|
1237
|
+
(connection, read) timeouts.
|
|
1238
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1239
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1240
|
+
request; this effectively ignores the
|
|
1241
|
+
authentication in the spec for a single request.
|
|
1242
|
+
:type _request_auth: dict, optional
|
|
1243
|
+
:param _content_type: force content-type for the request.
|
|
1244
|
+
:type _content_type: str, Optional
|
|
1245
|
+
:param _headers: set to override the headers for a single
|
|
1246
|
+
request; this effectively ignores the headers
|
|
1247
|
+
in the spec for a single request.
|
|
1248
|
+
:type _headers: dict, optional
|
|
1249
|
+
:param _host_index: set to override the host_index for a single
|
|
1250
|
+
request; this effectively ignores the host_index
|
|
1251
|
+
in the spec for a single request.
|
|
1252
|
+
:type _host_index: int, optional
|
|
1253
|
+
:return: Returns the result object.
|
|
1254
|
+
""" # noqa: E501
|
|
1255
|
+
|
|
1256
|
+
_param = self._delete_all_expired_access_tokens_serialize(
|
|
1257
|
+
project_id=project_id,
|
|
1258
|
+
region_id=region_id,
|
|
1259
|
+
instance_id=instance_id,
|
|
1260
|
+
_request_auth=_request_auth,
|
|
1261
|
+
_content_type=_content_type,
|
|
1262
|
+
_headers=_headers,
|
|
1263
|
+
_host_index=_host_index,
|
|
1264
|
+
)
|
|
1265
|
+
|
|
1266
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1267
|
+
"200": "AccessTokenList",
|
|
1268
|
+
"400": None,
|
|
1269
|
+
"401": "str",
|
|
1270
|
+
"404": None,
|
|
1271
|
+
"409": None,
|
|
1272
|
+
"500": None,
|
|
1273
|
+
}
|
|
1274
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
1275
|
+
response_data.read()
|
|
1276
|
+
return self.api_client.response_deserialize(
|
|
1277
|
+
response_data=response_data,
|
|
1278
|
+
response_types_map=_response_types_map,
|
|
1279
|
+
).data
|
|
1280
|
+
|
|
1281
|
+
@validate_call
|
|
1282
|
+
def delete_all_expired_access_tokens_with_http_info(
|
|
1283
|
+
self,
|
|
1284
|
+
project_id: Annotated[
|
|
1285
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
1286
|
+
],
|
|
1287
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
1288
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
1289
|
+
_request_timeout: Union[
|
|
1290
|
+
None,
|
|
1291
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1292
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
1293
|
+
] = None,
|
|
1294
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1295
|
+
_content_type: Optional[StrictStr] = None,
|
|
1296
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1297
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1298
|
+
) -> ApiResponse[AccessTokenList]:
|
|
1299
|
+
"""Deletes all expired access tokens
|
|
1300
|
+
|
|
1301
|
+
Deletes all expired access tokens
|
|
1302
|
+
|
|
1303
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
1304
|
+
:type project_id: str
|
|
1305
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
1306
|
+
:type region_id: str
|
|
1307
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
1308
|
+
:type instance_id: str
|
|
1309
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1310
|
+
number provided, it will be total request
|
|
1311
|
+
timeout. It can also be a pair (tuple) of
|
|
1312
|
+
(connection, read) timeouts.
|
|
1313
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1314
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1315
|
+
request; this effectively ignores the
|
|
1316
|
+
authentication in the spec for a single request.
|
|
1317
|
+
:type _request_auth: dict, optional
|
|
1318
|
+
:param _content_type: force content-type for the request.
|
|
1319
|
+
:type _content_type: str, Optional
|
|
1320
|
+
:param _headers: set to override the headers for a single
|
|
1321
|
+
request; this effectively ignores the headers
|
|
1322
|
+
in the spec for a single request.
|
|
1323
|
+
:type _headers: dict, optional
|
|
1324
|
+
:param _host_index: set to override the host_index for a single
|
|
1325
|
+
request; this effectively ignores the host_index
|
|
1326
|
+
in the spec for a single request.
|
|
1327
|
+
:type _host_index: int, optional
|
|
1328
|
+
:return: Returns the result object.
|
|
1329
|
+
""" # noqa: E501
|
|
1330
|
+
|
|
1331
|
+
_param = self._delete_all_expired_access_tokens_serialize(
|
|
1332
|
+
project_id=project_id,
|
|
1333
|
+
region_id=region_id,
|
|
1334
|
+
instance_id=instance_id,
|
|
1335
|
+
_request_auth=_request_auth,
|
|
1336
|
+
_content_type=_content_type,
|
|
1337
|
+
_headers=_headers,
|
|
1338
|
+
_host_index=_host_index,
|
|
1339
|
+
)
|
|
1340
|
+
|
|
1341
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1342
|
+
"200": "AccessTokenList",
|
|
1343
|
+
"400": None,
|
|
1344
|
+
"401": "str",
|
|
1345
|
+
"404": None,
|
|
1346
|
+
"409": None,
|
|
1347
|
+
"500": None,
|
|
1348
|
+
}
|
|
1349
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
1350
|
+
response_data.read()
|
|
1351
|
+
return self.api_client.response_deserialize(
|
|
1352
|
+
response_data=response_data,
|
|
1353
|
+
response_types_map=_response_types_map,
|
|
1354
|
+
)
|
|
1355
|
+
|
|
1356
|
+
@validate_call
|
|
1357
|
+
def delete_all_expired_access_tokens_without_preload_content(
|
|
1358
|
+
self,
|
|
1359
|
+
project_id: Annotated[
|
|
1360
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
1361
|
+
],
|
|
1362
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
1363
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
1364
|
+
_request_timeout: Union[
|
|
1365
|
+
None,
|
|
1366
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1367
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
1368
|
+
] = None,
|
|
1369
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1370
|
+
_content_type: Optional[StrictStr] = None,
|
|
1371
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1372
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1373
|
+
) -> RESTResponseType:
|
|
1374
|
+
"""Deletes all expired access tokens
|
|
1375
|
+
|
|
1376
|
+
Deletes all expired access tokens
|
|
1377
|
+
|
|
1378
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
1379
|
+
:type project_id: str
|
|
1380
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
1381
|
+
:type region_id: str
|
|
1382
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
1383
|
+
:type instance_id: str
|
|
1384
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1385
|
+
number provided, it will be total request
|
|
1386
|
+
timeout. It can also be a pair (tuple) of
|
|
1387
|
+
(connection, read) timeouts.
|
|
1388
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1389
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1390
|
+
request; this effectively ignores the
|
|
1391
|
+
authentication in the spec for a single request.
|
|
1392
|
+
:type _request_auth: dict, optional
|
|
1393
|
+
:param _content_type: force content-type for the request.
|
|
1394
|
+
:type _content_type: str, Optional
|
|
1395
|
+
:param _headers: set to override the headers for a single
|
|
1396
|
+
request; this effectively ignores the headers
|
|
1397
|
+
in the spec for a single request.
|
|
1398
|
+
:type _headers: dict, optional
|
|
1399
|
+
:param _host_index: set to override the host_index for a single
|
|
1400
|
+
request; this effectively ignores the host_index
|
|
1401
|
+
in the spec for a single request.
|
|
1402
|
+
:type _host_index: int, optional
|
|
1403
|
+
:return: Returns the result object.
|
|
1404
|
+
""" # noqa: E501
|
|
1405
|
+
|
|
1406
|
+
_param = self._delete_all_expired_access_tokens_serialize(
|
|
1407
|
+
project_id=project_id,
|
|
1408
|
+
region_id=region_id,
|
|
1409
|
+
instance_id=instance_id,
|
|
1410
|
+
_request_auth=_request_auth,
|
|
1411
|
+
_content_type=_content_type,
|
|
1412
|
+
_headers=_headers,
|
|
1413
|
+
_host_index=_host_index,
|
|
1414
|
+
)
|
|
1415
|
+
|
|
1416
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1417
|
+
"200": "AccessTokenList",
|
|
1418
|
+
"400": None,
|
|
1419
|
+
"401": "str",
|
|
1420
|
+
"404": None,
|
|
1421
|
+
"409": None,
|
|
1422
|
+
"500": None,
|
|
1423
|
+
}
|
|
1424
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
1425
|
+
return response_data.response
|
|
1426
|
+
|
|
1427
|
+
def _delete_all_expired_access_tokens_serialize(
|
|
1428
|
+
self,
|
|
1429
|
+
project_id,
|
|
1430
|
+
region_id,
|
|
1431
|
+
instance_id,
|
|
1432
|
+
_request_auth,
|
|
1433
|
+
_content_type,
|
|
1434
|
+
_headers,
|
|
1435
|
+
_host_index,
|
|
1436
|
+
) -> RequestSerialized:
|
|
1437
|
+
|
|
1438
|
+
_host = None
|
|
1439
|
+
|
|
1440
|
+
_collection_formats: Dict[str, str] = {}
|
|
1441
|
+
|
|
1442
|
+
_path_params: Dict[str, str] = {}
|
|
1443
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1444
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1445
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1446
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
1447
|
+
_body_params: Optional[bytes] = None
|
|
1448
|
+
|
|
1449
|
+
# process the path parameters
|
|
1450
|
+
if project_id is not None:
|
|
1451
|
+
_path_params["projectId"] = project_id
|
|
1452
|
+
if region_id is not None:
|
|
1453
|
+
_path_params["regionId"] = region_id
|
|
1454
|
+
if instance_id is not None:
|
|
1455
|
+
_path_params["instanceId"] = instance_id
|
|
1456
|
+
# process the query parameters
|
|
1457
|
+
# process the header parameters
|
|
1458
|
+
# process the form parameters
|
|
1459
|
+
# process the body parameter
|
|
1460
|
+
|
|
1461
|
+
# set the HTTP header `Accept`
|
|
1462
|
+
if "Accept" not in _header_params:
|
|
1463
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["application/json", "text/plain"])
|
|
1464
|
+
|
|
1465
|
+
# authentication setting
|
|
1466
|
+
_auth_settings: List[str] = []
|
|
1467
|
+
|
|
1468
|
+
return self.api_client.param_serialize(
|
|
1469
|
+
method="DELETE",
|
|
1470
|
+
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/expired",
|
|
1471
|
+
path_params=_path_params,
|
|
1472
|
+
query_params=_query_params,
|
|
1473
|
+
header_params=_header_params,
|
|
1474
|
+
body=_body_params,
|
|
1475
|
+
post_params=_form_params,
|
|
1476
|
+
files=_files,
|
|
1477
|
+
auth_settings=_auth_settings,
|
|
1478
|
+
collection_formats=_collection_formats,
|
|
1479
|
+
_host=_host,
|
|
1480
|
+
_request_auth=_request_auth,
|
|
1481
|
+
)
|
|
1482
|
+
|
|
1483
|
+
@validate_call
|
|
1484
|
+
def delete_logs_instance(
|
|
1485
|
+
self,
|
|
1486
|
+
project_id: Annotated[
|
|
1487
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
1488
|
+
],
|
|
1489
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
1490
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
1491
|
+
_request_timeout: Union[
|
|
1492
|
+
None,
|
|
1493
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1494
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
1495
|
+
] = None,
|
|
1496
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1497
|
+
_content_type: Optional[StrictStr] = None,
|
|
1498
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1499
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1500
|
+
) -> None:
|
|
1501
|
+
"""Delete Logs instance
|
|
1502
|
+
|
|
1503
|
+
Deletes the given Logs instance.
|
|
1504
|
+
|
|
1505
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
1506
|
+
:type project_id: str
|
|
1507
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
1508
|
+
:type region_id: str
|
|
1509
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
1510
|
+
:type instance_id: str
|
|
1511
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1512
|
+
number provided, it will be total request
|
|
1513
|
+
timeout. It can also be a pair (tuple) of
|
|
1514
|
+
(connection, read) timeouts.
|
|
1515
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1516
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1517
|
+
request; this effectively ignores the
|
|
1518
|
+
authentication in the spec for a single request.
|
|
1519
|
+
:type _request_auth: dict, optional
|
|
1520
|
+
:param _content_type: force content-type for the request.
|
|
1521
|
+
:type _content_type: str, Optional
|
|
1522
|
+
:param _headers: set to override the headers for a single
|
|
1523
|
+
request; this effectively ignores the headers
|
|
1524
|
+
in the spec for a single request.
|
|
1525
|
+
:type _headers: dict, optional
|
|
1526
|
+
:param _host_index: set to override the host_index for a single
|
|
1527
|
+
request; this effectively ignores the host_index
|
|
1528
|
+
in the spec for a single request.
|
|
1529
|
+
:type _host_index: int, optional
|
|
1530
|
+
:return: Returns the result object.
|
|
1531
|
+
""" # noqa: E501
|
|
1532
|
+
|
|
1533
|
+
_param = self._delete_logs_instance_serialize(
|
|
1534
|
+
project_id=project_id,
|
|
1535
|
+
region_id=region_id,
|
|
1536
|
+
instance_id=instance_id,
|
|
1537
|
+
_request_auth=_request_auth,
|
|
1538
|
+
_content_type=_content_type,
|
|
1539
|
+
_headers=_headers,
|
|
1540
|
+
_host_index=_host_index,
|
|
1541
|
+
)
|
|
1542
|
+
|
|
1543
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1544
|
+
"204": None,
|
|
1545
|
+
"400": None,
|
|
1546
|
+
"401": "str",
|
|
1547
|
+
"404": None,
|
|
1548
|
+
"409": None,
|
|
1549
|
+
"500": None,
|
|
1550
|
+
}
|
|
1551
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
1552
|
+
response_data.read()
|
|
1553
|
+
return self.api_client.response_deserialize(
|
|
1554
|
+
response_data=response_data,
|
|
1555
|
+
response_types_map=_response_types_map,
|
|
1556
|
+
).data
|
|
1557
|
+
|
|
1558
|
+
@validate_call
|
|
1559
|
+
def delete_logs_instance_with_http_info(
|
|
1560
|
+
self,
|
|
1561
|
+
project_id: Annotated[
|
|
1562
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
1563
|
+
],
|
|
1564
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
1565
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
1566
|
+
_request_timeout: Union[
|
|
1567
|
+
None,
|
|
1568
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1569
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
1570
|
+
] = None,
|
|
1571
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1572
|
+
_content_type: Optional[StrictStr] = None,
|
|
1573
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1574
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1575
|
+
) -> ApiResponse[None]:
|
|
1576
|
+
"""Delete Logs instance
|
|
1577
|
+
|
|
1578
|
+
Deletes the given Logs instance.
|
|
1579
|
+
|
|
1580
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
1581
|
+
:type project_id: str
|
|
1582
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
1583
|
+
:type region_id: str
|
|
1584
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
1585
|
+
:type instance_id: str
|
|
1586
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1587
|
+
number provided, it will be total request
|
|
1588
|
+
timeout. It can also be a pair (tuple) of
|
|
1589
|
+
(connection, read) timeouts.
|
|
1590
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1591
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1592
|
+
request; this effectively ignores the
|
|
1593
|
+
authentication in the spec for a single request.
|
|
1594
|
+
:type _request_auth: dict, optional
|
|
1595
|
+
:param _content_type: force content-type for the request.
|
|
1596
|
+
:type _content_type: str, Optional
|
|
1597
|
+
:param _headers: set to override the headers for a single
|
|
1598
|
+
request; this effectively ignores the headers
|
|
1599
|
+
in the spec for a single request.
|
|
1600
|
+
:type _headers: dict, optional
|
|
1601
|
+
:param _host_index: set to override the host_index for a single
|
|
1602
|
+
request; this effectively ignores the host_index
|
|
1603
|
+
in the spec for a single request.
|
|
1604
|
+
:type _host_index: int, optional
|
|
1605
|
+
:return: Returns the result object.
|
|
1606
|
+
""" # noqa: E501
|
|
1607
|
+
|
|
1608
|
+
_param = self._delete_logs_instance_serialize(
|
|
1609
|
+
project_id=project_id,
|
|
1610
|
+
region_id=region_id,
|
|
1611
|
+
instance_id=instance_id,
|
|
1612
|
+
_request_auth=_request_auth,
|
|
1613
|
+
_content_type=_content_type,
|
|
1614
|
+
_headers=_headers,
|
|
1615
|
+
_host_index=_host_index,
|
|
1616
|
+
)
|
|
1617
|
+
|
|
1618
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1619
|
+
"204": None,
|
|
1620
|
+
"400": None,
|
|
1621
|
+
"401": "str",
|
|
1622
|
+
"404": None,
|
|
1623
|
+
"409": None,
|
|
1624
|
+
"500": None,
|
|
1625
|
+
}
|
|
1626
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
1627
|
+
response_data.read()
|
|
1628
|
+
return self.api_client.response_deserialize(
|
|
1629
|
+
response_data=response_data,
|
|
1630
|
+
response_types_map=_response_types_map,
|
|
1631
|
+
)
|
|
1632
|
+
|
|
1633
|
+
@validate_call
|
|
1634
|
+
def delete_logs_instance_without_preload_content(
|
|
1635
|
+
self,
|
|
1636
|
+
project_id: Annotated[
|
|
1637
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
1638
|
+
],
|
|
1639
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
1640
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
1641
|
+
_request_timeout: Union[
|
|
1642
|
+
None,
|
|
1643
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1644
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
1645
|
+
] = None,
|
|
1646
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1647
|
+
_content_type: Optional[StrictStr] = None,
|
|
1648
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1649
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1650
|
+
) -> RESTResponseType:
|
|
1651
|
+
"""Delete Logs instance
|
|
1652
|
+
|
|
1653
|
+
Deletes the given Logs instance.
|
|
1654
|
+
|
|
1655
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
1656
|
+
:type project_id: str
|
|
1657
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
1658
|
+
:type region_id: str
|
|
1659
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
1660
|
+
:type instance_id: str
|
|
1661
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1662
|
+
number provided, it will be total request
|
|
1663
|
+
timeout. It can also be a pair (tuple) of
|
|
1664
|
+
(connection, read) timeouts.
|
|
1665
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1666
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1667
|
+
request; this effectively ignores the
|
|
1668
|
+
authentication in the spec for a single request.
|
|
1669
|
+
:type _request_auth: dict, optional
|
|
1670
|
+
:param _content_type: force content-type for the request.
|
|
1671
|
+
:type _content_type: str, Optional
|
|
1672
|
+
:param _headers: set to override the headers for a single
|
|
1673
|
+
request; this effectively ignores the headers
|
|
1674
|
+
in the spec for a single request.
|
|
1675
|
+
:type _headers: dict, optional
|
|
1676
|
+
:param _host_index: set to override the host_index for a single
|
|
1677
|
+
request; this effectively ignores the host_index
|
|
1678
|
+
in the spec for a single request.
|
|
1679
|
+
:type _host_index: int, optional
|
|
1680
|
+
:return: Returns the result object.
|
|
1681
|
+
""" # noqa: E501
|
|
1682
|
+
|
|
1683
|
+
_param = self._delete_logs_instance_serialize(
|
|
1684
|
+
project_id=project_id,
|
|
1685
|
+
region_id=region_id,
|
|
1686
|
+
instance_id=instance_id,
|
|
1687
|
+
_request_auth=_request_auth,
|
|
1688
|
+
_content_type=_content_type,
|
|
1689
|
+
_headers=_headers,
|
|
1690
|
+
_host_index=_host_index,
|
|
1691
|
+
)
|
|
1692
|
+
|
|
1693
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1694
|
+
"204": None,
|
|
1695
|
+
"400": None,
|
|
1696
|
+
"401": "str",
|
|
1697
|
+
"404": None,
|
|
1698
|
+
"409": None,
|
|
1699
|
+
"500": None,
|
|
1700
|
+
}
|
|
1701
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
1702
|
+
return response_data.response
|
|
1703
|
+
|
|
1704
|
+
def _delete_logs_instance_serialize(
|
|
1705
|
+
self,
|
|
1706
|
+
project_id,
|
|
1707
|
+
region_id,
|
|
1708
|
+
instance_id,
|
|
1709
|
+
_request_auth,
|
|
1710
|
+
_content_type,
|
|
1711
|
+
_headers,
|
|
1712
|
+
_host_index,
|
|
1713
|
+
) -> RequestSerialized:
|
|
1714
|
+
|
|
1715
|
+
_host = None
|
|
1716
|
+
|
|
1717
|
+
_collection_formats: Dict[str, str] = {}
|
|
1718
|
+
|
|
1719
|
+
_path_params: Dict[str, str] = {}
|
|
1720
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1721
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1722
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1723
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
1724
|
+
_body_params: Optional[bytes] = None
|
|
1725
|
+
|
|
1726
|
+
# process the path parameters
|
|
1727
|
+
if project_id is not None:
|
|
1728
|
+
_path_params["projectId"] = project_id
|
|
1729
|
+
if region_id is not None:
|
|
1730
|
+
_path_params["regionId"] = region_id
|
|
1731
|
+
if instance_id is not None:
|
|
1732
|
+
_path_params["instanceId"] = instance_id
|
|
1733
|
+
# process the query parameters
|
|
1734
|
+
# process the header parameters
|
|
1735
|
+
# process the form parameters
|
|
1736
|
+
# process the body parameter
|
|
1737
|
+
|
|
1738
|
+
# set the HTTP header `Accept`
|
|
1739
|
+
if "Accept" not in _header_params:
|
|
1740
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["text/plain"])
|
|
1741
|
+
|
|
1742
|
+
# authentication setting
|
|
1743
|
+
_auth_settings: List[str] = []
|
|
1744
|
+
|
|
1745
|
+
return self.api_client.param_serialize(
|
|
1746
|
+
method="DELETE",
|
|
1747
|
+
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
1748
|
+
path_params=_path_params,
|
|
1749
|
+
query_params=_query_params,
|
|
1750
|
+
header_params=_header_params,
|
|
1751
|
+
body=_body_params,
|
|
1752
|
+
post_params=_form_params,
|
|
1753
|
+
files=_files,
|
|
1754
|
+
auth_settings=_auth_settings,
|
|
1755
|
+
collection_formats=_collection_formats,
|
|
1756
|
+
_host=_host,
|
|
1757
|
+
_request_auth=_request_auth,
|
|
1758
|
+
)
|
|
1759
|
+
|
|
1760
|
+
@validate_call
|
|
1761
|
+
def get_access_token(
|
|
1762
|
+
self,
|
|
1763
|
+
project_id: Annotated[
|
|
1764
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
1765
|
+
],
|
|
1766
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
1767
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
1768
|
+
t_id: Annotated[StrictStr, Field(description="The access token UUID.")],
|
|
1769
|
+
_request_timeout: Union[
|
|
1770
|
+
None,
|
|
1771
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1772
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
1773
|
+
] = None,
|
|
1774
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1775
|
+
_content_type: Optional[StrictStr] = None,
|
|
1776
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1777
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1778
|
+
) -> AccessToken:
|
|
1779
|
+
"""Get Access Token
|
|
1780
|
+
|
|
1781
|
+
Get the information of the given access token.
|
|
1782
|
+
|
|
1783
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
1784
|
+
:type project_id: str
|
|
1785
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
1786
|
+
:type region_id: str
|
|
1787
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
1788
|
+
:type instance_id: str
|
|
1789
|
+
:param t_id: The access token UUID. (required)
|
|
1790
|
+
:type t_id: str
|
|
1791
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1792
|
+
number provided, it will be total request
|
|
1793
|
+
timeout. It can also be a pair (tuple) of
|
|
1794
|
+
(connection, read) timeouts.
|
|
1795
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1796
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1797
|
+
request; this effectively ignores the
|
|
1798
|
+
authentication in the spec for a single request.
|
|
1799
|
+
:type _request_auth: dict, optional
|
|
1800
|
+
:param _content_type: force content-type for the request.
|
|
1801
|
+
:type _content_type: str, Optional
|
|
1802
|
+
:param _headers: set to override the headers for a single
|
|
1803
|
+
request; this effectively ignores the headers
|
|
1804
|
+
in the spec for a single request.
|
|
1805
|
+
:type _headers: dict, optional
|
|
1806
|
+
:param _host_index: set to override the host_index for a single
|
|
1807
|
+
request; this effectively ignores the host_index
|
|
1808
|
+
in the spec for a single request.
|
|
1809
|
+
:type _host_index: int, optional
|
|
1810
|
+
:return: Returns the result object.
|
|
1811
|
+
""" # noqa: E501
|
|
1812
|
+
|
|
1813
|
+
_param = self._get_access_token_serialize(
|
|
1814
|
+
project_id=project_id,
|
|
1815
|
+
region_id=region_id,
|
|
1816
|
+
instance_id=instance_id,
|
|
1817
|
+
t_id=t_id,
|
|
1818
|
+
_request_auth=_request_auth,
|
|
1819
|
+
_content_type=_content_type,
|
|
1820
|
+
_headers=_headers,
|
|
1821
|
+
_host_index=_host_index,
|
|
1822
|
+
)
|
|
1823
|
+
|
|
1824
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1825
|
+
"200": "AccessToken",
|
|
1826
|
+
"400": None,
|
|
1827
|
+
"401": "str",
|
|
1828
|
+
"404": None,
|
|
1829
|
+
"409": None,
|
|
1830
|
+
"500": None,
|
|
1831
|
+
}
|
|
1832
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
1833
|
+
response_data.read()
|
|
1834
|
+
return self.api_client.response_deserialize(
|
|
1835
|
+
response_data=response_data,
|
|
1836
|
+
response_types_map=_response_types_map,
|
|
1837
|
+
).data
|
|
1838
|
+
|
|
1839
|
+
@validate_call
|
|
1840
|
+
def get_access_token_with_http_info(
|
|
1841
|
+
self,
|
|
1842
|
+
project_id: Annotated[
|
|
1843
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
1844
|
+
],
|
|
1845
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
1846
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
1847
|
+
t_id: Annotated[StrictStr, Field(description="The access token UUID.")],
|
|
1848
|
+
_request_timeout: Union[
|
|
1849
|
+
None,
|
|
1850
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1851
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
1852
|
+
] = None,
|
|
1853
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1854
|
+
_content_type: Optional[StrictStr] = None,
|
|
1855
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1856
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1857
|
+
) -> ApiResponse[AccessToken]:
|
|
1858
|
+
"""Get Access Token
|
|
1859
|
+
|
|
1860
|
+
Get the information of the given access token.
|
|
1861
|
+
|
|
1862
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
1863
|
+
:type project_id: str
|
|
1864
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
1865
|
+
:type region_id: str
|
|
1866
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
1867
|
+
:type instance_id: str
|
|
1868
|
+
:param t_id: The access token UUID. (required)
|
|
1869
|
+
:type t_id: str
|
|
1870
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1871
|
+
number provided, it will be total request
|
|
1872
|
+
timeout. It can also be a pair (tuple) of
|
|
1873
|
+
(connection, read) timeouts.
|
|
1874
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1875
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1876
|
+
request; this effectively ignores the
|
|
1877
|
+
authentication in the spec for a single request.
|
|
1878
|
+
:type _request_auth: dict, optional
|
|
1879
|
+
:param _content_type: force content-type for the request.
|
|
1880
|
+
:type _content_type: str, Optional
|
|
1881
|
+
:param _headers: set to override the headers for a single
|
|
1882
|
+
request; this effectively ignores the headers
|
|
1883
|
+
in the spec for a single request.
|
|
1884
|
+
:type _headers: dict, optional
|
|
1885
|
+
:param _host_index: set to override the host_index for a single
|
|
1886
|
+
request; this effectively ignores the host_index
|
|
1887
|
+
in the spec for a single request.
|
|
1888
|
+
:type _host_index: int, optional
|
|
1889
|
+
:return: Returns the result object.
|
|
1890
|
+
""" # noqa: E501
|
|
1891
|
+
|
|
1892
|
+
_param = self._get_access_token_serialize(
|
|
1893
|
+
project_id=project_id,
|
|
1894
|
+
region_id=region_id,
|
|
1895
|
+
instance_id=instance_id,
|
|
1896
|
+
t_id=t_id,
|
|
1897
|
+
_request_auth=_request_auth,
|
|
1898
|
+
_content_type=_content_type,
|
|
1899
|
+
_headers=_headers,
|
|
1900
|
+
_host_index=_host_index,
|
|
1901
|
+
)
|
|
1902
|
+
|
|
1903
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1904
|
+
"200": "AccessToken",
|
|
1905
|
+
"400": None,
|
|
1906
|
+
"401": "str",
|
|
1907
|
+
"404": None,
|
|
1908
|
+
"409": None,
|
|
1909
|
+
"500": None,
|
|
1910
|
+
}
|
|
1911
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
1912
|
+
response_data.read()
|
|
1913
|
+
return self.api_client.response_deserialize(
|
|
1914
|
+
response_data=response_data,
|
|
1915
|
+
response_types_map=_response_types_map,
|
|
1916
|
+
)
|
|
1917
|
+
|
|
1918
|
+
@validate_call
|
|
1919
|
+
def get_access_token_without_preload_content(
|
|
1920
|
+
self,
|
|
1921
|
+
project_id: Annotated[
|
|
1922
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
1923
|
+
],
|
|
1924
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
1925
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
1926
|
+
t_id: Annotated[StrictStr, Field(description="The access token UUID.")],
|
|
1927
|
+
_request_timeout: Union[
|
|
1928
|
+
None,
|
|
1929
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1930
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
1931
|
+
] = None,
|
|
1932
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1933
|
+
_content_type: Optional[StrictStr] = None,
|
|
1934
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1935
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1936
|
+
) -> RESTResponseType:
|
|
1937
|
+
"""Get Access Token
|
|
1938
|
+
|
|
1939
|
+
Get the information of the given access token.
|
|
1940
|
+
|
|
1941
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
1942
|
+
:type project_id: str
|
|
1943
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
1944
|
+
:type region_id: str
|
|
1945
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
1946
|
+
:type instance_id: str
|
|
1947
|
+
:param t_id: The access token UUID. (required)
|
|
1948
|
+
:type t_id: str
|
|
1949
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1950
|
+
number provided, it will be total request
|
|
1951
|
+
timeout. It can also be a pair (tuple) of
|
|
1952
|
+
(connection, read) timeouts.
|
|
1953
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1954
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1955
|
+
request; this effectively ignores the
|
|
1956
|
+
authentication in the spec for a single request.
|
|
1957
|
+
:type _request_auth: dict, optional
|
|
1958
|
+
:param _content_type: force content-type for the request.
|
|
1959
|
+
:type _content_type: str, Optional
|
|
1960
|
+
:param _headers: set to override the headers for a single
|
|
1961
|
+
request; this effectively ignores the headers
|
|
1962
|
+
in the spec for a single request.
|
|
1963
|
+
:type _headers: dict, optional
|
|
1964
|
+
:param _host_index: set to override the host_index for a single
|
|
1965
|
+
request; this effectively ignores the host_index
|
|
1966
|
+
in the spec for a single request.
|
|
1967
|
+
:type _host_index: int, optional
|
|
1968
|
+
:return: Returns the result object.
|
|
1969
|
+
""" # noqa: E501
|
|
1970
|
+
|
|
1971
|
+
_param = self._get_access_token_serialize(
|
|
1972
|
+
project_id=project_id,
|
|
1973
|
+
region_id=region_id,
|
|
1974
|
+
instance_id=instance_id,
|
|
1975
|
+
t_id=t_id,
|
|
1976
|
+
_request_auth=_request_auth,
|
|
1977
|
+
_content_type=_content_type,
|
|
1978
|
+
_headers=_headers,
|
|
1979
|
+
_host_index=_host_index,
|
|
1980
|
+
)
|
|
1981
|
+
|
|
1982
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1983
|
+
"200": "AccessToken",
|
|
1984
|
+
"400": None,
|
|
1985
|
+
"401": "str",
|
|
1986
|
+
"404": None,
|
|
1987
|
+
"409": None,
|
|
1988
|
+
"500": None,
|
|
1989
|
+
}
|
|
1990
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
1991
|
+
return response_data.response
|
|
1992
|
+
|
|
1993
|
+
def _get_access_token_serialize(
|
|
1994
|
+
self,
|
|
1995
|
+
project_id,
|
|
1996
|
+
region_id,
|
|
1997
|
+
instance_id,
|
|
1998
|
+
t_id,
|
|
1999
|
+
_request_auth,
|
|
2000
|
+
_content_type,
|
|
2001
|
+
_headers,
|
|
2002
|
+
_host_index,
|
|
2003
|
+
) -> RequestSerialized:
|
|
2004
|
+
|
|
2005
|
+
_host = None
|
|
2006
|
+
|
|
2007
|
+
_collection_formats: Dict[str, str] = {}
|
|
2008
|
+
|
|
2009
|
+
_path_params: Dict[str, str] = {}
|
|
2010
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2011
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2012
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2013
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
2014
|
+
_body_params: Optional[bytes] = None
|
|
2015
|
+
|
|
2016
|
+
# process the path parameters
|
|
2017
|
+
if project_id is not None:
|
|
2018
|
+
_path_params["projectId"] = project_id
|
|
2019
|
+
if region_id is not None:
|
|
2020
|
+
_path_params["regionId"] = region_id
|
|
2021
|
+
if instance_id is not None:
|
|
2022
|
+
_path_params["instanceId"] = instance_id
|
|
2023
|
+
if t_id is not None:
|
|
2024
|
+
_path_params["tId"] = t_id
|
|
2025
|
+
# process the query parameters
|
|
2026
|
+
# process the header parameters
|
|
2027
|
+
# process the form parameters
|
|
2028
|
+
# process the body parameter
|
|
2029
|
+
|
|
2030
|
+
# set the HTTP header `Accept`
|
|
2031
|
+
if "Accept" not in _header_params:
|
|
2032
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["application/json", "text/plain"])
|
|
2033
|
+
|
|
2034
|
+
# authentication setting
|
|
2035
|
+
_auth_settings: List[str] = []
|
|
2036
|
+
|
|
2037
|
+
return self.api_client.param_serialize(
|
|
2038
|
+
method="GET",
|
|
2039
|
+
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}",
|
|
2040
|
+
path_params=_path_params,
|
|
2041
|
+
query_params=_query_params,
|
|
2042
|
+
header_params=_header_params,
|
|
2043
|
+
body=_body_params,
|
|
2044
|
+
post_params=_form_params,
|
|
2045
|
+
files=_files,
|
|
2046
|
+
auth_settings=_auth_settings,
|
|
2047
|
+
collection_formats=_collection_formats,
|
|
2048
|
+
_host=_host,
|
|
2049
|
+
_request_auth=_request_auth,
|
|
2050
|
+
)
|
|
2051
|
+
|
|
2052
|
+
@validate_call
|
|
2053
|
+
def get_logs_instance(
|
|
2054
|
+
self,
|
|
2055
|
+
project_id: Annotated[
|
|
2056
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
2057
|
+
],
|
|
2058
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
2059
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
2060
|
+
_request_timeout: Union[
|
|
2061
|
+
None,
|
|
2062
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2063
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
2064
|
+
] = None,
|
|
2065
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2066
|
+
_content_type: Optional[StrictStr] = None,
|
|
2067
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2068
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2069
|
+
) -> LogsInstance:
|
|
2070
|
+
"""Get Logs Instance
|
|
2071
|
+
|
|
2072
|
+
Returns the details for the given Logs instance.
|
|
2073
|
+
|
|
2074
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
2075
|
+
:type project_id: str
|
|
2076
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
2077
|
+
:type region_id: str
|
|
2078
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
2079
|
+
:type instance_id: str
|
|
2080
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2081
|
+
number provided, it will be total request
|
|
2082
|
+
timeout. It can also be a pair (tuple) of
|
|
2083
|
+
(connection, read) timeouts.
|
|
2084
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2085
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2086
|
+
request; this effectively ignores the
|
|
2087
|
+
authentication in the spec for a single request.
|
|
2088
|
+
:type _request_auth: dict, optional
|
|
2089
|
+
:param _content_type: force content-type for the request.
|
|
2090
|
+
:type _content_type: str, Optional
|
|
2091
|
+
:param _headers: set to override the headers for a single
|
|
2092
|
+
request; this effectively ignores the headers
|
|
2093
|
+
in the spec for a single request.
|
|
2094
|
+
:type _headers: dict, optional
|
|
2095
|
+
:param _host_index: set to override the host_index for a single
|
|
2096
|
+
request; this effectively ignores the host_index
|
|
2097
|
+
in the spec for a single request.
|
|
2098
|
+
:type _host_index: int, optional
|
|
2099
|
+
:return: Returns the result object.
|
|
2100
|
+
""" # noqa: E501
|
|
2101
|
+
|
|
2102
|
+
_param = self._get_logs_instance_serialize(
|
|
2103
|
+
project_id=project_id,
|
|
2104
|
+
region_id=region_id,
|
|
2105
|
+
instance_id=instance_id,
|
|
2106
|
+
_request_auth=_request_auth,
|
|
2107
|
+
_content_type=_content_type,
|
|
2108
|
+
_headers=_headers,
|
|
2109
|
+
_host_index=_host_index,
|
|
2110
|
+
)
|
|
2111
|
+
|
|
2112
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2113
|
+
"200": "LogsInstance",
|
|
2114
|
+
"400": None,
|
|
2115
|
+
"401": "str",
|
|
2116
|
+
"404": None,
|
|
2117
|
+
"500": None,
|
|
2118
|
+
}
|
|
2119
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
2120
|
+
response_data.read()
|
|
2121
|
+
return self.api_client.response_deserialize(
|
|
2122
|
+
response_data=response_data,
|
|
2123
|
+
response_types_map=_response_types_map,
|
|
2124
|
+
).data
|
|
2125
|
+
|
|
2126
|
+
@validate_call
|
|
2127
|
+
def get_logs_instance_with_http_info(
|
|
2128
|
+
self,
|
|
2129
|
+
project_id: Annotated[
|
|
2130
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
2131
|
+
],
|
|
2132
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
2133
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
2134
|
+
_request_timeout: Union[
|
|
2135
|
+
None,
|
|
2136
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2137
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
2138
|
+
] = None,
|
|
2139
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2140
|
+
_content_type: Optional[StrictStr] = None,
|
|
2141
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2142
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2143
|
+
) -> ApiResponse[LogsInstance]:
|
|
2144
|
+
"""Get Logs Instance
|
|
2145
|
+
|
|
2146
|
+
Returns the details for the given Logs instance.
|
|
2147
|
+
|
|
2148
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
2149
|
+
:type project_id: str
|
|
2150
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
2151
|
+
:type region_id: str
|
|
2152
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
2153
|
+
:type instance_id: str
|
|
2154
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2155
|
+
number provided, it will be total request
|
|
2156
|
+
timeout. It can also be a pair (tuple) of
|
|
2157
|
+
(connection, read) timeouts.
|
|
2158
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2159
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2160
|
+
request; this effectively ignores the
|
|
2161
|
+
authentication in the spec for a single request.
|
|
2162
|
+
:type _request_auth: dict, optional
|
|
2163
|
+
:param _content_type: force content-type for the request.
|
|
2164
|
+
:type _content_type: str, Optional
|
|
2165
|
+
:param _headers: set to override the headers for a single
|
|
2166
|
+
request; this effectively ignores the headers
|
|
2167
|
+
in the spec for a single request.
|
|
2168
|
+
:type _headers: dict, optional
|
|
2169
|
+
:param _host_index: set to override the host_index for a single
|
|
2170
|
+
request; this effectively ignores the host_index
|
|
2171
|
+
in the spec for a single request.
|
|
2172
|
+
:type _host_index: int, optional
|
|
2173
|
+
:return: Returns the result object.
|
|
2174
|
+
""" # noqa: E501
|
|
2175
|
+
|
|
2176
|
+
_param = self._get_logs_instance_serialize(
|
|
2177
|
+
project_id=project_id,
|
|
2178
|
+
region_id=region_id,
|
|
2179
|
+
instance_id=instance_id,
|
|
2180
|
+
_request_auth=_request_auth,
|
|
2181
|
+
_content_type=_content_type,
|
|
2182
|
+
_headers=_headers,
|
|
2183
|
+
_host_index=_host_index,
|
|
2184
|
+
)
|
|
2185
|
+
|
|
2186
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2187
|
+
"200": "LogsInstance",
|
|
2188
|
+
"400": None,
|
|
2189
|
+
"401": "str",
|
|
2190
|
+
"404": None,
|
|
2191
|
+
"500": None,
|
|
2192
|
+
}
|
|
2193
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
2194
|
+
response_data.read()
|
|
2195
|
+
return self.api_client.response_deserialize(
|
|
2196
|
+
response_data=response_data,
|
|
2197
|
+
response_types_map=_response_types_map,
|
|
2198
|
+
)
|
|
2199
|
+
|
|
2200
|
+
@validate_call
|
|
2201
|
+
def get_logs_instance_without_preload_content(
|
|
2202
|
+
self,
|
|
2203
|
+
project_id: Annotated[
|
|
2204
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
2205
|
+
],
|
|
2206
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
2207
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
2208
|
+
_request_timeout: Union[
|
|
2209
|
+
None,
|
|
2210
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2211
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
2212
|
+
] = None,
|
|
2213
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2214
|
+
_content_type: Optional[StrictStr] = None,
|
|
2215
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2216
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2217
|
+
) -> RESTResponseType:
|
|
2218
|
+
"""Get Logs Instance
|
|
2219
|
+
|
|
2220
|
+
Returns the details for the given Logs instance.
|
|
2221
|
+
|
|
2222
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
2223
|
+
:type project_id: str
|
|
2224
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
2225
|
+
:type region_id: str
|
|
2226
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
2227
|
+
:type instance_id: str
|
|
2228
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2229
|
+
number provided, it will be total request
|
|
2230
|
+
timeout. It can also be a pair (tuple) of
|
|
2231
|
+
(connection, read) timeouts.
|
|
2232
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2233
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2234
|
+
request; this effectively ignores the
|
|
2235
|
+
authentication in the spec for a single request.
|
|
2236
|
+
:type _request_auth: dict, optional
|
|
2237
|
+
:param _content_type: force content-type for the request.
|
|
2238
|
+
:type _content_type: str, Optional
|
|
2239
|
+
:param _headers: set to override the headers for a single
|
|
2240
|
+
request; this effectively ignores the headers
|
|
2241
|
+
in the spec for a single request.
|
|
2242
|
+
:type _headers: dict, optional
|
|
2243
|
+
:param _host_index: set to override the host_index for a single
|
|
2244
|
+
request; this effectively ignores the host_index
|
|
2245
|
+
in the spec for a single request.
|
|
2246
|
+
:type _host_index: int, optional
|
|
2247
|
+
:return: Returns the result object.
|
|
2248
|
+
""" # noqa: E501
|
|
2249
|
+
|
|
2250
|
+
_param = self._get_logs_instance_serialize(
|
|
2251
|
+
project_id=project_id,
|
|
2252
|
+
region_id=region_id,
|
|
2253
|
+
instance_id=instance_id,
|
|
2254
|
+
_request_auth=_request_auth,
|
|
2255
|
+
_content_type=_content_type,
|
|
2256
|
+
_headers=_headers,
|
|
2257
|
+
_host_index=_host_index,
|
|
2258
|
+
)
|
|
2259
|
+
|
|
2260
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2261
|
+
"200": "LogsInstance",
|
|
2262
|
+
"400": None,
|
|
2263
|
+
"401": "str",
|
|
2264
|
+
"404": None,
|
|
2265
|
+
"500": None,
|
|
2266
|
+
}
|
|
2267
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
2268
|
+
return response_data.response
|
|
2269
|
+
|
|
2270
|
+
def _get_logs_instance_serialize(
|
|
2271
|
+
self,
|
|
2272
|
+
project_id,
|
|
2273
|
+
region_id,
|
|
2274
|
+
instance_id,
|
|
2275
|
+
_request_auth,
|
|
2276
|
+
_content_type,
|
|
2277
|
+
_headers,
|
|
2278
|
+
_host_index,
|
|
2279
|
+
) -> RequestSerialized:
|
|
2280
|
+
|
|
2281
|
+
_host = None
|
|
2282
|
+
|
|
2283
|
+
_collection_formats: Dict[str, str] = {}
|
|
2284
|
+
|
|
2285
|
+
_path_params: Dict[str, str] = {}
|
|
2286
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2287
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2288
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2289
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
2290
|
+
_body_params: Optional[bytes] = None
|
|
2291
|
+
|
|
2292
|
+
# process the path parameters
|
|
2293
|
+
if project_id is not None:
|
|
2294
|
+
_path_params["projectId"] = project_id
|
|
2295
|
+
if region_id is not None:
|
|
2296
|
+
_path_params["regionId"] = region_id
|
|
2297
|
+
if instance_id is not None:
|
|
2298
|
+
_path_params["instanceId"] = instance_id
|
|
2299
|
+
# process the query parameters
|
|
2300
|
+
# process the header parameters
|
|
2301
|
+
# process the form parameters
|
|
2302
|
+
# process the body parameter
|
|
2303
|
+
|
|
2304
|
+
# set the HTTP header `Accept`
|
|
2305
|
+
if "Accept" not in _header_params:
|
|
2306
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["application/json", "text/plain"])
|
|
2307
|
+
|
|
2308
|
+
# authentication setting
|
|
2309
|
+
_auth_settings: List[str] = []
|
|
2310
|
+
|
|
2311
|
+
return self.api_client.param_serialize(
|
|
2312
|
+
method="GET",
|
|
2313
|
+
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
2314
|
+
path_params=_path_params,
|
|
2315
|
+
query_params=_query_params,
|
|
2316
|
+
header_params=_header_params,
|
|
2317
|
+
body=_body_params,
|
|
2318
|
+
post_params=_form_params,
|
|
2319
|
+
files=_files,
|
|
2320
|
+
auth_settings=_auth_settings,
|
|
2321
|
+
collection_formats=_collection_formats,
|
|
2322
|
+
_host=_host,
|
|
2323
|
+
_request_auth=_request_auth,
|
|
2324
|
+
)
|
|
2325
|
+
|
|
2326
|
+
@validate_call
|
|
2327
|
+
def list_access_tokens(
|
|
2328
|
+
self,
|
|
2329
|
+
project_id: Annotated[
|
|
2330
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
2331
|
+
],
|
|
2332
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
2333
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
2334
|
+
_request_timeout: Union[
|
|
2335
|
+
None,
|
|
2336
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2337
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
2338
|
+
] = None,
|
|
2339
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2340
|
+
_content_type: Optional[StrictStr] = None,
|
|
2341
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2342
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2343
|
+
) -> AccessTokenList:
|
|
2344
|
+
"""List Access Tokens
|
|
2345
|
+
|
|
2346
|
+
Returns a list of access tokens created for a Logs instance
|
|
2347
|
+
|
|
2348
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
2349
|
+
:type project_id: str
|
|
2350
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
2351
|
+
:type region_id: str
|
|
2352
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
2353
|
+
:type instance_id: str
|
|
2354
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2355
|
+
number provided, it will be total request
|
|
2356
|
+
timeout. It can also be a pair (tuple) of
|
|
2357
|
+
(connection, read) timeouts.
|
|
2358
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2359
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2360
|
+
request; this effectively ignores the
|
|
2361
|
+
authentication in the spec for a single request.
|
|
2362
|
+
:type _request_auth: dict, optional
|
|
2363
|
+
:param _content_type: force content-type for the request.
|
|
2364
|
+
:type _content_type: str, Optional
|
|
2365
|
+
:param _headers: set to override the headers for a single
|
|
2366
|
+
request; this effectively ignores the headers
|
|
2367
|
+
in the spec for a single request.
|
|
2368
|
+
:type _headers: dict, optional
|
|
2369
|
+
:param _host_index: set to override the host_index for a single
|
|
2370
|
+
request; this effectively ignores the host_index
|
|
2371
|
+
in the spec for a single request.
|
|
2372
|
+
:type _host_index: int, optional
|
|
2373
|
+
:return: Returns the result object.
|
|
2374
|
+
""" # noqa: E501
|
|
2375
|
+
|
|
2376
|
+
_param = self._list_access_tokens_serialize(
|
|
2377
|
+
project_id=project_id,
|
|
2378
|
+
region_id=region_id,
|
|
2379
|
+
instance_id=instance_id,
|
|
2380
|
+
_request_auth=_request_auth,
|
|
2381
|
+
_content_type=_content_type,
|
|
2382
|
+
_headers=_headers,
|
|
2383
|
+
_host_index=_host_index,
|
|
2384
|
+
)
|
|
2385
|
+
|
|
2386
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2387
|
+
"200": "AccessTokenList",
|
|
2388
|
+
"400": None,
|
|
2389
|
+
"401": "str",
|
|
2390
|
+
"404": None,
|
|
2391
|
+
"409": None,
|
|
2392
|
+
"500": None,
|
|
2393
|
+
}
|
|
2394
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
2395
|
+
response_data.read()
|
|
2396
|
+
return self.api_client.response_deserialize(
|
|
2397
|
+
response_data=response_data,
|
|
2398
|
+
response_types_map=_response_types_map,
|
|
2399
|
+
).data
|
|
2400
|
+
|
|
2401
|
+
@validate_call
|
|
2402
|
+
def list_access_tokens_with_http_info(
|
|
2403
|
+
self,
|
|
2404
|
+
project_id: Annotated[
|
|
2405
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
2406
|
+
],
|
|
2407
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
2408
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
2409
|
+
_request_timeout: Union[
|
|
2410
|
+
None,
|
|
2411
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2412
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
2413
|
+
] = None,
|
|
2414
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2415
|
+
_content_type: Optional[StrictStr] = None,
|
|
2416
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2417
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2418
|
+
) -> ApiResponse[AccessTokenList]:
|
|
2419
|
+
"""List Access Tokens
|
|
2420
|
+
|
|
2421
|
+
Returns a list of access tokens created for a Logs instance
|
|
2422
|
+
|
|
2423
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
2424
|
+
:type project_id: str
|
|
2425
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
2426
|
+
:type region_id: str
|
|
2427
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
2428
|
+
:type instance_id: str
|
|
2429
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2430
|
+
number provided, it will be total request
|
|
2431
|
+
timeout. It can also be a pair (tuple) of
|
|
2432
|
+
(connection, read) timeouts.
|
|
2433
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2434
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2435
|
+
request; this effectively ignores the
|
|
2436
|
+
authentication in the spec for a single request.
|
|
2437
|
+
:type _request_auth: dict, optional
|
|
2438
|
+
:param _content_type: force content-type for the request.
|
|
2439
|
+
:type _content_type: str, Optional
|
|
2440
|
+
:param _headers: set to override the headers for a single
|
|
2441
|
+
request; this effectively ignores the headers
|
|
2442
|
+
in the spec for a single request.
|
|
2443
|
+
:type _headers: dict, optional
|
|
2444
|
+
:param _host_index: set to override the host_index for a single
|
|
2445
|
+
request; this effectively ignores the host_index
|
|
2446
|
+
in the spec for a single request.
|
|
2447
|
+
:type _host_index: int, optional
|
|
2448
|
+
:return: Returns the result object.
|
|
2449
|
+
""" # noqa: E501
|
|
2450
|
+
|
|
2451
|
+
_param = self._list_access_tokens_serialize(
|
|
2452
|
+
project_id=project_id,
|
|
2453
|
+
region_id=region_id,
|
|
2454
|
+
instance_id=instance_id,
|
|
2455
|
+
_request_auth=_request_auth,
|
|
2456
|
+
_content_type=_content_type,
|
|
2457
|
+
_headers=_headers,
|
|
2458
|
+
_host_index=_host_index,
|
|
2459
|
+
)
|
|
2460
|
+
|
|
2461
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2462
|
+
"200": "AccessTokenList",
|
|
2463
|
+
"400": None,
|
|
2464
|
+
"401": "str",
|
|
2465
|
+
"404": None,
|
|
2466
|
+
"409": None,
|
|
2467
|
+
"500": None,
|
|
2468
|
+
}
|
|
2469
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
2470
|
+
response_data.read()
|
|
2471
|
+
return self.api_client.response_deserialize(
|
|
2472
|
+
response_data=response_data,
|
|
2473
|
+
response_types_map=_response_types_map,
|
|
2474
|
+
)
|
|
2475
|
+
|
|
2476
|
+
@validate_call
|
|
2477
|
+
def list_access_tokens_without_preload_content(
|
|
2478
|
+
self,
|
|
2479
|
+
project_id: Annotated[
|
|
2480
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
2481
|
+
],
|
|
2482
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
2483
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
2484
|
+
_request_timeout: Union[
|
|
2485
|
+
None,
|
|
2486
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2487
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
2488
|
+
] = None,
|
|
2489
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2490
|
+
_content_type: Optional[StrictStr] = None,
|
|
2491
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2492
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2493
|
+
) -> RESTResponseType:
|
|
2494
|
+
"""List Access Tokens
|
|
2495
|
+
|
|
2496
|
+
Returns a list of access tokens created for a Logs instance
|
|
2497
|
+
|
|
2498
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
2499
|
+
:type project_id: str
|
|
2500
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
2501
|
+
:type region_id: str
|
|
2502
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
2503
|
+
:type instance_id: str
|
|
2504
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2505
|
+
number provided, it will be total request
|
|
2506
|
+
timeout. It can also be a pair (tuple) of
|
|
2507
|
+
(connection, read) timeouts.
|
|
2508
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2509
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2510
|
+
request; this effectively ignores the
|
|
2511
|
+
authentication in the spec for a single request.
|
|
2512
|
+
:type _request_auth: dict, optional
|
|
2513
|
+
:param _content_type: force content-type for the request.
|
|
2514
|
+
:type _content_type: str, Optional
|
|
2515
|
+
:param _headers: set to override the headers for a single
|
|
2516
|
+
request; this effectively ignores the headers
|
|
2517
|
+
in the spec for a single request.
|
|
2518
|
+
:type _headers: dict, optional
|
|
2519
|
+
:param _host_index: set to override the host_index for a single
|
|
2520
|
+
request; this effectively ignores the host_index
|
|
2521
|
+
in the spec for a single request.
|
|
2522
|
+
:type _host_index: int, optional
|
|
2523
|
+
:return: Returns the result object.
|
|
2524
|
+
""" # noqa: E501
|
|
2525
|
+
|
|
2526
|
+
_param = self._list_access_tokens_serialize(
|
|
2527
|
+
project_id=project_id,
|
|
2528
|
+
region_id=region_id,
|
|
2529
|
+
instance_id=instance_id,
|
|
2530
|
+
_request_auth=_request_auth,
|
|
2531
|
+
_content_type=_content_type,
|
|
2532
|
+
_headers=_headers,
|
|
2533
|
+
_host_index=_host_index,
|
|
2534
|
+
)
|
|
2535
|
+
|
|
2536
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2537
|
+
"200": "AccessTokenList",
|
|
2538
|
+
"400": None,
|
|
2539
|
+
"401": "str",
|
|
2540
|
+
"404": None,
|
|
2541
|
+
"409": None,
|
|
2542
|
+
"500": None,
|
|
2543
|
+
}
|
|
2544
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
2545
|
+
return response_data.response
|
|
2546
|
+
|
|
2547
|
+
def _list_access_tokens_serialize(
|
|
2548
|
+
self,
|
|
2549
|
+
project_id,
|
|
2550
|
+
region_id,
|
|
2551
|
+
instance_id,
|
|
2552
|
+
_request_auth,
|
|
2553
|
+
_content_type,
|
|
2554
|
+
_headers,
|
|
2555
|
+
_host_index,
|
|
2556
|
+
) -> RequestSerialized:
|
|
2557
|
+
|
|
2558
|
+
_host = None
|
|
2559
|
+
|
|
2560
|
+
_collection_formats: Dict[str, str] = {}
|
|
2561
|
+
|
|
2562
|
+
_path_params: Dict[str, str] = {}
|
|
2563
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2564
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2565
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2566
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
2567
|
+
_body_params: Optional[bytes] = None
|
|
2568
|
+
|
|
2569
|
+
# process the path parameters
|
|
2570
|
+
if project_id is not None:
|
|
2571
|
+
_path_params["projectId"] = project_id
|
|
2572
|
+
if region_id is not None:
|
|
2573
|
+
_path_params["regionId"] = region_id
|
|
2574
|
+
if instance_id is not None:
|
|
2575
|
+
_path_params["instanceId"] = instance_id
|
|
2576
|
+
# process the query parameters
|
|
2577
|
+
# process the header parameters
|
|
2578
|
+
# process the form parameters
|
|
2579
|
+
# process the body parameter
|
|
2580
|
+
|
|
2581
|
+
# set the HTTP header `Accept`
|
|
2582
|
+
if "Accept" not in _header_params:
|
|
2583
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["application/json", "text/plain"])
|
|
2584
|
+
|
|
2585
|
+
# authentication setting
|
|
2586
|
+
_auth_settings: List[str] = []
|
|
2587
|
+
|
|
2588
|
+
return self.api_client.param_serialize(
|
|
2589
|
+
method="GET",
|
|
2590
|
+
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens",
|
|
2591
|
+
path_params=_path_params,
|
|
2592
|
+
query_params=_query_params,
|
|
2593
|
+
header_params=_header_params,
|
|
2594
|
+
body=_body_params,
|
|
2595
|
+
post_params=_form_params,
|
|
2596
|
+
files=_files,
|
|
2597
|
+
auth_settings=_auth_settings,
|
|
2598
|
+
collection_formats=_collection_formats,
|
|
2599
|
+
_host=_host,
|
|
2600
|
+
_request_auth=_request_auth,
|
|
2601
|
+
)
|
|
2602
|
+
|
|
2603
|
+
@validate_call
|
|
2604
|
+
def list_logs_instances(
|
|
2605
|
+
self,
|
|
2606
|
+
project_id: Annotated[
|
|
2607
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
2608
|
+
],
|
|
2609
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
2610
|
+
_request_timeout: Union[
|
|
2611
|
+
None,
|
|
2612
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2613
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
2614
|
+
] = None,
|
|
2615
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2616
|
+
_content_type: Optional[StrictStr] = None,
|
|
2617
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2618
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2619
|
+
) -> LogsInstancesList:
|
|
2620
|
+
"""List Logs instances
|
|
2621
|
+
|
|
2622
|
+
Returns a list of all Logs instances within the project.
|
|
2623
|
+
|
|
2624
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
2625
|
+
:type project_id: str
|
|
2626
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
2627
|
+
:type region_id: str
|
|
2628
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2629
|
+
number provided, it will be total request
|
|
2630
|
+
timeout. It can also be a pair (tuple) of
|
|
2631
|
+
(connection, read) timeouts.
|
|
2632
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2633
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2634
|
+
request; this effectively ignores the
|
|
2635
|
+
authentication in the spec for a single request.
|
|
2636
|
+
:type _request_auth: dict, optional
|
|
2637
|
+
:param _content_type: force content-type for the request.
|
|
2638
|
+
:type _content_type: str, Optional
|
|
2639
|
+
:param _headers: set to override the headers for a single
|
|
2640
|
+
request; this effectively ignores the headers
|
|
2641
|
+
in the spec for a single request.
|
|
2642
|
+
:type _headers: dict, optional
|
|
2643
|
+
:param _host_index: set to override the host_index for a single
|
|
2644
|
+
request; this effectively ignores the host_index
|
|
2645
|
+
in the spec for a single request.
|
|
2646
|
+
:type _host_index: int, optional
|
|
2647
|
+
:return: Returns the result object.
|
|
2648
|
+
""" # noqa: E501
|
|
2649
|
+
|
|
2650
|
+
_param = self._list_logs_instances_serialize(
|
|
2651
|
+
project_id=project_id,
|
|
2652
|
+
region_id=region_id,
|
|
2653
|
+
_request_auth=_request_auth,
|
|
2654
|
+
_content_type=_content_type,
|
|
2655
|
+
_headers=_headers,
|
|
2656
|
+
_host_index=_host_index,
|
|
2657
|
+
)
|
|
2658
|
+
|
|
2659
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2660
|
+
"200": "LogsInstancesList",
|
|
2661
|
+
"400": None,
|
|
2662
|
+
"401": "str",
|
|
2663
|
+
"500": None,
|
|
2664
|
+
}
|
|
2665
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
2666
|
+
response_data.read()
|
|
2667
|
+
return self.api_client.response_deserialize(
|
|
2668
|
+
response_data=response_data,
|
|
2669
|
+
response_types_map=_response_types_map,
|
|
2670
|
+
).data
|
|
2671
|
+
|
|
2672
|
+
@validate_call
|
|
2673
|
+
def list_logs_instances_with_http_info(
|
|
2674
|
+
self,
|
|
2675
|
+
project_id: Annotated[
|
|
2676
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
2677
|
+
],
|
|
2678
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
2679
|
+
_request_timeout: Union[
|
|
2680
|
+
None,
|
|
2681
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2682
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
2683
|
+
] = None,
|
|
2684
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2685
|
+
_content_type: Optional[StrictStr] = None,
|
|
2686
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2687
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2688
|
+
) -> ApiResponse[LogsInstancesList]:
|
|
2689
|
+
"""List Logs instances
|
|
2690
|
+
|
|
2691
|
+
Returns a list of all Logs instances within the project.
|
|
2692
|
+
|
|
2693
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
2694
|
+
:type project_id: str
|
|
2695
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
2696
|
+
:type region_id: str
|
|
2697
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2698
|
+
number provided, it will be total request
|
|
2699
|
+
timeout. It can also be a pair (tuple) of
|
|
2700
|
+
(connection, read) timeouts.
|
|
2701
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2702
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2703
|
+
request; this effectively ignores the
|
|
2704
|
+
authentication in the spec for a single request.
|
|
2705
|
+
:type _request_auth: dict, optional
|
|
2706
|
+
:param _content_type: force content-type for the request.
|
|
2707
|
+
:type _content_type: str, Optional
|
|
2708
|
+
:param _headers: set to override the headers for a single
|
|
2709
|
+
request; this effectively ignores the headers
|
|
2710
|
+
in the spec for a single request.
|
|
2711
|
+
:type _headers: dict, optional
|
|
2712
|
+
:param _host_index: set to override the host_index for a single
|
|
2713
|
+
request; this effectively ignores the host_index
|
|
2714
|
+
in the spec for a single request.
|
|
2715
|
+
:type _host_index: int, optional
|
|
2716
|
+
:return: Returns the result object.
|
|
2717
|
+
""" # noqa: E501
|
|
2718
|
+
|
|
2719
|
+
_param = self._list_logs_instances_serialize(
|
|
2720
|
+
project_id=project_id,
|
|
2721
|
+
region_id=region_id,
|
|
2722
|
+
_request_auth=_request_auth,
|
|
2723
|
+
_content_type=_content_type,
|
|
2724
|
+
_headers=_headers,
|
|
2725
|
+
_host_index=_host_index,
|
|
2726
|
+
)
|
|
2727
|
+
|
|
2728
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2729
|
+
"200": "LogsInstancesList",
|
|
2730
|
+
"400": None,
|
|
2731
|
+
"401": "str",
|
|
2732
|
+
"500": None,
|
|
2733
|
+
}
|
|
2734
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
2735
|
+
response_data.read()
|
|
2736
|
+
return self.api_client.response_deserialize(
|
|
2737
|
+
response_data=response_data,
|
|
2738
|
+
response_types_map=_response_types_map,
|
|
2739
|
+
)
|
|
2740
|
+
|
|
2741
|
+
@validate_call
|
|
2742
|
+
def list_logs_instances_without_preload_content(
|
|
2743
|
+
self,
|
|
2744
|
+
project_id: Annotated[
|
|
2745
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
2746
|
+
],
|
|
2747
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
2748
|
+
_request_timeout: Union[
|
|
2749
|
+
None,
|
|
2750
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2751
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
2752
|
+
] = None,
|
|
2753
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2754
|
+
_content_type: Optional[StrictStr] = None,
|
|
2755
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2756
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2757
|
+
) -> RESTResponseType:
|
|
2758
|
+
"""List Logs instances
|
|
2759
|
+
|
|
2760
|
+
Returns a list of all Logs instances within the project.
|
|
2761
|
+
|
|
2762
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
2763
|
+
:type project_id: str
|
|
2764
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
2765
|
+
:type region_id: str
|
|
2766
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2767
|
+
number provided, it will be total request
|
|
2768
|
+
timeout. It can also be a pair (tuple) of
|
|
2769
|
+
(connection, read) timeouts.
|
|
2770
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2771
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2772
|
+
request; this effectively ignores the
|
|
2773
|
+
authentication in the spec for a single request.
|
|
2774
|
+
:type _request_auth: dict, optional
|
|
2775
|
+
:param _content_type: force content-type for the request.
|
|
2776
|
+
:type _content_type: str, Optional
|
|
2777
|
+
:param _headers: set to override the headers for a single
|
|
2778
|
+
request; this effectively ignores the headers
|
|
2779
|
+
in the spec for a single request.
|
|
2780
|
+
:type _headers: dict, optional
|
|
2781
|
+
:param _host_index: set to override the host_index for a single
|
|
2782
|
+
request; this effectively ignores the host_index
|
|
2783
|
+
in the spec for a single request.
|
|
2784
|
+
:type _host_index: int, optional
|
|
2785
|
+
:return: Returns the result object.
|
|
2786
|
+
""" # noqa: E501
|
|
2787
|
+
|
|
2788
|
+
_param = self._list_logs_instances_serialize(
|
|
2789
|
+
project_id=project_id,
|
|
2790
|
+
region_id=region_id,
|
|
2791
|
+
_request_auth=_request_auth,
|
|
2792
|
+
_content_type=_content_type,
|
|
2793
|
+
_headers=_headers,
|
|
2794
|
+
_host_index=_host_index,
|
|
2795
|
+
)
|
|
2796
|
+
|
|
2797
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2798
|
+
"200": "LogsInstancesList",
|
|
2799
|
+
"400": None,
|
|
2800
|
+
"401": "str",
|
|
2801
|
+
"500": None,
|
|
2802
|
+
}
|
|
2803
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
2804
|
+
return response_data.response
|
|
2805
|
+
|
|
2806
|
+
def _list_logs_instances_serialize(
|
|
2807
|
+
self,
|
|
2808
|
+
project_id,
|
|
2809
|
+
region_id,
|
|
2810
|
+
_request_auth,
|
|
2811
|
+
_content_type,
|
|
2812
|
+
_headers,
|
|
2813
|
+
_host_index,
|
|
2814
|
+
) -> RequestSerialized:
|
|
2815
|
+
|
|
2816
|
+
_host = None
|
|
2817
|
+
|
|
2818
|
+
_collection_formats: Dict[str, str] = {}
|
|
2819
|
+
|
|
2820
|
+
_path_params: Dict[str, str] = {}
|
|
2821
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2822
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2823
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2824
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
2825
|
+
_body_params: Optional[bytes] = None
|
|
2826
|
+
|
|
2827
|
+
# process the path parameters
|
|
2828
|
+
if project_id is not None:
|
|
2829
|
+
_path_params["projectId"] = project_id
|
|
2830
|
+
if region_id is not None:
|
|
2831
|
+
_path_params["regionId"] = region_id
|
|
2832
|
+
# process the query parameters
|
|
2833
|
+
# process the header parameters
|
|
2834
|
+
# process the form parameters
|
|
2835
|
+
# process the body parameter
|
|
2836
|
+
|
|
2837
|
+
# set the HTTP header `Accept`
|
|
2838
|
+
if "Accept" not in _header_params:
|
|
2839
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["application/json", "text/plain"])
|
|
2840
|
+
|
|
2841
|
+
# authentication setting
|
|
2842
|
+
_auth_settings: List[str] = []
|
|
2843
|
+
|
|
2844
|
+
return self.api_client.param_serialize(
|
|
2845
|
+
method="GET",
|
|
2846
|
+
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances",
|
|
2847
|
+
path_params=_path_params,
|
|
2848
|
+
query_params=_query_params,
|
|
2849
|
+
header_params=_header_params,
|
|
2850
|
+
body=_body_params,
|
|
2851
|
+
post_params=_form_params,
|
|
2852
|
+
files=_files,
|
|
2853
|
+
auth_settings=_auth_settings,
|
|
2854
|
+
collection_formats=_collection_formats,
|
|
2855
|
+
_host=_host,
|
|
2856
|
+
_request_auth=_request_auth,
|
|
2857
|
+
)
|
|
2858
|
+
|
|
2859
|
+
@validate_call
|
|
2860
|
+
def update_access_token(
|
|
2861
|
+
self,
|
|
2862
|
+
project_id: Annotated[
|
|
2863
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
2864
|
+
],
|
|
2865
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
2866
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
2867
|
+
t_id: Annotated[StrictStr, Field(description="The access token UUID.")],
|
|
2868
|
+
update_access_token_payload: UpdateAccessTokenPayload,
|
|
2869
|
+
_request_timeout: Union[
|
|
2870
|
+
None,
|
|
2871
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2872
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
2873
|
+
] = None,
|
|
2874
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2875
|
+
_content_type: Optional[StrictStr] = None,
|
|
2876
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2877
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2878
|
+
) -> None:
|
|
2879
|
+
"""Update Access Token
|
|
2880
|
+
|
|
2881
|
+
Updates the given access token.
|
|
2882
|
+
|
|
2883
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
2884
|
+
:type project_id: str
|
|
2885
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
2886
|
+
:type region_id: str
|
|
2887
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
2888
|
+
:type instance_id: str
|
|
2889
|
+
:param t_id: The access token UUID. (required)
|
|
2890
|
+
:type t_id: str
|
|
2891
|
+
:param update_access_token_payload: (required)
|
|
2892
|
+
:type update_access_token_payload: UpdateAccessTokenPayload
|
|
2893
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2894
|
+
number provided, it will be total request
|
|
2895
|
+
timeout. It can also be a pair (tuple) of
|
|
2896
|
+
(connection, read) timeouts.
|
|
2897
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2898
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2899
|
+
request; this effectively ignores the
|
|
2900
|
+
authentication in the spec for a single request.
|
|
2901
|
+
:type _request_auth: dict, optional
|
|
2902
|
+
:param _content_type: force content-type for the request.
|
|
2903
|
+
:type _content_type: str, Optional
|
|
2904
|
+
:param _headers: set to override the headers for a single
|
|
2905
|
+
request; this effectively ignores the headers
|
|
2906
|
+
in the spec for a single request.
|
|
2907
|
+
:type _headers: dict, optional
|
|
2908
|
+
:param _host_index: set to override the host_index for a single
|
|
2909
|
+
request; this effectively ignores the host_index
|
|
2910
|
+
in the spec for a single request.
|
|
2911
|
+
:type _host_index: int, optional
|
|
2912
|
+
:return: Returns the result object.
|
|
2913
|
+
""" # noqa: E501
|
|
2914
|
+
|
|
2915
|
+
_param = self._update_access_token_serialize(
|
|
2916
|
+
project_id=project_id,
|
|
2917
|
+
region_id=region_id,
|
|
2918
|
+
instance_id=instance_id,
|
|
2919
|
+
t_id=t_id,
|
|
2920
|
+
update_access_token_payload=update_access_token_payload,
|
|
2921
|
+
_request_auth=_request_auth,
|
|
2922
|
+
_content_type=_content_type,
|
|
2923
|
+
_headers=_headers,
|
|
2924
|
+
_host_index=_host_index,
|
|
2925
|
+
)
|
|
2926
|
+
|
|
2927
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2928
|
+
"204": None,
|
|
2929
|
+
"400": None,
|
|
2930
|
+
"401": "str",
|
|
2931
|
+
"404": None,
|
|
2932
|
+
"409": None,
|
|
2933
|
+
"500": None,
|
|
2934
|
+
}
|
|
2935
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
2936
|
+
response_data.read()
|
|
2937
|
+
return self.api_client.response_deserialize(
|
|
2938
|
+
response_data=response_data,
|
|
2939
|
+
response_types_map=_response_types_map,
|
|
2940
|
+
).data
|
|
2941
|
+
|
|
2942
|
+
@validate_call
|
|
2943
|
+
def update_access_token_with_http_info(
|
|
2944
|
+
self,
|
|
2945
|
+
project_id: Annotated[
|
|
2946
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
2947
|
+
],
|
|
2948
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
2949
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
2950
|
+
t_id: Annotated[StrictStr, Field(description="The access token UUID.")],
|
|
2951
|
+
update_access_token_payload: UpdateAccessTokenPayload,
|
|
2952
|
+
_request_timeout: Union[
|
|
2953
|
+
None,
|
|
2954
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2955
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
2956
|
+
] = None,
|
|
2957
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2958
|
+
_content_type: Optional[StrictStr] = None,
|
|
2959
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2960
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2961
|
+
) -> ApiResponse[None]:
|
|
2962
|
+
"""Update Access Token
|
|
2963
|
+
|
|
2964
|
+
Updates the given access token.
|
|
2965
|
+
|
|
2966
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
2967
|
+
:type project_id: str
|
|
2968
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
2969
|
+
:type region_id: str
|
|
2970
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
2971
|
+
:type instance_id: str
|
|
2972
|
+
:param t_id: The access token UUID. (required)
|
|
2973
|
+
:type t_id: str
|
|
2974
|
+
:param update_access_token_payload: (required)
|
|
2975
|
+
:type update_access_token_payload: UpdateAccessTokenPayload
|
|
2976
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2977
|
+
number provided, it will be total request
|
|
2978
|
+
timeout. It can also be a pair (tuple) of
|
|
2979
|
+
(connection, read) timeouts.
|
|
2980
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2981
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2982
|
+
request; this effectively ignores the
|
|
2983
|
+
authentication in the spec for a single request.
|
|
2984
|
+
:type _request_auth: dict, optional
|
|
2985
|
+
:param _content_type: force content-type for the request.
|
|
2986
|
+
:type _content_type: str, Optional
|
|
2987
|
+
:param _headers: set to override the headers for a single
|
|
2988
|
+
request; this effectively ignores the headers
|
|
2989
|
+
in the spec for a single request.
|
|
2990
|
+
:type _headers: dict, optional
|
|
2991
|
+
:param _host_index: set to override the host_index for a single
|
|
2992
|
+
request; this effectively ignores the host_index
|
|
2993
|
+
in the spec for a single request.
|
|
2994
|
+
:type _host_index: int, optional
|
|
2995
|
+
:return: Returns the result object.
|
|
2996
|
+
""" # noqa: E501
|
|
2997
|
+
|
|
2998
|
+
_param = self._update_access_token_serialize(
|
|
2999
|
+
project_id=project_id,
|
|
3000
|
+
region_id=region_id,
|
|
3001
|
+
instance_id=instance_id,
|
|
3002
|
+
t_id=t_id,
|
|
3003
|
+
update_access_token_payload=update_access_token_payload,
|
|
3004
|
+
_request_auth=_request_auth,
|
|
3005
|
+
_content_type=_content_type,
|
|
3006
|
+
_headers=_headers,
|
|
3007
|
+
_host_index=_host_index,
|
|
3008
|
+
)
|
|
3009
|
+
|
|
3010
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3011
|
+
"204": None,
|
|
3012
|
+
"400": None,
|
|
3013
|
+
"401": "str",
|
|
3014
|
+
"404": None,
|
|
3015
|
+
"409": None,
|
|
3016
|
+
"500": None,
|
|
3017
|
+
}
|
|
3018
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
3019
|
+
response_data.read()
|
|
3020
|
+
return self.api_client.response_deserialize(
|
|
3021
|
+
response_data=response_data,
|
|
3022
|
+
response_types_map=_response_types_map,
|
|
3023
|
+
)
|
|
3024
|
+
|
|
3025
|
+
@validate_call
|
|
3026
|
+
def update_access_token_without_preload_content(
|
|
3027
|
+
self,
|
|
3028
|
+
project_id: Annotated[
|
|
3029
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
3030
|
+
],
|
|
3031
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
3032
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
3033
|
+
t_id: Annotated[StrictStr, Field(description="The access token UUID.")],
|
|
3034
|
+
update_access_token_payload: UpdateAccessTokenPayload,
|
|
3035
|
+
_request_timeout: Union[
|
|
3036
|
+
None,
|
|
3037
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3038
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
3039
|
+
] = None,
|
|
3040
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3041
|
+
_content_type: Optional[StrictStr] = None,
|
|
3042
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3043
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3044
|
+
) -> RESTResponseType:
|
|
3045
|
+
"""Update Access Token
|
|
3046
|
+
|
|
3047
|
+
Updates the given access token.
|
|
3048
|
+
|
|
3049
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
3050
|
+
:type project_id: str
|
|
3051
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
3052
|
+
:type region_id: str
|
|
3053
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
3054
|
+
:type instance_id: str
|
|
3055
|
+
:param t_id: The access token UUID. (required)
|
|
3056
|
+
:type t_id: str
|
|
3057
|
+
:param update_access_token_payload: (required)
|
|
3058
|
+
:type update_access_token_payload: UpdateAccessTokenPayload
|
|
3059
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3060
|
+
number provided, it will be total request
|
|
3061
|
+
timeout. It can also be a pair (tuple) of
|
|
3062
|
+
(connection, read) timeouts.
|
|
3063
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3064
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3065
|
+
request; this effectively ignores the
|
|
3066
|
+
authentication in the spec for a single request.
|
|
3067
|
+
:type _request_auth: dict, optional
|
|
3068
|
+
:param _content_type: force content-type for the request.
|
|
3069
|
+
:type _content_type: str, Optional
|
|
3070
|
+
:param _headers: set to override the headers for a single
|
|
3071
|
+
request; this effectively ignores the headers
|
|
3072
|
+
in the spec for a single request.
|
|
3073
|
+
:type _headers: dict, optional
|
|
3074
|
+
:param _host_index: set to override the host_index for a single
|
|
3075
|
+
request; this effectively ignores the host_index
|
|
3076
|
+
in the spec for a single request.
|
|
3077
|
+
:type _host_index: int, optional
|
|
3078
|
+
:return: Returns the result object.
|
|
3079
|
+
""" # noqa: E501
|
|
3080
|
+
|
|
3081
|
+
_param = self._update_access_token_serialize(
|
|
3082
|
+
project_id=project_id,
|
|
3083
|
+
region_id=region_id,
|
|
3084
|
+
instance_id=instance_id,
|
|
3085
|
+
t_id=t_id,
|
|
3086
|
+
update_access_token_payload=update_access_token_payload,
|
|
3087
|
+
_request_auth=_request_auth,
|
|
3088
|
+
_content_type=_content_type,
|
|
3089
|
+
_headers=_headers,
|
|
3090
|
+
_host_index=_host_index,
|
|
3091
|
+
)
|
|
3092
|
+
|
|
3093
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3094
|
+
"204": None,
|
|
3095
|
+
"400": None,
|
|
3096
|
+
"401": "str",
|
|
3097
|
+
"404": None,
|
|
3098
|
+
"409": None,
|
|
3099
|
+
"500": None,
|
|
3100
|
+
}
|
|
3101
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
3102
|
+
return response_data.response
|
|
3103
|
+
|
|
3104
|
+
def _update_access_token_serialize(
|
|
3105
|
+
self,
|
|
3106
|
+
project_id,
|
|
3107
|
+
region_id,
|
|
3108
|
+
instance_id,
|
|
3109
|
+
t_id,
|
|
3110
|
+
update_access_token_payload,
|
|
3111
|
+
_request_auth,
|
|
3112
|
+
_content_type,
|
|
3113
|
+
_headers,
|
|
3114
|
+
_host_index,
|
|
3115
|
+
) -> RequestSerialized:
|
|
3116
|
+
|
|
3117
|
+
_host = None
|
|
3118
|
+
|
|
3119
|
+
_collection_formats: Dict[str, str] = {}
|
|
3120
|
+
|
|
3121
|
+
_path_params: Dict[str, str] = {}
|
|
3122
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3123
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3124
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3125
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
3126
|
+
_body_params: Optional[bytes] = None
|
|
3127
|
+
|
|
3128
|
+
# process the path parameters
|
|
3129
|
+
if project_id is not None:
|
|
3130
|
+
_path_params["projectId"] = project_id
|
|
3131
|
+
if region_id is not None:
|
|
3132
|
+
_path_params["regionId"] = region_id
|
|
3133
|
+
if instance_id is not None:
|
|
3134
|
+
_path_params["instanceId"] = instance_id
|
|
3135
|
+
if t_id is not None:
|
|
3136
|
+
_path_params["tId"] = t_id
|
|
3137
|
+
# process the query parameters
|
|
3138
|
+
# process the header parameters
|
|
3139
|
+
# process the form parameters
|
|
3140
|
+
# process the body parameter
|
|
3141
|
+
if update_access_token_payload is not None:
|
|
3142
|
+
_body_params = update_access_token_payload
|
|
3143
|
+
|
|
3144
|
+
# set the HTTP header `Accept`
|
|
3145
|
+
if "Accept" not in _header_params:
|
|
3146
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["text/plain"])
|
|
3147
|
+
|
|
3148
|
+
# set the HTTP header `Content-Type`
|
|
3149
|
+
if _content_type:
|
|
3150
|
+
_header_params["Content-Type"] = _content_type
|
|
3151
|
+
else:
|
|
3152
|
+
_default_content_type = self.api_client.select_header_content_type(["application/json"])
|
|
3153
|
+
if _default_content_type is not None:
|
|
3154
|
+
_header_params["Content-Type"] = _default_content_type
|
|
3155
|
+
|
|
3156
|
+
# authentication setting
|
|
3157
|
+
_auth_settings: List[str] = []
|
|
3158
|
+
|
|
3159
|
+
return self.api_client.param_serialize(
|
|
3160
|
+
method="PUT",
|
|
3161
|
+
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}",
|
|
3162
|
+
path_params=_path_params,
|
|
3163
|
+
query_params=_query_params,
|
|
3164
|
+
header_params=_header_params,
|
|
3165
|
+
body=_body_params,
|
|
3166
|
+
post_params=_form_params,
|
|
3167
|
+
files=_files,
|
|
3168
|
+
auth_settings=_auth_settings,
|
|
3169
|
+
collection_formats=_collection_formats,
|
|
3170
|
+
_host=_host,
|
|
3171
|
+
_request_auth=_request_auth,
|
|
3172
|
+
)
|
|
3173
|
+
|
|
3174
|
+
@validate_call
|
|
3175
|
+
def update_logs_instance(
|
|
3176
|
+
self,
|
|
3177
|
+
project_id: Annotated[
|
|
3178
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
3179
|
+
],
|
|
3180
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
3181
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
3182
|
+
update_logs_instance_payload: UpdateLogsInstancePayload,
|
|
3183
|
+
_request_timeout: Union[
|
|
3184
|
+
None,
|
|
3185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3186
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
3187
|
+
] = None,
|
|
3188
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3189
|
+
_content_type: Optional[StrictStr] = None,
|
|
3190
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3191
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3192
|
+
) -> LogsInstance:
|
|
3193
|
+
"""Update Logs instance
|
|
3194
|
+
|
|
3195
|
+
Updates the given Logs instance.
|
|
3196
|
+
|
|
3197
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
3198
|
+
:type project_id: str
|
|
3199
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
3200
|
+
:type region_id: str
|
|
3201
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
3202
|
+
:type instance_id: str
|
|
3203
|
+
:param update_logs_instance_payload: (required)
|
|
3204
|
+
:type update_logs_instance_payload: UpdateLogsInstancePayload
|
|
3205
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3206
|
+
number provided, it will be total request
|
|
3207
|
+
timeout. It can also be a pair (tuple) of
|
|
3208
|
+
(connection, read) timeouts.
|
|
3209
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3210
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3211
|
+
request; this effectively ignores the
|
|
3212
|
+
authentication in the spec for a single request.
|
|
3213
|
+
:type _request_auth: dict, optional
|
|
3214
|
+
:param _content_type: force content-type for the request.
|
|
3215
|
+
:type _content_type: str, Optional
|
|
3216
|
+
:param _headers: set to override the headers for a single
|
|
3217
|
+
request; this effectively ignores the headers
|
|
3218
|
+
in the spec for a single request.
|
|
3219
|
+
:type _headers: dict, optional
|
|
3220
|
+
:param _host_index: set to override the host_index for a single
|
|
3221
|
+
request; this effectively ignores the host_index
|
|
3222
|
+
in the spec for a single request.
|
|
3223
|
+
:type _host_index: int, optional
|
|
3224
|
+
:return: Returns the result object.
|
|
3225
|
+
""" # noqa: E501
|
|
3226
|
+
|
|
3227
|
+
_param = self._update_logs_instance_serialize(
|
|
3228
|
+
project_id=project_id,
|
|
3229
|
+
region_id=region_id,
|
|
3230
|
+
instance_id=instance_id,
|
|
3231
|
+
update_logs_instance_payload=update_logs_instance_payload,
|
|
3232
|
+
_request_auth=_request_auth,
|
|
3233
|
+
_content_type=_content_type,
|
|
3234
|
+
_headers=_headers,
|
|
3235
|
+
_host_index=_host_index,
|
|
3236
|
+
)
|
|
3237
|
+
|
|
3238
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3239
|
+
"200": "LogsInstance",
|
|
3240
|
+
"400": None,
|
|
3241
|
+
"401": "str",
|
|
3242
|
+
"404": None,
|
|
3243
|
+
"409": None,
|
|
3244
|
+
"500": None,
|
|
3245
|
+
}
|
|
3246
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
3247
|
+
response_data.read()
|
|
3248
|
+
return self.api_client.response_deserialize(
|
|
3249
|
+
response_data=response_data,
|
|
3250
|
+
response_types_map=_response_types_map,
|
|
3251
|
+
).data
|
|
3252
|
+
|
|
3253
|
+
@validate_call
|
|
3254
|
+
def update_logs_instance_with_http_info(
|
|
3255
|
+
self,
|
|
3256
|
+
project_id: Annotated[
|
|
3257
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
3258
|
+
],
|
|
3259
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
3260
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
3261
|
+
update_logs_instance_payload: UpdateLogsInstancePayload,
|
|
3262
|
+
_request_timeout: Union[
|
|
3263
|
+
None,
|
|
3264
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3265
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
3266
|
+
] = None,
|
|
3267
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3268
|
+
_content_type: Optional[StrictStr] = None,
|
|
3269
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3270
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3271
|
+
) -> ApiResponse[LogsInstance]:
|
|
3272
|
+
"""Update Logs instance
|
|
3273
|
+
|
|
3274
|
+
Updates the given Logs instance.
|
|
3275
|
+
|
|
3276
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
3277
|
+
:type project_id: str
|
|
3278
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
3279
|
+
:type region_id: str
|
|
3280
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
3281
|
+
:type instance_id: str
|
|
3282
|
+
:param update_logs_instance_payload: (required)
|
|
3283
|
+
:type update_logs_instance_payload: UpdateLogsInstancePayload
|
|
3284
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3285
|
+
number provided, it will be total request
|
|
3286
|
+
timeout. It can also be a pair (tuple) of
|
|
3287
|
+
(connection, read) timeouts.
|
|
3288
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3289
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3290
|
+
request; this effectively ignores the
|
|
3291
|
+
authentication in the spec for a single request.
|
|
3292
|
+
:type _request_auth: dict, optional
|
|
3293
|
+
:param _content_type: force content-type for the request.
|
|
3294
|
+
:type _content_type: str, Optional
|
|
3295
|
+
:param _headers: set to override the headers for a single
|
|
3296
|
+
request; this effectively ignores the headers
|
|
3297
|
+
in the spec for a single request.
|
|
3298
|
+
:type _headers: dict, optional
|
|
3299
|
+
:param _host_index: set to override the host_index for a single
|
|
3300
|
+
request; this effectively ignores the host_index
|
|
3301
|
+
in the spec for a single request.
|
|
3302
|
+
:type _host_index: int, optional
|
|
3303
|
+
:return: Returns the result object.
|
|
3304
|
+
""" # noqa: E501
|
|
3305
|
+
|
|
3306
|
+
_param = self._update_logs_instance_serialize(
|
|
3307
|
+
project_id=project_id,
|
|
3308
|
+
region_id=region_id,
|
|
3309
|
+
instance_id=instance_id,
|
|
3310
|
+
update_logs_instance_payload=update_logs_instance_payload,
|
|
3311
|
+
_request_auth=_request_auth,
|
|
3312
|
+
_content_type=_content_type,
|
|
3313
|
+
_headers=_headers,
|
|
3314
|
+
_host_index=_host_index,
|
|
3315
|
+
)
|
|
3316
|
+
|
|
3317
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3318
|
+
"200": "LogsInstance",
|
|
3319
|
+
"400": None,
|
|
3320
|
+
"401": "str",
|
|
3321
|
+
"404": None,
|
|
3322
|
+
"409": None,
|
|
3323
|
+
"500": None,
|
|
3324
|
+
}
|
|
3325
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
3326
|
+
response_data.read()
|
|
3327
|
+
return self.api_client.response_deserialize(
|
|
3328
|
+
response_data=response_data,
|
|
3329
|
+
response_types_map=_response_types_map,
|
|
3330
|
+
)
|
|
3331
|
+
|
|
3332
|
+
@validate_call
|
|
3333
|
+
def update_logs_instance_without_preload_content(
|
|
3334
|
+
self,
|
|
3335
|
+
project_id: Annotated[
|
|
3336
|
+
StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
|
|
3337
|
+
],
|
|
3338
|
+
region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
|
|
3339
|
+
instance_id: Annotated[StrictStr, Field(description="The Logs Instance UUID.")],
|
|
3340
|
+
update_logs_instance_payload: UpdateLogsInstancePayload,
|
|
3341
|
+
_request_timeout: Union[
|
|
3342
|
+
None,
|
|
3343
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3344
|
+
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
|
|
3345
|
+
] = None,
|
|
3346
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3347
|
+
_content_type: Optional[StrictStr] = None,
|
|
3348
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3349
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3350
|
+
) -> RESTResponseType:
|
|
3351
|
+
"""Update Logs instance
|
|
3352
|
+
|
|
3353
|
+
Updates the given Logs instance.
|
|
3354
|
+
|
|
3355
|
+
:param project_id: The STACKIT portal project UUID the resource is located in. (required)
|
|
3356
|
+
:type project_id: str
|
|
3357
|
+
:param region_id: The STACKIT region name the resource is located in. (required)
|
|
3358
|
+
:type region_id: str
|
|
3359
|
+
:param instance_id: The Logs Instance UUID. (required)
|
|
3360
|
+
:type instance_id: str
|
|
3361
|
+
:param update_logs_instance_payload: (required)
|
|
3362
|
+
:type update_logs_instance_payload: UpdateLogsInstancePayload
|
|
3363
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3364
|
+
number provided, it will be total request
|
|
3365
|
+
timeout. It can also be a pair (tuple) of
|
|
3366
|
+
(connection, read) timeouts.
|
|
3367
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3368
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3369
|
+
request; this effectively ignores the
|
|
3370
|
+
authentication in the spec for a single request.
|
|
3371
|
+
:type _request_auth: dict, optional
|
|
3372
|
+
:param _content_type: force content-type for the request.
|
|
3373
|
+
:type _content_type: str, Optional
|
|
3374
|
+
:param _headers: set to override the headers for a single
|
|
3375
|
+
request; this effectively ignores the headers
|
|
3376
|
+
in the spec for a single request.
|
|
3377
|
+
:type _headers: dict, optional
|
|
3378
|
+
:param _host_index: set to override the host_index for a single
|
|
3379
|
+
request; this effectively ignores the host_index
|
|
3380
|
+
in the spec for a single request.
|
|
3381
|
+
:type _host_index: int, optional
|
|
3382
|
+
:return: Returns the result object.
|
|
3383
|
+
""" # noqa: E501
|
|
3384
|
+
|
|
3385
|
+
_param = self._update_logs_instance_serialize(
|
|
3386
|
+
project_id=project_id,
|
|
3387
|
+
region_id=region_id,
|
|
3388
|
+
instance_id=instance_id,
|
|
3389
|
+
update_logs_instance_payload=update_logs_instance_payload,
|
|
3390
|
+
_request_auth=_request_auth,
|
|
3391
|
+
_content_type=_content_type,
|
|
3392
|
+
_headers=_headers,
|
|
3393
|
+
_host_index=_host_index,
|
|
3394
|
+
)
|
|
3395
|
+
|
|
3396
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3397
|
+
"200": "LogsInstance",
|
|
3398
|
+
"400": None,
|
|
3399
|
+
"401": "str",
|
|
3400
|
+
"404": None,
|
|
3401
|
+
"409": None,
|
|
3402
|
+
"500": None,
|
|
3403
|
+
}
|
|
3404
|
+
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
3405
|
+
return response_data.response
|
|
3406
|
+
|
|
3407
|
+
def _update_logs_instance_serialize(
|
|
3408
|
+
self,
|
|
3409
|
+
project_id,
|
|
3410
|
+
region_id,
|
|
3411
|
+
instance_id,
|
|
3412
|
+
update_logs_instance_payload,
|
|
3413
|
+
_request_auth,
|
|
3414
|
+
_content_type,
|
|
3415
|
+
_headers,
|
|
3416
|
+
_host_index,
|
|
3417
|
+
) -> RequestSerialized:
|
|
3418
|
+
|
|
3419
|
+
_host = None
|
|
3420
|
+
|
|
3421
|
+
_collection_formats: Dict[str, str] = {}
|
|
3422
|
+
|
|
3423
|
+
_path_params: Dict[str, str] = {}
|
|
3424
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3425
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3426
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3427
|
+
_files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
|
|
3428
|
+
_body_params: Optional[bytes] = None
|
|
3429
|
+
|
|
3430
|
+
# process the path parameters
|
|
3431
|
+
if project_id is not None:
|
|
3432
|
+
_path_params["projectId"] = project_id
|
|
3433
|
+
if region_id is not None:
|
|
3434
|
+
_path_params["regionId"] = region_id
|
|
3435
|
+
if instance_id is not None:
|
|
3436
|
+
_path_params["instanceId"] = instance_id
|
|
3437
|
+
# process the query parameters
|
|
3438
|
+
# process the header parameters
|
|
3439
|
+
# process the form parameters
|
|
3440
|
+
# process the body parameter
|
|
3441
|
+
if update_logs_instance_payload is not None:
|
|
3442
|
+
_body_params = update_logs_instance_payload
|
|
3443
|
+
|
|
3444
|
+
# set the HTTP header `Accept`
|
|
3445
|
+
if "Accept" not in _header_params:
|
|
3446
|
+
_header_params["Accept"] = self.api_client.select_header_accept(["application/json", "text/plain"])
|
|
3447
|
+
|
|
3448
|
+
# set the HTTP header `Content-Type`
|
|
3449
|
+
if _content_type:
|
|
3450
|
+
_header_params["Content-Type"] = _content_type
|
|
3451
|
+
else:
|
|
3452
|
+
_default_content_type = self.api_client.select_header_content_type(["application/json"])
|
|
3453
|
+
if _default_content_type is not None:
|
|
3454
|
+
_header_params["Content-Type"] = _default_content_type
|
|
3455
|
+
|
|
3456
|
+
# authentication setting
|
|
3457
|
+
_auth_settings: List[str] = []
|
|
3458
|
+
|
|
3459
|
+
return self.api_client.param_serialize(
|
|
3460
|
+
method="PUT",
|
|
3461
|
+
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
3462
|
+
path_params=_path_params,
|
|
3463
|
+
query_params=_query_params,
|
|
3464
|
+
header_params=_header_params,
|
|
3465
|
+
body=_body_params,
|
|
3466
|
+
post_params=_form_params,
|
|
3467
|
+
files=_files,
|
|
3468
|
+
auth_settings=_auth_settings,
|
|
3469
|
+
collection_formats=_collection_formats,
|
|
3470
|
+
_host=_host,
|
|
3471
|
+
_request_auth=_request_auth,
|
|
3472
|
+
)
|