across-server-openapi-python 1.3.0__py3-none-any.whl → 2.0.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.
- across/sdk/v1/__init__.py +76 -17
- across/sdk/v1/api/__init__.py +3 -1
- across/sdk/v1/api/auth_api.py +17 -286
- across/sdk/v1/api/broker_alert_api.py +1017 -0
- across/sdk/v1/api/broker_event_api.py +697 -0
- across/sdk/v1/api/filter_api.py +20 -20
- across/sdk/v1/api/group_api.py +31 -281
- across/sdk/v1/api/group_invite_api.py +65 -66
- across/sdk/v1/api/group_role_api.py +105 -106
- across/sdk/v1/api/instrument_api.py +20 -20
- across/sdk/v1/api/internal_api.py +20 -21
- across/sdk/v1/api/observation_api.py +762 -135
- across/sdk/v1/api/observation_request_api.py +2108 -0
- across/sdk/v1/api/observatory_api.py +24 -25
- across/sdk/v1/api/permission_api.py +5 -6
- across/sdk/v1/api/role_api.py +1 -1
- across/sdk/v1/api/schedule_api.py +84 -86
- across/sdk/v1/api/service_account_api.py +125 -126
- across/sdk/v1/api/telescope_api.py +26 -26
- across/sdk/v1/api/tle_api.py +7 -8
- across/sdk/v1/api/tools_api.py +55 -55
- across/sdk/v1/api/user_api.py +84 -333
- across/sdk/v1/api_client.py +111 -47
- across/sdk/v1/configuration.py +106 -33
- across/sdk/v1/exceptions.py +8 -6
- across/sdk/v1/models/__init__.py +36 -9
- across/sdk/v1/models/access_token_response.py +5 -4
- across/sdk/v1/models/across_server_routes_v1_group_invite_schemas_group_invite.py +106 -0
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group.py +93 -0
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group_role.py +20 -15
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_service_account.py +107 -0
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_user.py +7 -5
- across/sdk/v1/models/across_server_routes_v1_group_schemas_group.py +12 -12
- across/sdk/v1/models/across_server_routes_v1_group_schemas_user.py +8 -7
- across/sdk/v1/models/across_server_routes_v1_role_schemas_user.py +95 -0
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group.py +11 -10
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group_invite.py +8 -6
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group_role.py +106 -0
- across/sdk/v1/models/across_server_routes_v1_user_schemas_user.py +14 -16
- across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py +8 -7
- across/sdk/v1/models/bandpass.py +1 -1
- across/sdk/v1/models/bandpass_type.py +1 -1
- across/sdk/v1/models/broker_alert.py +106 -0
- across/sdk/v1/models/broker_alert_create.py +115 -0
- across/sdk/v1/models/broker_alert_data_source.py +39 -0
- across/sdk/v1/models/broker_alert_status.py +41 -0
- across/sdk/v1/models/broker_event.py +115 -0
- across/sdk/v1/models/broker_event_type.py +41 -0
- across/sdk/v1/models/constrained_date.py +8 -6
- across/sdk/v1/models/constraint_reason.py +5 -4
- across/sdk/v1/models/constraint_type.py +1 -1
- across/sdk/v1/models/coordinate.py +5 -4
- across/sdk/v1/models/date_range.py +5 -4
- across/sdk/v1/models/date_range_create.py +96 -0
- across/sdk/v1/models/depth_unit.py +1 -1
- across/sdk/v1/models/energy_bandpass.py +5 -4
- across/sdk/v1/models/energy_unit.py +1 -1
- across/sdk/v1/models/ephemeris_type.py +1 -1
- across/sdk/v1/models/filter.py +8 -6
- across/sdk/v1/models/frequency_bandpass.py +5 -4
- across/sdk/v1/models/frequency_unit.py +1 -1
- across/sdk/v1/models/grant_type.py +1 -1
- across/sdk/v1/models/ground_parameters.py +5 -4
- across/sdk/v1/models/group.py +5 -15
- across/sdk/v1/models/group_base.py +93 -0
- across/sdk/v1/models/group_invite.py +1 -1
- across/sdk/v1/models/group_invite_create.py +5 -4
- across/sdk/v1/models/group_invite_group_details.py +7 -5
- across/sdk/v1/models/group_read.py +7 -5
- across/sdk/v1/models/group_role.py +37 -6
- across/sdk/v1/models/group_role_create.py +7 -5
- across/sdk/v1/models/group_role_read.py +16 -9
- across/sdk/v1/models/http_validation_error.py +6 -6
- across/sdk/v1/models/id_name_schema.py +7 -5
- across/sdk/v1/models/instrument.py +31 -15
- across/sdk/v1/models/ivoa_obs_category.py +1 -1
- across/sdk/v1/models/ivoa_obs_tracking_type.py +1 -1
- across/sdk/v1/models/joint_visibility_result.py +23 -23
- across/sdk/v1/models/jpl_parameters.py +5 -4
- across/sdk/v1/models/localization.py +128 -0
- across/sdk/v1/models/localization_contour_base.py +95 -0
- across/sdk/v1/models/localization_create.py +121 -0
- across/sdk/v1/models/location_inner.py +1 -1
- across/sdk/v1/models/name_resolver.py +5 -4
- across/sdk/v1/models/nullable_date_range.py +5 -4
- across/sdk/v1/models/nullable_end_date_range.py +96 -0
- across/sdk/v1/models/observation.py +11 -10
- across/sdk/v1/models/observation_create.py +9 -8
- across/sdk/v1/models/observation_footprint.py +10 -9
- across/sdk/v1/models/observation_footprint_create.py +6 -6
- across/sdk/v1/models/observation_request.py +202 -0
- across/sdk/v1/models/observation_request_create.py +148 -0
- across/sdk/v1/models/observation_request_create_many.py +95 -0
- across/sdk/v1/models/observation_request_status.py +40 -0
- across/sdk/v1/models/observation_request_update.py +213 -0
- across/sdk/v1/models/observation_request_version.py +99 -0
- across/sdk/v1/models/observation_status.py +1 -1
- across/sdk/v1/models/observation_strategy.py +1 -1
- across/sdk/v1/models/observation_type.py +1 -1
- across/sdk/v1/models/observation_window.py +134 -0
- across/sdk/v1/models/observation_window1.py +140 -0
- across/sdk/v1/models/observatory.py +9 -9
- across/sdk/v1/models/observatory_ephemeris_type.py +5 -4
- across/sdk/v1/models/observatory_type.py +1 -1
- across/sdk/v1/models/observing_proposal.py +93 -0
- across/sdk/v1/models/observing_proposal_create.py +98 -0
- across/sdk/v1/models/page_broker_alert.py +116 -0
- across/sdk/v1/models/page_broker_event.py +116 -0
- across/sdk/v1/models/page_observation.py +6 -6
- across/sdk/v1/models/page_observation_request.py +116 -0
- across/sdk/v1/models/page_schedule.py +6 -6
- across/sdk/v1/models/parameters.py +1 -1
- across/sdk/v1/models/permission.py +7 -5
- across/sdk/v1/models/point.py +5 -4
- across/sdk/v1/models/proper_motion.py +93 -0
- across/sdk/v1/models/role.py +4 -4
- across/sdk/v1/models/role_base.py +7 -5
- across/sdk/v1/models/schedule.py +10 -9
- across/sdk/v1/models/schedule_cadence.py +8 -6
- across/sdk/v1/models/schedule_create.py +8 -7
- across/sdk/v1/models/schedule_create_many.py +9 -8
- across/sdk/v1/models/schedule_fidelity.py +1 -1
- across/sdk/v1/models/schedule_status.py +1 -1
- across/sdk/v1/models/service_account.py +1 -1
- across/sdk/v1/models/service_account_create.py +5 -4
- across/sdk/v1/models/service_account_secret.py +7 -5
- across/sdk/v1/models/service_account_update.py +5 -4
- across/sdk/v1/models/setting.py +100 -0
- across/sdk/v1/models/setting_type.py +39 -0
- across/sdk/v1/models/spice_parameters.py +5 -4
- across/sdk/v1/models/system_service_account.py +9 -9
- across/sdk/v1/models/telescope.py +9 -9
- across/sdk/v1/models/telescope_instrument.py +31 -15
- across/sdk/v1/models/tle.py +5 -4
- across/sdk/v1/models/tle_create.py +5 -4
- across/sdk/v1/models/tle_parameters.py +5 -4
- across/sdk/v1/models/unit_value.py +5 -4
- across/sdk/v1/models/user.py +47 -7
- across/sdk/v1/models/user_create.py +5 -4
- across/sdk/v1/models/user_info.py +7 -5
- across/sdk/v1/models/user_update.py +5 -4
- across/sdk/v1/models/validation_error.py +21 -12
- across/sdk/v1/models/validation_error_loc_inner.py +1 -1
- across/sdk/v1/models/visibility_result.py +14 -11
- across/sdk/v1/models/visibility_type.py +1 -1
- across/sdk/v1/models/visibility_window.py +5 -4
- across/sdk/v1/models/wavelength_bandpass.py +5 -4
- across/sdk/v1/models/wavelength_unit.py +1 -1
- across/sdk/v1/models/window.py +5 -4
- across/sdk/v1/rest.py +88 -12
- {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/METADATA +122 -45
- across_server_openapi_python-2.0.0.dist-info/RECORD +162 -0
- {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/WHEEL +1 -1
- across_server_openapi_python-1.3.0.dist-info/RECORD +0 -126
- {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/licenses/LICENSE +0 -0
- {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/top_level.txt +0 -0
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
1
|
"""
|
|
4
2
|
ACROSS Server
|
|
5
3
|
|
|
6
4
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
5
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
7
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
8
|
|
|
11
9
|
Do not edit the class manually.
|
|
12
10
|
""" # noqa: E501
|
|
13
11
|
|
|
12
|
+
|
|
14
13
|
import warnings
|
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
16
|
from typing_extensions import Annotated
|
|
18
17
|
|
|
19
|
-
from pydantic import StrictStr
|
|
20
18
|
from typing import List
|
|
19
|
+
from uuid import UUID
|
|
21
20
|
from across.sdk.v1.models.across_server_routes_v1_user_service_account_schemas_service_account import AcrossServerRoutesV1UserServiceAccountSchemasServiceAccount
|
|
22
21
|
from across.sdk.v1.models.service_account_create import ServiceAccountCreate
|
|
23
22
|
from across.sdk.v1.models.service_account_secret import ServiceAccountSecret
|
|
@@ -44,9 +43,9 @@ class ServiceAccountApi:
|
|
|
44
43
|
@validate_call
|
|
45
44
|
def assign_to_service_account(
|
|
46
45
|
self,
|
|
47
|
-
service_account_id:
|
|
48
|
-
group_role_id:
|
|
49
|
-
user_id:
|
|
46
|
+
service_account_id: UUID,
|
|
47
|
+
group_role_id: UUID,
|
|
48
|
+
user_id: UUID,
|
|
50
49
|
_request_timeout: Union[
|
|
51
50
|
None,
|
|
52
51
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -65,11 +64,11 @@ class ServiceAccountApi:
|
|
|
65
64
|
Assign a group role to a service account.
|
|
66
65
|
|
|
67
66
|
:param service_account_id: (required)
|
|
68
|
-
:type service_account_id:
|
|
67
|
+
:type service_account_id: UUID
|
|
69
68
|
:param group_role_id: (required)
|
|
70
|
-
:type group_role_id:
|
|
69
|
+
:type group_role_id: UUID
|
|
71
70
|
:param user_id: (required)
|
|
72
|
-
:type user_id:
|
|
71
|
+
:type user_id: UUID
|
|
73
72
|
:param _request_timeout: timeout setting for this request. If one
|
|
74
73
|
number provided, it will be total request
|
|
75
74
|
timeout. It can also be a pair (tuple) of
|
|
@@ -121,9 +120,9 @@ class ServiceAccountApi:
|
|
|
121
120
|
@validate_call
|
|
122
121
|
def assign_to_service_account_with_http_info(
|
|
123
122
|
self,
|
|
124
|
-
service_account_id:
|
|
125
|
-
group_role_id:
|
|
126
|
-
user_id:
|
|
123
|
+
service_account_id: UUID,
|
|
124
|
+
group_role_id: UUID,
|
|
125
|
+
user_id: UUID,
|
|
127
126
|
_request_timeout: Union[
|
|
128
127
|
None,
|
|
129
128
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -142,11 +141,11 @@ class ServiceAccountApi:
|
|
|
142
141
|
Assign a group role to a service account.
|
|
143
142
|
|
|
144
143
|
:param service_account_id: (required)
|
|
145
|
-
:type service_account_id:
|
|
144
|
+
:type service_account_id: UUID
|
|
146
145
|
:param group_role_id: (required)
|
|
147
|
-
:type group_role_id:
|
|
146
|
+
:type group_role_id: UUID
|
|
148
147
|
:param user_id: (required)
|
|
149
|
-
:type user_id:
|
|
148
|
+
:type user_id: UUID
|
|
150
149
|
:param _request_timeout: timeout setting for this request. If one
|
|
151
150
|
number provided, it will be total request
|
|
152
151
|
timeout. It can also be a pair (tuple) of
|
|
@@ -198,9 +197,9 @@ class ServiceAccountApi:
|
|
|
198
197
|
@validate_call
|
|
199
198
|
def assign_to_service_account_without_preload_content(
|
|
200
199
|
self,
|
|
201
|
-
service_account_id:
|
|
202
|
-
group_role_id:
|
|
203
|
-
user_id:
|
|
200
|
+
service_account_id: UUID,
|
|
201
|
+
group_role_id: UUID,
|
|
202
|
+
user_id: UUID,
|
|
204
203
|
_request_timeout: Union[
|
|
205
204
|
None,
|
|
206
205
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -219,11 +218,11 @@ class ServiceAccountApi:
|
|
|
219
218
|
Assign a group role to a service account.
|
|
220
219
|
|
|
221
220
|
:param service_account_id: (required)
|
|
222
|
-
:type service_account_id:
|
|
221
|
+
:type service_account_id: UUID
|
|
223
222
|
:param group_role_id: (required)
|
|
224
|
-
:type group_role_id:
|
|
223
|
+
:type group_role_id: UUID
|
|
225
224
|
:param user_id: (required)
|
|
226
|
-
:type user_id:
|
|
225
|
+
:type user_id: UUID
|
|
227
226
|
:param _request_timeout: timeout setting for this request. If one
|
|
228
227
|
number provided, it will be total request
|
|
229
228
|
timeout. It can also be a pair (tuple) of
|
|
@@ -286,7 +285,7 @@ class ServiceAccountApi:
|
|
|
286
285
|
|
|
287
286
|
_path_params: Dict[str, str] = {}
|
|
288
287
|
_query_params: List[Tuple[str, str]] = []
|
|
289
|
-
_header_params: Dict[str,
|
|
288
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
290
289
|
_form_params: List[Tuple[str, str]] = []
|
|
291
290
|
_files: Dict[
|
|
292
291
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -307,7 +306,7 @@ class ServiceAccountApi:
|
|
|
307
306
|
|
|
308
307
|
|
|
309
308
|
# set the HTTP header `Accept`
|
|
310
|
-
if '
|
|
309
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
311
310
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
312
311
|
[
|
|
313
312
|
'application/json'
|
|
@@ -341,7 +340,7 @@ class ServiceAccountApi:
|
|
|
341
340
|
@validate_call
|
|
342
341
|
def create_user_service_account(
|
|
343
342
|
self,
|
|
344
|
-
user_id:
|
|
343
|
+
user_id: UUID,
|
|
345
344
|
service_account_create: ServiceAccountCreate,
|
|
346
345
|
_request_timeout: Union[
|
|
347
346
|
None,
|
|
@@ -361,7 +360,7 @@ class ServiceAccountApi:
|
|
|
361
360
|
Create a new service account for an ACROSS user.
|
|
362
361
|
|
|
363
362
|
:param user_id: (required)
|
|
364
|
-
:type user_id:
|
|
363
|
+
:type user_id: UUID
|
|
365
364
|
:param service_account_create: (required)
|
|
366
365
|
:type service_account_create: ServiceAccountCreate
|
|
367
366
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -414,7 +413,7 @@ class ServiceAccountApi:
|
|
|
414
413
|
@validate_call
|
|
415
414
|
def create_user_service_account_with_http_info(
|
|
416
415
|
self,
|
|
417
|
-
user_id:
|
|
416
|
+
user_id: UUID,
|
|
418
417
|
service_account_create: ServiceAccountCreate,
|
|
419
418
|
_request_timeout: Union[
|
|
420
419
|
None,
|
|
@@ -434,7 +433,7 @@ class ServiceAccountApi:
|
|
|
434
433
|
Create a new service account for an ACROSS user.
|
|
435
434
|
|
|
436
435
|
:param user_id: (required)
|
|
437
|
-
:type user_id:
|
|
436
|
+
:type user_id: UUID
|
|
438
437
|
:param service_account_create: (required)
|
|
439
438
|
:type service_account_create: ServiceAccountCreate
|
|
440
439
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -487,7 +486,7 @@ class ServiceAccountApi:
|
|
|
487
486
|
@validate_call
|
|
488
487
|
def create_user_service_account_without_preload_content(
|
|
489
488
|
self,
|
|
490
|
-
user_id:
|
|
489
|
+
user_id: UUID,
|
|
491
490
|
service_account_create: ServiceAccountCreate,
|
|
492
491
|
_request_timeout: Union[
|
|
493
492
|
None,
|
|
@@ -507,7 +506,7 @@ class ServiceAccountApi:
|
|
|
507
506
|
Create a new service account for an ACROSS user.
|
|
508
507
|
|
|
509
508
|
:param user_id: (required)
|
|
510
|
-
:type user_id:
|
|
509
|
+
:type user_id: UUID
|
|
511
510
|
:param service_account_create: (required)
|
|
512
511
|
:type service_account_create: ServiceAccountCreate
|
|
513
512
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -570,7 +569,7 @@ class ServiceAccountApi:
|
|
|
570
569
|
|
|
571
570
|
_path_params: Dict[str, str] = {}
|
|
572
571
|
_query_params: List[Tuple[str, str]] = []
|
|
573
|
-
_header_params: Dict[str,
|
|
572
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
574
573
|
_form_params: List[Tuple[str, str]] = []
|
|
575
574
|
_files: Dict[
|
|
576
575
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -589,7 +588,7 @@ class ServiceAccountApi:
|
|
|
589
588
|
|
|
590
589
|
|
|
591
590
|
# set the HTTP header `Accept`
|
|
592
|
-
if '
|
|
591
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
593
592
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
594
593
|
[
|
|
595
594
|
'application/json'
|
|
@@ -598,7 +597,7 @@ class ServiceAccountApi:
|
|
|
598
597
|
|
|
599
598
|
# set the HTTP header `Content-Type`
|
|
600
599
|
if _content_type:
|
|
601
|
-
_header_params
|
|
600
|
+
self.api_client._set_header(_header_params, 'Content-Type', _content_type)
|
|
602
601
|
else:
|
|
603
602
|
_default_content_type = (
|
|
604
603
|
self.api_client.select_header_content_type(
|
|
@@ -608,7 +607,7 @@ class ServiceAccountApi:
|
|
|
608
607
|
)
|
|
609
608
|
)
|
|
610
609
|
if _default_content_type is not None:
|
|
611
|
-
_header_params
|
|
610
|
+
self.api_client._set_header(_header_params, 'Content-Type', _default_content_type)
|
|
612
611
|
|
|
613
612
|
# authentication setting
|
|
614
613
|
_auth_settings: List[str] = [
|
|
@@ -617,7 +616,7 @@ class ServiceAccountApi:
|
|
|
617
616
|
|
|
618
617
|
return self.api_client.param_serialize(
|
|
619
618
|
method='POST',
|
|
620
|
-
resource_path='/user/{user_id}/
|
|
619
|
+
resource_path='/user/{user_id}/service-account',
|
|
621
620
|
path_params=_path_params,
|
|
622
621
|
query_params=_query_params,
|
|
623
622
|
header_params=_header_params,
|
|
@@ -636,8 +635,8 @@ class ServiceAccountApi:
|
|
|
636
635
|
@validate_call
|
|
637
636
|
def delete_user_service_account(
|
|
638
637
|
self,
|
|
639
|
-
service_account_id:
|
|
640
|
-
user_id:
|
|
638
|
+
service_account_id: UUID,
|
|
639
|
+
user_id: UUID,
|
|
641
640
|
_request_timeout: Union[
|
|
642
641
|
None,
|
|
643
642
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -656,9 +655,9 @@ class ServiceAccountApi:
|
|
|
656
655
|
Expire a service account, the account will still exist for log/record purposes, but it will not be usable anymore.
|
|
657
656
|
|
|
658
657
|
:param service_account_id: (required)
|
|
659
|
-
:type service_account_id:
|
|
658
|
+
:type service_account_id: UUID
|
|
660
659
|
:param user_id: (required)
|
|
661
|
-
:type user_id:
|
|
660
|
+
:type user_id: UUID
|
|
662
661
|
:param _request_timeout: timeout setting for this request. If one
|
|
663
662
|
number provided, it will be total request
|
|
664
663
|
timeout. It can also be a pair (tuple) of
|
|
@@ -709,8 +708,8 @@ class ServiceAccountApi:
|
|
|
709
708
|
@validate_call
|
|
710
709
|
def delete_user_service_account_with_http_info(
|
|
711
710
|
self,
|
|
712
|
-
service_account_id:
|
|
713
|
-
user_id:
|
|
711
|
+
service_account_id: UUID,
|
|
712
|
+
user_id: UUID,
|
|
714
713
|
_request_timeout: Union[
|
|
715
714
|
None,
|
|
716
715
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -729,9 +728,9 @@ class ServiceAccountApi:
|
|
|
729
728
|
Expire a service account, the account will still exist for log/record purposes, but it will not be usable anymore.
|
|
730
729
|
|
|
731
730
|
:param service_account_id: (required)
|
|
732
|
-
:type service_account_id:
|
|
731
|
+
:type service_account_id: UUID
|
|
733
732
|
:param user_id: (required)
|
|
734
|
-
:type user_id:
|
|
733
|
+
:type user_id: UUID
|
|
735
734
|
:param _request_timeout: timeout setting for this request. If one
|
|
736
735
|
number provided, it will be total request
|
|
737
736
|
timeout. It can also be a pair (tuple) of
|
|
@@ -782,8 +781,8 @@ class ServiceAccountApi:
|
|
|
782
781
|
@validate_call
|
|
783
782
|
def delete_user_service_account_without_preload_content(
|
|
784
783
|
self,
|
|
785
|
-
service_account_id:
|
|
786
|
-
user_id:
|
|
784
|
+
service_account_id: UUID,
|
|
785
|
+
user_id: UUID,
|
|
787
786
|
_request_timeout: Union[
|
|
788
787
|
None,
|
|
789
788
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -802,9 +801,9 @@ class ServiceAccountApi:
|
|
|
802
801
|
Expire a service account, the account will still exist for log/record purposes, but it will not be usable anymore.
|
|
803
802
|
|
|
804
803
|
:param service_account_id: (required)
|
|
805
|
-
:type service_account_id:
|
|
804
|
+
:type service_account_id: UUID
|
|
806
805
|
:param user_id: (required)
|
|
807
|
-
:type user_id:
|
|
806
|
+
:type user_id: UUID
|
|
808
807
|
:param _request_timeout: timeout setting for this request. If one
|
|
809
808
|
number provided, it will be total request
|
|
810
809
|
timeout. It can also be a pair (tuple) of
|
|
@@ -865,7 +864,7 @@ class ServiceAccountApi:
|
|
|
865
864
|
|
|
866
865
|
_path_params: Dict[str, str] = {}
|
|
867
866
|
_query_params: List[Tuple[str, str]] = []
|
|
868
|
-
_header_params: Dict[str,
|
|
867
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
869
868
|
_form_params: List[Tuple[str, str]] = []
|
|
870
869
|
_files: Dict[
|
|
871
870
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -884,7 +883,7 @@ class ServiceAccountApi:
|
|
|
884
883
|
|
|
885
884
|
|
|
886
885
|
# set the HTTP header `Accept`
|
|
887
|
-
if '
|
|
886
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
888
887
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
889
888
|
[
|
|
890
889
|
'application/json'
|
|
@@ -899,7 +898,7 @@ class ServiceAccountApi:
|
|
|
899
898
|
|
|
900
899
|
return self.api_client.param_serialize(
|
|
901
900
|
method='DELETE',
|
|
902
|
-
resource_path='/user/{user_id}/
|
|
901
|
+
resource_path='/user/{user_id}/service-account/{service_account_id}',
|
|
903
902
|
path_params=_path_params,
|
|
904
903
|
query_params=_query_params,
|
|
905
904
|
header_params=_header_params,
|
|
@@ -918,7 +917,7 @@ class ServiceAccountApi:
|
|
|
918
917
|
@validate_call
|
|
919
918
|
def get_service_accounts(
|
|
920
919
|
self,
|
|
921
|
-
user_id:
|
|
920
|
+
user_id: UUID,
|
|
922
921
|
_request_timeout: Union[
|
|
923
922
|
None,
|
|
924
923
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -937,7 +936,7 @@ class ServiceAccountApi:
|
|
|
937
936
|
Read many service accounts
|
|
938
937
|
|
|
939
938
|
:param user_id: (required)
|
|
940
|
-
:type user_id:
|
|
939
|
+
:type user_id: UUID
|
|
941
940
|
:param _request_timeout: timeout setting for this request. If one
|
|
942
941
|
number provided, it will be total request
|
|
943
942
|
timeout. It can also be a pair (tuple) of
|
|
@@ -987,7 +986,7 @@ class ServiceAccountApi:
|
|
|
987
986
|
@validate_call
|
|
988
987
|
def get_service_accounts_with_http_info(
|
|
989
988
|
self,
|
|
990
|
-
user_id:
|
|
989
|
+
user_id: UUID,
|
|
991
990
|
_request_timeout: Union[
|
|
992
991
|
None,
|
|
993
992
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1006,7 +1005,7 @@ class ServiceAccountApi:
|
|
|
1006
1005
|
Read many service accounts
|
|
1007
1006
|
|
|
1008
1007
|
:param user_id: (required)
|
|
1009
|
-
:type user_id:
|
|
1008
|
+
:type user_id: UUID
|
|
1010
1009
|
:param _request_timeout: timeout setting for this request. If one
|
|
1011
1010
|
number provided, it will be total request
|
|
1012
1011
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1056,7 +1055,7 @@ class ServiceAccountApi:
|
|
|
1056
1055
|
@validate_call
|
|
1057
1056
|
def get_service_accounts_without_preload_content(
|
|
1058
1057
|
self,
|
|
1059
|
-
user_id:
|
|
1058
|
+
user_id: UUID,
|
|
1060
1059
|
_request_timeout: Union[
|
|
1061
1060
|
None,
|
|
1062
1061
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1075,7 +1074,7 @@ class ServiceAccountApi:
|
|
|
1075
1074
|
Read many service accounts
|
|
1076
1075
|
|
|
1077
1076
|
:param user_id: (required)
|
|
1078
|
-
:type user_id:
|
|
1077
|
+
:type user_id: UUID
|
|
1079
1078
|
:param _request_timeout: timeout setting for this request. If one
|
|
1080
1079
|
number provided, it will be total request
|
|
1081
1080
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1134,7 +1133,7 @@ class ServiceAccountApi:
|
|
|
1134
1133
|
|
|
1135
1134
|
_path_params: Dict[str, str] = {}
|
|
1136
1135
|
_query_params: List[Tuple[str, str]] = []
|
|
1137
|
-
_header_params: Dict[str,
|
|
1136
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
1138
1137
|
_form_params: List[Tuple[str, str]] = []
|
|
1139
1138
|
_files: Dict[
|
|
1140
1139
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -1151,7 +1150,7 @@ class ServiceAccountApi:
|
|
|
1151
1150
|
|
|
1152
1151
|
|
|
1153
1152
|
# set the HTTP header `Accept`
|
|
1154
|
-
if '
|
|
1153
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
1155
1154
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1156
1155
|
[
|
|
1157
1156
|
'application/json'
|
|
@@ -1166,7 +1165,7 @@ class ServiceAccountApi:
|
|
|
1166
1165
|
|
|
1167
1166
|
return self.api_client.param_serialize(
|
|
1168
1167
|
method='GET',
|
|
1169
|
-
resource_path='/user/{user_id}/
|
|
1168
|
+
resource_path='/user/{user_id}/service-account',
|
|
1170
1169
|
path_params=_path_params,
|
|
1171
1170
|
query_params=_query_params,
|
|
1172
1171
|
header_params=_header_params,
|
|
@@ -1185,8 +1184,8 @@ class ServiceAccountApi:
|
|
|
1185
1184
|
@validate_call
|
|
1186
1185
|
def get_user_service_account(
|
|
1187
1186
|
self,
|
|
1188
|
-
service_account_id:
|
|
1189
|
-
user_id:
|
|
1187
|
+
service_account_id: UUID,
|
|
1188
|
+
user_id: UUID,
|
|
1190
1189
|
_request_timeout: Union[
|
|
1191
1190
|
None,
|
|
1192
1191
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1205,9 +1204,9 @@ class ServiceAccountApi:
|
|
|
1205
1204
|
Read a service account by an ID.
|
|
1206
1205
|
|
|
1207
1206
|
:param service_account_id: (required)
|
|
1208
|
-
:type service_account_id:
|
|
1207
|
+
:type service_account_id: UUID
|
|
1209
1208
|
:param user_id: (required)
|
|
1210
|
-
:type user_id:
|
|
1209
|
+
:type user_id: UUID
|
|
1211
1210
|
:param _request_timeout: timeout setting for this request. If one
|
|
1212
1211
|
number provided, it will be total request
|
|
1213
1212
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1258,8 +1257,8 @@ class ServiceAccountApi:
|
|
|
1258
1257
|
@validate_call
|
|
1259
1258
|
def get_user_service_account_with_http_info(
|
|
1260
1259
|
self,
|
|
1261
|
-
service_account_id:
|
|
1262
|
-
user_id:
|
|
1260
|
+
service_account_id: UUID,
|
|
1261
|
+
user_id: UUID,
|
|
1263
1262
|
_request_timeout: Union[
|
|
1264
1263
|
None,
|
|
1265
1264
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1278,9 +1277,9 @@ class ServiceAccountApi:
|
|
|
1278
1277
|
Read a service account by an ID.
|
|
1279
1278
|
|
|
1280
1279
|
:param service_account_id: (required)
|
|
1281
|
-
:type service_account_id:
|
|
1280
|
+
:type service_account_id: UUID
|
|
1282
1281
|
:param user_id: (required)
|
|
1283
|
-
:type user_id:
|
|
1282
|
+
:type user_id: UUID
|
|
1284
1283
|
:param _request_timeout: timeout setting for this request. If one
|
|
1285
1284
|
number provided, it will be total request
|
|
1286
1285
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1331,8 +1330,8 @@ class ServiceAccountApi:
|
|
|
1331
1330
|
@validate_call
|
|
1332
1331
|
def get_user_service_account_without_preload_content(
|
|
1333
1332
|
self,
|
|
1334
|
-
service_account_id:
|
|
1335
|
-
user_id:
|
|
1333
|
+
service_account_id: UUID,
|
|
1334
|
+
user_id: UUID,
|
|
1336
1335
|
_request_timeout: Union[
|
|
1337
1336
|
None,
|
|
1338
1337
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1351,9 +1350,9 @@ class ServiceAccountApi:
|
|
|
1351
1350
|
Read a service account by an ID.
|
|
1352
1351
|
|
|
1353
1352
|
:param service_account_id: (required)
|
|
1354
|
-
:type service_account_id:
|
|
1353
|
+
:type service_account_id: UUID
|
|
1355
1354
|
:param user_id: (required)
|
|
1356
|
-
:type user_id:
|
|
1355
|
+
:type user_id: UUID
|
|
1357
1356
|
:param _request_timeout: timeout setting for this request. If one
|
|
1358
1357
|
number provided, it will be total request
|
|
1359
1358
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1414,7 +1413,7 @@ class ServiceAccountApi:
|
|
|
1414
1413
|
|
|
1415
1414
|
_path_params: Dict[str, str] = {}
|
|
1416
1415
|
_query_params: List[Tuple[str, str]] = []
|
|
1417
|
-
_header_params: Dict[str,
|
|
1416
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
1418
1417
|
_form_params: List[Tuple[str, str]] = []
|
|
1419
1418
|
_files: Dict[
|
|
1420
1419
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -1433,7 +1432,7 @@ class ServiceAccountApi:
|
|
|
1433
1432
|
|
|
1434
1433
|
|
|
1435
1434
|
# set the HTTP header `Accept`
|
|
1436
|
-
if '
|
|
1435
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
1437
1436
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1438
1437
|
[
|
|
1439
1438
|
'application/json'
|
|
@@ -1448,7 +1447,7 @@ class ServiceAccountApi:
|
|
|
1448
1447
|
|
|
1449
1448
|
return self.api_client.param_serialize(
|
|
1450
1449
|
method='GET',
|
|
1451
|
-
resource_path='/user/{user_id}/
|
|
1450
|
+
resource_path='/user/{user_id}/service-account/{service_account_id}',
|
|
1452
1451
|
path_params=_path_params,
|
|
1453
1452
|
query_params=_query_params,
|
|
1454
1453
|
header_params=_header_params,
|
|
@@ -1467,9 +1466,9 @@ class ServiceAccountApi:
|
|
|
1467
1466
|
@validate_call
|
|
1468
1467
|
def remove_from_service_account(
|
|
1469
1468
|
self,
|
|
1470
|
-
service_account_id:
|
|
1471
|
-
group_role_id:
|
|
1472
|
-
user_id:
|
|
1469
|
+
service_account_id: UUID,
|
|
1470
|
+
group_role_id: UUID,
|
|
1471
|
+
user_id: UUID,
|
|
1473
1472
|
_request_timeout: Union[
|
|
1474
1473
|
None,
|
|
1475
1474
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1488,11 +1487,11 @@ class ServiceAccountApi:
|
|
|
1488
1487
|
Remove a group role from a service account.
|
|
1489
1488
|
|
|
1490
1489
|
:param service_account_id: (required)
|
|
1491
|
-
:type service_account_id:
|
|
1490
|
+
:type service_account_id: UUID
|
|
1492
1491
|
:param group_role_id: (required)
|
|
1493
|
-
:type group_role_id:
|
|
1492
|
+
:type group_role_id: UUID
|
|
1494
1493
|
:param user_id: (required)
|
|
1495
|
-
:type user_id:
|
|
1494
|
+
:type user_id: UUID
|
|
1496
1495
|
:param _request_timeout: timeout setting for this request. If one
|
|
1497
1496
|
number provided, it will be total request
|
|
1498
1497
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1544,9 +1543,9 @@ class ServiceAccountApi:
|
|
|
1544
1543
|
@validate_call
|
|
1545
1544
|
def remove_from_service_account_with_http_info(
|
|
1546
1545
|
self,
|
|
1547
|
-
service_account_id:
|
|
1548
|
-
group_role_id:
|
|
1549
|
-
user_id:
|
|
1546
|
+
service_account_id: UUID,
|
|
1547
|
+
group_role_id: UUID,
|
|
1548
|
+
user_id: UUID,
|
|
1550
1549
|
_request_timeout: Union[
|
|
1551
1550
|
None,
|
|
1552
1551
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1565,11 +1564,11 @@ class ServiceAccountApi:
|
|
|
1565
1564
|
Remove a group role from a service account.
|
|
1566
1565
|
|
|
1567
1566
|
:param service_account_id: (required)
|
|
1568
|
-
:type service_account_id:
|
|
1567
|
+
:type service_account_id: UUID
|
|
1569
1568
|
:param group_role_id: (required)
|
|
1570
|
-
:type group_role_id:
|
|
1569
|
+
:type group_role_id: UUID
|
|
1571
1570
|
:param user_id: (required)
|
|
1572
|
-
:type user_id:
|
|
1571
|
+
:type user_id: UUID
|
|
1573
1572
|
:param _request_timeout: timeout setting for this request. If one
|
|
1574
1573
|
number provided, it will be total request
|
|
1575
1574
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1621,9 +1620,9 @@ class ServiceAccountApi:
|
|
|
1621
1620
|
@validate_call
|
|
1622
1621
|
def remove_from_service_account_without_preload_content(
|
|
1623
1622
|
self,
|
|
1624
|
-
service_account_id:
|
|
1625
|
-
group_role_id:
|
|
1626
|
-
user_id:
|
|
1623
|
+
service_account_id: UUID,
|
|
1624
|
+
group_role_id: UUID,
|
|
1625
|
+
user_id: UUID,
|
|
1627
1626
|
_request_timeout: Union[
|
|
1628
1627
|
None,
|
|
1629
1628
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1642,11 +1641,11 @@ class ServiceAccountApi:
|
|
|
1642
1641
|
Remove a group role from a service account.
|
|
1643
1642
|
|
|
1644
1643
|
:param service_account_id: (required)
|
|
1645
|
-
:type service_account_id:
|
|
1644
|
+
:type service_account_id: UUID
|
|
1646
1645
|
:param group_role_id: (required)
|
|
1647
|
-
:type group_role_id:
|
|
1646
|
+
:type group_role_id: UUID
|
|
1648
1647
|
:param user_id: (required)
|
|
1649
|
-
:type user_id:
|
|
1648
|
+
:type user_id: UUID
|
|
1650
1649
|
:param _request_timeout: timeout setting for this request. If one
|
|
1651
1650
|
number provided, it will be total request
|
|
1652
1651
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1709,7 +1708,7 @@ class ServiceAccountApi:
|
|
|
1709
1708
|
|
|
1710
1709
|
_path_params: Dict[str, str] = {}
|
|
1711
1710
|
_query_params: List[Tuple[str, str]] = []
|
|
1712
|
-
_header_params: Dict[str,
|
|
1711
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
1713
1712
|
_form_params: List[Tuple[str, str]] = []
|
|
1714
1713
|
_files: Dict[
|
|
1715
1714
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -1730,7 +1729,7 @@ class ServiceAccountApi:
|
|
|
1730
1729
|
|
|
1731
1730
|
|
|
1732
1731
|
# set the HTTP header `Accept`
|
|
1733
|
-
if '
|
|
1732
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
1734
1733
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1735
1734
|
[
|
|
1736
1735
|
'application/json'
|
|
@@ -1764,8 +1763,8 @@ class ServiceAccountApi:
|
|
|
1764
1763
|
@validate_call
|
|
1765
1764
|
def update_user_service_account(
|
|
1766
1765
|
self,
|
|
1767
|
-
service_account_id:
|
|
1768
|
-
user_id:
|
|
1766
|
+
service_account_id: UUID,
|
|
1767
|
+
user_id: UUID,
|
|
1769
1768
|
service_account_update: ServiceAccountUpdate,
|
|
1770
1769
|
_request_timeout: Union[
|
|
1771
1770
|
None,
|
|
@@ -1785,9 +1784,9 @@ class ServiceAccountApi:
|
|
|
1785
1784
|
Update a service account's information.
|
|
1786
1785
|
|
|
1787
1786
|
:param service_account_id: (required)
|
|
1788
|
-
:type service_account_id:
|
|
1787
|
+
:type service_account_id: UUID
|
|
1789
1788
|
:param user_id: (required)
|
|
1790
|
-
:type user_id:
|
|
1789
|
+
:type user_id: UUID
|
|
1791
1790
|
:param service_account_update: (required)
|
|
1792
1791
|
:type service_account_update: ServiceAccountUpdate
|
|
1793
1792
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1841,8 +1840,8 @@ class ServiceAccountApi:
|
|
|
1841
1840
|
@validate_call
|
|
1842
1841
|
def update_user_service_account_with_http_info(
|
|
1843
1842
|
self,
|
|
1844
|
-
service_account_id:
|
|
1845
|
-
user_id:
|
|
1843
|
+
service_account_id: UUID,
|
|
1844
|
+
user_id: UUID,
|
|
1846
1845
|
service_account_update: ServiceAccountUpdate,
|
|
1847
1846
|
_request_timeout: Union[
|
|
1848
1847
|
None,
|
|
@@ -1862,9 +1861,9 @@ class ServiceAccountApi:
|
|
|
1862
1861
|
Update a service account's information.
|
|
1863
1862
|
|
|
1864
1863
|
:param service_account_id: (required)
|
|
1865
|
-
:type service_account_id:
|
|
1864
|
+
:type service_account_id: UUID
|
|
1866
1865
|
:param user_id: (required)
|
|
1867
|
-
:type user_id:
|
|
1866
|
+
:type user_id: UUID
|
|
1868
1867
|
:param service_account_update: (required)
|
|
1869
1868
|
:type service_account_update: ServiceAccountUpdate
|
|
1870
1869
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1918,8 +1917,8 @@ class ServiceAccountApi:
|
|
|
1918
1917
|
@validate_call
|
|
1919
1918
|
def update_user_service_account_without_preload_content(
|
|
1920
1919
|
self,
|
|
1921
|
-
service_account_id:
|
|
1922
|
-
user_id:
|
|
1920
|
+
service_account_id: UUID,
|
|
1921
|
+
user_id: UUID,
|
|
1923
1922
|
service_account_update: ServiceAccountUpdate,
|
|
1924
1923
|
_request_timeout: Union[
|
|
1925
1924
|
None,
|
|
@@ -1939,9 +1938,9 @@ class ServiceAccountApi:
|
|
|
1939
1938
|
Update a service account's information.
|
|
1940
1939
|
|
|
1941
1940
|
:param service_account_id: (required)
|
|
1942
|
-
:type service_account_id:
|
|
1941
|
+
:type service_account_id: UUID
|
|
1943
1942
|
:param user_id: (required)
|
|
1944
|
-
:type user_id:
|
|
1943
|
+
:type user_id: UUID
|
|
1945
1944
|
:param service_account_update: (required)
|
|
1946
1945
|
:type service_account_update: ServiceAccountUpdate
|
|
1947
1946
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -2006,7 +2005,7 @@ class ServiceAccountApi:
|
|
|
2006
2005
|
|
|
2007
2006
|
_path_params: Dict[str, str] = {}
|
|
2008
2007
|
_query_params: List[Tuple[str, str]] = []
|
|
2009
|
-
_header_params: Dict[str,
|
|
2008
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
2010
2009
|
_form_params: List[Tuple[str, str]] = []
|
|
2011
2010
|
_files: Dict[
|
|
2012
2011
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -2027,7 +2026,7 @@ class ServiceAccountApi:
|
|
|
2027
2026
|
|
|
2028
2027
|
|
|
2029
2028
|
# set the HTTP header `Accept`
|
|
2030
|
-
if '
|
|
2029
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
2031
2030
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2032
2031
|
[
|
|
2033
2032
|
'application/json'
|
|
@@ -2036,7 +2035,7 @@ class ServiceAccountApi:
|
|
|
2036
2035
|
|
|
2037
2036
|
# set the HTTP header `Content-Type`
|
|
2038
2037
|
if _content_type:
|
|
2039
|
-
_header_params
|
|
2038
|
+
self.api_client._set_header(_header_params, 'Content-Type', _content_type)
|
|
2040
2039
|
else:
|
|
2041
2040
|
_default_content_type = (
|
|
2042
2041
|
self.api_client.select_header_content_type(
|
|
@@ -2046,7 +2045,7 @@ class ServiceAccountApi:
|
|
|
2046
2045
|
)
|
|
2047
2046
|
)
|
|
2048
2047
|
if _default_content_type is not None:
|
|
2049
|
-
_header_params
|
|
2048
|
+
self.api_client._set_header(_header_params, 'Content-Type', _default_content_type)
|
|
2050
2049
|
|
|
2051
2050
|
# authentication setting
|
|
2052
2051
|
_auth_settings: List[str] = [
|
|
@@ -2055,7 +2054,7 @@ class ServiceAccountApi:
|
|
|
2055
2054
|
|
|
2056
2055
|
return self.api_client.param_serialize(
|
|
2057
2056
|
method='PATCH',
|
|
2058
|
-
resource_path='/user/{user_id}/
|
|
2057
|
+
resource_path='/user/{user_id}/service-account/{service_account_id}',
|
|
2059
2058
|
path_params=_path_params,
|
|
2060
2059
|
query_params=_query_params,
|
|
2061
2060
|
header_params=_header_params,
|
|
@@ -2074,8 +2073,8 @@ class ServiceAccountApi:
|
|
|
2074
2073
|
@validate_call
|
|
2075
2074
|
def user_service_account_rotate_key(
|
|
2076
2075
|
self,
|
|
2077
|
-
service_account_id:
|
|
2078
|
-
user_id:
|
|
2076
|
+
service_account_id: UUID,
|
|
2077
|
+
user_id: UUID,
|
|
2079
2078
|
_request_timeout: Union[
|
|
2080
2079
|
None,
|
|
2081
2080
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2094,9 +2093,9 @@ class ServiceAccountApi:
|
|
|
2094
2093
|
Rotate service account key and reset expiration based on expiration_duration
|
|
2095
2094
|
|
|
2096
2095
|
:param service_account_id: (required)
|
|
2097
|
-
:type service_account_id:
|
|
2096
|
+
:type service_account_id: UUID
|
|
2098
2097
|
:param user_id: (required)
|
|
2099
|
-
:type user_id:
|
|
2098
|
+
:type user_id: UUID
|
|
2100
2099
|
:param _request_timeout: timeout setting for this request. If one
|
|
2101
2100
|
number provided, it will be total request
|
|
2102
2101
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2147,8 +2146,8 @@ class ServiceAccountApi:
|
|
|
2147
2146
|
@validate_call
|
|
2148
2147
|
def user_service_account_rotate_key_with_http_info(
|
|
2149
2148
|
self,
|
|
2150
|
-
service_account_id:
|
|
2151
|
-
user_id:
|
|
2149
|
+
service_account_id: UUID,
|
|
2150
|
+
user_id: UUID,
|
|
2152
2151
|
_request_timeout: Union[
|
|
2153
2152
|
None,
|
|
2154
2153
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2167,9 +2166,9 @@ class ServiceAccountApi:
|
|
|
2167
2166
|
Rotate service account key and reset expiration based on expiration_duration
|
|
2168
2167
|
|
|
2169
2168
|
:param service_account_id: (required)
|
|
2170
|
-
:type service_account_id:
|
|
2169
|
+
:type service_account_id: UUID
|
|
2171
2170
|
:param user_id: (required)
|
|
2172
|
-
:type user_id:
|
|
2171
|
+
:type user_id: UUID
|
|
2173
2172
|
:param _request_timeout: timeout setting for this request. If one
|
|
2174
2173
|
number provided, it will be total request
|
|
2175
2174
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2220,8 +2219,8 @@ class ServiceAccountApi:
|
|
|
2220
2219
|
@validate_call
|
|
2221
2220
|
def user_service_account_rotate_key_without_preload_content(
|
|
2222
2221
|
self,
|
|
2223
|
-
service_account_id:
|
|
2224
|
-
user_id:
|
|
2222
|
+
service_account_id: UUID,
|
|
2223
|
+
user_id: UUID,
|
|
2225
2224
|
_request_timeout: Union[
|
|
2226
2225
|
None,
|
|
2227
2226
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2240,9 +2239,9 @@ class ServiceAccountApi:
|
|
|
2240
2239
|
Rotate service account key and reset expiration based on expiration_duration
|
|
2241
2240
|
|
|
2242
2241
|
:param service_account_id: (required)
|
|
2243
|
-
:type service_account_id:
|
|
2242
|
+
:type service_account_id: UUID
|
|
2244
2243
|
:param user_id: (required)
|
|
2245
|
-
:type user_id:
|
|
2244
|
+
:type user_id: UUID
|
|
2246
2245
|
:param _request_timeout: timeout setting for this request. If one
|
|
2247
2246
|
number provided, it will be total request
|
|
2248
2247
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2303,7 +2302,7 @@ class ServiceAccountApi:
|
|
|
2303
2302
|
|
|
2304
2303
|
_path_params: Dict[str, str] = {}
|
|
2305
2304
|
_query_params: List[Tuple[str, str]] = []
|
|
2306
|
-
_header_params: Dict[str,
|
|
2305
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
2307
2306
|
_form_params: List[Tuple[str, str]] = []
|
|
2308
2307
|
_files: Dict[
|
|
2309
2308
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -2322,7 +2321,7 @@ class ServiceAccountApi:
|
|
|
2322
2321
|
|
|
2323
2322
|
|
|
2324
2323
|
# set the HTTP header `Accept`
|
|
2325
|
-
if '
|
|
2324
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
2326
2325
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2327
2326
|
[
|
|
2328
2327
|
'application/json'
|
|
@@ -2337,7 +2336,7 @@ class ServiceAccountApi:
|
|
|
2337
2336
|
|
|
2338
2337
|
return self.api_client.param_serialize(
|
|
2339
2338
|
method='PATCH',
|
|
2340
|
-
resource_path='/user/{user_id}/
|
|
2339
|
+
resource_path='/user/{user_id}/service-account/{service_account_id}/rotate-key',
|
|
2341
2340
|
path_params=_path_params,
|
|
2342
2341
|
query_params=_query_params,
|
|
2343
2342
|
header_params=_header_params,
|