stackit-intake 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.
Files changed (36) hide show
  1. stackit/intake/__init__.py +115 -0
  2. stackit/intake/api/__init__.py +4 -0
  3. stackit/intake/api/default_api.py +4461 -0
  4. stackit/intake/api_client.py +639 -0
  5. stackit/intake/api_response.py +23 -0
  6. stackit/intake/configuration.py +164 -0
  7. stackit/intake/exceptions.py +217 -0
  8. stackit/intake/models/__init__.py +37 -0
  9. stackit/intake/models/catalog_auth.py +93 -0
  10. stackit/intake/models/catalog_auth_patch.py +93 -0
  11. stackit/intake/models/catalog_auth_type.py +36 -0
  12. stackit/intake/models/client_config.py +82 -0
  13. stackit/intake/models/create_intake_payload.py +112 -0
  14. stackit/intake/models/create_intake_runner_payload.py +115 -0
  15. stackit/intake/models/create_intake_user_payload.py +107 -0
  16. stackit/intake/models/dremio_auth.py +88 -0
  17. stackit/intake/models/dremio_auth_patch.py +88 -0
  18. stackit/intake/models/intake_catalog.py +118 -0
  19. stackit/intake/models/intake_catalog_patch.py +110 -0
  20. stackit/intake/models/intake_response.py +158 -0
  21. stackit/intake/models/intake_runner_response.py +135 -0
  22. stackit/intake/models/intake_user_response.py +139 -0
  23. stackit/intake/models/list_intake_runners_response.py +102 -0
  24. stackit/intake/models/list_intake_users_response.py +102 -0
  25. stackit/intake/models/list_intakes_response.py +102 -0
  26. stackit/intake/models/update_intake_payload.py +115 -0
  27. stackit/intake/models/update_intake_runner_payload.py +118 -0
  28. stackit/intake/models/update_intake_user_payload.py +112 -0
  29. stackit/intake/models/user_type.py +36 -0
  30. stackit/intake/py.typed +0 -0
  31. stackit/intake/rest.py +148 -0
  32. stackit_intake-0.1.0.dist-info/LICENSE.md +201 -0
  33. stackit_intake-0.1.0.dist-info/METADATA +46 -0
  34. stackit_intake-0.1.0.dist-info/NOTICE.txt +2 -0
  35. stackit_intake-0.1.0.dist-info/RECORD +36 -0
  36. stackit_intake-0.1.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,4461 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT Intake API
