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
across/sdk/v1/api/user_api.py
CHANGED
|
@@ -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 Any, Dict, List
|
|
19
|
+
from uuid import UUID
|
|
21
20
|
from across.sdk.v1.models.across_server_routes_v1_user_schemas_group_invite import AcrossServerRoutesV1UserSchemasGroupInvite
|
|
22
21
|
from across.sdk.v1.models.across_server_routes_v1_user_schemas_user import AcrossServerRoutesV1UserSchemasUser
|
|
23
22
|
from across.sdk.v1.models.user_create import UserCreate
|
|
@@ -44,8 +43,8 @@ class UserApi:
|
|
|
44
43
|
@validate_call
|
|
45
44
|
def accept_invite(
|
|
46
45
|
self,
|
|
47
|
-
user_id:
|
|
48
|
-
invite_id:
|
|
46
|
+
user_id: UUID,
|
|
47
|
+
invite_id: UUID,
|
|
49
48
|
_request_timeout: Union[
|
|
50
49
|
None,
|
|
51
50
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -64,9 +63,9 @@ class UserApi:
|
|
|
64
63
|
Accept a group invitation to join a user group.
|
|
65
64
|
|
|
66
65
|
:param user_id: (required)
|
|
67
|
-
:type user_id:
|
|
66
|
+
:type user_id: UUID
|
|
68
67
|
:param invite_id: (required)
|
|
69
|
-
:type invite_id:
|
|
68
|
+
:type invite_id: UUID
|
|
70
69
|
:param _request_timeout: timeout setting for this request. If one
|
|
71
70
|
number provided, it will be total request
|
|
72
71
|
timeout. It can also be a pair (tuple) of
|
|
@@ -117,8 +116,8 @@ class UserApi:
|
|
|
117
116
|
@validate_call
|
|
118
117
|
def accept_invite_with_http_info(
|
|
119
118
|
self,
|
|
120
|
-
user_id:
|
|
121
|
-
invite_id:
|
|
119
|
+
user_id: UUID,
|
|
120
|
+
invite_id: UUID,
|
|
122
121
|
_request_timeout: Union[
|
|
123
122
|
None,
|
|
124
123
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -137,9 +136,9 @@ class UserApi:
|
|
|
137
136
|
Accept a group invitation to join a user group.
|
|
138
137
|
|
|
139
138
|
:param user_id: (required)
|
|
140
|
-
:type user_id:
|
|
139
|
+
:type user_id: UUID
|
|
141
140
|
:param invite_id: (required)
|
|
142
|
-
:type invite_id:
|
|
141
|
+
:type invite_id: UUID
|
|
143
142
|
:param _request_timeout: timeout setting for this request. If one
|
|
144
143
|
number provided, it will be total request
|
|
145
144
|
timeout. It can also be a pair (tuple) of
|
|
@@ -190,8 +189,8 @@ class UserApi:
|
|
|
190
189
|
@validate_call
|
|
191
190
|
def accept_invite_without_preload_content(
|
|
192
191
|
self,
|
|
193
|
-
user_id:
|
|
194
|
-
invite_id:
|
|
192
|
+
user_id: UUID,
|
|
193
|
+
invite_id: UUID,
|
|
195
194
|
_request_timeout: Union[
|
|
196
195
|
None,
|
|
197
196
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -210,9 +209,9 @@ class UserApi:
|
|
|
210
209
|
Accept a group invitation to join a user group.
|
|
211
210
|
|
|
212
211
|
:param user_id: (required)
|
|
213
|
-
:type user_id:
|
|
212
|
+
:type user_id: UUID
|
|
214
213
|
:param invite_id: (required)
|
|
215
|
-
:type invite_id:
|
|
214
|
+
:type invite_id: UUID
|
|
216
215
|
:param _request_timeout: timeout setting for this request. If one
|
|
217
216
|
number provided, it will be total request
|
|
218
217
|
timeout. It can also be a pair (tuple) of
|
|
@@ -273,7 +272,7 @@ class UserApi:
|
|
|
273
272
|
|
|
274
273
|
_path_params: Dict[str, str] = {}
|
|
275
274
|
_query_params: List[Tuple[str, str]] = []
|
|
276
|
-
_header_params: Dict[str,
|
|
275
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
277
276
|
_form_params: List[Tuple[str, str]] = []
|
|
278
277
|
_files: Dict[
|
|
279
278
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -292,7 +291,7 @@ class UserApi:
|
|
|
292
291
|
|
|
293
292
|
|
|
294
293
|
# set the HTTP header `Accept`
|
|
295
|
-
if '
|
|
294
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
296
295
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
297
296
|
[
|
|
298
297
|
'application/json'
|
|
@@ -542,7 +541,7 @@ class UserApi:
|
|
|
542
541
|
|
|
543
542
|
_path_params: Dict[str, str] = {}
|
|
544
543
|
_query_params: List[Tuple[str, str]] = []
|
|
545
|
-
_header_params: Dict[str,
|
|
544
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
546
545
|
_form_params: List[Tuple[str, str]] = []
|
|
547
546
|
_files: Dict[
|
|
548
547
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -559,7 +558,7 @@ class UserApi:
|
|
|
559
558
|
|
|
560
559
|
|
|
561
560
|
# set the HTTP header `Accept`
|
|
562
|
-
if '
|
|
561
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
563
562
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
564
563
|
[
|
|
565
564
|
'application/json'
|
|
@@ -568,7 +567,7 @@ class UserApi:
|
|
|
568
567
|
|
|
569
568
|
# set the HTTP header `Content-Type`
|
|
570
569
|
if _content_type:
|
|
571
|
-
_header_params
|
|
570
|
+
self.api_client._set_header(_header_params, 'Content-Type', _content_type)
|
|
572
571
|
else:
|
|
573
572
|
_default_content_type = (
|
|
574
573
|
self.api_client.select_header_content_type(
|
|
@@ -578,7 +577,7 @@ class UserApi:
|
|
|
578
577
|
)
|
|
579
578
|
)
|
|
580
579
|
if _default_content_type is not None:
|
|
581
|
-
_header_params
|
|
580
|
+
self.api_client._set_header(_header_params, 'Content-Type', _default_content_type)
|
|
582
581
|
|
|
583
582
|
# authentication setting
|
|
584
583
|
_auth_settings: List[str] = [
|
|
@@ -587,7 +586,7 @@ class UserApi:
|
|
|
587
586
|
|
|
588
587
|
return self.api_client.param_serialize(
|
|
589
588
|
method='POST',
|
|
590
|
-
resource_path='/user
|
|
589
|
+
resource_path='/user',
|
|
591
590
|
path_params=_path_params,
|
|
592
591
|
query_params=_query_params,
|
|
593
592
|
header_params=_header_params,
|
|
@@ -606,8 +605,8 @@ class UserApi:
|
|
|
606
605
|
@validate_call
|
|
607
606
|
def decline_invite(
|
|
608
607
|
self,
|
|
609
|
-
user_id:
|
|
610
|
-
invite_id:
|
|
608
|
+
user_id: UUID,
|
|
609
|
+
invite_id: UUID,
|
|
611
610
|
_request_timeout: Union[
|
|
612
611
|
None,
|
|
613
612
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -626,9 +625,9 @@ class UserApi:
|
|
|
626
625
|
Decline a group invitation to refuse joining a user group.
|
|
627
626
|
|
|
628
627
|
:param user_id: (required)
|
|
629
|
-
:type user_id:
|
|
628
|
+
:type user_id: UUID
|
|
630
629
|
:param invite_id: (required)
|
|
631
|
-
:type invite_id:
|
|
630
|
+
:type invite_id: UUID
|
|
632
631
|
:param _request_timeout: timeout setting for this request. If one
|
|
633
632
|
number provided, it will be total request
|
|
634
633
|
timeout. It can also be a pair (tuple) of
|
|
@@ -679,8 +678,8 @@ class UserApi:
|
|
|
679
678
|
@validate_call
|
|
680
679
|
def decline_invite_with_http_info(
|
|
681
680
|
self,
|
|
682
|
-
user_id:
|
|
683
|
-
invite_id:
|
|
681
|
+
user_id: UUID,
|
|
682
|
+
invite_id: UUID,
|
|
684
683
|
_request_timeout: Union[
|
|
685
684
|
None,
|
|
686
685
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -699,9 +698,9 @@ class UserApi:
|
|
|
699
698
|
Decline a group invitation to refuse joining a user group.
|
|
700
699
|
|
|
701
700
|
:param user_id: (required)
|
|
702
|
-
:type user_id:
|
|
701
|
+
:type user_id: UUID
|
|
703
702
|
:param invite_id: (required)
|
|
704
|
-
:type invite_id:
|
|
703
|
+
:type invite_id: UUID
|
|
705
704
|
:param _request_timeout: timeout setting for this request. If one
|
|
706
705
|
number provided, it will be total request
|
|
707
706
|
timeout. It can also be a pair (tuple) of
|
|
@@ -752,8 +751,8 @@ class UserApi:
|
|
|
752
751
|
@validate_call
|
|
753
752
|
def decline_invite_without_preload_content(
|
|
754
753
|
self,
|
|
755
|
-
user_id:
|
|
756
|
-
invite_id:
|
|
754
|
+
user_id: UUID,
|
|
755
|
+
invite_id: UUID,
|
|
757
756
|
_request_timeout: Union[
|
|
758
757
|
None,
|
|
759
758
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -772,9 +771,9 @@ class UserApi:
|
|
|
772
771
|
Decline a group invitation to refuse joining a user group.
|
|
773
772
|
|
|
774
773
|
:param user_id: (required)
|
|
775
|
-
:type user_id:
|
|
774
|
+
:type user_id: UUID
|
|
776
775
|
:param invite_id: (required)
|
|
777
|
-
:type invite_id:
|
|
776
|
+
:type invite_id: UUID
|
|
778
777
|
:param _request_timeout: timeout setting for this request. If one
|
|
779
778
|
number provided, it will be total request
|
|
780
779
|
timeout. It can also be a pair (tuple) of
|
|
@@ -835,7 +834,7 @@ class UserApi:
|
|
|
835
834
|
|
|
836
835
|
_path_params: Dict[str, str] = {}
|
|
837
836
|
_query_params: List[Tuple[str, str]] = []
|
|
838
|
-
_header_params: Dict[str,
|
|
837
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
839
838
|
_form_params: List[Tuple[str, str]] = []
|
|
840
839
|
_files: Dict[
|
|
841
840
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -854,7 +853,7 @@ class UserApi:
|
|
|
854
853
|
|
|
855
854
|
|
|
856
855
|
# set the HTTP header `Accept`
|
|
857
|
-
if '
|
|
856
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
858
857
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
859
858
|
[
|
|
860
859
|
'application/json'
|
|
@@ -888,7 +887,7 @@ class UserApi:
|
|
|
888
887
|
@validate_call
|
|
889
888
|
def delete_user(
|
|
890
889
|
self,
|
|
891
|
-
user_id:
|
|
890
|
+
user_id: UUID,
|
|
892
891
|
_request_timeout: Union[
|
|
893
892
|
None,
|
|
894
893
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -907,7 +906,7 @@ class UserApi:
|
|
|
907
906
|
Deactivate a user in the ACROSS system. This will also deactivate all associated relations for the user and expire existing service accounts.
|
|
908
907
|
|
|
909
908
|
:param user_id: (required)
|
|
910
|
-
:type user_id:
|
|
909
|
+
:type user_id: UUID
|
|
911
910
|
:param _request_timeout: timeout setting for this request. If one
|
|
912
911
|
number provided, it will be total request
|
|
913
912
|
timeout. It can also be a pair (tuple) of
|
|
@@ -957,7 +956,7 @@ class UserApi:
|
|
|
957
956
|
@validate_call
|
|
958
957
|
def delete_user_with_http_info(
|
|
959
958
|
self,
|
|
960
|
-
user_id:
|
|
959
|
+
user_id: UUID,
|
|
961
960
|
_request_timeout: Union[
|
|
962
961
|
None,
|
|
963
962
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -976,7 +975,7 @@ class UserApi:
|
|
|
976
975
|
Deactivate a user in the ACROSS system. This will also deactivate all associated relations for the user and expire existing service accounts.
|
|
977
976
|
|
|
978
977
|
:param user_id: (required)
|
|
979
|
-
:type user_id:
|
|
978
|
+
:type user_id: UUID
|
|
980
979
|
:param _request_timeout: timeout setting for this request. If one
|
|
981
980
|
number provided, it will be total request
|
|
982
981
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1026,7 +1025,7 @@ class UserApi:
|
|
|
1026
1025
|
@validate_call
|
|
1027
1026
|
def delete_user_without_preload_content(
|
|
1028
1027
|
self,
|
|
1029
|
-
user_id:
|
|
1028
|
+
user_id: UUID,
|
|
1030
1029
|
_request_timeout: Union[
|
|
1031
1030
|
None,
|
|
1032
1031
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1045,7 +1044,7 @@ class UserApi:
|
|
|
1045
1044
|
Deactivate a user in the ACROSS system. This will also deactivate all associated relations for the user and expire existing service accounts.
|
|
1046
1045
|
|
|
1047
1046
|
:param user_id: (required)
|
|
1048
|
-
:type user_id:
|
|
1047
|
+
:type user_id: UUID
|
|
1049
1048
|
:param _request_timeout: timeout setting for this request. If one
|
|
1050
1049
|
number provided, it will be total request
|
|
1051
1050
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1104,7 +1103,7 @@ class UserApi:
|
|
|
1104
1103
|
|
|
1105
1104
|
_path_params: Dict[str, str] = {}
|
|
1106
1105
|
_query_params: List[Tuple[str, str]] = []
|
|
1107
|
-
_header_params: Dict[str,
|
|
1106
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
1108
1107
|
_form_params: List[Tuple[str, str]] = []
|
|
1109
1108
|
_files: Dict[
|
|
1110
1109
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -1121,7 +1120,7 @@ class UserApi:
|
|
|
1121
1120
|
|
|
1122
1121
|
|
|
1123
1122
|
# set the HTTP header `Accept`
|
|
1124
|
-
if '
|
|
1123
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
1125
1124
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1126
1125
|
[
|
|
1127
1126
|
'application/json'
|
|
@@ -1155,7 +1154,7 @@ class UserApi:
|
|
|
1155
1154
|
@validate_call
|
|
1156
1155
|
def get_group_invites(
|
|
1157
1156
|
self,
|
|
1158
|
-
user_id:
|
|
1157
|
+
user_id: UUID,
|
|
1159
1158
|
_request_timeout: Union[
|
|
1160
1159
|
None,
|
|
1161
1160
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1174,7 +1173,7 @@ class UserApi:
|
|
|
1174
1173
|
Read a user's group invites by a user ID.
|
|
1175
1174
|
|
|
1176
1175
|
:param user_id: (required)
|
|
1177
|
-
:type user_id:
|
|
1176
|
+
:type user_id: UUID
|
|
1178
1177
|
:param _request_timeout: timeout setting for this request. If one
|
|
1179
1178
|
number provided, it will be total request
|
|
1180
1179
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1224,7 +1223,7 @@ class UserApi:
|
|
|
1224
1223
|
@validate_call
|
|
1225
1224
|
def get_group_invites_with_http_info(
|
|
1226
1225
|
self,
|
|
1227
|
-
user_id:
|
|
1226
|
+
user_id: UUID,
|
|
1228
1227
|
_request_timeout: Union[
|
|
1229
1228
|
None,
|
|
1230
1229
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1243,7 +1242,7 @@ class UserApi:
|
|
|
1243
1242
|
Read a user's group invites by a user ID.
|
|
1244
1243
|
|
|
1245
1244
|
:param user_id: (required)
|
|
1246
|
-
:type user_id:
|
|
1245
|
+
:type user_id: UUID
|
|
1247
1246
|
:param _request_timeout: timeout setting for this request. If one
|
|
1248
1247
|
number provided, it will be total request
|
|
1249
1248
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1293,7 +1292,7 @@ class UserApi:
|
|
|
1293
1292
|
@validate_call
|
|
1294
1293
|
def get_group_invites_without_preload_content(
|
|
1295
1294
|
self,
|
|
1296
|
-
user_id:
|
|
1295
|
+
user_id: UUID,
|
|
1297
1296
|
_request_timeout: Union[
|
|
1298
1297
|
None,
|
|
1299
1298
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1312,7 +1311,7 @@ class UserApi:
|
|
|
1312
1311
|
Read a user's group invites by a user ID.
|
|
1313
1312
|
|
|
1314
1313
|
:param user_id: (required)
|
|
1315
|
-
:type user_id:
|
|
1314
|
+
:type user_id: UUID
|
|
1316
1315
|
:param _request_timeout: timeout setting for this request. If one
|
|
1317
1316
|
number provided, it will be total request
|
|
1318
1317
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1371,7 +1370,7 @@ class UserApi:
|
|
|
1371
1370
|
|
|
1372
1371
|
_path_params: Dict[str, str] = {}
|
|
1373
1372
|
_query_params: List[Tuple[str, str]] = []
|
|
1374
|
-
_header_params: Dict[str,
|
|
1373
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
1375
1374
|
_form_params: List[Tuple[str, str]] = []
|
|
1376
1375
|
_files: Dict[
|
|
1377
1376
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -1388,7 +1387,7 @@ class UserApi:
|
|
|
1388
1387
|
|
|
1389
1388
|
|
|
1390
1389
|
# set the HTTP header `Accept`
|
|
1391
|
-
if '
|
|
1390
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
1392
1391
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1393
1392
|
[
|
|
1394
1393
|
'application/json'
|
|
@@ -1419,258 +1418,10 @@ class UserApi:
|
|
|
1419
1418
|
|
|
1420
1419
|
|
|
1421
1420
|
|
|
1422
|
-
@validate_call
|
|
1423
|
-
def get_many_user_get(
|
|
1424
|
-
self,
|
|
1425
|
-
_request_timeout: Union[
|
|
1426
|
-
None,
|
|
1427
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1428
|
-
Tuple[
|
|
1429
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1430
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1431
|
-
]
|
|
1432
|
-
] = None,
|
|
1433
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1434
|
-
_content_type: Optional[StrictStr] = None,
|
|
1435
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1436
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1437
|
-
) -> List[AcrossServerRoutesV1UserSchemasUser]:
|
|
1438
|
-
"""Read users
|
|
1439
|
-
|
|
1440
|
-
Read many users
|
|
1441
|
-
|
|
1442
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1443
|
-
number provided, it will be total request
|
|
1444
|
-
timeout. It can also be a pair (tuple) of
|
|
1445
|
-
(connection, read) timeouts.
|
|
1446
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1447
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1448
|
-
request; this effectively ignores the
|
|
1449
|
-
authentication in the spec for a single request.
|
|
1450
|
-
:type _request_auth: dict, optional
|
|
1451
|
-
:param _content_type: force content-type for the request.
|
|
1452
|
-
:type _content_type: str, Optional
|
|
1453
|
-
:param _headers: set to override the headers for a single
|
|
1454
|
-
request; this effectively ignores the headers
|
|
1455
|
-
in the spec for a single request.
|
|
1456
|
-
:type _headers: dict, optional
|
|
1457
|
-
:param _host_index: set to override the host_index for a single
|
|
1458
|
-
request; this effectively ignores the host_index
|
|
1459
|
-
in the spec for a single request.
|
|
1460
|
-
:type _host_index: int, optional
|
|
1461
|
-
:return: Returns the result object.
|
|
1462
|
-
""" # noqa: E501
|
|
1463
|
-
|
|
1464
|
-
_param = self._get_many_user_get_serialize(
|
|
1465
|
-
_request_auth=_request_auth,
|
|
1466
|
-
_content_type=_content_type,
|
|
1467
|
-
_headers=_headers,
|
|
1468
|
-
_host_index=_host_index
|
|
1469
|
-
)
|
|
1470
|
-
|
|
1471
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1472
|
-
'200': "List[AcrossServerRoutesV1UserSchemasUser]",
|
|
1473
|
-
'404': None,
|
|
1474
|
-
}
|
|
1475
|
-
response_data = self.api_client.call_api(
|
|
1476
|
-
*_param,
|
|
1477
|
-
_request_timeout=_request_timeout
|
|
1478
|
-
)
|
|
1479
|
-
response_data.read()
|
|
1480
|
-
return self.api_client.response_deserialize(
|
|
1481
|
-
response_data=response_data,
|
|
1482
|
-
response_types_map=_response_types_map,
|
|
1483
|
-
).data
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
@validate_call
|
|
1487
|
-
def get_many_user_get_with_http_info(
|
|
1488
|
-
self,
|
|
1489
|
-
_request_timeout: Union[
|
|
1490
|
-
None,
|
|
1491
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1492
|
-
Tuple[
|
|
1493
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1494
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1495
|
-
]
|
|
1496
|
-
] = None,
|
|
1497
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1498
|
-
_content_type: Optional[StrictStr] = None,
|
|
1499
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1500
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1501
|
-
) -> ApiResponse[List[AcrossServerRoutesV1UserSchemasUser]]:
|
|
1502
|
-
"""Read users
|
|
1503
|
-
|
|
1504
|
-
Read many users
|
|
1505
|
-
|
|
1506
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1507
|
-
number provided, it will be total request
|
|
1508
|
-
timeout. It can also be a pair (tuple) of
|
|
1509
|
-
(connection, read) timeouts.
|
|
1510
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1511
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1512
|
-
request; this effectively ignores the
|
|
1513
|
-
authentication in the spec for a single request.
|
|
1514
|
-
:type _request_auth: dict, optional
|
|
1515
|
-
:param _content_type: force content-type for the request.
|
|
1516
|
-
:type _content_type: str, Optional
|
|
1517
|
-
:param _headers: set to override the headers for a single
|
|
1518
|
-
request; this effectively ignores the headers
|
|
1519
|
-
in the spec for a single request.
|
|
1520
|
-
:type _headers: dict, optional
|
|
1521
|
-
:param _host_index: set to override the host_index for a single
|
|
1522
|
-
request; this effectively ignores the host_index
|
|
1523
|
-
in the spec for a single request.
|
|
1524
|
-
:type _host_index: int, optional
|
|
1525
|
-
:return: Returns the result object.
|
|
1526
|
-
""" # noqa: E501
|
|
1527
|
-
|
|
1528
|
-
_param = self._get_many_user_get_serialize(
|
|
1529
|
-
_request_auth=_request_auth,
|
|
1530
|
-
_content_type=_content_type,
|
|
1531
|
-
_headers=_headers,
|
|
1532
|
-
_host_index=_host_index
|
|
1533
|
-
)
|
|
1534
|
-
|
|
1535
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1536
|
-
'200': "List[AcrossServerRoutesV1UserSchemasUser]",
|
|
1537
|
-
'404': None,
|
|
1538
|
-
}
|
|
1539
|
-
response_data = self.api_client.call_api(
|
|
1540
|
-
*_param,
|
|
1541
|
-
_request_timeout=_request_timeout
|
|
1542
|
-
)
|
|
1543
|
-
response_data.read()
|
|
1544
|
-
return self.api_client.response_deserialize(
|
|
1545
|
-
response_data=response_data,
|
|
1546
|
-
response_types_map=_response_types_map,
|
|
1547
|
-
)
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
@validate_call
|
|
1551
|
-
def get_many_user_get_without_preload_content(
|
|
1552
|
-
self,
|
|
1553
|
-
_request_timeout: Union[
|
|
1554
|
-
None,
|
|
1555
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1556
|
-
Tuple[
|
|
1557
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1558
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1559
|
-
]
|
|
1560
|
-
] = None,
|
|
1561
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1562
|
-
_content_type: Optional[StrictStr] = None,
|
|
1563
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1564
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1565
|
-
) -> RESTResponseType:
|
|
1566
|
-
"""Read users
|
|
1567
|
-
|
|
1568
|
-
Read many users
|
|
1569
|
-
|
|
1570
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1571
|
-
number provided, it will be total request
|
|
1572
|
-
timeout. It can also be a pair (tuple) of
|
|
1573
|
-
(connection, read) timeouts.
|
|
1574
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1575
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1576
|
-
request; this effectively ignores the
|
|
1577
|
-
authentication in the spec for a single request.
|
|
1578
|
-
:type _request_auth: dict, optional
|
|
1579
|
-
:param _content_type: force content-type for the request.
|
|
1580
|
-
:type _content_type: str, Optional
|
|
1581
|
-
:param _headers: set to override the headers for a single
|
|
1582
|
-
request; this effectively ignores the headers
|
|
1583
|
-
in the spec for a single request.
|
|
1584
|
-
:type _headers: dict, optional
|
|
1585
|
-
:param _host_index: set to override the host_index for a single
|
|
1586
|
-
request; this effectively ignores the host_index
|
|
1587
|
-
in the spec for a single request.
|
|
1588
|
-
:type _host_index: int, optional
|
|
1589
|
-
:return: Returns the result object.
|
|
1590
|
-
""" # noqa: E501
|
|
1591
|
-
|
|
1592
|
-
_param = self._get_many_user_get_serialize(
|
|
1593
|
-
_request_auth=_request_auth,
|
|
1594
|
-
_content_type=_content_type,
|
|
1595
|
-
_headers=_headers,
|
|
1596
|
-
_host_index=_host_index
|
|
1597
|
-
)
|
|
1598
|
-
|
|
1599
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1600
|
-
'200': "List[AcrossServerRoutesV1UserSchemasUser]",
|
|
1601
|
-
'404': None,
|
|
1602
|
-
}
|
|
1603
|
-
response_data = self.api_client.call_api(
|
|
1604
|
-
*_param,
|
|
1605
|
-
_request_timeout=_request_timeout
|
|
1606
|
-
)
|
|
1607
|
-
return response_data.response
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
def _get_many_user_get_serialize(
|
|
1611
|
-
self,
|
|
1612
|
-
_request_auth,
|
|
1613
|
-
_content_type,
|
|
1614
|
-
_headers,
|
|
1615
|
-
_host_index,
|
|
1616
|
-
) -> RequestSerialized:
|
|
1617
|
-
|
|
1618
|
-
_host = None
|
|
1619
|
-
|
|
1620
|
-
_collection_formats: Dict[str, str] = {
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
_path_params: Dict[str, str] = {}
|
|
1624
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1625
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1626
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1627
|
-
_files: Dict[
|
|
1628
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1629
|
-
] = {}
|
|
1630
|
-
_body_params: Optional[bytes] = None
|
|
1631
|
-
|
|
1632
|
-
# process the path parameters
|
|
1633
|
-
# process the query parameters
|
|
1634
|
-
# process the header parameters
|
|
1635
|
-
# process the form parameters
|
|
1636
|
-
# process the body parameter
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
# set the HTTP header `Accept`
|
|
1640
|
-
if 'Accept' not in _header_params:
|
|
1641
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1642
|
-
[
|
|
1643
|
-
'application/json'
|
|
1644
|
-
]
|
|
1645
|
-
)
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
# authentication setting
|
|
1649
|
-
_auth_settings: List[str] = [
|
|
1650
|
-
]
|
|
1651
|
-
|
|
1652
|
-
return self.api_client.param_serialize(
|
|
1653
|
-
method='GET',
|
|
1654
|
-
resource_path='/user/',
|
|
1655
|
-
path_params=_path_params,
|
|
1656
|
-
query_params=_query_params,
|
|
1657
|
-
header_params=_header_params,
|
|
1658
|
-
body=_body_params,
|
|
1659
|
-
post_params=_form_params,
|
|
1660
|
-
files=_files,
|
|
1661
|
-
auth_settings=_auth_settings,
|
|
1662
|
-
collection_formats=_collection_formats,
|
|
1663
|
-
_host=_host,
|
|
1664
|
-
_request_auth=_request_auth
|
|
1665
|
-
)
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
1421
|
@validate_call
|
|
1671
1422
|
def get_user(
|
|
1672
1423
|
self,
|
|
1673
|
-
user_id:
|
|
1424
|
+
user_id: UUID,
|
|
1674
1425
|
_request_timeout: Union[
|
|
1675
1426
|
None,
|
|
1676
1427
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1689,7 +1440,7 @@ class UserApi:
|
|
|
1689
1440
|
Read a user by a user ID.
|
|
1690
1441
|
|
|
1691
1442
|
:param user_id: (required)
|
|
1692
|
-
:type user_id:
|
|
1443
|
+
:type user_id: UUID
|
|
1693
1444
|
:param _request_timeout: timeout setting for this request. If one
|
|
1694
1445
|
number provided, it will be total request
|
|
1695
1446
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1739,7 +1490,7 @@ class UserApi:
|
|
|
1739
1490
|
@validate_call
|
|
1740
1491
|
def get_user_with_http_info(
|
|
1741
1492
|
self,
|
|
1742
|
-
user_id:
|
|
1493
|
+
user_id: UUID,
|
|
1743
1494
|
_request_timeout: Union[
|
|
1744
1495
|
None,
|
|
1745
1496
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1758,7 +1509,7 @@ class UserApi:
|
|
|
1758
1509
|
Read a user by a user ID.
|
|
1759
1510
|
|
|
1760
1511
|
:param user_id: (required)
|
|
1761
|
-
:type user_id:
|
|
1512
|
+
:type user_id: UUID
|
|
1762
1513
|
:param _request_timeout: timeout setting for this request. If one
|
|
1763
1514
|
number provided, it will be total request
|
|
1764
1515
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1808,7 +1559,7 @@ class UserApi:
|
|
|
1808
1559
|
@validate_call
|
|
1809
1560
|
def get_user_without_preload_content(
|
|
1810
1561
|
self,
|
|
1811
|
-
user_id:
|
|
1562
|
+
user_id: UUID,
|
|
1812
1563
|
_request_timeout: Union[
|
|
1813
1564
|
None,
|
|
1814
1565
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1827,7 +1578,7 @@ class UserApi:
|
|
|
1827
1578
|
Read a user by a user ID.
|
|
1828
1579
|
|
|
1829
1580
|
:param user_id: (required)
|
|
1830
|
-
:type user_id:
|
|
1581
|
+
:type user_id: UUID
|
|
1831
1582
|
:param _request_timeout: timeout setting for this request. If one
|
|
1832
1583
|
number provided, it will be total request
|
|
1833
1584
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1886,7 +1637,7 @@ class UserApi:
|
|
|
1886
1637
|
|
|
1887
1638
|
_path_params: Dict[str, str] = {}
|
|
1888
1639
|
_query_params: List[Tuple[str, str]] = []
|
|
1889
|
-
_header_params: Dict[str,
|
|
1640
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
1890
1641
|
_form_params: List[Tuple[str, str]] = []
|
|
1891
1642
|
_files: Dict[
|
|
1892
1643
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -1903,7 +1654,7 @@ class UserApi:
|
|
|
1903
1654
|
|
|
1904
1655
|
|
|
1905
1656
|
# set the HTTP header `Accept`
|
|
1906
|
-
if '
|
|
1657
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
1907
1658
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1908
1659
|
[
|
|
1909
1660
|
'application/json'
|
|
@@ -1937,8 +1688,8 @@ class UserApi:
|
|
|
1937
1688
|
@validate_call
|
|
1938
1689
|
def leave_group(
|
|
1939
1690
|
self,
|
|
1940
|
-
user_id:
|
|
1941
|
-
group_id:
|
|
1691
|
+
user_id: UUID,
|
|
1692
|
+
group_id: UUID,
|
|
1942
1693
|
_request_timeout: Union[
|
|
1943
1694
|
None,
|
|
1944
1695
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1957,9 +1708,9 @@ class UserApi:
|
|
|
1957
1708
|
Leave a group by id
|
|
1958
1709
|
|
|
1959
1710
|
:param user_id: (required)
|
|
1960
|
-
:type user_id:
|
|
1711
|
+
:type user_id: UUID
|
|
1961
1712
|
:param group_id: (required)
|
|
1962
|
-
:type group_id:
|
|
1713
|
+
:type group_id: UUID
|
|
1963
1714
|
:param _request_timeout: timeout setting for this request. If one
|
|
1964
1715
|
number provided, it will be total request
|
|
1965
1716
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2010,8 +1761,8 @@ class UserApi:
|
|
|
2010
1761
|
@validate_call
|
|
2011
1762
|
def leave_group_with_http_info(
|
|
2012
1763
|
self,
|
|
2013
|
-
user_id:
|
|
2014
|
-
group_id:
|
|
1764
|
+
user_id: UUID,
|
|
1765
|
+
group_id: UUID,
|
|
2015
1766
|
_request_timeout: Union[
|
|
2016
1767
|
None,
|
|
2017
1768
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2030,9 +1781,9 @@ class UserApi:
|
|
|
2030
1781
|
Leave a group by id
|
|
2031
1782
|
|
|
2032
1783
|
:param user_id: (required)
|
|
2033
|
-
:type user_id:
|
|
1784
|
+
:type user_id: UUID
|
|
2034
1785
|
:param group_id: (required)
|
|
2035
|
-
:type group_id:
|
|
1786
|
+
:type group_id: UUID
|
|
2036
1787
|
:param _request_timeout: timeout setting for this request. If one
|
|
2037
1788
|
number provided, it will be total request
|
|
2038
1789
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2083,8 +1834,8 @@ class UserApi:
|
|
|
2083
1834
|
@validate_call
|
|
2084
1835
|
def leave_group_without_preload_content(
|
|
2085
1836
|
self,
|
|
2086
|
-
user_id:
|
|
2087
|
-
group_id:
|
|
1837
|
+
user_id: UUID,
|
|
1838
|
+
group_id: UUID,
|
|
2088
1839
|
_request_timeout: Union[
|
|
2089
1840
|
None,
|
|
2090
1841
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2103,9 +1854,9 @@ class UserApi:
|
|
|
2103
1854
|
Leave a group by id
|
|
2104
1855
|
|
|
2105
1856
|
:param user_id: (required)
|
|
2106
|
-
:type user_id:
|
|
1857
|
+
:type user_id: UUID
|
|
2107
1858
|
:param group_id: (required)
|
|
2108
|
-
:type group_id:
|
|
1859
|
+
:type group_id: UUID
|
|
2109
1860
|
:param _request_timeout: timeout setting for this request. If one
|
|
2110
1861
|
number provided, it will be total request
|
|
2111
1862
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2166,7 +1917,7 @@ class UserApi:
|
|
|
2166
1917
|
|
|
2167
1918
|
_path_params: Dict[str, str] = {}
|
|
2168
1919
|
_query_params: List[Tuple[str, str]] = []
|
|
2169
|
-
_header_params: Dict[str,
|
|
1920
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
2170
1921
|
_form_params: List[Tuple[str, str]] = []
|
|
2171
1922
|
_files: Dict[
|
|
2172
1923
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -2185,7 +1936,7 @@ class UserApi:
|
|
|
2185
1936
|
|
|
2186
1937
|
|
|
2187
1938
|
# set the HTTP header `Accept`
|
|
2188
|
-
if '
|
|
1939
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
2189
1940
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2190
1941
|
[
|
|
2191
1942
|
'application/json'
|
|
@@ -2219,7 +1970,7 @@ class UserApi:
|
|
|
2219
1970
|
@validate_call
|
|
2220
1971
|
def update_user(
|
|
2221
1972
|
self,
|
|
2222
|
-
user_id:
|
|
1973
|
+
user_id: UUID,
|
|
2223
1974
|
user_update: UserUpdate,
|
|
2224
1975
|
_request_timeout: Union[
|
|
2225
1976
|
None,
|
|
@@ -2239,7 +1990,7 @@ class UserApi:
|
|
|
2239
1990
|
Update a user's information for the allowed properties.
|
|
2240
1991
|
|
|
2241
1992
|
:param user_id: (required)
|
|
2242
|
-
:type user_id:
|
|
1993
|
+
:type user_id: UUID
|
|
2243
1994
|
:param user_update: (required)
|
|
2244
1995
|
:type user_update: UserUpdate
|
|
2245
1996
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -2292,7 +2043,7 @@ class UserApi:
|
|
|
2292
2043
|
@validate_call
|
|
2293
2044
|
def update_user_with_http_info(
|
|
2294
2045
|
self,
|
|
2295
|
-
user_id:
|
|
2046
|
+
user_id: UUID,
|
|
2296
2047
|
user_update: UserUpdate,
|
|
2297
2048
|
_request_timeout: Union[
|
|
2298
2049
|
None,
|
|
@@ -2312,7 +2063,7 @@ class UserApi:
|
|
|
2312
2063
|
Update a user's information for the allowed properties.
|
|
2313
2064
|
|
|
2314
2065
|
:param user_id: (required)
|
|
2315
|
-
:type user_id:
|
|
2066
|
+
:type user_id: UUID
|
|
2316
2067
|
:param user_update: (required)
|
|
2317
2068
|
:type user_update: UserUpdate
|
|
2318
2069
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -2365,7 +2116,7 @@ class UserApi:
|
|
|
2365
2116
|
@validate_call
|
|
2366
2117
|
def update_user_without_preload_content(
|
|
2367
2118
|
self,
|
|
2368
|
-
user_id:
|
|
2119
|
+
user_id: UUID,
|
|
2369
2120
|
user_update: UserUpdate,
|
|
2370
2121
|
_request_timeout: Union[
|
|
2371
2122
|
None,
|
|
@@ -2385,7 +2136,7 @@ class UserApi:
|
|
|
2385
2136
|
Update a user's information for the allowed properties.
|
|
2386
2137
|
|
|
2387
2138
|
:param user_id: (required)
|
|
2388
|
-
:type user_id:
|
|
2139
|
+
:type user_id: UUID
|
|
2389
2140
|
:param user_update: (required)
|
|
2390
2141
|
:type user_update: UserUpdate
|
|
2391
2142
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -2448,7 +2199,7 @@ class UserApi:
|
|
|
2448
2199
|
|
|
2449
2200
|
_path_params: Dict[str, str] = {}
|
|
2450
2201
|
_query_params: List[Tuple[str, str]] = []
|
|
2451
|
-
_header_params: Dict[str,
|
|
2202
|
+
_header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
|
|
2452
2203
|
_form_params: List[Tuple[str, str]] = []
|
|
2453
2204
|
_files: Dict[
|
|
2454
2205
|
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
@@ -2467,7 +2218,7 @@ class UserApi:
|
|
|
2467
2218
|
|
|
2468
2219
|
|
|
2469
2220
|
# set the HTTP header `Accept`
|
|
2470
|
-
if '
|
|
2221
|
+
if not any(key.lower() == 'accept' for key in _header_params):
|
|
2471
2222
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2472
2223
|
[
|
|
2473
2224
|
'application/json'
|
|
@@ -2476,7 +2227,7 @@ class UserApi:
|
|
|
2476
2227
|
|
|
2477
2228
|
# set the HTTP header `Content-Type`
|
|
2478
2229
|
if _content_type:
|
|
2479
|
-
_header_params
|
|
2230
|
+
self.api_client._set_header(_header_params, 'Content-Type', _content_type)
|
|
2480
2231
|
else:
|
|
2481
2232
|
_default_content_type = (
|
|
2482
2233
|
self.api_client.select_header_content_type(
|
|
@@ -2486,7 +2237,7 @@ class UserApi:
|
|
|
2486
2237
|
)
|
|
2487
2238
|
)
|
|
2488
2239
|
if _default_content_type is not None:
|
|
2489
|
-
_header_params
|
|
2240
|
+
self.api_client._set_header(_header_params, 'Content-Type', _default_content_type)
|
|
2490
2241
|
|
|
2491
2242
|
# authentication setting
|
|
2492
2243
|
_auth_settings: List[str] = [
|