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