5
+
6
+ This API provides endpoints for managing Intakes.
7
+
8
+ The version of the OpenAPI document: 1beta.2.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
+
16
+ from pydantic import (
17
+ Field,
18
+ StrictBool,
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.intake.api_client import ApiClient, RequestSerialized
28
+ from stackit.intake.api_response import ApiResponse
29
+ from stackit.intake.models.create_intake_payload import CreateIntakePayload
30
+ from stackit.intake.models.create_intake_runner_payload import CreateIntakeRunnerPayload
31
+ from stackit.intake.models.create_intake_user_payload import CreateIntakeUserPayload
32
+ from stackit.intake.models.intake_response import IntakeResponse
33
+ from stackit.intake.models.intake_runner_response import IntakeRunnerResponse
34
+ from stackit.intake.models.intake_user_response import IntakeUserResponse
35
+ from stackit.intake.models.list_intake_runners_response import ListIntakeRunnersResponse
36
+ from stackit.intake.models.list_intake_users_response import ListIntakeUsersResponse
37
+ from stackit.intake.models.list_intakes_response import ListIntakesResponse
38
+ from stackit.intake.models.update_intake_payload import UpdateIntakePayload
39
+ from stackit.intake.models.update_intake_runner_payload import UpdateIntakeRunnerPayload
40
+ from stackit.intake.models.update_intake_user_payload import UpdateIntakeUserPayload
41
+ from stackit.intake.rest import RESTResponseType
42
+
43
+
44
+ class DefaultApi:
45
+ """NOTE: This class is auto generated by OpenAPI Generator
46
+ Ref: https://openapi-generator.tech
47
+
48
+ Do not edit the class manually.
49
+ """
50
+
51
+ def __init__(self, configuration: Configuration = None) -> None:
52
+ if configuration is None:
53
+ configuration = Configuration()
54
+ self.configuration = configuration
55
+ self.api_client = ApiClient(self.configuration)
56
+
57
+ @validate_call
58
+ def create_intake(
59
+ self,
60
+ project_id: Annotated[
61
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
62
+ ],
63
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
64
+ create_intake_payload: CreateIntakePayload,
65
+ _request_timeout: Union[
66
+ None,
67
+ Annotated[StrictFloat, Field(gt=0)],
68
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
69
+ ] = None,
70
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
71
+ _content_type: Optional[StrictStr] = None,
72
+ _headers: Optional[Dict[StrictStr, Any]] = None,
73
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
74
+ ) -> IntakeResponse:
75
+ """create_intake
76
+
77
+ Creates a new intake within the project.
78
+
79
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
80
+ :type project_id: str
81
+ :param region_id: The STACKIT region name the resource is located in. (required)
82
+ :type region_id: str
83
+ :param create_intake_payload: (required)
84
+ :type create_intake_payload: CreateIntakePayload
85
+ :param _request_timeout: timeout setting for this request. If one
86
+ number provided, it will be total request
87
+ timeout. It can also be a pair (tuple) of
88
+ (connection, read) timeouts.
89
+ :type _request_timeout: int, tuple(int, int), optional
90
+ :param _request_auth: set to override the auth_settings for an a single
91
+ request; this effectively ignores the
92
+ authentication in the spec for a single request.
93
+ :type _request_auth: dict, optional
94
+ :param _content_type: force content-type for the request.
95
+ :type _content_type: str, Optional
96
+ :param _headers: set to override the headers for a single
97
+ request; this effectively ignores the headers
98
+ in the spec for a single request.
99
+ :type _headers: dict, optional
100
+ :param _host_index: set to override the host_index for a single
101
+ request; this effectively ignores the host_index
102
+ in the spec for a single request.
103
+ :type _host_index: int, optional
104
+ :return: Returns the result object.
105
+ """ # noqa: E501
106
+
107
+ _param = self._create_intake_serialize(
108
+ project_id=project_id,
109
+ region_id=region_id,
110
+ create_intake_payload=create_intake_payload,
111
+ _request_auth=_request_auth,
112
+ _content_type=_content_type,
113
+ _headers=_headers,
114
+ _host_index=_host_index,
115
+ )
116
+
117
+ _response_types_map: Dict[str, Optional[str]] = {
118
+ "201": "IntakeResponse",
119
+ "400": None,
120
+ "401": None,
121
+ "409": None,
122
+ "500": None,
123
+ }
124
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
125
+ response_data.read()
126
+ return self.api_client.response_deserialize(
127
+ response_data=response_data,
128
+ response_types_map=_response_types_map,
129
+ ).data
130
+
131
+ @validate_call
132
+ def create_intake_with_http_info(
133
+ self,
134
+ project_id: Annotated[
135
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
136
+ ],
137
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
138
+ create_intake_payload: CreateIntakePayload,
139
+ _request_timeout: Union[
140
+ None,
141
+ Annotated[StrictFloat, Field(gt=0)],
142
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
143
+ ] = None,
144
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
145
+ _content_type: Optional[StrictStr] = None,
146
+ _headers: Optional[Dict[StrictStr, Any]] = None,
147
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
148
+ ) -> ApiResponse[IntakeResponse]:
149
+ """create_intake
150
+
151
+ Creates a new intake within the project.
152
+
153
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
154
+ :type project_id: str
155
+ :param region_id: The STACKIT region name the resource is located in. (required)
156
+ :type region_id: str
157
+ :param create_intake_payload: (required)
158
+ :type create_intake_payload: CreateIntakePayload
159
+ :param _request_timeout: timeout setting for this request. If one
160
+ number provided, it will be total request
161
+ timeout. It can also be a pair (tuple) of
162
+ (connection, read) timeouts.
163
+ :type _request_timeout: int, tuple(int, int), optional
164
+ :param _request_auth: set to override the auth_settings for an a single
165
+ request; this effectively ignores the
166
+ authentication in the spec for a single request.
167
+ :type _request_auth: dict, optional
168
+ :param _content_type: force content-type for the request.
169
+ :type _content_type: str, Optional
170
+ :param _headers: set to override the headers for a single
171
+ request; this effectively ignores the headers
172
+ in the spec for a single request.
173
+ :type _headers: dict, optional
174
+ :param _host_index: set to override the host_index for a single
175
+ request; this effectively ignores the host_index
176
+ in the spec for a single request.
177
+ :type _host_index: int, optional
178
+ :return: Returns the result object.
179
+ """ # noqa: E501
180
+
181
+ _param = self._create_intake_serialize(
182
+ project_id=project_id,
183
+ region_id=region_id,
184
+ create_intake_payload=create_intake_payload,
185
+ _request_auth=_request_auth,
186
+ _content_type=_content_type,
187
+ _headers=_headers,
188
+ _host_index=_host_index,
189
+ )
190
+
191
+ _response_types_map: Dict[str, Optional[str]] = {
192
+ "201": "IntakeResponse",
193
+ "400": None,
194
+ "401": None,
195
+ "409": None,
196
+ "500": None,
197
+ }
198
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
199
+ response_data.read()
200
+ return self.api_client.response_deserialize(
201
+ response_data=response_data,
202
+ response_types_map=_response_types_map,
203
+ )
204
+
205
+ @validate_call
206
+ def create_intake_without_preload_content(
207
+ self,
208
+ project_id: Annotated[
209
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
210
+ ],
211
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
212
+ create_intake_payload: CreateIntakePayload,
213
+ _request_timeout: Union[
214
+ None,
215
+ Annotated[StrictFloat, Field(gt=0)],
216
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
217
+ ] = None,
218
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
219
+ _content_type: Optional[StrictStr] = None,
220
+ _headers: Optional[Dict[StrictStr, Any]] = None,
221
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
222
+ ) -> RESTResponseType:
223
+ """create_intake
224
+
225
+ Creates a new intake within the project.
226
+
227
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
228
+ :type project_id: str
229
+ :param region_id: The STACKIT region name the resource is located in. (required)
230
+ :type region_id: str
231
+ :param create_intake_payload: (required)
232
+ :type create_intake_payload: CreateIntakePayload
233
+ :param _request_timeout: timeout setting for this request. If one
234
+ number provided, it will be total request
235
+ timeout. It can also be a pair (tuple) of
236
+ (connection, read) timeouts.
237
+ :type _request_timeout: int, tuple(int, int), optional
238
+ :param _request_auth: set to override the auth_settings for an a single
239
+ request; this effectively ignores the
240
+ authentication in the spec for a single request.
241
+ :type _request_auth: dict, optional
242
+ :param _content_type: force content-type for the request.
243
+ :type _content_type: str, Optional
244
+ :param _headers: set to override the headers for a single
245
+ request; this effectively ignores the headers
246
+ in the spec for a single request.
247
+ :type _headers: dict, optional
248
+ :param _host_index: set to override the host_index for a single
249
+ request; this effectively ignores the host_index
250
+ in the spec for a single request.
251
+ :type _host_index: int, optional
252
+ :return: Returns the result object.
253
+ """ # noqa: E501
254
+
255
+ _param = self._create_intake_serialize(
256
+ project_id=project_id,
257
+ region_id=region_id,
258
+ create_intake_payload=create_intake_payload,
259
+ _request_auth=_request_auth,
260
+ _content_type=_content_type,
261
+ _headers=_headers,
262
+ _host_index=_host_index,
263
+ )
264
+
265
+ _response_types_map: Dict[str, Optional[str]] = {
266
+ "201": "IntakeResponse",
267
+ "400": None,
268
+ "401": None,
269
+ "409": None,
270
+ "500": None,
271
+ }
272
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
273
+ return response_data.response
274
+
275
+ def _create_intake_serialize(
276
+ self,
277
+ project_id,
278
+ region_id,
279
+ create_intake_payload,
280
+ _request_auth,
281
+ _content_type,
282
+ _headers,
283
+ _host_index,
284
+ ) -> RequestSerialized:
285
+
286
+ _host = None
287
+
288
+ _collection_formats: Dict[str, str] = {}
289
+
290
+ _path_params: Dict[str, str] = {}
291
+ _query_params: List[Tuple[str, str]] = []
292
+ _header_params: Dict[str, Optional[str]] = _headers or {}
293
+ _form_params: List[Tuple[str, str]] = []
294
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
295
+ _body_params: Optional[bytes] = None
296
+
297
+ # process the path parameters
298
+ if project_id is not None:
299
+ _path_params["projectId"] = project_id
300
+ if region_id is not None:
301
+ _path_params["regionId"] = region_id
302
+ # process the query parameters
303
+ # process the header parameters
304
+ # process the form parameters
305
+ # process the body parameter
306
+ if create_intake_payload is not None:
307
+ _body_params = create_intake_payload
308
+
309
+ # set the HTTP header `Accept`
310
+ if "Accept" not in _header_params:
311
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
312
+
313
+ # set the HTTP header `Content-Type`
314
+ if _content_type:
315
+ _header_params["Content-Type"] = _content_type
316
+ else:
317
+ _default_content_type = self.api_client.select_header_content_type(["application/json"])
318
+ if _default_content_type is not None:
319
+ _header_params["Content-Type"] = _default_content_type
320
+
321
+ # authentication setting
322
+ _auth_settings: List[str] = []
323
+
324
+ return self.api_client.param_serialize(
325
+ method="POST",
326
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intakes",
327
+ path_params=_path_params,
328
+ query_params=_query_params,
329
+ header_params=_header_params,
330
+ body=_body_params,
331
+ post_params=_form_params,
332
+ files=_files,
333
+ auth_settings=_auth_settings,
334
+ collection_formats=_collection_formats,
335
+ _host=_host,
336
+ _request_auth=_request_auth,
337
+ )
338
+
339
+ @validate_call
340
+ def create_intake_runner(
341
+ self,
342
+ project_id: Annotated[
343
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
344
+ ],
345
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
346
+ create_intake_runner_payload: CreateIntakeRunnerPayload,
347
+ _request_timeout: Union[
348
+ None,
349
+ Annotated[StrictFloat, Field(gt=0)],
350
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
351
+ ] = None,
352
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
353
+ _content_type: Optional[StrictStr] = None,
354
+ _headers: Optional[Dict[StrictStr, Any]] = None,
355
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
356
+ ) -> IntakeRunnerResponse:
357
+ """create_intake_runner
358
+
359
+ Creates a new intake runner within the project.
360
+
361
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
362
+ :type project_id: str
363
+ :param region_id: The STACKIT region name the resource is located in. (required)
364
+ :type region_id: str
365
+ :param create_intake_runner_payload: (required)
366
+ :type create_intake_runner_payload: CreateIntakeRunnerPayload
367
+ :param _request_timeout: timeout setting for this request. If one
368
+ number provided, it will be total request
369
+ timeout. It can also be a pair (tuple) of
370
+ (connection, read) timeouts.
371
+ :type _request_timeout: int, tuple(int, int), optional
372
+ :param _request_auth: set to override the auth_settings for an a single
373
+ request; this effectively ignores the
374
+ authentication in the spec for a single request.
375
+ :type _request_auth: dict, optional
376
+ :param _content_type: force content-type for the request.
377
+ :type _content_type: str, Optional
378
+ :param _headers: set to override the headers for a single
379
+ request; this effectively ignores the headers
380
+ in the spec for a single request.
381
+ :type _headers: dict, optional
382
+ :param _host_index: set to override the host_index for a single
383
+ request; this effectively ignores the host_index
384
+ in the spec for a single request.
385
+ :type _host_index: int, optional
386
+ :return: Returns the result object.
387
+ """ # noqa: E501
388
+
389
+ _param = self._create_intake_runner_serialize(
390
+ project_id=project_id,
391
+ region_id=region_id,
392
+ create_intake_runner_payload=create_intake_runner_payload,
393
+ _request_auth=_request_auth,
394
+ _content_type=_content_type,
395
+ _headers=_headers,
396
+ _host_index=_host_index,
397
+ )
398
+
399
+ _response_types_map: Dict[str, Optional[str]] = {
400
+ "201": "IntakeRunnerResponse",
401
+ "400": None,
402
+ "401": None,
403
+ "409": None,
404
+ "500": None,
405
+ }
406
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
407
+ response_data.read()
408
+ return self.api_client.response_deserialize(
409
+ response_data=response_data,
410
+ response_types_map=_response_types_map,
411
+ ).data
412
+
413
+ @validate_call
414
+ def create_intake_runner_with_http_info(
415
+ self,
416
+ project_id: Annotated[
417
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
418
+ ],
419
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
420
+ create_intake_runner_payload: CreateIntakeRunnerPayload,
421
+ _request_timeout: Union[
422
+ None,
423
+ Annotated[StrictFloat, Field(gt=0)],
424
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
425
+ ] = None,
426
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
427
+ _content_type: Optional[StrictStr] = None,
428
+ _headers: Optional[Dict[StrictStr, Any]] = None,
429
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
430
+ ) -> ApiResponse[IntakeRunnerResponse]:
431
+ """create_intake_runner
432
+
433
+ Creates a new intake runner within the project.
434
+
435
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
436
+ :type project_id: str
437
+ :param region_id: The STACKIT region name the resource is located in. (required)
438
+ :type region_id: str
439
+ :param create_intake_runner_payload: (required)
440
+ :type create_intake_runner_payload: CreateIntakeRunnerPayload
441
+ :param _request_timeout: timeout setting for this request. If one
442
+ number provided, it will be total request
443
+ timeout. It can also be a pair (tuple) of
444
+ (connection, read) timeouts.
445
+ :type _request_timeout: int, tuple(int, int), optional
446
+ :param _request_auth: set to override the auth_settings for an a single
447
+ request; this effectively ignores the
448
+ authentication in the spec for a single request.
449
+ :type _request_auth: dict, optional
450
+ :param _content_type: force content-type for the request.
451
+ :type _content_type: str, Optional
452
+ :param _headers: set to override the headers for a single
453
+ request; this effectively ignores the headers
454
+ in the spec for a single request.
455
+ :type _headers: dict, optional
456
+ :param _host_index: set to override the host_index for a single
457
+ request; this effectively ignores the host_index
458
+ in the spec for a single request.
459
+ :type _host_index: int, optional
460
+ :return: Returns the result object.
461
+ """ # noqa: E501
462
+
463
+ _param = self._create_intake_runner_serialize(
464
+ project_id=project_id,
465
+ region_id=region_id,
466
+ create_intake_runner_payload=create_intake_runner_payload,
467
+ _request_auth=_request_auth,
468
+ _content_type=_content_type,
469
+ _headers=_headers,
470
+ _host_index=_host_index,
471
+ )
472
+
473
+ _response_types_map: Dict[str, Optional[str]] = {
474
+ "201": "IntakeRunnerResponse",
475
+ "400": None,
476
+ "401": None,
477
+ "409": None,
478
+ "500": None,
479
+ }
480
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
481
+ response_data.read()
482
+ return self.api_client.response_deserialize(
483
+ response_data=response_data,
484
+ response_types_map=_response_types_map,
485
+ )
486
+
487
+ @validate_call
488
+ def create_intake_runner_without_preload_content(
489
+ self,
490
+ project_id: Annotated[
491
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
492
+ ],
493
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
494
+ create_intake_runner_payload: CreateIntakeRunnerPayload,
495
+ _request_timeout: Union[
496
+ None,
497
+ Annotated[StrictFloat, Field(gt=0)],
498
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
499
+ ] = None,
500
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
501
+ _content_type: Optional[StrictStr] = None,
502
+ _headers: Optional[Dict[StrictStr, Any]] = None,
503
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
504
+ ) -> RESTResponseType:
505
+ """create_intake_runner
506
+
507
+ Creates a new intake runner within the project.
508
+
509
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
510
+ :type project_id: str
511
+ :param region_id: The STACKIT region name the resource is located in. (required)
512
+ :type region_id: str
513
+ :param create_intake_runner_payload: (required)
514
+ :type create_intake_runner_payload: CreateIntakeRunnerPayload
515
+ :param _request_timeout: timeout setting for this request. If one
516
+ number provided, it will be total request
517
+ timeout. It can also be a pair (tuple) of
518
+ (connection, read) timeouts.
519
+ :type _request_timeout: int, tuple(int, int), optional
520
+ :param _request_auth: set to override the auth_settings for an a single
521
+ request; this effectively ignores the
522
+ authentication in the spec for a single request.
523
+ :type _request_auth: dict, optional
524
+ :param _content_type: force content-type for the request.
525
+ :type _content_type: str, Optional
526
+ :param _headers: set to override the headers for a single
527
+ request; this effectively ignores the headers
528
+ in the spec for a single request.
529
+ :type _headers: dict, optional
530
+ :param _host_index: set to override the host_index for a single
531
+ request; this effectively ignores the host_index
532
+ in the spec for a single request.
533
+ :type _host_index: int, optional
534
+ :return: Returns the result object.
535
+ """ # noqa: E501
536
+
537
+ _param = self._create_intake_runner_serialize(
538
+ project_id=project_id,
539
+ region_id=region_id,
540
+ create_intake_runner_payload=create_intake_runner_payload,
541
+ _request_auth=_request_auth,
542
+ _content_type=_content_type,
543
+ _headers=_headers,
544
+ _host_index=_host_index,
545
+ )
546
+
547
+ _response_types_map: Dict[str, Optional[str]] = {
548
+ "201": "IntakeRunnerResponse",
549
+ "400": None,
550
+ "401": None,
551
+ "409": None,
552
+ "500": None,
553
+ }
554
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
555
+ return response_data.response
556
+
557
+ def _create_intake_runner_serialize(
558
+ self,
559
+ project_id,
560
+ region_id,
561
+ create_intake_runner_payload,
562
+ _request_auth,
563
+ _content_type,
564
+ _headers,
565
+ _host_index,
566
+ ) -> RequestSerialized:
567
+
568
+ _host = None
569
+
570
+ _collection_formats: Dict[str, str] = {}
571
+
572
+ _path_params: Dict[str, str] = {}
573
+ _query_params: List[Tuple[str, str]] = []
574
+ _header_params: Dict[str, Optional[str]] = _headers or {}
575
+ _form_params: List[Tuple[str, str]] = []
576
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
577
+ _body_params: Optional[bytes] = None
578
+
579
+ # process the path parameters
580
+ if project_id is not None:
581
+ _path_params["projectId"] = project_id
582
+ if region_id is not None:
583
+ _path_params["regionId"] = region_id
584
+ # process the query parameters
585
+ # process the header parameters
586
+ # process the form parameters
587
+ # process the body parameter
588
+ if create_intake_runner_payload is not None:
589
+ _body_params = create_intake_runner_payload
590
+
591
+ # set the HTTP header `Accept`
592
+ if "Accept" not in _header_params:
593
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
594
+
595
+ # set the HTTP header `Content-Type`
596
+ if _content_type:
597
+ _header_params["Content-Type"] = _content_type
598
+ else:
599
+ _default_content_type = self.api_client.select_header_content_type(["application/json"])
600
+ if _default_content_type is not None:
601
+ _header_params["Content-Type"] = _default_content_type
602
+
603
+ # authentication setting
604
+ _auth_settings: List[str] = []
605
+
606
+ return self.api_client.param_serialize(
607
+ method="POST",
608
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intake-runners",
609
+ path_params=_path_params,
610
+ query_params=_query_params,
611
+ header_params=_header_params,
612
+ body=_body_params,
613
+ post_params=_form_params,
614
+ files=_files,
615
+ auth_settings=_auth_settings,
616
+ collection_formats=_collection_formats,
617
+ _host=_host,
618
+ _request_auth=_request_auth,
619
+ )
620
+
621
+ @validate_call
622
+ def create_intake_user(
623
+ self,
624
+ project_id: Annotated[
625
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
626
+ ],
627
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
628
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
629
+ create_intake_user_payload: CreateIntakeUserPayload,
630
+ _request_timeout: Union[
631
+ None,
632
+ Annotated[StrictFloat, Field(gt=0)],
633
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
634
+ ] = None,
635
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
636
+ _content_type: Optional[StrictStr] = None,
637
+ _headers: Optional[Dict[StrictStr, Any]] = None,
638
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
639
+ ) -> IntakeUserResponse:
640
+ """create_intake_user
641
+
642
+ Creates a new user for this intake.
643
+
644
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
645
+ :type project_id: str
646
+ :param region_id: The STACKIT region name the resource is located in. (required)
647
+ :type region_id: str
648
+ :param intake_id: The intake UUID. (required)
649
+ :type intake_id: str
650
+ :param create_intake_user_payload: (required)
651
+ :type create_intake_user_payload: CreateIntakeUserPayload
652
+ :param _request_timeout: timeout setting for this request. If one
653
+ number provided, it will be total request
654
+ timeout. It can also be a pair (tuple) of
655
+ (connection, read) timeouts.
656
+ :type _request_timeout: int, tuple(int, int), optional
657
+ :param _request_auth: set to override the auth_settings for an a single
658
+ request; this effectively ignores the
659
+ authentication in the spec for a single request.
660
+ :type _request_auth: dict, optional
661
+ :param _content_type: force content-type for the request.
662
+ :type _content_type: str, Optional
663
+ :param _headers: set to override the headers for a single
664
+ request; this effectively ignores the headers
665
+ in the spec for a single request.
666
+ :type _headers: dict, optional
667
+ :param _host_index: set to override the host_index for a single
668
+ request; this effectively ignores the host_index
669
+ in the spec for a single request.
670
+ :type _host_index: int, optional
671
+ :return: Returns the result object.
672
+ """ # noqa: E501
673
+
674
+ _param = self._create_intake_user_serialize(
675
+ project_id=project_id,
676
+ region_id=region_id,
677
+ intake_id=intake_id,
678
+ create_intake_user_payload=create_intake_user_payload,
679
+ _request_auth=_request_auth,
680
+ _content_type=_content_type,
681
+ _headers=_headers,
682
+ _host_index=_host_index,
683
+ )
684
+
685
+ _response_types_map: Dict[str, Optional[str]] = {
686
+ "201": "IntakeUserResponse",
687
+ "400": None,
688
+ "401": None,
689
+ "409": None,
690
+ "500": None,
691
+ }
692
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
693
+ response_data.read()
694
+ return self.api_client.response_deserialize(
695
+ response_data=response_data,
696
+ response_types_map=_response_types_map,
697
+ ).data
698
+
699
+ @validate_call
700
+ def create_intake_user_with_http_info(
701
+ self,
702
+ project_id: Annotated[
703
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
704
+ ],
705
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
706
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
707
+ create_intake_user_payload: CreateIntakeUserPayload,
708
+ _request_timeout: Union[
709
+ None,
710
+ Annotated[StrictFloat, Field(gt=0)],
711
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
712
+ ] = None,
713
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
714
+ _content_type: Optional[StrictStr] = None,
715
+ _headers: Optional[Dict[StrictStr, Any]] = None,
716
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
717
+ ) -> ApiResponse[IntakeUserResponse]:
718
+ """create_intake_user
719
+
720
+ Creates a new user for this intake.
721
+
722
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
723
+ :type project_id: str
724
+ :param region_id: The STACKIT region name the resource is located in. (required)
725
+ :type region_id: str
726
+ :param intake_id: The intake UUID. (required)
727
+ :type intake_id: str
728
+ :param create_intake_user_payload: (required)
729
+ :type create_intake_user_payload: CreateIntakeUserPayload
730
+ :param _request_timeout: timeout setting for this request. If one
731
+ number provided, it will be total request
732
+ timeout. It can also be a pair (tuple) of
733
+ (connection, read) timeouts.
734
+ :type _request_timeout: int, tuple(int, int), optional
735
+ :param _request_auth: set to override the auth_settings for an a single
736
+ request; this effectively ignores the
737
+ authentication in the spec for a single request.
738
+ :type _request_auth: dict, optional
739
+ :param _content_type: force content-type for the request.
740
+ :type _content_type: str, Optional
741
+ :param _headers: set to override the headers for a single
742
+ request; this effectively ignores the headers
743
+ in the spec for a single request.
744
+ :type _headers: dict, optional
745
+ :param _host_index: set to override the host_index for a single
746
+ request; this effectively ignores the host_index
747
+ in the spec for a single request.
748
+ :type _host_index: int, optional
749
+ :return: Returns the result object.
750
+ """ # noqa: E501
751
+
752
+ _param = self._create_intake_user_serialize(
753
+ project_id=project_id,
754
+ region_id=region_id,
755
+ intake_id=intake_id,
756
+ create_intake_user_payload=create_intake_user_payload,
757
+ _request_auth=_request_auth,
758
+ _content_type=_content_type,
759
+ _headers=_headers,
760
+ _host_index=_host_index,
761
+ )
762
+
763
+ _response_types_map: Dict[str, Optional[str]] = {
764
+ "201": "IntakeUserResponse",
765
+ "400": None,
766
+ "401": None,
767
+ "409": None,
768
+ "500": None,
769
+ }
770
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
771
+ response_data.read()
772
+ return self.api_client.response_deserialize(
773
+ response_data=response_data,
774
+ response_types_map=_response_types_map,
775
+ )
776
+
777
+ @validate_call
778
+ def create_intake_user_without_preload_content(
779
+ self,
780
+ project_id: Annotated[
781
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
782
+ ],
783
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
784
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
785
+ create_intake_user_payload: CreateIntakeUserPayload,
786
+ _request_timeout: Union[
787
+ None,
788
+ Annotated[StrictFloat, Field(gt=0)],
789
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
790
+ ] = None,
791
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
792
+ _content_type: Optional[StrictStr] = None,
793
+ _headers: Optional[Dict[StrictStr, Any]] = None,
794
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
795
+ ) -> RESTResponseType:
796
+ """create_intake_user
797
+
798
+ Creates a new user for this intake.
799
+
800
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
801
+ :type project_id: str
802
+ :param region_id: The STACKIT region name the resource is located in. (required)
803
+ :type region_id: str
804
+ :param intake_id: The intake UUID. (required)
805
+ :type intake_id: str
806
+ :param create_intake_user_payload: (required)
807
+ :type create_intake_user_payload: CreateIntakeUserPayload
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_intake_user_serialize(
831
+ project_id=project_id,
832
+ region_id=region_id,
833
+ intake_id=intake_id,
834
+ create_intake_user_payload=create_intake_user_payload,
835
+ _request_auth=_request_auth,
836
+ _content_type=_content_type,
837
+ _headers=_headers,
838
+ _host_index=_host_index,
839
+ )
840
+
841
+ _response_types_map: Dict[str, Optional[str]] = {
842
+ "201": "IntakeUserResponse",
843
+ "400": None,
844
+ "401": None,
845
+ "409": None,
846
+ "500": None,
847
+ }
848
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
849
+ return response_data.response
850
+
851
+ def _create_intake_user_serialize(
852
+ self,
853
+ project_id,
854
+ region_id,
855
+ intake_id,
856
+ create_intake_user_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
+ if intake_id is not None:
880
+ _path_params["intakeId"] = intake_id
881
+ # process the query parameters
882
+ # process the header parameters
883
+ # process the form parameters
884
+ # process the body parameter
885
+ if create_intake_user_payload is not None:
886
+ _body_params = create_intake_user_payload
887
+
888
+ # set the HTTP header `Accept`
889
+ if "Accept" not in _header_params:
890
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
891
+
892
+ # set the HTTP header `Content-Type`
893
+ if _content_type:
894
+ _header_params["Content-Type"] = _content_type
895
+ else:
896
+ _default_content_type = self.api_client.select_header_content_type(["application/json"])
897
+ if _default_content_type is not None:
898
+ _header_params["Content-Type"] = _default_content_type
899
+
900
+ # authentication setting
901
+ _auth_settings: List[str] = []
902
+
903
+ return self.api_client.param_serialize(
904
+ method="POST",
905
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users",
906
+ path_params=_path_params,
907
+ query_params=_query_params,
908
+ header_params=_header_params,
909
+ body=_body_params,
910
+ post_params=_form_params,
911
+ files=_files,
912
+ auth_settings=_auth_settings,
913
+ collection_formats=_collection_formats,
914
+ _host=_host,
915
+ _request_auth=_request_auth,
916
+ )
917
+
918
+ @validate_call
919
+ def delete_intake(
920
+ self,
921
+ project_id: Annotated[
922
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
923
+ ],
924
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
925
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
926
+ force: Annotated[
927
+ Optional[StrictBool],
928
+ Field(
929
+ description="If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist."
930
+ ),
931
+ ] = None,
932
+ _request_timeout: Union[
933
+ None,
934
+ Annotated[StrictFloat, Field(gt=0)],
935
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
936
+ ] = None,
937
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
938
+ _content_type: Optional[StrictStr] = None,
939
+ _headers: Optional[Dict[StrictStr, Any]] = None,
940
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
941
+ ) -> None:
942
+ """delete_intake
943
+
944
+ Deletes the given intake.
945
+
946
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
947
+ :type project_id: str
948
+ :param region_id: The STACKIT region name the resource is located in. (required)
949
+ :type region_id: str
950
+ :param intake_id: The intake UUID. (required)
951
+ :type intake_id: str
952
+ :param force: If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist.
953
+ :type force: bool
954
+ :param _request_timeout: timeout setting for this request. If one
955
+ number provided, it will be total request
956
+ timeout. It can also be a pair (tuple) of
957
+ (connection, read) timeouts.
958
+ :type _request_timeout: int, tuple(int, int), optional
959
+ :param _request_auth: set to override the auth_settings for an a single
960
+ request; this effectively ignores the
961
+ authentication in the spec for a single request.
962
+ :type _request_auth: dict, optional
963
+ :param _content_type: force content-type for the request.
964
+ :type _content_type: str, Optional
965
+ :param _headers: set to override the headers for a single
966
+ request; this effectively ignores the headers
967
+ in the spec for a single request.
968
+ :type _headers: dict, optional
969
+ :param _host_index: set to override the host_index for a single
970
+ request; this effectively ignores the host_index
971
+ in the spec for a single request.
972
+ :type _host_index: int, optional
973
+ :return: Returns the result object.
974
+ """ # noqa: E501
975
+
976
+ _param = self._delete_intake_serialize(
977
+ project_id=project_id,
978
+ region_id=region_id,
979
+ intake_id=intake_id,
980
+ force=force,
981
+ _request_auth=_request_auth,
982
+ _content_type=_content_type,
983
+ _headers=_headers,
984
+ _host_index=_host_index,
985
+ )
986
+
987
+ _response_types_map: Dict[str, Optional[str]] = {
988
+ "204": None,
989
+ "401": None,
990
+ "404": None,
991
+ "409": None,
992
+ "500": None,
993
+ }
994
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
995
+ response_data.read()
996
+ return self.api_client.response_deserialize(
997
+ response_data=response_data,
998
+ response_types_map=_response_types_map,
999
+ ).data
1000
+
1001
+ @validate_call
1002
+ def delete_intake_with_http_info(
1003
+ self,
1004
+ project_id: Annotated[
1005
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
1006
+ ],
1007
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
1008
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
1009
+ force: Annotated[
1010
+ Optional[StrictBool],
1011
+ Field(
1012
+ description="If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist."
1013
+ ),
1014
+ ] = None,
1015
+ _request_timeout: Union[
1016
+ None,
1017
+ Annotated[StrictFloat, Field(gt=0)],
1018
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1019
+ ] = None,
1020
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1021
+ _content_type: Optional[StrictStr] = None,
1022
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1023
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1024
+ ) -> ApiResponse[None]:
1025
+ """delete_intake
1026
+
1027
+ Deletes the given intake.
1028
+
1029
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
1030
+ :type project_id: str
1031
+ :param region_id: The STACKIT region name the resource is located in. (required)
1032
+ :type region_id: str
1033
+ :param intake_id: The intake UUID. (required)
1034
+ :type intake_id: str
1035
+ :param force: If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist.
1036
+ :type force: bool
1037
+ :param _request_timeout: timeout setting for this request. If one
1038
+ number provided, it will be total request
1039
+ timeout. It can also be a pair (tuple) of
1040
+ (connection, read) timeouts.
1041
+ :type _request_timeout: int, tuple(int, int), optional
1042
+ :param _request_auth: set to override the auth_settings for an a single
1043
+ request; this effectively ignores the
1044
+ authentication in the spec for a single request.
1045
+ :type _request_auth: dict, optional
1046
+ :param _content_type: force content-type for the request.
1047
+ :type _content_type: str, Optional
1048
+ :param _headers: set to override the headers for a single
1049
+ request; this effectively ignores the headers
1050
+ in the spec for a single request.
1051
+ :type _headers: dict, optional
1052
+ :param _host_index: set to override the host_index for a single
1053
+ request; this effectively ignores the host_index
1054
+ in the spec for a single request.
1055
+ :type _host_index: int, optional
1056
+ :return: Returns the result object.
1057
+ """ # noqa: E501
1058
+
1059
+ _param = self._delete_intake_serialize(
1060
+ project_id=project_id,
1061
+ region_id=region_id,
1062
+ intake_id=intake_id,
1063
+ force=force,
1064
+ _request_auth=_request_auth,
1065
+ _content_type=_content_type,
1066
+ _headers=_headers,
1067
+ _host_index=_host_index,
1068
+ )
1069
+
1070
+ _response_types_map: Dict[str, Optional[str]] = {
1071
+ "204": None,
1072
+ "401": None,
1073
+ "404": None,
1074
+ "409": None,
1075
+ "500": None,
1076
+ }
1077
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1078
+ response_data.read()
1079
+ return self.api_client.response_deserialize(
1080
+ response_data=response_data,
1081
+ response_types_map=_response_types_map,
1082
+ )
1083
+
1084
+ @validate_call
1085
+ def delete_intake_without_preload_content(
1086
+ self,
1087
+ project_id: Annotated[
1088
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
1089
+ ],
1090
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
1091
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
1092
+ force: Annotated[
1093
+ Optional[StrictBool],
1094
+ Field(
1095
+ description="If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist."
1096
+ ),
1097
+ ] = None,
1098
+ _request_timeout: Union[
1099
+ None,
1100
+ Annotated[StrictFloat, Field(gt=0)],
1101
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1102
+ ] = None,
1103
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1104
+ _content_type: Optional[StrictStr] = None,
1105
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1106
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1107
+ ) -> RESTResponseType:
1108
+ """delete_intake
1109
+
1110
+ Deletes the given intake.
1111
+
1112
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
1113
+ :type project_id: str
1114
+ :param region_id: The STACKIT region name the resource is located in. (required)
1115
+ :type region_id: str
1116
+ :param intake_id: The intake UUID. (required)
1117
+ :type intake_id: str
1118
+ :param force: If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist.
1119
+ :type force: bool
1120
+ :param _request_timeout: timeout setting for this request. If one
1121
+ number provided, it will be total request
1122
+ timeout. It can also be a pair (tuple) of
1123
+ (connection, read) timeouts.
1124
+ :type _request_timeout: int, tuple(int, int), optional
1125
+ :param _request_auth: set to override the auth_settings for an a single
1126
+ request; this effectively ignores the
1127
+ authentication in the spec for a single request.
1128
+ :type _request_auth: dict, optional
1129
+ :param _content_type: force content-type for the request.
1130
+ :type _content_type: str, Optional
1131
+ :param _headers: set to override the headers for a single
1132
+ request; this effectively ignores the headers
1133
+ in the spec for a single request.
1134
+ :type _headers: dict, optional
1135
+ :param _host_index: set to override the host_index for a single
1136
+ request; this effectively ignores the host_index
1137
+ in the spec for a single request.
1138
+ :type _host_index: int, optional
1139
+ :return: Returns the result object.
1140
+ """ # noqa: E501
1141
+
1142
+ _param = self._delete_intake_serialize(
1143
+ project_id=project_id,
1144
+ region_id=region_id,
1145
+ intake_id=intake_id,
1146
+ force=force,
1147
+ _request_auth=_request_auth,
1148
+ _content_type=_content_type,
1149
+ _headers=_headers,
1150
+ _host_index=_host_index,
1151
+ )
1152
+
1153
+ _response_types_map: Dict[str, Optional[str]] = {
1154
+ "204": None,
1155
+ "401": None,
1156
+ "404": None,
1157
+ "409": None,
1158
+ "500": None,
1159
+ }
1160
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1161
+ return response_data.response
1162
+
1163
+ def _delete_intake_serialize(
1164
+ self,
1165
+ project_id,
1166
+ region_id,
1167
+ intake_id,
1168
+ force,
1169
+ _request_auth,
1170
+ _content_type,
1171
+ _headers,
1172
+ _host_index,
1173
+ ) -> RequestSerialized:
1174
+
1175
+ _host = None
1176
+
1177
+ _collection_formats: Dict[str, str] = {}
1178
+
1179
+ _path_params: Dict[str, str] = {}
1180
+ _query_params: List[Tuple[str, str]] = []
1181
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1182
+ _form_params: List[Tuple[str, str]] = []
1183
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1184
+ _body_params: Optional[bytes] = None
1185
+
1186
+ # process the path parameters
1187
+ if project_id is not None:
1188
+ _path_params["projectId"] = project_id
1189
+ if region_id is not None:
1190
+ _path_params["regionId"] = region_id
1191
+ if intake_id is not None:
1192
+ _path_params["intakeId"] = intake_id
1193
+ # process the query parameters
1194
+ if force is not None:
1195
+
1196
+ _query_params.append(("force", force))
1197
+
1198
+ # process the header parameters
1199
+ # process the form parameters
1200
+ # process the body parameter
1201
+
1202
+ # authentication setting
1203
+ _auth_settings: List[str] = []
1204
+
1205
+ return self.api_client.param_serialize(
1206
+ method="DELETE",
1207
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}",
1208
+ path_params=_path_params,
1209
+ query_params=_query_params,
1210
+ header_params=_header_params,
1211
+ body=_body_params,
1212
+ post_params=_form_params,
1213
+ files=_files,
1214
+ auth_settings=_auth_settings,
1215
+ collection_formats=_collection_formats,
1216
+ _host=_host,
1217
+ _request_auth=_request_auth,
1218
+ )
1219
+
1220
+ @validate_call
1221
+ def delete_intake_runner(
1222
+ self,
1223
+ project_id: Annotated[
1224
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
1225
+ ],
1226
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
1227
+ intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")],
1228
+ force: Annotated[
1229
+ Optional[StrictBool],
1230
+ Field(
1231
+ description="If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist."
1232
+ ),
1233
+ ] = None,
1234
+ _request_timeout: Union[
1235
+ None,
1236
+ Annotated[StrictFloat, Field(gt=0)],
1237
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1238
+ ] = None,
1239
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1240
+ _content_type: Optional[StrictStr] = None,
1241
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1242
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1243
+ ) -> None:
1244
+ """delete_intake_runner
1245
+
1246
+ Deletes the given intake runner.
1247
+
1248
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
1249
+ :type project_id: str
1250
+ :param region_id: The STACKIT region name the resource is located in. (required)
1251
+ :type region_id: str
1252
+ :param intake_runner_id: The intake runner UUID. (required)
1253
+ :type intake_runner_id: str
1254
+ :param force: If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist.
1255
+ :type force: bool
1256
+ :param _request_timeout: timeout setting for this request. If one
1257
+ number provided, it will be total request
1258
+ timeout. It can also be a pair (tuple) of
1259
+ (connection, read) timeouts.
1260
+ :type _request_timeout: int, tuple(int, int), optional
1261
+ :param _request_auth: set to override the auth_settings for an a single
1262
+ request; this effectively ignores the
1263
+ authentication in the spec for a single request.
1264
+ :type _request_auth: dict, optional
1265
+ :param _content_type: force content-type for the request.
1266
+ :type _content_type: str, Optional
1267
+ :param _headers: set to override the headers for a single
1268
+ request; this effectively ignores the headers
1269
+ in the spec for a single request.
1270
+ :type _headers: dict, optional
1271
+ :param _host_index: set to override the host_index for a single
1272
+ request; this effectively ignores the host_index
1273
+ in the spec for a single request.
1274
+ :type _host_index: int, optional
1275
+ :return: Returns the result object.
1276
+ """ # noqa: E501
1277
+
1278
+ _param = self._delete_intake_runner_serialize(
1279
+ project_id=project_id,
1280
+ region_id=region_id,
1281
+ intake_runner_id=intake_runner_id,
1282
+ force=force,
1283
+ _request_auth=_request_auth,
1284
+ _content_type=_content_type,
1285
+ _headers=_headers,
1286
+ _host_index=_host_index,
1287
+ )
1288
+
1289
+ _response_types_map: Dict[str, Optional[str]] = {
1290
+ "204": None,
1291
+ "401": None,
1292
+ "404": None,
1293
+ "409": None,
1294
+ "500": None,
1295
+ }
1296
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1297
+ response_data.read()
1298
+ return self.api_client.response_deserialize(
1299
+ response_data=response_data,
1300
+ response_types_map=_response_types_map,
1301
+ ).data
1302
+
1303
+ @validate_call
1304
+ def delete_intake_runner_with_http_info(
1305
+ self,
1306
+ project_id: Annotated[
1307
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
1308
+ ],
1309
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
1310
+ intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")],
1311
+ force: Annotated[
1312
+ Optional[StrictBool],
1313
+ Field(
1314
+ description="If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist."
1315
+ ),
1316
+ ] = None,
1317
+ _request_timeout: Union[
1318
+ None,
1319
+ Annotated[StrictFloat, Field(gt=0)],
1320
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1321
+ ] = None,
1322
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1323
+ _content_type: Optional[StrictStr] = None,
1324
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1325
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1326
+ ) -> ApiResponse[None]:
1327
+ """delete_intake_runner
1328
+
1329
+ Deletes the given intake runner.
1330
+
1331
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
1332
+ :type project_id: str
1333
+ :param region_id: The STACKIT region name the resource is located in. (required)
1334
+ :type region_id: str
1335
+ :param intake_runner_id: The intake runner UUID. (required)
1336
+ :type intake_runner_id: str
1337
+ :param force: If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist.
1338
+ :type force: bool
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_intake_runner_serialize(
1362
+ project_id=project_id,
1363
+ region_id=region_id,
1364
+ intake_runner_id=intake_runner_id,
1365
+ force=force,
1366
+ _request_auth=_request_auth,
1367
+ _content_type=_content_type,
1368
+ _headers=_headers,
1369
+ _host_index=_host_index,
1370
+ )
1371
+
1372
+ _response_types_map: Dict[str, Optional[str]] = {
1373
+ "204": None,
1374
+ "401": None,
1375
+ "404": None,
1376
+ "409": None,
1377
+ "500": None,
1378
+ }
1379
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1380
+ response_data.read()
1381
+ return self.api_client.response_deserialize(
1382
+ response_data=response_data,
1383
+ response_types_map=_response_types_map,
1384
+ )
1385
+
1386
+ @validate_call
1387
+ def delete_intake_runner_without_preload_content(
1388
+ self,
1389
+ project_id: Annotated[
1390
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
1391
+ ],
1392
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
1393
+ intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")],
1394
+ force: Annotated[
1395
+ Optional[StrictBool],
1396
+ Field(
1397
+ description="If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist."
1398
+ ),
1399
+ ] = None,
1400
+ _request_timeout: Union[
1401
+ None,
1402
+ Annotated[StrictFloat, Field(gt=0)],
1403
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1404
+ ] = None,
1405
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1406
+ _content_type: Optional[StrictStr] = None,
1407
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1408
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1409
+ ) -> RESTResponseType:
1410
+ """delete_intake_runner
1411
+
1412
+ Deletes the given intake runner.
1413
+
1414
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
1415
+ :type project_id: str
1416
+ :param region_id: The STACKIT region name the resource is located in. (required)
1417
+ :type region_id: str
1418
+ :param intake_runner_id: The intake runner UUID. (required)
1419
+ :type intake_runner_id: str
1420
+ :param force: If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist.
1421
+ :type force: bool
1422
+ :param _request_timeout: timeout setting for this request. If one
1423
+ number provided, it will be total request
1424
+ timeout. It can also be a pair (tuple) of
1425
+ (connection, read) timeouts.
1426
+ :type _request_timeout: int, tuple(int, int), optional
1427
+ :param _request_auth: set to override the auth_settings for an a single
1428
+ request; this effectively ignores the
1429
+ authentication in the spec for a single request.
1430
+ :type _request_auth: dict, optional
1431
+ :param _content_type: force content-type for the request.
1432
+ :type _content_type: str, Optional
1433
+ :param _headers: set to override the headers for a single
1434
+ request; this effectively ignores the headers
1435
+ in the spec for a single request.
1436
+ :type _headers: dict, optional
1437
+ :param _host_index: set to override the host_index for a single
1438
+ request; this effectively ignores the host_index
1439
+ in the spec for a single request.
1440
+ :type _host_index: int, optional
1441
+ :return: Returns the result object.
1442
+ """ # noqa: E501
1443
+
1444
+ _param = self._delete_intake_runner_serialize(
1445
+ project_id=project_id,
1446
+ region_id=region_id,
1447
+ intake_runner_id=intake_runner_id,
1448
+ force=force,
1449
+ _request_auth=_request_auth,
1450
+ _content_type=_content_type,
1451
+ _headers=_headers,
1452
+ _host_index=_host_index,
1453
+ )
1454
+
1455
+ _response_types_map: Dict[str, Optional[str]] = {
1456
+ "204": None,
1457
+ "401": None,
1458
+ "404": None,
1459
+ "409": None,
1460
+ "500": None,
1461
+ }
1462
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1463
+ return response_data.response
1464
+
1465
+ def _delete_intake_runner_serialize(
1466
+ self,
1467
+ project_id,
1468
+ region_id,
1469
+ intake_runner_id,
1470
+ force,
1471
+ _request_auth,
1472
+ _content_type,
1473
+ _headers,
1474
+ _host_index,
1475
+ ) -> RequestSerialized:
1476
+
1477
+ _host = None
1478
+
1479
+ _collection_formats: Dict[str, str] = {}
1480
+
1481
+ _path_params: Dict[str, str] = {}
1482
+ _query_params: List[Tuple[str, str]] = []
1483
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1484
+ _form_params: List[Tuple[str, str]] = []
1485
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1486
+ _body_params: Optional[bytes] = None
1487
+
1488
+ # process the path parameters
1489
+ if project_id is not None:
1490
+ _path_params["projectId"] = project_id
1491
+ if region_id is not None:
1492
+ _path_params["regionId"] = region_id
1493
+ if intake_runner_id is not None:
1494
+ _path_params["intakeRunnerId"] = intake_runner_id
1495
+ # process the query parameters
1496
+ if force is not None:
1497
+
1498
+ _query_params.append(("force", force))
1499
+
1500
+ # process the header parameters
1501
+ # process the form parameters
1502
+ # process the body parameter
1503
+
1504
+ # authentication setting
1505
+ _auth_settings: List[str] = []
1506
+
1507
+ return self.api_client.param_serialize(
1508
+ method="DELETE",
1509
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intake-runners/{intakeRunnerId}",
1510
+ path_params=_path_params,
1511
+ query_params=_query_params,
1512
+ header_params=_header_params,
1513
+ body=_body_params,
1514
+ post_params=_form_params,
1515
+ files=_files,
1516
+ auth_settings=_auth_settings,
1517
+ collection_formats=_collection_formats,
1518
+ _host=_host,
1519
+ _request_auth=_request_auth,
1520
+ )
1521
+
1522
+ @validate_call
1523
+ def delete_intake_user(
1524
+ self,
1525
+ project_id: Annotated[
1526
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
1527
+ ],
1528
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
1529
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
1530
+ intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")],
1531
+ _request_timeout: Union[
1532
+ None,
1533
+ Annotated[StrictFloat, Field(gt=0)],
1534
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1535
+ ] = None,
1536
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1537
+ _content_type: Optional[StrictStr] = None,
1538
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1539
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1540
+ ) -> None:
1541
+ """delete_intake_user
1542
+
1543
+ Deletes the given intake user.
1544
+
1545
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
1546
+ :type project_id: str
1547
+ :param region_id: The STACKIT region name the resource is located in. (required)
1548
+ :type region_id: str
1549
+ :param intake_id: The intake UUID. (required)
1550
+ :type intake_id: str
1551
+ :param intake_user_id: The intake user UUID. (required)
1552
+ :type intake_user_id: str
1553
+ :param _request_timeout: timeout setting for this request. If one
1554
+ number provided, it will be total request
1555
+ timeout. It can also be a pair (tuple) of
1556
+ (connection, read) timeouts.
1557
+ :type _request_timeout: int, tuple(int, int), optional
1558
+ :param _request_auth: set to override the auth_settings for an a single
1559
+ request; this effectively ignores the
1560
+ authentication in the spec for a single request.
1561
+ :type _request_auth: dict, optional
1562
+ :param _content_type: force content-type for the request.
1563
+ :type _content_type: str, Optional
1564
+ :param _headers: set to override the headers for a single
1565
+ request; this effectively ignores the headers
1566
+ in the spec for a single request.
1567
+ :type _headers: dict, optional
1568
+ :param _host_index: set to override the host_index for a single
1569
+ request; this effectively ignores the host_index
1570
+ in the spec for a single request.
1571
+ :type _host_index: int, optional
1572
+ :return: Returns the result object.
1573
+ """ # noqa: E501
1574
+
1575
+ _param = self._delete_intake_user_serialize(
1576
+ project_id=project_id,
1577
+ region_id=region_id,
1578
+ intake_id=intake_id,
1579
+ intake_user_id=intake_user_id,
1580
+ _request_auth=_request_auth,
1581
+ _content_type=_content_type,
1582
+ _headers=_headers,
1583
+ _host_index=_host_index,
1584
+ )
1585
+
1586
+ _response_types_map: Dict[str, Optional[str]] = {
1587
+ "204": None,
1588
+ "401": None,
1589
+ "404": None,
1590
+ "409": None,
1591
+ "500": None,
1592
+ }
1593
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1594
+ response_data.read()
1595
+ return self.api_client.response_deserialize(
1596
+ response_data=response_data,
1597
+ response_types_map=_response_types_map,
1598
+ ).data
1599
+
1600
+ @validate_call
1601
+ def delete_intake_user_with_http_info(
1602
+ self,
1603
+ project_id: Annotated[
1604
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
1605
+ ],
1606
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
1607
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
1608
+ intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")],
1609
+ _request_timeout: Union[
1610
+ None,
1611
+ Annotated[StrictFloat, Field(gt=0)],
1612
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1613
+ ] = None,
1614
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1615
+ _content_type: Optional[StrictStr] = None,
1616
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1617
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1618
+ ) -> ApiResponse[None]:
1619
+ """delete_intake_user
1620
+
1621
+ Deletes the given intake user.
1622
+
1623
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
1624
+ :type project_id: str
1625
+ :param region_id: The STACKIT region name the resource is located in. (required)
1626
+ :type region_id: str
1627
+ :param intake_id: The intake UUID. (required)
1628
+ :type intake_id: str
1629
+ :param intake_user_id: The intake user UUID. (required)
1630
+ :type intake_user_id: str
1631
+ :param _request_timeout: timeout setting for this request. If one
1632
+ number provided, it will be total request
1633
+ timeout. It can also be a pair (tuple) of
1634
+ (connection, read) timeouts.
1635
+ :type _request_timeout: int, tuple(int, int), optional
1636
+ :param _request_auth: set to override the auth_settings for an a single
1637
+ request; this effectively ignores the
1638
+ authentication in the spec for a single request.
1639
+ :type _request_auth: dict, optional
1640
+ :param _content_type: force content-type for the request.
1641
+ :type _content_type: str, Optional
1642
+ :param _headers: set to override the headers for a single
1643
+ request; this effectively ignores the headers
1644
+ in the spec for a single request.
1645
+ :type _headers: dict, optional
1646
+ :param _host_index: set to override the host_index for a single
1647
+ request; this effectively ignores the host_index
1648
+ in the spec for a single request.
1649
+ :type _host_index: int, optional
1650
+ :return: Returns the result object.
1651
+ """ # noqa: E501
1652
+
1653
+ _param = self._delete_intake_user_serialize(
1654
+ project_id=project_id,
1655
+ region_id=region_id,
1656
+ intake_id=intake_id,
1657
+ intake_user_id=intake_user_id,
1658
+ _request_auth=_request_auth,
1659
+ _content_type=_content_type,
1660
+ _headers=_headers,
1661
+ _host_index=_host_index,
1662
+ )
1663
+
1664
+ _response_types_map: Dict[str, Optional[str]] = {
1665
+ "204": None,
1666
+ "401": None,
1667
+ "404": None,
1668
+ "409": None,
1669
+ "500": None,
1670
+ }
1671
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1672
+ response_data.read()
1673
+ return self.api_client.response_deserialize(
1674
+ response_data=response_data,
1675
+ response_types_map=_response_types_map,
1676
+ )
1677
+
1678
+ @validate_call
1679
+ def delete_intake_user_without_preload_content(
1680
+ self,
1681
+ project_id: Annotated[
1682
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
1683
+ ],
1684
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
1685
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
1686
+ intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")],
1687
+ _request_timeout: Union[
1688
+ None,
1689
+ Annotated[StrictFloat, Field(gt=0)],
1690
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1691
+ ] = None,
1692
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1693
+ _content_type: Optional[StrictStr] = None,
1694
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1695
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1696
+ ) -> RESTResponseType:
1697
+ """delete_intake_user
1698
+
1699
+ Deletes the given intake user.
1700
+
1701
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
1702
+ :type project_id: str
1703
+ :param region_id: The STACKIT region name the resource is located in. (required)
1704
+ :type region_id: str
1705
+ :param intake_id: The intake UUID. (required)
1706
+ :type intake_id: str
1707
+ :param intake_user_id: The intake user UUID. (required)
1708
+ :type intake_user_id: str
1709
+ :param _request_timeout: timeout setting for this request. If one
1710
+ number provided, it will be total request
1711
+ timeout. It can also be a pair (tuple) of
1712
+ (connection, read) timeouts.
1713
+ :type _request_timeout: int, tuple(int, int), optional
1714
+ :param _request_auth: set to override the auth_settings for an a single
1715
+ request; this effectively ignores the
1716
+ authentication in the spec for a single request.
1717
+ :type _request_auth: dict, optional
1718
+ :param _content_type: force content-type for the request.
1719
+ :type _content_type: str, Optional
1720
+ :param _headers: set to override the headers for a single
1721
+ request; this effectively ignores the headers
1722
+ in the spec for a single request.
1723
+ :type _headers: dict, optional
1724
+ :param _host_index: set to override the host_index for a single
1725
+ request; this effectively ignores the host_index
1726
+ in the spec for a single request.
1727
+ :type _host_index: int, optional
1728
+ :return: Returns the result object.
1729
+ """ # noqa: E501
1730
+
1731
+ _param = self._delete_intake_user_serialize(
1732
+ project_id=project_id,
1733
+ region_id=region_id,
1734
+ intake_id=intake_id,
1735
+ intake_user_id=intake_user_id,
1736
+ _request_auth=_request_auth,
1737
+ _content_type=_content_type,
1738
+ _headers=_headers,
1739
+ _host_index=_host_index,
1740
+ )
1741
+
1742
+ _response_types_map: Dict[str, Optional[str]] = {
1743
+ "204": None,
1744
+ "401": None,
1745
+ "404": None,
1746
+ "409": None,
1747
+ "500": None,
1748
+ }
1749
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1750
+ return response_data.response
1751
+
1752
+ def _delete_intake_user_serialize(
1753
+ self,
1754
+ project_id,
1755
+ region_id,
1756
+ intake_id,
1757
+ intake_user_id,
1758
+ _request_auth,
1759
+ _content_type,
1760
+ _headers,
1761
+ _host_index,
1762
+ ) -> RequestSerialized:
1763
+
1764
+ _host = None
1765
+
1766
+ _collection_formats: Dict[str, str] = {}
1767
+
1768
+ _path_params: Dict[str, str] = {}
1769
+ _query_params: List[Tuple[str, str]] = []
1770
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1771
+ _form_params: List[Tuple[str, str]] = []
1772
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1773
+ _body_params: Optional[bytes] = None
1774
+
1775
+ # process the path parameters
1776
+ if project_id is not None:
1777
+ _path_params["projectId"] = project_id
1778
+ if region_id is not None:
1779
+ _path_params["regionId"] = region_id
1780
+ if intake_id is not None:
1781
+ _path_params["intakeId"] = intake_id
1782
+ if intake_user_id is not None:
1783
+ _path_params["intakeUserId"] = intake_user_id
1784
+ # process the query parameters
1785
+ # process the header parameters
1786
+ # process the form parameters
1787
+ # process the body parameter
1788
+
1789
+ # authentication setting
1790
+ _auth_settings: List[str] = []
1791
+
1792
+ return self.api_client.param_serialize(
1793
+ method="DELETE",
1794
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users/{intakeUserId}",
1795
+ path_params=_path_params,
1796
+ query_params=_query_params,
1797
+ header_params=_header_params,
1798
+ body=_body_params,
1799
+ post_params=_form_params,
1800
+ files=_files,
1801
+ auth_settings=_auth_settings,
1802
+ collection_formats=_collection_formats,
1803
+ _host=_host,
1804
+ _request_auth=_request_auth,
1805
+ )
1806
+
1807
+ @validate_call
1808
+ def get_intake(
1809
+ self,
1810
+ project_id: Annotated[
1811
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
1812
+ ],
1813
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
1814
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
1815
+ _request_timeout: Union[
1816
+ None,
1817
+ Annotated[StrictFloat, Field(gt=0)],
1818
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1819
+ ] = None,
1820
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1821
+ _content_type: Optional[StrictStr] = None,
1822
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1823
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1824
+ ) -> IntakeResponse:
1825
+ """get_intake
1826
+
1827
+ Returns the details for the given intake.
1828
+
1829
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
1830
+ :type project_id: str
1831
+ :param region_id: The STACKIT region name the resource is located in. (required)
1832
+ :type region_id: str
1833
+ :param intake_id: The intake UUID. (required)
1834
+ :type intake_id: str
1835
+ :param _request_timeout: timeout setting for this request. If one
1836
+ number provided, it will be total request
1837
+ timeout. It can also be a pair (tuple) of
1838
+ (connection, read) timeouts.
1839
+ :type _request_timeout: int, tuple(int, int), optional
1840
+ :param _request_auth: set to override the auth_settings for an a single
1841
+ request; this effectively ignores the
1842
+ authentication in the spec for a single request.
1843
+ :type _request_auth: dict, optional
1844
+ :param _content_type: force content-type for the request.
1845
+ :type _content_type: str, Optional
1846
+ :param _headers: set to override the headers for a single
1847
+ request; this effectively ignores the headers
1848
+ in the spec for a single request.
1849
+ :type _headers: dict, optional
1850
+ :param _host_index: set to override the host_index for a single
1851
+ request; this effectively ignores the host_index
1852
+ in the spec for a single request.
1853
+ :type _host_index: int, optional
1854
+ :return: Returns the result object.
1855
+ """ # noqa: E501
1856
+
1857
+ _param = self._get_intake_serialize(
1858
+ project_id=project_id,
1859
+ region_id=region_id,
1860
+ intake_id=intake_id,
1861
+ _request_auth=_request_auth,
1862
+ _content_type=_content_type,
1863
+ _headers=_headers,
1864
+ _host_index=_host_index,
1865
+ )
1866
+
1867
+ _response_types_map: Dict[str, Optional[str]] = {
1868
+ "200": "IntakeResponse",
1869
+ "401": None,
1870
+ "404": None,
1871
+ "500": None,
1872
+ }
1873
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1874
+ response_data.read()
1875
+ return self.api_client.response_deserialize(
1876
+ response_data=response_data,
1877
+ response_types_map=_response_types_map,
1878
+ ).data
1879
+
1880
+ @validate_call
1881
+ def get_intake_with_http_info(
1882
+ self,
1883
+ project_id: Annotated[
1884
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
1885
+ ],
1886
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
1887
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
1888
+ _request_timeout: Union[
1889
+ None,
1890
+ Annotated[StrictFloat, Field(gt=0)],
1891
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1892
+ ] = None,
1893
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1894
+ _content_type: Optional[StrictStr] = None,
1895
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1896
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1897
+ ) -> ApiResponse[IntakeResponse]:
1898
+ """get_intake
1899
+
1900
+ Returns the details for the given intake.
1901
+
1902
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
1903
+ :type project_id: str
1904
+ :param region_id: The STACKIT region name the resource is located in. (required)
1905
+ :type region_id: str
1906
+ :param intake_id: The intake UUID. (required)
1907
+ :type intake_id: str
1908
+ :param _request_timeout: timeout setting for this request. If one
1909
+ number provided, it will be total request
1910
+ timeout. It can also be a pair (tuple) of
1911
+ (connection, read) timeouts.
1912
+ :type _request_timeout: int, tuple(int, int), optional
1913
+ :param _request_auth: set to override the auth_settings for an a single
1914
+ request; this effectively ignores the
1915
+ authentication in the spec for a single request.
1916
+ :type _request_auth: dict, optional
1917
+ :param _content_type: force content-type for the request.
1918
+ :type _content_type: str, Optional
1919
+ :param _headers: set to override the headers for a single
1920
+ request; this effectively ignores the headers
1921
+ in the spec for a single request.
1922
+ :type _headers: dict, optional
1923
+ :param _host_index: set to override the host_index for a single
1924
+ request; this effectively ignores the host_index
1925
+ in the spec for a single request.
1926
+ :type _host_index: int, optional
1927
+ :return: Returns the result object.
1928
+ """ # noqa: E501
1929
+
1930
+ _param = self._get_intake_serialize(
1931
+ project_id=project_id,
1932
+ region_id=region_id,
1933
+ intake_id=intake_id,
1934
+ _request_auth=_request_auth,
1935
+ _content_type=_content_type,
1936
+ _headers=_headers,
1937
+ _host_index=_host_index,
1938
+ )
1939
+
1940
+ _response_types_map: Dict[str, Optional[str]] = {
1941
+ "200": "IntakeResponse",
1942
+ "401": None,
1943
+ "404": None,
1944
+ "500": None,
1945
+ }
1946
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1947
+ response_data.read()
1948
+ return self.api_client.response_deserialize(
1949
+ response_data=response_data,
1950
+ response_types_map=_response_types_map,
1951
+ )
1952
+
1953
+ @validate_call
1954
+ def get_intake_without_preload_content(
1955
+ self,
1956
+ project_id: Annotated[
1957
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
1958
+ ],
1959
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
1960
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
1961
+ _request_timeout: Union[
1962
+ None,
1963
+ Annotated[StrictFloat, Field(gt=0)],
1964
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1965
+ ] = None,
1966
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1967
+ _content_type: Optional[StrictStr] = None,
1968
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1969
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1970
+ ) -> RESTResponseType:
1971
+ """get_intake
1972
+
1973
+ Returns the details for the given intake.
1974
+
1975
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
1976
+ :type project_id: str
1977
+ :param region_id: The STACKIT region name the resource is located in. (required)
1978
+ :type region_id: str
1979
+ :param intake_id: The intake UUID. (required)
1980
+ :type intake_id: str
1981
+ :param _request_timeout: timeout setting for this request. If one
1982
+ number provided, it will be total request
1983
+ timeout. It can also be a pair (tuple) of
1984
+ (connection, read) timeouts.
1985
+ :type _request_timeout: int, tuple(int, int), optional
1986
+ :param _request_auth: set to override the auth_settings for an a single
1987
+ request; this effectively ignores the
1988
+ authentication in the spec for a single request.
1989
+ :type _request_auth: dict, optional
1990
+ :param _content_type: force content-type for the request.
1991
+ :type _content_type: str, Optional
1992
+ :param _headers: set to override the headers for a single
1993
+ request; this effectively ignores the headers
1994
+ in the spec for a single request.
1995
+ :type _headers: dict, optional
1996
+ :param _host_index: set to override the host_index for a single
1997
+ request; this effectively ignores the host_index
1998
+ in the spec for a single request.
1999
+ :type _host_index: int, optional
2000
+ :return: Returns the result object.
2001
+ """ # noqa: E501
2002
+
2003
+ _param = self._get_intake_serialize(
2004
+ project_id=project_id,
2005
+ region_id=region_id,
2006
+ intake_id=intake_id,
2007
+ _request_auth=_request_auth,
2008
+ _content_type=_content_type,
2009
+ _headers=_headers,
2010
+ _host_index=_host_index,
2011
+ )
2012
+
2013
+ _response_types_map: Dict[str, Optional[str]] = {
2014
+ "200": "IntakeResponse",
2015
+ "401": None,
2016
+ "404": None,
2017
+ "500": None,
2018
+ }
2019
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2020
+ return response_data.response
2021
+
2022
+ def _get_intake_serialize(
2023
+ self,
2024
+ project_id,
2025
+ region_id,
2026
+ intake_id,
2027
+ _request_auth,
2028
+ _content_type,
2029
+ _headers,
2030
+ _host_index,
2031
+ ) -> RequestSerialized:
2032
+
2033
+ _host = None
2034
+
2035
+ _collection_formats: Dict[str, str] = {}
2036
+
2037
+ _path_params: Dict[str, str] = {}
2038
+ _query_params: List[Tuple[str, str]] = []
2039
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2040
+ _form_params: List[Tuple[str, str]] = []
2041
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2042
+ _body_params: Optional[bytes] = None
2043
+
2044
+ # process the path parameters
2045
+ if project_id is not None:
2046
+ _path_params["projectId"] = project_id
2047
+ if region_id is not None:
2048
+ _path_params["regionId"] = region_id
2049
+ if intake_id is not None:
2050
+ _path_params["intakeId"] = intake_id
2051
+ # process the query parameters
2052
+ # process the header parameters
2053
+ # process the form parameters
2054
+ # process the body parameter
2055
+
2056
+ # set the HTTP header `Accept`
2057
+ if "Accept" not in _header_params:
2058
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
2059
+
2060
+ # authentication setting
2061
+ _auth_settings: List[str] = []
2062
+
2063
+ return self.api_client.param_serialize(
2064
+ method="GET",
2065
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}",
2066
+ path_params=_path_params,
2067
+ query_params=_query_params,
2068
+ header_params=_header_params,
2069
+ body=_body_params,
2070
+ post_params=_form_params,
2071
+ files=_files,
2072
+ auth_settings=_auth_settings,
2073
+ collection_formats=_collection_formats,
2074
+ _host=_host,
2075
+ _request_auth=_request_auth,
2076
+ )
2077
+
2078
+ @validate_call
2079
+ def get_intake_runner(
2080
+ self,
2081
+ project_id: Annotated[
2082
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
2083
+ ],
2084
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
2085
+ intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")],
2086
+ _request_timeout: Union[
2087
+ None,
2088
+ Annotated[StrictFloat, Field(gt=0)],
2089
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2090
+ ] = None,
2091
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2092
+ _content_type: Optional[StrictStr] = None,
2093
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2094
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2095
+ ) -> IntakeRunnerResponse:
2096
+ """get_intake_runner
2097
+
2098
+ Returns the details for the given intake runner.
2099
+
2100
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
2101
+ :type project_id: str
2102
+ :param region_id: The STACKIT region name the resource is located in. (required)
2103
+ :type region_id: str
2104
+ :param intake_runner_id: The intake runner UUID. (required)
2105
+ :type intake_runner_id: str
2106
+ :param _request_timeout: timeout setting for this request. If one
2107
+ number provided, it will be total request
2108
+ timeout. It can also be a pair (tuple) of
2109
+ (connection, read) timeouts.
2110
+ :type _request_timeout: int, tuple(int, int), optional
2111
+ :param _request_auth: set to override the auth_settings for an a single
2112
+ request; this effectively ignores the
2113
+ authentication in the spec for a single request.
2114
+ :type _request_auth: dict, optional
2115
+ :param _content_type: force content-type for the request.
2116
+ :type _content_type: str, Optional
2117
+ :param _headers: set to override the headers for a single
2118
+ request; this effectively ignores the headers
2119
+ in the spec for a single request.
2120
+ :type _headers: dict, optional
2121
+ :param _host_index: set to override the host_index for a single
2122
+ request; this effectively ignores the host_index
2123
+ in the spec for a single request.
2124
+ :type _host_index: int, optional
2125
+ :return: Returns the result object.
2126
+ """ # noqa: E501
2127
+
2128
+ _param = self._get_intake_runner_serialize(
2129
+ project_id=project_id,
2130
+ region_id=region_id,
2131
+ intake_runner_id=intake_runner_id,
2132
+ _request_auth=_request_auth,
2133
+ _content_type=_content_type,
2134
+ _headers=_headers,
2135
+ _host_index=_host_index,
2136
+ )
2137
+
2138
+ _response_types_map: Dict[str, Optional[str]] = {
2139
+ "200": "IntakeRunnerResponse",
2140
+ "401": None,
2141
+ "404": None,
2142
+ "500": None,
2143
+ }
2144
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2145
+ response_data.read()
2146
+ return self.api_client.response_deserialize(
2147
+ response_data=response_data,
2148
+ response_types_map=_response_types_map,
2149
+ ).data
2150
+
2151
+ @validate_call
2152
+ def get_intake_runner_with_http_info(
2153
+ self,
2154
+ project_id: Annotated[
2155
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
2156
+ ],
2157
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
2158
+ intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")],
2159
+ _request_timeout: Union[
2160
+ None,
2161
+ Annotated[StrictFloat, Field(gt=0)],
2162
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2163
+ ] = None,
2164
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2165
+ _content_type: Optional[StrictStr] = None,
2166
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2167
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2168
+ ) -> ApiResponse[IntakeRunnerResponse]:
2169
+ """get_intake_runner
2170
+
2171
+ Returns the details for the given intake runner.
2172
+
2173
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
2174
+ :type project_id: str
2175
+ :param region_id: The STACKIT region name the resource is located in. (required)
2176
+ :type region_id: str
2177
+ :param intake_runner_id: The intake runner UUID. (required)
2178
+ :type intake_runner_id: str
2179
+ :param _request_timeout: timeout setting for this request. If one
2180
+ number provided, it will be total request
2181
+ timeout. It can also be a pair (tuple) of
2182
+ (connection, read) timeouts.
2183
+ :type _request_timeout: int, tuple(int, int), optional
2184
+ :param _request_auth: set to override the auth_settings for an a single
2185
+ request; this effectively ignores the
2186
+ authentication in the spec for a single request.
2187
+ :type _request_auth: dict, optional
2188
+ :param _content_type: force content-type for the request.
2189
+ :type _content_type: str, Optional
2190
+ :param _headers: set to override the headers for a single
2191
+ request; this effectively ignores the headers
2192
+ in the spec for a single request.
2193
+ :type _headers: dict, optional
2194
+ :param _host_index: set to override the host_index for a single
2195
+ request; this effectively ignores the host_index
2196
+ in the spec for a single request.
2197
+ :type _host_index: int, optional
2198
+ :return: Returns the result object.
2199
+ """ # noqa: E501
2200
+
2201
+ _param = self._get_intake_runner_serialize(
2202
+ project_id=project_id,
2203
+ region_id=region_id,
2204
+ intake_runner_id=intake_runner_id,
2205
+ _request_auth=_request_auth,
2206
+ _content_type=_content_type,
2207
+ _headers=_headers,
2208
+ _host_index=_host_index,
2209
+ )
2210
+
2211
+ _response_types_map: Dict[str, Optional[str]] = {
2212
+ "200": "IntakeRunnerResponse",
2213
+ "401": None,
2214
+ "404": None,
2215
+ "500": None,
2216
+ }
2217
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2218
+ response_data.read()
2219
+ return self.api_client.response_deserialize(
2220
+ response_data=response_data,
2221
+ response_types_map=_response_types_map,
2222
+ )
2223
+
2224
+ @validate_call
2225
+ def get_intake_runner_without_preload_content(
2226
+ self,
2227
+ project_id: Annotated[
2228
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
2229
+ ],
2230
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
2231
+ intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")],
2232
+ _request_timeout: Union[
2233
+ None,
2234
+ Annotated[StrictFloat, Field(gt=0)],
2235
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2236
+ ] = None,
2237
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2238
+ _content_type: Optional[StrictStr] = None,
2239
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2240
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2241
+ ) -> RESTResponseType:
2242
+ """get_intake_runner
2243
+
2244
+ Returns the details for the given intake runner.
2245
+
2246
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
2247
+ :type project_id: str
2248
+ :param region_id: The STACKIT region name the resource is located in. (required)
2249
+ :type region_id: str
2250
+ :param intake_runner_id: The intake runner UUID. (required)
2251
+ :type intake_runner_id: str
2252
+ :param _request_timeout: timeout setting for this request. If one
2253
+ number provided, it will be total request
2254
+ timeout. It can also be a pair (tuple) of
2255
+ (connection, read) timeouts.
2256
+ :type _request_timeout: int, tuple(int, int), optional
2257
+ :param _request_auth: set to override the auth_settings for an a single
2258
+ request; this effectively ignores the
2259
+ authentication in the spec for a single request.
2260
+ :type _request_auth: dict, optional
2261
+ :param _content_type: force content-type for the request.
2262
+ :type _content_type: str, Optional
2263
+ :param _headers: set to override the headers for a single
2264
+ request; this effectively ignores the headers
2265
+ in the spec for a single request.
2266
+ :type _headers: dict, optional
2267
+ :param _host_index: set to override the host_index for a single
2268
+ request; this effectively ignores the host_index
2269
+ in the spec for a single request.
2270
+ :type _host_index: int, optional
2271
+ :return: Returns the result object.
2272
+ """ # noqa: E501
2273
+
2274
+ _param = self._get_intake_runner_serialize(
2275
+ project_id=project_id,
2276
+ region_id=region_id,
2277
+ intake_runner_id=intake_runner_id,
2278
+ _request_auth=_request_auth,
2279
+ _content_type=_content_type,
2280
+ _headers=_headers,
2281
+ _host_index=_host_index,
2282
+ )
2283
+
2284
+ _response_types_map: Dict[str, Optional[str]] = {
2285
+ "200": "IntakeRunnerResponse",
2286
+ "401": None,
2287
+ "404": None,
2288
+ "500": None,
2289
+ }
2290
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2291
+ return response_data.response
2292
+
2293
+ def _get_intake_runner_serialize(
2294
+ self,
2295
+ project_id,
2296
+ region_id,
2297
+ intake_runner_id,
2298
+ _request_auth,
2299
+ _content_type,
2300
+ _headers,
2301
+ _host_index,
2302
+ ) -> RequestSerialized:
2303
+
2304
+ _host = None
2305
+
2306
+ _collection_formats: Dict[str, str] = {}
2307
+
2308
+ _path_params: Dict[str, str] = {}
2309
+ _query_params: List[Tuple[str, str]] = []
2310
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2311
+ _form_params: List[Tuple[str, str]] = []
2312
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2313
+ _body_params: Optional[bytes] = None
2314
+
2315
+ # process the path parameters
2316
+ if project_id is not None:
2317
+ _path_params["projectId"] = project_id
2318
+ if region_id is not None:
2319
+ _path_params["regionId"] = region_id
2320
+ if intake_runner_id is not None:
2321
+ _path_params["intakeRunnerId"] = intake_runner_id
2322
+ # process the query parameters
2323
+ # process the header parameters
2324
+ # process the form parameters
2325
+ # process the body parameter
2326
+
2327
+ # set the HTTP header `Accept`
2328
+ if "Accept" not in _header_params:
2329
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
2330
+
2331
+ # authentication setting
2332
+ _auth_settings: List[str] = []
2333
+
2334
+ return self.api_client.param_serialize(
2335
+ method="GET",
2336
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intake-runners/{intakeRunnerId}",
2337
+ path_params=_path_params,
2338
+ query_params=_query_params,
2339
+ header_params=_header_params,
2340
+ body=_body_params,
2341
+ post_params=_form_params,
2342
+ files=_files,
2343
+ auth_settings=_auth_settings,
2344
+ collection_formats=_collection_formats,
2345
+ _host=_host,
2346
+ _request_auth=_request_auth,
2347
+ )
2348
+
2349
+ @validate_call
2350
+ def get_intake_user(
2351
+ self,
2352
+ project_id: Annotated[
2353
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
2354
+ ],
2355
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
2356
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
2357
+ intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")],
2358
+ _request_timeout: Union[
2359
+ None,
2360
+ Annotated[StrictFloat, Field(gt=0)],
2361
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2362
+ ] = None,
2363
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2364
+ _content_type: Optional[StrictStr] = None,
2365
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2366
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2367
+ ) -> IntakeUserResponse:
2368
+ """get_intake_user
2369
+
2370
+ Returns the details for the given user.
2371
+
2372
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
2373
+ :type project_id: str
2374
+ :param region_id: The STACKIT region name the resource is located in. (required)
2375
+ :type region_id: str
2376
+ :param intake_id: The intake UUID. (required)
2377
+ :type intake_id: str
2378
+ :param intake_user_id: The intake user UUID. (required)
2379
+ :type intake_user_id: str
2380
+ :param _request_timeout: timeout setting for this request. If one
2381
+ number provided, it will be total request
2382
+ timeout. It can also be a pair (tuple) of
2383
+ (connection, read) timeouts.
2384
+ :type _request_timeout: int, tuple(int, int), optional
2385
+ :param _request_auth: set to override the auth_settings for an a single
2386
+ request; this effectively ignores the
2387
+ authentication in the spec for a single request.
2388
+ :type _request_auth: dict, optional
2389
+ :param _content_type: force content-type for the request.
2390
+ :type _content_type: str, Optional
2391
+ :param _headers: set to override the headers for a single
2392
+ request; this effectively ignores the headers
2393
+ in the spec for a single request.
2394
+ :type _headers: dict, optional
2395
+ :param _host_index: set to override the host_index for a single
2396
+ request; this effectively ignores the host_index
2397
+ in the spec for a single request.
2398
+ :type _host_index: int, optional
2399
+ :return: Returns the result object.
2400
+ """ # noqa: E501
2401
+
2402
+ _param = self._get_intake_user_serialize(
2403
+ project_id=project_id,
2404
+ region_id=region_id,
2405
+ intake_id=intake_id,
2406
+ intake_user_id=intake_user_id,
2407
+ _request_auth=_request_auth,
2408
+ _content_type=_content_type,
2409
+ _headers=_headers,
2410
+ _host_index=_host_index,
2411
+ )
2412
+
2413
+ _response_types_map: Dict[str, Optional[str]] = {
2414
+ "200": "IntakeUserResponse",
2415
+ "401": None,
2416
+ "404": None,
2417
+ "500": None,
2418
+ }
2419
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2420
+ response_data.read()
2421
+ return self.api_client.response_deserialize(
2422
+ response_data=response_data,
2423
+ response_types_map=_response_types_map,
2424
+ ).data
2425
+
2426
+ @validate_call
2427
+ def get_intake_user_with_http_info(
2428
+ self,
2429
+ project_id: Annotated[
2430
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
2431
+ ],
2432
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
2433
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
2434
+ intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")],
2435
+ _request_timeout: Union[
2436
+ None,
2437
+ Annotated[StrictFloat, Field(gt=0)],
2438
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2439
+ ] = None,
2440
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2441
+ _content_type: Optional[StrictStr] = None,
2442
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2443
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2444
+ ) -> ApiResponse[IntakeUserResponse]:
2445
+ """get_intake_user
2446
+
2447
+ Returns the details for the given user.
2448
+
2449
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
2450
+ :type project_id: str
2451
+ :param region_id: The STACKIT region name the resource is located in. (required)
2452
+ :type region_id: str
2453
+ :param intake_id: The intake UUID. (required)
2454
+ :type intake_id: str
2455
+ :param intake_user_id: The intake user UUID. (required)
2456
+ :type intake_user_id: str
2457
+ :param _request_timeout: timeout setting for this request. If one
2458
+ number provided, it will be total request
2459
+ timeout. It can also be a pair (tuple) of
2460
+ (connection, read) timeouts.
2461
+ :type _request_timeout: int, tuple(int, int), optional
2462
+ :param _request_auth: set to override the auth_settings for an a single
2463
+ request; this effectively ignores the
2464
+ authentication in the spec for a single request.
2465
+ :type _request_auth: dict, optional
2466
+ :param _content_type: force content-type for the request.
2467
+ :type _content_type: str, Optional
2468
+ :param _headers: set to override the headers for a single
2469
+ request; this effectively ignores the headers
2470
+ in the spec for a single request.
2471
+ :type _headers: dict, optional
2472
+ :param _host_index: set to override the host_index for a single
2473
+ request; this effectively ignores the host_index
2474
+ in the spec for a single request.
2475
+ :type _host_index: int, optional
2476
+ :return: Returns the result object.
2477
+ """ # noqa: E501
2478
+
2479
+ _param = self._get_intake_user_serialize(
2480
+ project_id=project_id,
2481
+ region_id=region_id,
2482
+ intake_id=intake_id,
2483
+ intake_user_id=intake_user_id,
2484
+ _request_auth=_request_auth,
2485
+ _content_type=_content_type,
2486
+ _headers=_headers,
2487
+ _host_index=_host_index,
2488
+ )
2489
+
2490
+ _response_types_map: Dict[str, Optional[str]] = {
2491
+ "200": "IntakeUserResponse",
2492
+ "401": None,
2493
+ "404": None,
2494
+ "500": None,
2495
+ }
2496
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2497
+ response_data.read()
2498
+ return self.api_client.response_deserialize(
2499
+ response_data=response_data,
2500
+ response_types_map=_response_types_map,
2501
+ )
2502
+
2503
+ @validate_call
2504
+ def get_intake_user_without_preload_content(
2505
+ self,
2506
+ project_id: Annotated[
2507
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
2508
+ ],
2509
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
2510
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
2511
+ intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")],
2512
+ _request_timeout: Union[
2513
+ None,
2514
+ Annotated[StrictFloat, Field(gt=0)],
2515
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2516
+ ] = None,
2517
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2518
+ _content_type: Optional[StrictStr] = None,
2519
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2520
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2521
+ ) -> RESTResponseType:
2522
+ """get_intake_user
2523
+
2524
+ Returns the details for the given user.
2525
+
2526
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
2527
+ :type project_id: str
2528
+ :param region_id: The STACKIT region name the resource is located in. (required)
2529
+ :type region_id: str
2530
+ :param intake_id: The intake UUID. (required)
2531
+ :type intake_id: str
2532
+ :param intake_user_id: The intake user UUID. (required)
2533
+ :type intake_user_id: str
2534
+ :param _request_timeout: timeout setting for this request. If one
2535
+ number provided, it will be total request
2536
+ timeout. It can also be a pair (tuple) of
2537
+ (connection, read) timeouts.
2538
+ :type _request_timeout: int, tuple(int, int), optional
2539
+ :param _request_auth: set to override the auth_settings for an a single
2540
+ request; this effectively ignores the
2541
+ authentication in the spec for a single request.
2542
+ :type _request_auth: dict, optional
2543
+ :param _content_type: force content-type for the request.
2544
+ :type _content_type: str, Optional
2545
+ :param _headers: set to override the headers for a single
2546
+ request; this effectively ignores the headers
2547
+ in the spec for a single request.
2548
+ :type _headers: dict, optional
2549
+ :param _host_index: set to override the host_index for a single
2550
+ request; this effectively ignores the host_index
2551
+ in the spec for a single request.
2552
+ :type _host_index: int, optional
2553
+ :return: Returns the result object.
2554
+ """ # noqa: E501
2555
+
2556
+ _param = self._get_intake_user_serialize(
2557
+ project_id=project_id,
2558
+ region_id=region_id,
2559
+ intake_id=intake_id,
2560
+ intake_user_id=intake_user_id,
2561
+ _request_auth=_request_auth,
2562
+ _content_type=_content_type,
2563
+ _headers=_headers,
2564
+ _host_index=_host_index,
2565
+ )
2566
+
2567
+ _response_types_map: Dict[str, Optional[str]] = {
2568
+ "200": "IntakeUserResponse",
2569
+ "401": None,
2570
+ "404": None,
2571
+ "500": None,
2572
+ }
2573
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2574
+ return response_data.response
2575
+
2576
+ def _get_intake_user_serialize(
2577
+ self,
2578
+ project_id,
2579
+ region_id,
2580
+ intake_id,
2581
+ intake_user_id,
2582
+ _request_auth,
2583
+ _content_type,
2584
+ _headers,
2585
+ _host_index,
2586
+ ) -> RequestSerialized:
2587
+
2588
+ _host = None
2589
+
2590
+ _collection_formats: Dict[str, str] = {}
2591
+
2592
+ _path_params: Dict[str, str] = {}
2593
+ _query_params: List[Tuple[str, str]] = []
2594
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2595
+ _form_params: List[Tuple[str, str]] = []
2596
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2597
+ _body_params: Optional[bytes] = None
2598
+
2599
+ # process the path parameters
2600
+ if project_id is not None:
2601
+ _path_params["projectId"] = project_id
2602
+ if region_id is not None:
2603
+ _path_params["regionId"] = region_id
2604
+ if intake_id is not None:
2605
+ _path_params["intakeId"] = intake_id
2606
+ if intake_user_id is not None:
2607
+ _path_params["intakeUserId"] = intake_user_id
2608
+ # process the query parameters
2609
+ # process the header parameters
2610
+ # process the form parameters
2611
+ # process the body parameter
2612
+
2613
+ # set the HTTP header `Accept`
2614
+ if "Accept" not in _header_params:
2615
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
2616
+
2617
+ # authentication setting
2618
+ _auth_settings: List[str] = []
2619
+
2620
+ return self.api_client.param_serialize(
2621
+ method="GET",
2622
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users/{intakeUserId}",
2623
+ path_params=_path_params,
2624
+ query_params=_query_params,
2625
+ header_params=_header_params,
2626
+ body=_body_params,
2627
+ post_params=_form_params,
2628
+ files=_files,
2629
+ auth_settings=_auth_settings,
2630
+ collection_formats=_collection_formats,
2631
+ _host=_host,
2632
+ _request_auth=_request_auth,
2633
+ )
2634
+
2635
+ @validate_call
2636
+ def list_intake_runners(
2637
+ self,
2638
+ project_id: Annotated[
2639
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
2640
+ ],
2641
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
2642
+ page_token: Annotated[
2643
+ Optional[Annotated[str, Field(strict=True, max_length=1024)]],
2644
+ Field(description="A token to retrieve the next page of results."),
2645
+ ] = None,
2646
+ page_size: Annotated[
2647
+ Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
2648
+ Field(description="Maximum number of items to return"),
2649
+ ] = None,
2650
+ _request_timeout: Union[
2651
+ None,
2652
+ Annotated[StrictFloat, Field(gt=0)],
2653
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2654
+ ] = None,
2655
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2656
+ _content_type: Optional[StrictStr] = None,
2657
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2658
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2659
+ ) -> ListIntakeRunnersResponse:
2660
+ """list_intake_runners
2661
+
2662
+ Returns a list of all intake runners within the project.
2663
+
2664
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
2665
+ :type project_id: str
2666
+ :param region_id: The STACKIT region name the resource is located in. (required)
2667
+ :type region_id: str
2668
+ :param page_token: A token to retrieve the next page of results.
2669
+ :type page_token: str
2670
+ :param page_size: Maximum number of items to return
2671
+ :type page_size: int
2672
+ :param _request_timeout: timeout setting for this request. If one
2673
+ number provided, it will be total request
2674
+ timeout. It can also be a pair (tuple) of
2675
+ (connection, read) timeouts.
2676
+ :type _request_timeout: int, tuple(int, int), optional
2677
+ :param _request_auth: set to override the auth_settings for an a single
2678
+ request; this effectively ignores the
2679
+ authentication in the spec for a single request.
2680
+ :type _request_auth: dict, optional
2681
+ :param _content_type: force content-type for the request.
2682
+ :type _content_type: str, Optional
2683
+ :param _headers: set to override the headers for a single
2684
+ request; this effectively ignores the headers
2685
+ in the spec for a single request.
2686
+ :type _headers: dict, optional
2687
+ :param _host_index: set to override the host_index for a single
2688
+ request; this effectively ignores the host_index
2689
+ in the spec for a single request.
2690
+ :type _host_index: int, optional
2691
+ :return: Returns the result object.
2692
+ """ # noqa: E501
2693
+
2694
+ _param = self._list_intake_runners_serialize(
2695
+ project_id=project_id,
2696
+ region_id=region_id,
2697
+ page_token=page_token,
2698
+ page_size=page_size,
2699
+ _request_auth=_request_auth,
2700
+ _content_type=_content_type,
2701
+ _headers=_headers,
2702
+ _host_index=_host_index,
2703
+ )
2704
+
2705
+ _response_types_map: Dict[str, Optional[str]] = {
2706
+ "200": "ListIntakeRunnersResponse",
2707
+ "401": None,
2708
+ "500": None,
2709
+ }
2710
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2711
+ response_data.read()
2712
+ return self.api_client.response_deserialize(
2713
+ response_data=response_data,
2714
+ response_types_map=_response_types_map,
2715
+ ).data
2716
+
2717
+ @validate_call
2718
+ def list_intake_runners_with_http_info(
2719
+ self,
2720
+ project_id: Annotated[
2721
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
2722
+ ],
2723
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
2724
+ page_token: Annotated[
2725
+ Optional[Annotated[str, Field(strict=True, max_length=1024)]],
2726
+ Field(description="A token to retrieve the next page of results."),
2727
+ ] = None,
2728
+ page_size: Annotated[
2729
+ Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
2730
+ Field(description="Maximum number of items to return"),
2731
+ ] = None,
2732
+ _request_timeout: Union[
2733
+ None,
2734
+ Annotated[StrictFloat, Field(gt=0)],
2735
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2736
+ ] = None,
2737
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2738
+ _content_type: Optional[StrictStr] = None,
2739
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2740
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2741
+ ) -> ApiResponse[ListIntakeRunnersResponse]:
2742
+ """list_intake_runners
2743
+
2744
+ Returns a list of all intake runners within the project.
2745
+
2746
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
2747
+ :type project_id: str
2748
+ :param region_id: The STACKIT region name the resource is located in. (required)
2749
+ :type region_id: str
2750
+ :param page_token: A token to retrieve the next page of results.
2751
+ :type page_token: str
2752
+ :param page_size: Maximum number of items to return
2753
+ :type page_size: int
2754
+ :param _request_timeout: timeout setting for this request. If one
2755
+ number provided, it will be total request
2756
+ timeout. It can also be a pair (tuple) of
2757
+ (connection, read) timeouts.
2758
+ :type _request_timeout: int, tuple(int, int), optional
2759
+ :param _request_auth: set to override the auth_settings for an a single
2760
+ request; this effectively ignores the
2761
+ authentication in the spec for a single request.
2762
+ :type _request_auth: dict, optional
2763
+ :param _content_type: force content-type for the request.
2764
+ :type _content_type: str, Optional
2765
+ :param _headers: set to override the headers for a single
2766
+ request; this effectively ignores the headers
2767
+ in the spec for a single request.
2768
+ :type _headers: dict, optional
2769
+ :param _host_index: set to override the host_index for a single
2770
+ request; this effectively ignores the host_index
2771
+ in the spec for a single request.
2772
+ :type _host_index: int, optional
2773
+ :return: Returns the result object.
2774
+ """ # noqa: E501
2775
+
2776
+ _param = self._list_intake_runners_serialize(
2777
+ project_id=project_id,
2778
+ region_id=region_id,
2779
+ page_token=page_token,
2780
+ page_size=page_size,
2781
+ _request_auth=_request_auth,
2782
+ _content_type=_content_type,
2783
+ _headers=_headers,
2784
+ _host_index=_host_index,
2785
+ )
2786
+
2787
+ _response_types_map: Dict[str, Optional[str]] = {
2788
+ "200": "ListIntakeRunnersResponse",
2789
+ "401": None,
2790
+ "500": None,
2791
+ }
2792
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2793
+ response_data.read()
2794
+ return self.api_client.response_deserialize(
2795
+ response_data=response_data,
2796
+ response_types_map=_response_types_map,
2797
+ )
2798
+
2799
+ @validate_call
2800
+ def list_intake_runners_without_preload_content(
2801
+ self,
2802
+ project_id: Annotated[
2803
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
2804
+ ],
2805
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
2806
+ page_token: Annotated[
2807
+ Optional[Annotated[str, Field(strict=True, max_length=1024)]],
2808
+ Field(description="A token to retrieve the next page of results."),
2809
+ ] = None,
2810
+ page_size: Annotated[
2811
+ Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
2812
+ Field(description="Maximum number of items to return"),
2813
+ ] = None,
2814
+ _request_timeout: Union[
2815
+ None,
2816
+ Annotated[StrictFloat, Field(gt=0)],
2817
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2818
+ ] = None,
2819
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2820
+ _content_type: Optional[StrictStr] = None,
2821
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2822
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2823
+ ) -> RESTResponseType:
2824
+ """list_intake_runners
2825
+
2826
+ Returns a list of all intake runners within the project.
2827
+
2828
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
2829
+ :type project_id: str
2830
+ :param region_id: The STACKIT region name the resource is located in. (required)
2831
+ :type region_id: str
2832
+ :param page_token: A token to retrieve the next page of results.
2833
+ :type page_token: str
2834
+ :param page_size: Maximum number of items to return
2835
+ :type page_size: int
2836
+ :param _request_timeout: timeout setting for this request. If one
2837
+ number provided, it will be total request
2838
+ timeout. It can also be a pair (tuple) of
2839
+ (connection, read) timeouts.
2840
+ :type _request_timeout: int, tuple(int, int), optional
2841
+ :param _request_auth: set to override the auth_settings for an a single
2842
+ request; this effectively ignores the
2843
+ authentication in the spec for a single request.
2844
+ :type _request_auth: dict, optional
2845
+ :param _content_type: force content-type for the request.
2846
+ :type _content_type: str, Optional
2847
+ :param _headers: set to override the headers for a single
2848
+ request; this effectively ignores the headers
2849
+ in the spec for a single request.
2850
+ :type _headers: dict, optional
2851
+ :param _host_index: set to override the host_index for a single
2852
+ request; this effectively ignores the host_index
2853
+ in the spec for a single request.
2854
+ :type _host_index: int, optional
2855
+ :return: Returns the result object.
2856
+ """ # noqa: E501
2857
+
2858
+ _param = self._list_intake_runners_serialize(
2859
+ project_id=project_id,
2860
+ region_id=region_id,
2861
+ page_token=page_token,
2862
+ page_size=page_size,
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": "ListIntakeRunnersResponse",
2871
+ "401": None,
2872
+ "500": None,
2873
+ }
2874
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2875
+ return response_data.response
2876
+
2877
+ def _list_intake_runners_serialize(
2878
+ self,
2879
+ project_id,
2880
+ region_id,
2881
+ page_token,
2882
+ page_size,
2883
+ _request_auth,
2884
+ _content_type,
2885
+ _headers,
2886
+ _host_index,
2887
+ ) -> RequestSerialized:
2888
+
2889
+ _host = None
2890
+
2891
+ _collection_formats: Dict[str, str] = {}
2892
+
2893
+ _path_params: Dict[str, str] = {}
2894
+ _query_params: List[Tuple[str, str]] = []
2895
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2896
+ _form_params: List[Tuple[str, str]] = []
2897
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2898
+ _body_params: Optional[bytes] = None
2899
+
2900
+ # process the path parameters
2901
+ if project_id is not None:
2902
+ _path_params["projectId"] = project_id
2903
+ if region_id is not None:
2904
+ _path_params["regionId"] = region_id
2905
+ # process the query parameters
2906
+ if page_token is not None:
2907
+
2908
+ _query_params.append(("pageToken", page_token))
2909
+
2910
+ if page_size is not None:
2911
+
2912
+ _query_params.append(("pageSize", page_size))
2913
+
2914
+ # process the header parameters
2915
+ # process the form parameters
2916
+ # process the body parameter
2917
+
2918
+ # set the HTTP header `Accept`
2919
+ if "Accept" not in _header_params:
2920
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
2921
+
2922
+ # authentication setting
2923
+ _auth_settings: List[str] = []
2924
+
2925
+ return self.api_client.param_serialize(
2926
+ method="GET",
2927
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intake-runners",
2928
+ path_params=_path_params,
2929
+ query_params=_query_params,
2930
+ header_params=_header_params,
2931
+ body=_body_params,
2932
+ post_params=_form_params,
2933
+ files=_files,
2934
+ auth_settings=_auth_settings,
2935
+ collection_formats=_collection_formats,
2936
+ _host=_host,
2937
+ _request_auth=_request_auth,
2938
+ )
2939
+
2940
+ @validate_call
2941
+ def list_intake_users(
2942
+ self,
2943
+ project_id: Annotated[
2944
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
2945
+ ],
2946
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
2947
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
2948
+ page_token: Annotated[
2949
+ Optional[Annotated[str, Field(strict=True, max_length=1024)]],
2950
+ Field(description="A token to retrieve the next page of results."),
2951
+ ] = None,
2952
+ page_size: Annotated[
2953
+ Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
2954
+ Field(description="Maximum number of items to return"),
2955
+ ] = None,
2956
+ _request_timeout: Union[
2957
+ None,
2958
+ Annotated[StrictFloat, Field(gt=0)],
2959
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2960
+ ] = None,
2961
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2962
+ _content_type: Optional[StrictStr] = None,
2963
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2964
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2965
+ ) -> ListIntakeUsersResponse:
2966
+ """list_intake_users
2967
+
2968
+ Returns a list of all intake users within the project and intake.
2969
+
2970
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
2971
+ :type project_id: str
2972
+ :param region_id: The STACKIT region name the resource is located in. (required)
2973
+ :type region_id: str
2974
+ :param intake_id: The intake UUID. (required)
2975
+ :type intake_id: str
2976
+ :param page_token: A token to retrieve the next page of results.
2977
+ :type page_token: str
2978
+ :param page_size: Maximum number of items to return
2979
+ :type page_size: int
2980
+ :param _request_timeout: timeout setting for this request. If one
2981
+ number provided, it will be total request
2982
+ timeout. It can also be a pair (tuple) of
2983
+ (connection, read) timeouts.
2984
+ :type _request_timeout: int, tuple(int, int), optional
2985
+ :param _request_auth: set to override the auth_settings for an a single
2986
+ request; this effectively ignores the
2987
+ authentication in the spec for a single request.
2988
+ :type _request_auth: dict, optional
2989
+ :param _content_type: force content-type for the request.
2990
+ :type _content_type: str, Optional
2991
+ :param _headers: set to override the headers for a single
2992
+ request; this effectively ignores the headers
2993
+ in the spec for a single request.
2994
+ :type _headers: dict, optional
2995
+ :param _host_index: set to override the host_index for a single
2996
+ request; this effectively ignores the host_index
2997
+ in the spec for a single request.
2998
+ :type _host_index: int, optional
2999
+ :return: Returns the result object.
3000
+ """ # noqa: E501
3001
+
3002
+ _param = self._list_intake_users_serialize(
3003
+ project_id=project_id,
3004
+ region_id=region_id,
3005
+ intake_id=intake_id,
3006
+ page_token=page_token,
3007
+ page_size=page_size,
3008
+ _request_auth=_request_auth,
3009
+ _content_type=_content_type,
3010
+ _headers=_headers,
3011
+ _host_index=_host_index,
3012
+ )
3013
+
3014
+ _response_types_map: Dict[str, Optional[str]] = {
3015
+ "200": "ListIntakeUsersResponse",
3016
+ "401": None,
3017
+ "500": None,
3018
+ }
3019
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3020
+ response_data.read()
3021
+ return self.api_client.response_deserialize(
3022
+ response_data=response_data,
3023
+ response_types_map=_response_types_map,
3024
+ ).data
3025
+
3026
+ @validate_call
3027
+ def list_intake_users_with_http_info(
3028
+ self,
3029
+ project_id: Annotated[
3030
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
3031
+ ],
3032
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
3033
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
3034
+ page_token: Annotated[
3035
+ Optional[Annotated[str, Field(strict=True, max_length=1024)]],
3036
+ Field(description="A token to retrieve the next page of results."),
3037
+ ] = None,
3038
+ page_size: Annotated[
3039
+ Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
3040
+ Field(description="Maximum number of items to return"),
3041
+ ] = None,
3042
+ _request_timeout: Union[
3043
+ None,
3044
+ Annotated[StrictFloat, Field(gt=0)],
3045
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3046
+ ] = None,
3047
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3048
+ _content_type: Optional[StrictStr] = None,
3049
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3050
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3051
+ ) -> ApiResponse[ListIntakeUsersResponse]:
3052
+ """list_intake_users
3053
+
3054
+ Returns a list of all intake users within the project and intake.
3055
+
3056
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
3057
+ :type project_id: str
3058
+ :param region_id: The STACKIT region name the resource is located in. (required)
3059
+ :type region_id: str
3060
+ :param intake_id: The intake UUID. (required)
3061
+ :type intake_id: str
3062
+ :param page_token: A token to retrieve the next page of results.
3063
+ :type page_token: str
3064
+ :param page_size: Maximum number of items to return
3065
+ :type page_size: int
3066
+ :param _request_timeout: timeout setting for this request. If one
3067
+ number provided, it will be total request
3068
+ timeout. It can also be a pair (tuple) of
3069
+ (connection, read) timeouts.
3070
+ :type _request_timeout: int, tuple(int, int), optional
3071
+ :param _request_auth: set to override the auth_settings for an a single
3072
+ request; this effectively ignores the
3073
+ authentication in the spec for a single request.
3074
+ :type _request_auth: dict, optional
3075
+ :param _content_type: force content-type for the request.
3076
+ :type _content_type: str, Optional
3077
+ :param _headers: set to override the headers for a single
3078
+ request; this effectively ignores the headers
3079
+ in the spec for a single request.
3080
+ :type _headers: dict, optional
3081
+ :param _host_index: set to override the host_index for a single
3082
+ request; this effectively ignores the host_index
3083
+ in the spec for a single request.
3084
+ :type _host_index: int, optional
3085
+ :return: Returns the result object.
3086
+ """ # noqa: E501
3087
+
3088
+ _param = self._list_intake_users_serialize(
3089
+ project_id=project_id,
3090
+ region_id=region_id,
3091
+ intake_id=intake_id,
3092
+ page_token=page_token,
3093
+ page_size=page_size,
3094
+ _request_auth=_request_auth,
3095
+ _content_type=_content_type,
3096
+ _headers=_headers,
3097
+ _host_index=_host_index,
3098
+ )
3099
+
3100
+ _response_types_map: Dict[str, Optional[str]] = {
3101
+ "200": "ListIntakeUsersResponse",
3102
+ "401": None,
3103
+ "500": None,
3104
+ }
3105
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3106
+ response_data.read()
3107
+ return self.api_client.response_deserialize(
3108
+ response_data=response_data,
3109
+ response_types_map=_response_types_map,
3110
+ )
3111
+
3112
+ @validate_call
3113
+ def list_intake_users_without_preload_content(
3114
+ self,
3115
+ project_id: Annotated[
3116
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
3117
+ ],
3118
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
3119
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
3120
+ page_token: Annotated[
3121
+ Optional[Annotated[str, Field(strict=True, max_length=1024)]],
3122
+ Field(description="A token to retrieve the next page of results."),
3123
+ ] = None,
3124
+ page_size: Annotated[
3125
+ Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
3126
+ Field(description="Maximum number of items to return"),
3127
+ ] = None,
3128
+ _request_timeout: Union[
3129
+ None,
3130
+ Annotated[StrictFloat, Field(gt=0)],
3131
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3132
+ ] = None,
3133
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3134
+ _content_type: Optional[StrictStr] = None,
3135
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3136
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3137
+ ) -> RESTResponseType:
3138
+ """list_intake_users
3139
+
3140
+ Returns a list of all intake users within the project and intake.
3141
+
3142
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
3143
+ :type project_id: str
3144
+ :param region_id: The STACKIT region name the resource is located in. (required)
3145
+ :type region_id: str
3146
+ :param intake_id: The intake UUID. (required)
3147
+ :type intake_id: str
3148
+ :param page_token: A token to retrieve the next page of results.
3149
+ :type page_token: str
3150
+ :param page_size: Maximum number of items to return
3151
+ :type page_size: int
3152
+ :param _request_timeout: timeout setting for this request. If one
3153
+ number provided, it will be total request
3154
+ timeout. It can also be a pair (tuple) of
3155
+ (connection, read) timeouts.
3156
+ :type _request_timeout: int, tuple(int, int), optional
3157
+ :param _request_auth: set to override the auth_settings for an a single
3158
+ request; this effectively ignores the
3159
+ authentication in the spec for a single request.
3160
+ :type _request_auth: dict, optional
3161
+ :param _content_type: force content-type for the request.
3162
+ :type _content_type: str, Optional
3163
+ :param _headers: set to override the headers for a single
3164
+ request; this effectively ignores the headers
3165
+ in the spec for a single request.
3166
+ :type _headers: dict, optional
3167
+ :param _host_index: set to override the host_index for a single
3168
+ request; this effectively ignores the host_index
3169
+ in the spec for a single request.
3170
+ :type _host_index: int, optional
3171
+ :return: Returns the result object.
3172
+ """ # noqa: E501
3173
+
3174
+ _param = self._list_intake_users_serialize(
3175
+ project_id=project_id,
3176
+ region_id=region_id,
3177
+ intake_id=intake_id,
3178
+ page_token=page_token,
3179
+ page_size=page_size,
3180
+ _request_auth=_request_auth,
3181
+ _content_type=_content_type,
3182
+ _headers=_headers,
3183
+ _host_index=_host_index,
3184
+ )
3185
+
3186
+ _response_types_map: Dict[str, Optional[str]] = {
3187
+ "200": "ListIntakeUsersResponse",
3188
+ "401": None,
3189
+ "500": None,
3190
+ }
3191
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3192
+ return response_data.response
3193
+
3194
+ def _list_intake_users_serialize(
3195
+ self,
3196
+ project_id,
3197
+ region_id,
3198
+ intake_id,
3199
+ page_token,
3200
+ page_size,
3201
+ _request_auth,
3202
+ _content_type,
3203
+ _headers,
3204
+ _host_index,
3205
+ ) -> RequestSerialized:
3206
+
3207
+ _host = None
3208
+
3209
+ _collection_formats: Dict[str, str] = {}
3210
+
3211
+ _path_params: Dict[str, str] = {}
3212
+ _query_params: List[Tuple[str, str]] = []
3213
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3214
+ _form_params: List[Tuple[str, str]] = []
3215
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3216
+ _body_params: Optional[bytes] = None
3217
+
3218
+ # process the path parameters
3219
+ if project_id is not None:
3220
+ _path_params["projectId"] = project_id
3221
+ if region_id is not None:
3222
+ _path_params["regionId"] = region_id
3223
+ if intake_id is not None:
3224
+ _path_params["intakeId"] = intake_id
3225
+ # process the query parameters
3226
+ if page_token is not None:
3227
+
3228
+ _query_params.append(("pageToken", page_token))
3229
+
3230
+ if page_size is not None:
3231
+
3232
+ _query_params.append(("pageSize", page_size))
3233
+
3234
+ # process the header parameters
3235
+ # process the form parameters
3236
+ # process the body parameter
3237
+
3238
+ # set the HTTP header `Accept`
3239
+ if "Accept" not in _header_params:
3240
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
3241
+
3242
+ # authentication setting
3243
+ _auth_settings: List[str] = []
3244
+
3245
+ return self.api_client.param_serialize(
3246
+ method="GET",
3247
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users",
3248
+ path_params=_path_params,
3249
+ query_params=_query_params,
3250
+ header_params=_header_params,
3251
+ body=_body_params,
3252
+ post_params=_form_params,
3253
+ files=_files,
3254
+ auth_settings=_auth_settings,
3255
+ collection_formats=_collection_formats,
3256
+ _host=_host,
3257
+ _request_auth=_request_auth,
3258
+ )
3259
+
3260
+ @validate_call
3261
+ def list_intakes(
3262
+ self,
3263
+ project_id: Annotated[
3264
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
3265
+ ],
3266
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
3267
+ page_token: Annotated[
3268
+ Optional[Annotated[str, Field(strict=True, max_length=1024)]],
3269
+ Field(description="A token to retrieve the next page of results."),
3270
+ ] = None,
3271
+ page_size: Annotated[
3272
+ Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
3273
+ Field(description="Maximum number of items to return"),
3274
+ ] = None,
3275
+ _request_timeout: Union[
3276
+ None,
3277
+ Annotated[StrictFloat, Field(gt=0)],
3278
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3279
+ ] = None,
3280
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3281
+ _content_type: Optional[StrictStr] = None,
3282
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3283
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3284
+ ) -> ListIntakesResponse:
3285
+ """list_intakes
3286
+
3287
+ Returns a list of all intakes within the project.
3288
+
3289
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
3290
+ :type project_id: str
3291
+ :param region_id: The STACKIT region name the resource is located in. (required)
3292
+ :type region_id: str
3293
+ :param page_token: A token to retrieve the next page of results.
3294
+ :type page_token: str
3295
+ :param page_size: Maximum number of items to return
3296
+ :type page_size: int
3297
+ :param _request_timeout: timeout setting for this request. If one
3298
+ number provided, it will be total request
3299
+ timeout. It can also be a pair (tuple) of
3300
+ (connection, read) timeouts.
3301
+ :type _request_timeout: int, tuple(int, int), optional
3302
+ :param _request_auth: set to override the auth_settings for an a single
3303
+ request; this effectively ignores the
3304
+ authentication in the spec for a single request.
3305
+ :type _request_auth: dict, optional
3306
+ :param _content_type: force content-type for the request.
3307
+ :type _content_type: str, Optional
3308
+ :param _headers: set to override the headers for a single
3309
+ request; this effectively ignores the headers
3310
+ in the spec for a single request.
3311
+ :type _headers: dict, optional
3312
+ :param _host_index: set to override the host_index for a single
3313
+ request; this effectively ignores the host_index
3314
+ in the spec for a single request.
3315
+ :type _host_index: int, optional
3316
+ :return: Returns the result object.
3317
+ """ # noqa: E501
3318
+
3319
+ _param = self._list_intakes_serialize(
3320
+ project_id=project_id,
3321
+ region_id=region_id,
3322
+ page_token=page_token,
3323
+ page_size=page_size,
3324
+ _request_auth=_request_auth,
3325
+ _content_type=_content_type,
3326
+ _headers=_headers,
3327
+ _host_index=_host_index,
3328
+ )
3329
+
3330
+ _response_types_map: Dict[str, Optional[str]] = {
3331
+ "200": "ListIntakesResponse",
3332
+ "401": None,
3333
+ "500": None,
3334
+ }
3335
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3336
+ response_data.read()
3337
+ return self.api_client.response_deserialize(
3338
+ response_data=response_data,
3339
+ response_types_map=_response_types_map,
3340
+ ).data
3341
+
3342
+ @validate_call
3343
+ def list_intakes_with_http_info(
3344
+ self,
3345
+ project_id: Annotated[
3346
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
3347
+ ],
3348
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
3349
+ page_token: Annotated[
3350
+ Optional[Annotated[str, Field(strict=True, max_length=1024)]],
3351
+ Field(description="A token to retrieve the next page of results."),
3352
+ ] = None,
3353
+ page_size: Annotated[
3354
+ Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
3355
+ Field(description="Maximum number of items to return"),
3356
+ ] = None,
3357
+ _request_timeout: Union[
3358
+ None,
3359
+ Annotated[StrictFloat, Field(gt=0)],
3360
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3361
+ ] = None,
3362
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3363
+ _content_type: Optional[StrictStr] = None,
3364
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3365
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3366
+ ) -> ApiResponse[ListIntakesResponse]:
3367
+ """list_intakes
3368
+
3369
+ Returns a list of all intakes within the project.
3370
+
3371
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
3372
+ :type project_id: str
3373
+ :param region_id: The STACKIT region name the resource is located in. (required)
3374
+ :type region_id: str
3375
+ :param page_token: A token to retrieve the next page of results.
3376
+ :type page_token: str
3377
+ :param page_size: Maximum number of items to return
3378
+ :type page_size: int
3379
+ :param _request_timeout: timeout setting for this request. If one
3380
+ number provided, it will be total request
3381
+ timeout. It can also be a pair (tuple) of
3382
+ (connection, read) timeouts.
3383
+ :type _request_timeout: int, tuple(int, int), optional
3384
+ :param _request_auth: set to override the auth_settings for an a single
3385
+ request; this effectively ignores the
3386
+ authentication in the spec for a single request.
3387
+ :type _request_auth: dict, optional
3388
+ :param _content_type: force content-type for the request.
3389
+ :type _content_type: str, Optional
3390
+ :param _headers: set to override the headers for a single
3391
+ request; this effectively ignores the headers
3392
+ in the spec for a single request.
3393
+ :type _headers: dict, optional
3394
+ :param _host_index: set to override the host_index for a single
3395
+ request; this effectively ignores the host_index
3396
+ in the spec for a single request.
3397
+ :type _host_index: int, optional
3398
+ :return: Returns the result object.
3399
+ """ # noqa: E501
3400
+
3401
+ _param = self._list_intakes_serialize(
3402
+ project_id=project_id,
3403
+ region_id=region_id,
3404
+ page_token=page_token,
3405
+ page_size=page_size,
3406
+ _request_auth=_request_auth,
3407
+ _content_type=_content_type,
3408
+ _headers=_headers,
3409
+ _host_index=_host_index,
3410
+ )
3411
+
3412
+ _response_types_map: Dict[str, Optional[str]] = {
3413
+ "200": "ListIntakesResponse",
3414
+ "401": None,
3415
+ "500": None,
3416
+ }
3417
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3418
+ response_data.read()
3419
+ return self.api_client.response_deserialize(
3420
+ response_data=response_data,
3421
+ response_types_map=_response_types_map,
3422
+ )
3423
+
3424
+ @validate_call
3425
+ def list_intakes_without_preload_content(
3426
+ self,
3427
+ project_id: Annotated[
3428
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
3429
+ ],
3430
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
3431
+ page_token: Annotated[
3432
+ Optional[Annotated[str, Field(strict=True, max_length=1024)]],
3433
+ Field(description="A token to retrieve the next page of results."),
3434
+ ] = None,
3435
+ page_size: Annotated[
3436
+ Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
3437
+ Field(description="Maximum number of items to return"),
3438
+ ] = None,
3439
+ _request_timeout: Union[
3440
+ None,
3441
+ Annotated[StrictFloat, Field(gt=0)],
3442
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3443
+ ] = None,
3444
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3445
+ _content_type: Optional[StrictStr] = None,
3446
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3447
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3448
+ ) -> RESTResponseType:
3449
+ """list_intakes
3450
+
3451
+ Returns a list of all intakes within the project.
3452
+
3453
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
3454
+ :type project_id: str
3455
+ :param region_id: The STACKIT region name the resource is located in. (required)
3456
+ :type region_id: str
3457
+ :param page_token: A token to retrieve the next page of results.
3458
+ :type page_token: str
3459
+ :param page_size: Maximum number of items to return
3460
+ :type page_size: int
3461
+ :param _request_timeout: timeout setting for this request. If one
3462
+ number provided, it will be total request
3463
+ timeout. It can also be a pair (tuple) of
3464
+ (connection, read) timeouts.
3465
+ :type _request_timeout: int, tuple(int, int), optional
3466
+ :param _request_auth: set to override the auth_settings for an a single
3467
+ request; this effectively ignores the
3468
+ authentication in the spec for a single request.
3469
+ :type _request_auth: dict, optional
3470
+ :param _content_type: force content-type for the request.
3471
+ :type _content_type: str, Optional
3472
+ :param _headers: set to override the headers for a single
3473
+ request; this effectively ignores the headers
3474
+ in the spec for a single request.
3475
+ :type _headers: dict, optional
3476
+ :param _host_index: set to override the host_index for a single
3477
+ request; this effectively ignores the host_index
3478
+ in the spec for a single request.
3479
+ :type _host_index: int, optional
3480
+ :return: Returns the result object.
3481
+ """ # noqa: E501
3482
+
3483
+ _param = self._list_intakes_serialize(
3484
+ project_id=project_id,
3485
+ region_id=region_id,
3486
+ page_token=page_token,
3487
+ page_size=page_size,
3488
+ _request_auth=_request_auth,
3489
+ _content_type=_content_type,
3490
+ _headers=_headers,
3491
+ _host_index=_host_index,
3492
+ )
3493
+
3494
+ _response_types_map: Dict[str, Optional[str]] = {
3495
+ "200": "ListIntakesResponse",
3496
+ "401": None,
3497
+ "500": None,
3498
+ }
3499
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3500
+ return response_data.response
3501
+
3502
+ def _list_intakes_serialize(
3503
+ self,
3504
+ project_id,
3505
+ region_id,
3506
+ page_token,
3507
+ page_size,
3508
+ _request_auth,
3509
+ _content_type,
3510
+ _headers,
3511
+ _host_index,
3512
+ ) -> RequestSerialized:
3513
+
3514
+ _host = None
3515
+
3516
+ _collection_formats: Dict[str, str] = {}
3517
+
3518
+ _path_params: Dict[str, str] = {}
3519
+ _query_params: List[Tuple[str, str]] = []
3520
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3521
+ _form_params: List[Tuple[str, str]] = []
3522
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3523
+ _body_params: Optional[bytes] = None
3524
+
3525
+ # process the path parameters
3526
+ if project_id is not None:
3527
+ _path_params["projectId"] = project_id
3528
+ if region_id is not None:
3529
+ _path_params["regionId"] = region_id
3530
+ # process the query parameters
3531
+ if page_token is not None:
3532
+
3533
+ _query_params.append(("pageToken", page_token))
3534
+
3535
+ if page_size is not None:
3536
+
3537
+ _query_params.append(("pageSize", page_size))
3538
+
3539
+ # process the header parameters
3540
+ # process the form parameters
3541
+ # process the body parameter
3542
+
3543
+ # set the HTTP header `Accept`
3544
+ if "Accept" not in _header_params:
3545
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
3546
+
3547
+ # authentication setting
3548
+ _auth_settings: List[str] = []
3549
+
3550
+ return self.api_client.param_serialize(
3551
+ method="GET",
3552
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intakes",
3553
+ path_params=_path_params,
3554
+ query_params=_query_params,
3555
+ header_params=_header_params,
3556
+ body=_body_params,
3557
+ post_params=_form_params,
3558
+ files=_files,
3559
+ auth_settings=_auth_settings,
3560
+ collection_formats=_collection_formats,
3561
+ _host=_host,
3562
+ _request_auth=_request_auth,
3563
+ )
3564
+
3565
+ @validate_call
3566
+ def update_intake(
3567
+ self,
3568
+ project_id: Annotated[
3569
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
3570
+ ],
3571
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
3572
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
3573
+ update_intake_payload: UpdateIntakePayload,
3574
+ _request_timeout: Union[
3575
+ None,
3576
+ Annotated[StrictFloat, Field(gt=0)],
3577
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3578
+ ] = None,
3579
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3580
+ _content_type: Optional[StrictStr] = None,
3581
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3582
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3583
+ ) -> IntakeResponse:
3584
+ """update_intake
3585
+
3586
+ Updates the given intake.
3587
+
3588
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
3589
+ :type project_id: str
3590
+ :param region_id: The STACKIT region name the resource is located in. (required)
3591
+ :type region_id: str
3592
+ :param intake_id: The intake UUID. (required)
3593
+ :type intake_id: str
3594
+ :param update_intake_payload: (required)
3595
+ :type update_intake_payload: UpdateIntakePayload
3596
+ :param _request_timeout: timeout setting for this request. If one
3597
+ number provided, it will be total request
3598
+ timeout. It can also be a pair (tuple) of
3599
+ (connection, read) timeouts.
3600
+ :type _request_timeout: int, tuple(int, int), optional
3601
+ :param _request_auth: set to override the auth_settings for an a single
3602
+ request; this effectively ignores the
3603
+ authentication in the spec for a single request.
3604
+ :type _request_auth: dict, optional
3605
+ :param _content_type: force content-type for the request.
3606
+ :type _content_type: str, Optional
3607
+ :param _headers: set to override the headers for a single
3608
+ request; this effectively ignores the headers
3609
+ in the spec for a single request.
3610
+ :type _headers: dict, optional
3611
+ :param _host_index: set to override the host_index for a single
3612
+ request; this effectively ignores the host_index
3613
+ in the spec for a single request.
3614
+ :type _host_index: int, optional
3615
+ :return: Returns the result object.
3616
+ """ # noqa: E501
3617
+
3618
+ _param = self._update_intake_serialize(
3619
+ project_id=project_id,
3620
+ region_id=region_id,
3621
+ intake_id=intake_id,
3622
+ update_intake_payload=update_intake_payload,
3623
+ _request_auth=_request_auth,
3624
+ _content_type=_content_type,
3625
+ _headers=_headers,
3626
+ _host_index=_host_index,
3627
+ )
3628
+
3629
+ _response_types_map: Dict[str, Optional[str]] = {
3630
+ "200": "IntakeResponse",
3631
+ "401": None,
3632
+ "404": None,
3633
+ "409": None,
3634
+ "500": None,
3635
+ }
3636
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3637
+ response_data.read()
3638
+ return self.api_client.response_deserialize(
3639
+ response_data=response_data,
3640
+ response_types_map=_response_types_map,
3641
+ ).data
3642
+
3643
+ @validate_call
3644
+ def update_intake_with_http_info(
3645
+ self,
3646
+ project_id: Annotated[
3647
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
3648
+ ],
3649
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
3650
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
3651
+ update_intake_payload: UpdateIntakePayload,
3652
+ _request_timeout: Union[
3653
+ None,
3654
+ Annotated[StrictFloat, Field(gt=0)],
3655
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3656
+ ] = None,
3657
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3658
+ _content_type: Optional[StrictStr] = None,
3659
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3660
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3661
+ ) -> ApiResponse[IntakeResponse]:
3662
+ """update_intake
3663
+
3664
+ Updates the given intake.
3665
+
3666
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
3667
+ :type project_id: str
3668
+ :param region_id: The STACKIT region name the resource is located in. (required)
3669
+ :type region_id: str
3670
+ :param intake_id: The intake UUID. (required)
3671
+ :type intake_id: str
3672
+ :param update_intake_payload: (required)
3673
+ :type update_intake_payload: UpdateIntakePayload
3674
+ :param _request_timeout: timeout setting for this request. If one
3675
+ number provided, it will be total request
3676
+ timeout. It can also be a pair (tuple) of
3677
+ (connection, read) timeouts.
3678
+ :type _request_timeout: int, tuple(int, int), optional
3679
+ :param _request_auth: set to override the auth_settings for an a single
3680
+ request; this effectively ignores the
3681
+ authentication in the spec for a single request.
3682
+ :type _request_auth: dict, optional
3683
+ :param _content_type: force content-type for the request.
3684
+ :type _content_type: str, Optional
3685
+ :param _headers: set to override the headers for a single
3686
+ request; this effectively ignores the headers
3687
+ in the spec for a single request.
3688
+ :type _headers: dict, optional
3689
+ :param _host_index: set to override the host_index for a single
3690
+ request; this effectively ignores the host_index
3691
+ in the spec for a single request.
3692
+ :type _host_index: int, optional
3693
+ :return: Returns the result object.
3694
+ """ # noqa: E501
3695
+
3696
+ _param = self._update_intake_serialize(
3697
+ project_id=project_id,
3698
+ region_id=region_id,
3699
+ intake_id=intake_id,
3700
+ update_intake_payload=update_intake_payload,
3701
+ _request_auth=_request_auth,
3702
+ _content_type=_content_type,
3703
+ _headers=_headers,
3704
+ _host_index=_host_index,
3705
+ )
3706
+
3707
+ _response_types_map: Dict[str, Optional[str]] = {
3708
+ "200": "IntakeResponse",
3709
+ "401": None,
3710
+ "404": None,
3711
+ "409": None,
3712
+ "500": None,
3713
+ }
3714
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3715
+ response_data.read()
3716
+ return self.api_client.response_deserialize(
3717
+ response_data=response_data,
3718
+ response_types_map=_response_types_map,
3719
+ )
3720
+
3721
+ @validate_call
3722
+ def update_intake_without_preload_content(
3723
+ self,
3724
+ project_id: Annotated[
3725
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
3726
+ ],
3727
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
3728
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
3729
+ update_intake_payload: UpdateIntakePayload,
3730
+ _request_timeout: Union[
3731
+ None,
3732
+ Annotated[StrictFloat, Field(gt=0)],
3733
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3734
+ ] = None,
3735
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3736
+ _content_type: Optional[StrictStr] = None,
3737
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3738
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3739
+ ) -> RESTResponseType:
3740
+ """update_intake
3741
+
3742
+ Updates the given intake.
3743
+
3744
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
3745
+ :type project_id: str
3746
+ :param region_id: The STACKIT region name the resource is located in. (required)
3747
+ :type region_id: str
3748
+ :param intake_id: The intake UUID. (required)
3749
+ :type intake_id: str
3750
+ :param update_intake_payload: (required)
3751
+ :type update_intake_payload: UpdateIntakePayload
3752
+ :param _request_timeout: timeout setting for this request. If one
3753
+ number provided, it will be total request
3754
+ timeout. It can also be a pair (tuple) of
3755
+ (connection, read) timeouts.
3756
+ :type _request_timeout: int, tuple(int, int), optional
3757
+ :param _request_auth: set to override the auth_settings for an a single
3758
+ request; this effectively ignores the
3759
+ authentication in the spec for a single request.
3760
+ :type _request_auth: dict, optional
3761
+ :param _content_type: force content-type for the request.
3762
+ :type _content_type: str, Optional
3763
+ :param _headers: set to override the headers for a single
3764
+ request; this effectively ignores the headers
3765
+ in the spec for a single request.
3766
+ :type _headers: dict, optional
3767
+ :param _host_index: set to override the host_index for a single
3768
+ request; this effectively ignores the host_index
3769
+ in the spec for a single request.
3770
+ :type _host_index: int, optional
3771
+ :return: Returns the result object.
3772
+ """ # noqa: E501
3773
+
3774
+ _param = self._update_intake_serialize(
3775
+ project_id=project_id,
3776
+ region_id=region_id,
3777
+ intake_id=intake_id,
3778
+ update_intake_payload=update_intake_payload,
3779
+ _request_auth=_request_auth,
3780
+ _content_type=_content_type,
3781
+ _headers=_headers,
3782
+ _host_index=_host_index,
3783
+ )
3784
+
3785
+ _response_types_map: Dict[str, Optional[str]] = {
3786
+ "200": "IntakeResponse",
3787
+ "401": None,
3788
+ "404": None,
3789
+ "409": None,
3790
+ "500": None,
3791
+ }
3792
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3793
+ return response_data.response
3794
+
3795
+ def _update_intake_serialize(
3796
+ self,
3797
+ project_id,
3798
+ region_id,
3799
+ intake_id,
3800
+ update_intake_payload,
3801
+ _request_auth,
3802
+ _content_type,
3803
+ _headers,
3804
+ _host_index,
3805
+ ) -> RequestSerialized:
3806
+
3807
+ _host = None
3808
+
3809
+ _collection_formats: Dict[str, str] = {}
3810
+
3811
+ _path_params: Dict[str, str] = {}
3812
+ _query_params: List[Tuple[str, str]] = []
3813
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3814
+ _form_params: List[Tuple[str, str]] = []
3815
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
3816
+ _body_params: Optional[bytes] = None
3817
+
3818
+ # process the path parameters
3819
+ if project_id is not None:
3820
+ _path_params["projectId"] = project_id
3821
+ if region_id is not None:
3822
+ _path_params["regionId"] = region_id
3823
+ if intake_id is not None:
3824
+ _path_params["intakeId"] = intake_id
3825
+ # process the query parameters
3826
+ # process the header parameters
3827
+ # process the form parameters
3828
+ # process the body parameter
3829
+ if update_intake_payload is not None:
3830
+ _body_params = update_intake_payload
3831
+
3832
+ # set the HTTP header `Accept`
3833
+ if "Accept" not in _header_params:
3834
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
3835
+
3836
+ # set the HTTP header `Content-Type`
3837
+ if _content_type:
3838
+ _header_params["Content-Type"] = _content_type
3839
+ else:
3840
+ _default_content_type = self.api_client.select_header_content_type(["application/json"])
3841
+ if _default_content_type is not None:
3842
+ _header_params["Content-Type"] = _default_content_type
3843
+
3844
+ # authentication setting
3845
+ _auth_settings: List[str] = []
3846
+
3847
+ return self.api_client.param_serialize(
3848
+ method="PUT",
3849
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}",
3850
+ path_params=_path_params,
3851
+ query_params=_query_params,
3852
+ header_params=_header_params,
3853
+ body=_body_params,
3854
+ post_params=_form_params,
3855
+ files=_files,
3856
+ auth_settings=_auth_settings,
3857
+ collection_formats=_collection_formats,
3858
+ _host=_host,
3859
+ _request_auth=_request_auth,
3860
+ )
3861
+
3862
+ @validate_call
3863
+ def update_intake_runner(
3864
+ self,
3865
+ project_id: Annotated[
3866
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
3867
+ ],
3868
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
3869
+ intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")],
3870
+ update_intake_runner_payload: UpdateIntakeRunnerPayload,
3871
+ _request_timeout: Union[
3872
+ None,
3873
+ Annotated[StrictFloat, Field(gt=0)],
3874
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3875
+ ] = None,
3876
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3877
+ _content_type: Optional[StrictStr] = None,
3878
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3879
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3880
+ ) -> None:
3881
+ """update_intake_runner
3882
+
3883
+ Updates a intake runner within the project.
3884
+
3885
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
3886
+ :type project_id: str
3887
+ :param region_id: The STACKIT region name the resource is located in. (required)
3888
+ :type region_id: str
3889
+ :param intake_runner_id: The intake runner UUID. (required)
3890
+ :type intake_runner_id: str
3891
+ :param update_intake_runner_payload: (required)
3892
+ :type update_intake_runner_payload: UpdateIntakeRunnerPayload
3893
+ :param _request_timeout: timeout setting for this request. If one
3894
+ number provided, it will be total request
3895
+ timeout. It can also be a pair (tuple) of
3896
+ (connection, read) timeouts.
3897
+ :type _request_timeout: int, tuple(int, int), optional
3898
+ :param _request_auth: set to override the auth_settings for an a single
3899
+ request; this effectively ignores the
3900
+ authentication in the spec for a single request.
3901
+ :type _request_auth: dict, optional
3902
+ :param _content_type: force content-type for the request.
3903
+ :type _content_type: str, Optional
3904
+ :param _headers: set to override the headers for a single
3905
+ request; this effectively ignores the headers
3906
+ in the spec for a single request.
3907
+ :type _headers: dict, optional
3908
+ :param _host_index: set to override the host_index for a single
3909
+ request; this effectively ignores the host_index
3910
+ in the spec for a single request.
3911
+ :type _host_index: int, optional
3912
+ :return: Returns the result object.
3913
+ """ # noqa: E501
3914
+
3915
+ _param = self._update_intake_runner_serialize(
3916
+ project_id=project_id,
3917
+ region_id=region_id,
3918
+ intake_runner_id=intake_runner_id,
3919
+ update_intake_runner_payload=update_intake_runner_payload,
3920
+ _request_auth=_request_auth,
3921
+ _content_type=_content_type,
3922
+ _headers=_headers,
3923
+ _host_index=_host_index,
3924
+ )
3925
+
3926
+ _response_types_map: Dict[str, Optional[str]] = {
3927
+ "204": None,
3928
+ "400": None,
3929
+ "401": None,
3930
+ "409": None,
3931
+ "500": None,
3932
+ }
3933
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3934
+ response_data.read()
3935
+ return self.api_client.response_deserialize(
3936
+ response_data=response_data,
3937
+ response_types_map=_response_types_map,
3938
+ ).data
3939
+
3940
+ @validate_call
3941
+ def update_intake_runner_with_http_info(
3942
+ self,
3943
+ project_id: Annotated[
3944
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
3945
+ ],
3946
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
3947
+ intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")],
3948
+ update_intake_runner_payload: UpdateIntakeRunnerPayload,
3949
+ _request_timeout: Union[
3950
+ None,
3951
+ Annotated[StrictFloat, Field(gt=0)],
3952
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
3953
+ ] = None,
3954
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3955
+ _content_type: Optional[StrictStr] = None,
3956
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3957
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3958
+ ) -> ApiResponse[None]:
3959
+ """update_intake_runner
3960
+
3961
+ Updates a intake runner within the project.
3962
+
3963
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
3964
+ :type project_id: str
3965
+ :param region_id: The STACKIT region name the resource is located in. (required)
3966
+ :type region_id: str
3967
+ :param intake_runner_id: The intake runner UUID. (required)
3968
+ :type intake_runner_id: str
3969
+ :param update_intake_runner_payload: (required)
3970
+ :type update_intake_runner_payload: UpdateIntakeRunnerPayload
3971
+ :param _request_timeout: timeout setting for this request. If one
3972
+ number provided, it will be total request
3973
+ timeout. It can also be a pair (tuple) of
3974
+ (connection, read) timeouts.
3975
+ :type _request_timeout: int, tuple(int, int), optional
3976
+ :param _request_auth: set to override the auth_settings for an a single
3977
+ request; this effectively ignores the
3978
+ authentication in the spec for a single request.
3979
+ :type _request_auth: dict, optional
3980
+ :param _content_type: force content-type for the request.
3981
+ :type _content_type: str, Optional
3982
+ :param _headers: set to override the headers for a single
3983
+ request; this effectively ignores the headers
3984
+ in the spec for a single request.
3985
+ :type _headers: dict, optional
3986
+ :param _host_index: set to override the host_index for a single
3987
+ request; this effectively ignores the host_index
3988
+ in the spec for a single request.
3989
+ :type _host_index: int, optional
3990
+ :return: Returns the result object.
3991
+ """ # noqa: E501
3992
+
3993
+ _param = self._update_intake_runner_serialize(
3994
+ project_id=project_id,
3995
+ region_id=region_id,
3996
+ intake_runner_id=intake_runner_id,
3997
+ update_intake_runner_payload=update_intake_runner_payload,
3998
+ _request_auth=_request_auth,
3999
+ _content_type=_content_type,
4000
+ _headers=_headers,
4001
+ _host_index=_host_index,
4002
+ )
4003
+
4004
+ _response_types_map: Dict[str, Optional[str]] = {
4005
+ "204": None,
4006
+ "400": None,
4007
+ "401": None,
4008
+ "409": None,
4009
+ "500": None,
4010
+ }
4011
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
4012
+ response_data.read()
4013
+ return self.api_client.response_deserialize(
4014
+ response_data=response_data,
4015
+ response_types_map=_response_types_map,
4016
+ )
4017
+
4018
+ @validate_call
4019
+ def update_intake_runner_without_preload_content(
4020
+ self,
4021
+ project_id: Annotated[
4022
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
4023
+ ],
4024
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
4025
+ intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")],
4026
+ update_intake_runner_payload: UpdateIntakeRunnerPayload,
4027
+ _request_timeout: Union[
4028
+ None,
4029
+ Annotated[StrictFloat, Field(gt=0)],
4030
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
4031
+ ] = None,
4032
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4033
+ _content_type: Optional[StrictStr] = None,
4034
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4035
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4036
+ ) -> RESTResponseType:
4037
+ """update_intake_runner
4038
+
4039
+ Updates a intake runner within the project.
4040
+
4041
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
4042
+ :type project_id: str
4043
+ :param region_id: The STACKIT region name the resource is located in. (required)
4044
+ :type region_id: str
4045
+ :param intake_runner_id: The intake runner UUID. (required)
4046
+ :type intake_runner_id: str
4047
+ :param update_intake_runner_payload: (required)
4048
+ :type update_intake_runner_payload: UpdateIntakeRunnerPayload
4049
+ :param _request_timeout: timeout setting for this request. If one
4050
+ number provided, it will be total request
4051
+ timeout. It can also be a pair (tuple) of
4052
+ (connection, read) timeouts.
4053
+ :type _request_timeout: int, tuple(int, int), optional
4054
+ :param _request_auth: set to override the auth_settings for an a single
4055
+ request; this effectively ignores the
4056
+ authentication in the spec for a single request.
4057
+ :type _request_auth: dict, optional
4058
+ :param _content_type: force content-type for the request.
4059
+ :type _content_type: str, Optional
4060
+ :param _headers: set to override the headers for a single
4061
+ request; this effectively ignores the headers
4062
+ in the spec for a single request.
4063
+ :type _headers: dict, optional
4064
+ :param _host_index: set to override the host_index for a single
4065
+ request; this effectively ignores the host_index
4066
+ in the spec for a single request.
4067
+ :type _host_index: int, optional
4068
+ :return: Returns the result object.
4069
+ """ # noqa: E501
4070
+
4071
+ _param = self._update_intake_runner_serialize(
4072
+ project_id=project_id,
4073
+ region_id=region_id,
4074
+ intake_runner_id=intake_runner_id,
4075
+ update_intake_runner_payload=update_intake_runner_payload,
4076
+ _request_auth=_request_auth,
4077
+ _content_type=_content_type,
4078
+ _headers=_headers,
4079
+ _host_index=_host_index,
4080
+ )
4081
+
4082
+ _response_types_map: Dict[str, Optional[str]] = {
4083
+ "204": None,
4084
+ "400": None,
4085
+ "401": None,
4086
+ "409": None,
4087
+ "500": None,
4088
+ }
4089
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
4090
+ return response_data.response
4091
+
4092
+ def _update_intake_runner_serialize(
4093
+ self,
4094
+ project_id,
4095
+ region_id,
4096
+ intake_runner_id,
4097
+ update_intake_runner_payload,
4098
+ _request_auth,
4099
+ _content_type,
4100
+ _headers,
4101
+ _host_index,
4102
+ ) -> RequestSerialized:
4103
+
4104
+ _host = None
4105
+
4106
+ _collection_formats: Dict[str, str] = {}
4107
+
4108
+ _path_params: Dict[str, str] = {}
4109
+ _query_params: List[Tuple[str, str]] = []
4110
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4111
+ _form_params: List[Tuple[str, str]] = []
4112
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
4113
+ _body_params: Optional[bytes] = None
4114
+
4115
+ # process the path parameters
4116
+ if project_id is not None:
4117
+ _path_params["projectId"] = project_id
4118
+ if region_id is not None:
4119
+ _path_params["regionId"] = region_id
4120
+ if intake_runner_id is not None:
4121
+ _path_params["intakeRunnerId"] = intake_runner_id
4122
+ # process the query parameters
4123
+ # process the header parameters
4124
+ # process the form parameters
4125
+ # process the body parameter
4126
+ if update_intake_runner_payload is not None:
4127
+ _body_params = update_intake_runner_payload
4128
+
4129
+ # set the HTTP header `Content-Type`
4130
+ if _content_type:
4131
+ _header_params["Content-Type"] = _content_type
4132
+ else:
4133
+ _default_content_type = self.api_client.select_header_content_type(["application/json"])
4134
+ if _default_content_type is not None:
4135
+ _header_params["Content-Type"] = _default_content_type
4136
+
4137
+ # authentication setting
4138
+ _auth_settings: List[str] = []
4139
+
4140
+ return self.api_client.param_serialize(
4141
+ method="PUT",
4142
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intake-runners/{intakeRunnerId}",
4143
+ path_params=_path_params,
4144
+ query_params=_query_params,
4145
+ header_params=_header_params,
4146
+ body=_body_params,
4147
+ post_params=_form_params,
4148
+ files=_files,
4149
+ auth_settings=_auth_settings,
4150
+ collection_formats=_collection_formats,
4151
+ _host=_host,
4152
+ _request_auth=_request_auth,
4153
+ )
4154
+
4155
+ @validate_call
4156
+ def update_intake_user(
4157
+ self,
4158
+ project_id: Annotated[
4159
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
4160
+ ],
4161
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
4162
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
4163
+ intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")],
4164
+ update_intake_user_payload: UpdateIntakeUserPayload,
4165
+ _request_timeout: Union[
4166
+ None,
4167
+ Annotated[StrictFloat, Field(gt=0)],
4168
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
4169
+ ] = None,
4170
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4171
+ _content_type: Optional[StrictStr] = None,
4172
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4173
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4174
+ ) -> None:
4175
+ """update_intake_user
4176
+
4177
+ Updates the given intake user.
4178
+
4179
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
4180
+ :type project_id: str
4181
+ :param region_id: The STACKIT region name the resource is located in. (required)
4182
+ :type region_id: str
4183
+ :param intake_id: The intake UUID. (required)
4184
+ :type intake_id: str
4185
+ :param intake_user_id: The intake user UUID. (required)
4186
+ :type intake_user_id: str
4187
+ :param update_intake_user_payload: (required)
4188
+ :type update_intake_user_payload: UpdateIntakeUserPayload
4189
+ :param _request_timeout: timeout setting for this request. If one
4190
+ number provided, it will be total request
4191
+ timeout. It can also be a pair (tuple) of
4192
+ (connection, read) timeouts.
4193
+ :type _request_timeout: int, tuple(int, int), optional
4194
+ :param _request_auth: set to override the auth_settings for an a single
4195
+ request; this effectively ignores the
4196
+ authentication in the spec for a single request.
4197
+ :type _request_auth: dict, optional
4198
+ :param _content_type: force content-type for the request.
4199
+ :type _content_type: str, Optional
4200
+ :param _headers: set to override the headers for a single
4201
+ request; this effectively ignores the headers
4202
+ in the spec for a single request.
4203
+ :type _headers: dict, optional
4204
+ :param _host_index: set to override the host_index for a single
4205
+ request; this effectively ignores the host_index
4206
+ in the spec for a single request.
4207
+ :type _host_index: int, optional
4208
+ :return: Returns the result object.
4209
+ """ # noqa: E501
4210
+
4211
+ _param = self._update_intake_user_serialize(
4212
+ project_id=project_id,
4213
+ region_id=region_id,
4214
+ intake_id=intake_id,
4215
+ intake_user_id=intake_user_id,
4216
+ update_intake_user_payload=update_intake_user_payload,
4217
+ _request_auth=_request_auth,
4218
+ _content_type=_content_type,
4219
+ _headers=_headers,
4220
+ _host_index=_host_index,
4221
+ )
4222
+
4223
+ _response_types_map: Dict[str, Optional[str]] = {
4224
+ "204": None,
4225
+ "401": None,
4226
+ "404": None,
4227
+ "409": None,
4228
+ "500": None,
4229
+ }
4230
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
4231
+ response_data.read()
4232
+ return self.api_client.response_deserialize(
4233
+ response_data=response_data,
4234
+ response_types_map=_response_types_map,
4235
+ ).data
4236
+
4237
+ @validate_call
4238
+ def update_intake_user_with_http_info(
4239
+ self,
4240
+ project_id: Annotated[
4241
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
4242
+ ],
4243
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
4244
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
4245
+ intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")],
4246
+ update_intake_user_payload: UpdateIntakeUserPayload,
4247
+ _request_timeout: Union[
4248
+ None,
4249
+ Annotated[StrictFloat, Field(gt=0)],
4250
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
4251
+ ] = None,
4252
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4253
+ _content_type: Optional[StrictStr] = None,
4254
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4255
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4256
+ ) -> ApiResponse[None]:
4257
+ """update_intake_user
4258
+
4259
+ Updates the given intake user.
4260
+
4261
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
4262
+ :type project_id: str
4263
+ :param region_id: The STACKIT region name the resource is located in. (required)
4264
+ :type region_id: str
4265
+ :param intake_id: The intake UUID. (required)
4266
+ :type intake_id: str
4267
+ :param intake_user_id: The intake user UUID. (required)
4268
+ :type intake_user_id: str
4269
+ :param update_intake_user_payload: (required)
4270
+ :type update_intake_user_payload: UpdateIntakeUserPayload
4271
+ :param _request_timeout: timeout setting for this request. If one
4272
+ number provided, it will be total request
4273
+ timeout. It can also be a pair (tuple) of
4274
+ (connection, read) timeouts.
4275
+ :type _request_timeout: int, tuple(int, int), optional
4276
+ :param _request_auth: set to override the auth_settings for an a single
4277
+ request; this effectively ignores the
4278
+ authentication in the spec for a single request.
4279
+ :type _request_auth: dict, optional
4280
+ :param _content_type: force content-type for the request.
4281
+ :type _content_type: str, Optional
4282
+ :param _headers: set to override the headers for a single
4283
+ request; this effectively ignores the headers
4284
+ in the spec for a single request.
4285
+ :type _headers: dict, optional
4286
+ :param _host_index: set to override the host_index for a single
4287
+ request; this effectively ignores the host_index
4288
+ in the spec for a single request.
4289
+ :type _host_index: int, optional
4290
+ :return: Returns the result object.
4291
+ """ # noqa: E501
4292
+
4293
+ _param = self._update_intake_user_serialize(
4294
+ project_id=project_id,
4295
+ region_id=region_id,
4296
+ intake_id=intake_id,
4297
+ intake_user_id=intake_user_id,
4298
+ update_intake_user_payload=update_intake_user_payload,
4299
+ _request_auth=_request_auth,
4300
+ _content_type=_content_type,
4301
+ _headers=_headers,
4302
+ _host_index=_host_index,
4303
+ )
4304
+
4305
+ _response_types_map: Dict[str, Optional[str]] = {
4306
+ "204": None,
4307
+ "401": None,
4308
+ "404": None,
4309
+ "409": None,
4310
+ "500": None,
4311
+ }
4312
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
4313
+ response_data.read()
4314
+ return self.api_client.response_deserialize(
4315
+ response_data=response_data,
4316
+ response_types_map=_response_types_map,
4317
+ )
4318
+
4319
+ @validate_call
4320
+ def update_intake_user_without_preload_content(
4321
+ self,
4322
+ project_id: Annotated[
4323
+ StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.")
4324
+ ],
4325
+ region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")],
4326
+ intake_id: Annotated[StrictStr, Field(description="The intake UUID.")],
4327
+ intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")],
4328
+ update_intake_user_payload: UpdateIntakeUserPayload,
4329
+ _request_timeout: Union[
4330
+ None,
4331
+ Annotated[StrictFloat, Field(gt=0)],
4332
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
4333
+ ] = None,
4334
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4335
+ _content_type: Optional[StrictStr] = None,
4336
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4337
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4338
+ ) -> RESTResponseType:
4339
+ """update_intake_user
4340
+
4341
+ Updates the given intake user.
4342
+
4343
+ :param project_id: The STACKIT portal project UUID the resource is located in. (required)
4344
+ :type project_id: str
4345
+ :param region_id: The STACKIT region name the resource is located in. (required)
4346
+ :type region_id: str
4347
+ :param intake_id: The intake UUID. (required)
4348
+ :type intake_id: str
4349
+ :param intake_user_id: The intake user UUID. (required)
4350
+ :type intake_user_id: str
4351
+ :param update_intake_user_payload: (required)
4352
+ :type update_intake_user_payload: UpdateIntakeUserPayload
4353
+ :param _request_timeout: timeout setting for this request. If one
4354
+ number provided, it will be total request
4355
+ timeout. It can also be a pair (tuple) of
4356
+ (connection, read) timeouts.
4357
+ :type _request_timeout: int, tuple(int, int), optional
4358
+ :param _request_auth: set to override the auth_settings for an a single
4359
+ request; this effectively ignores the
4360
+ authentication in the spec for a single request.
4361
+ :type _request_auth: dict, optional
4362
+ :param _content_type: force content-type for the request.
4363
+ :type _content_type: str, Optional
4364
+ :param _headers: set to override the headers for a single
4365
+ request; this effectively ignores the headers
4366
+ in the spec for a single request.
4367
+ :type _headers: dict, optional
4368
+ :param _host_index: set to override the host_index for a single
4369
+ request; this effectively ignores the host_index
4370
+ in the spec for a single request.
4371
+ :type _host_index: int, optional
4372
+ :return: Returns the result object.
4373
+ """ # noqa: E501
4374
+
4375
+ _param = self._update_intake_user_serialize(
4376
+ project_id=project_id,
4377
+ region_id=region_id,
4378
+ intake_id=intake_id,
4379
+ intake_user_id=intake_user_id,
4380
+ update_intake_user_payload=update_intake_user_payload,
4381
+ _request_auth=_request_auth,
4382
+ _content_type=_content_type,
4383
+ _headers=_headers,
4384
+ _host_index=_host_index,
4385
+ )
4386
+
4387
+ _response_types_map: Dict[str, Optional[str]] = {
4388
+ "204": None,
4389
+ "401": None,
4390
+ "404": None,
4391
+ "409": None,
4392
+ "500": None,
4393
+ }
4394
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
4395
+ return response_data.response
4396
+
4397
+ def _update_intake_user_serialize(
4398
+ self,
4399
+ project_id,
4400
+ region_id,
4401
+ intake_id,
4402
+ intake_user_id,
4403
+ update_intake_user_payload,
4404
+ _request_auth,
4405
+ _content_type,
4406
+ _headers,
4407
+ _host_index,
4408
+ ) -> RequestSerialized:
4409
+
4410
+ _host = None
4411
+
4412
+ _collection_formats: Dict[str, str] = {}
4413
+
4414
+ _path_params: Dict[str, str] = {}
4415
+ _query_params: List[Tuple[str, str]] = []
4416
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4417
+ _form_params: List[Tuple[str, str]] = []
4418
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
4419
+ _body_params: Optional[bytes] = None
4420
+
4421
+ # process the path parameters
4422
+ if project_id is not None:
4423
+ _path_params["projectId"] = project_id
4424
+ if region_id is not None:
4425
+ _path_params["regionId"] = region_id
4426
+ if intake_id is not None:
4427
+ _path_params["intakeId"] = intake_id
4428
+ if intake_user_id is not None:
4429
+ _path_params["intakeUserId"] = intake_user_id
4430
+ # process the query parameters
4431
+ # process the header parameters
4432
+ # process the form parameters
4433
+ # process the body parameter
4434
+ if update_intake_user_payload is not None:
4435
+ _body_params = update_intake_user_payload
4436
+
4437
+ # set the HTTP header `Content-Type`
4438
+ if _content_type:
4439
+ _header_params["Content-Type"] = _content_type
4440
+ else:
4441
+ _default_content_type = self.api_client.select_header_content_type(["application/json"])
4442
+ if _default_content_type is not None:
4443
+ _header_params["Content-Type"] = _default_content_type
4444
+
4445
+ # authentication setting
4446
+ _auth_settings: List[str] = []
4447
+
4448
+ return self.api_client.param_serialize(
4449
+ method="PUT",
4450
+ resource_path="/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users/{intakeUserId}",
4451
+ path_params=_path_params,
4452
+ query_params=_query_params,
4453
+ header_params=_header_params,
4454
+ body=_body_params,
4455
+ post_params=_form_params,
4456
+ files=_files,
4457
+ auth_settings=_auth_settings,
4458
+ collection_formats=_collection_formats,
4459
+ _host=_host,
4460
+ _request_auth=_request_auth,
4461
+ )