across-server-openapi-python 1.2.0__py3-none-any.whl → 1.3.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 +9 -5
- across/sdk/v1/api/__init__.py +1 -0
- across/sdk/v1/api/auth_api.py +269 -1
- across/sdk/v1/api/filter_api.py +1 -1
- across/sdk/v1/api/group_api.py +256 -7
- across/sdk/v1/api/group_invite_api.py +1 -1
- across/sdk/v1/api/group_role_api.py +1 -1
- across/sdk/v1/api/instrument_api.py +1 -1
- across/sdk/v1/api/internal_api.py +1 -1
- across/sdk/v1/api/observation_api.py +1 -1
- across/sdk/v1/api/observatory_api.py +1 -1
- across/sdk/v1/api/permission_api.py +1 -1
- across/sdk/v1/api/role_api.py +552 -0
- across/sdk/v1/api/schedule_api.py +1 -1
- across/sdk/v1/api/service_account_api.py +1 -1
- across/sdk/v1/api/telescope_api.py +35 -1
- across/sdk/v1/api/tle_api.py +1 -1
- across/sdk/v1/api/tools_api.py +1 -1
- across/sdk/v1/api/user_api.py +249 -1
- across/sdk/v1/api_client.py +1 -1
- across/sdk/v1/configuration.py +2 -2
- across/sdk/v1/exceptions.py +1 -1
- across/sdk/v1/models/__init__.py +4 -3
- across/sdk/v1/models/access_token_response.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group_role.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_user.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_group_schemas_user.py +105 -0
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group.py +101 -0
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group_invite.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_user_schemas_user.py +4 -4
- across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py +1 -1
- across/sdk/v1/models/bandpass.py +1 -1
- across/sdk/v1/models/bandpass_type.py +1 -1
- across/sdk/v1/models/constrained_date.py +4 -7
- across/sdk/v1/models/constraint_reason.py +1 -1
- across/sdk/v1/models/constraint_type.py +1 -1
- across/sdk/v1/models/coordinate.py +1 -1
- across/sdk/v1/models/date_range.py +1 -1
- across/sdk/v1/models/depth_unit.py +1 -1
- across/sdk/v1/models/energy_bandpass.py +1 -1
- across/sdk/v1/models/energy_unit.py +1 -1
- across/sdk/v1/models/ephemeris_type.py +1 -1
- across/sdk/v1/models/filter.py +1 -1
- across/sdk/v1/models/frequency_bandpass.py +1 -1
- 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 +1 -1
- across/sdk/v1/models/group.py +15 -5
- across/sdk/v1/models/group_invite.py +1 -1
- across/sdk/v1/models/group_invite_create.py +1 -1
- across/sdk/v1/models/group_invite_group_details.py +1 -1
- across/sdk/v1/models/group_read.py +1 -1
- across/sdk/v1/models/group_role.py +1 -1
- across/sdk/v1/models/group_role_create.py +1 -1
- across/sdk/v1/models/group_role_read.py +1 -1
- across/sdk/v1/models/http_validation_error.py +1 -1
- across/sdk/v1/models/id_name_schema.py +1 -1
- across/sdk/v1/models/instrument.py +1 -1
- 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 +1 -1
- across/sdk/v1/models/jpl_parameters.py +1 -1
- across/sdk/v1/models/location_inner.py +138 -0
- across/sdk/v1/models/name_resolver.py +1 -1
- across/sdk/v1/models/nullable_date_range.py +1 -1
- across/sdk/v1/models/observation.py +1 -1
- across/sdk/v1/models/observation_create.py +1 -1
- across/sdk/v1/models/observation_footprint.py +1 -1
- across/sdk/v1/models/observation_footprint_create.py +1 -1
- 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/observatory.py +1 -1
- across/sdk/v1/models/observatory_ephemeris_type.py +1 -1
- across/sdk/v1/models/observatory_type.py +1 -1
- across/sdk/v1/models/page_observation.py +1 -1
- across/sdk/v1/models/page_schedule.py +1 -1
- across/sdk/v1/models/parameters.py +1 -1
- across/sdk/v1/models/permission.py +1 -1
- across/sdk/v1/models/point.py +1 -1
- across/sdk/v1/models/role.py +99 -0
- across/sdk/v1/models/role_base.py +1 -1
- across/sdk/v1/models/schedule.py +1 -1
- across/sdk/v1/models/schedule_cadence.py +1 -1
- across/sdk/v1/models/schedule_create.py +1 -1
- across/sdk/v1/models/schedule_create_many.py +1 -1
- 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 +1 -1
- across/sdk/v1/models/service_account_secret.py +1 -1
- across/sdk/v1/models/service_account_update.py +1 -1
- across/sdk/v1/models/spice_parameters.py +1 -1
- across/sdk/v1/models/system_service_account.py +1 -1
- across/sdk/v1/models/telescope.py +1 -1
- across/sdk/v1/models/telescope_instrument.py +1 -1
- across/sdk/v1/models/tle.py +1 -1
- across/sdk/v1/models/tle_create.py +1 -1
- across/sdk/v1/models/tle_parameters.py +1 -1
- across/sdk/v1/models/unit_value.py +1 -1
- across/sdk/v1/models/user.py +5 -15
- across/sdk/v1/models/user_create.py +1 -1
- across/sdk/v1/models/user_info.py +1 -1
- across/sdk/v1/models/user_update.py +1 -1
- across/sdk/v1/models/validation_error.py +1 -1
- across/sdk/v1/models/validation_error_loc_inner.py +1 -1
- across/sdk/v1/models/visibility_result.py +1 -1
- across/sdk/v1/models/visibility_type.py +1 -1
- across/sdk/v1/models/visibility_window.py +1 -1
- across/sdk/v1/models/wavelength_bandpass.py +1 -1
- across/sdk/v1/models/wavelength_unit.py +1 -1
- across/sdk/v1/models/window.py +1 -1
- across/sdk/v1/rest.py +1 -1
- {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.3.0.dist-info}/METADATA +15 -18
- across_server_openapi_python-1.3.0.dist-info/RECORD +126 -0
- across_server_openapi_python-1.2.0.dist-info/RECORD +0 -121
- {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.3.0.dist-info}/WHEEL +0 -0
- {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.3.0.dist-info}/licenses/LICENSE +0 -0
- {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.3.0.dist-info}/top_level.txt +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ACROSS Server
|
|
5
|
+
|
|
6
|
+
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import StrictStr
|
|
20
|
+
from typing import List
|
|
21
|
+
from across.sdk.v1.models.role import Role
|
|
22
|
+
|
|
23
|
+
from across.sdk.v1.api_client import ApiClient, RequestSerialized
|
|
24
|
+
from across.sdk.v1.api_response import ApiResponse
|
|
25
|
+
from across.sdk.v1.rest import RESTResponseType
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class RoleApi:
|
|
29
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
|
+
Ref: https://openapi-generator.tech
|
|
31
|
+
|
|
32
|
+
Do not edit the class manually.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def __init__(self, api_client=None) -> None:
|
|
36
|
+
if api_client is None:
|
|
37
|
+
api_client = ApiClient.get_default()
|
|
38
|
+
self.api_client = api_client
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@validate_call
|
|
42
|
+
def get_many_role_get(
|
|
43
|
+
self,
|
|
44
|
+
_request_timeout: Union[
|
|
45
|
+
None,
|
|
46
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
+
Tuple[
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
50
|
+
]
|
|
51
|
+
] = None,
|
|
52
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
+
_content_type: Optional[StrictStr] = None,
|
|
54
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
56
|
+
) -> List[Role]:
|
|
57
|
+
"""Read roles
|
|
58
|
+
|
|
59
|
+
Read many roles
|
|
60
|
+
|
|
61
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
62
|
+
number provided, it will be total request
|
|
63
|
+
timeout. It can also be a pair (tuple) of
|
|
64
|
+
(connection, read) timeouts.
|
|
65
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
66
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
67
|
+
request; this effectively ignores the
|
|
68
|
+
authentication in the spec for a single request.
|
|
69
|
+
:type _request_auth: dict, optional
|
|
70
|
+
:param _content_type: force content-type for the request.
|
|
71
|
+
:type _content_type: str, Optional
|
|
72
|
+
:param _headers: set to override the headers for a single
|
|
73
|
+
request; this effectively ignores the headers
|
|
74
|
+
in the spec for a single request.
|
|
75
|
+
:type _headers: dict, optional
|
|
76
|
+
:param _host_index: set to override the host_index for a single
|
|
77
|
+
request; this effectively ignores the host_index
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _host_index: int, optional
|
|
80
|
+
:return: Returns the result object.
|
|
81
|
+
""" # noqa: E501
|
|
82
|
+
|
|
83
|
+
_param = self._get_many_role_get_serialize(
|
|
84
|
+
_request_auth=_request_auth,
|
|
85
|
+
_content_type=_content_type,
|
|
86
|
+
_headers=_headers,
|
|
87
|
+
_host_index=_host_index
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
91
|
+
'200': "List[Role]",
|
|
92
|
+
'404': None,
|
|
93
|
+
}
|
|
94
|
+
response_data = self.api_client.call_api(
|
|
95
|
+
*_param,
|
|
96
|
+
_request_timeout=_request_timeout
|
|
97
|
+
)
|
|
98
|
+
response_data.read()
|
|
99
|
+
return self.api_client.response_deserialize(
|
|
100
|
+
response_data=response_data,
|
|
101
|
+
response_types_map=_response_types_map,
|
|
102
|
+
).data
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
@validate_call
|
|
106
|
+
def get_many_role_get_with_http_info(
|
|
107
|
+
self,
|
|
108
|
+
_request_timeout: Union[
|
|
109
|
+
None,
|
|
110
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
111
|
+
Tuple[
|
|
112
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
113
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
114
|
+
]
|
|
115
|
+
] = None,
|
|
116
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
117
|
+
_content_type: Optional[StrictStr] = None,
|
|
118
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
119
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
120
|
+
) -> ApiResponse[List[Role]]:
|
|
121
|
+
"""Read roles
|
|
122
|
+
|
|
123
|
+
Read many roles
|
|
124
|
+
|
|
125
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
126
|
+
number provided, it will be total request
|
|
127
|
+
timeout. It can also be a pair (tuple) of
|
|
128
|
+
(connection, read) timeouts.
|
|
129
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
130
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
131
|
+
request; this effectively ignores the
|
|
132
|
+
authentication in the spec for a single request.
|
|
133
|
+
:type _request_auth: dict, optional
|
|
134
|
+
:param _content_type: force content-type for the request.
|
|
135
|
+
:type _content_type: str, Optional
|
|
136
|
+
:param _headers: set to override the headers for a single
|
|
137
|
+
request; this effectively ignores the headers
|
|
138
|
+
in the spec for a single request.
|
|
139
|
+
:type _headers: dict, optional
|
|
140
|
+
:param _host_index: set to override the host_index for a single
|
|
141
|
+
request; this effectively ignores the host_index
|
|
142
|
+
in the spec for a single request.
|
|
143
|
+
:type _host_index: int, optional
|
|
144
|
+
:return: Returns the result object.
|
|
145
|
+
""" # noqa: E501
|
|
146
|
+
|
|
147
|
+
_param = self._get_many_role_get_serialize(
|
|
148
|
+
_request_auth=_request_auth,
|
|
149
|
+
_content_type=_content_type,
|
|
150
|
+
_headers=_headers,
|
|
151
|
+
_host_index=_host_index
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
155
|
+
'200': "List[Role]",
|
|
156
|
+
'404': None,
|
|
157
|
+
}
|
|
158
|
+
response_data = self.api_client.call_api(
|
|
159
|
+
*_param,
|
|
160
|
+
_request_timeout=_request_timeout
|
|
161
|
+
)
|
|
162
|
+
response_data.read()
|
|
163
|
+
return self.api_client.response_deserialize(
|
|
164
|
+
response_data=response_data,
|
|
165
|
+
response_types_map=_response_types_map,
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
@validate_call
|
|
170
|
+
def get_many_role_get_without_preload_content(
|
|
171
|
+
self,
|
|
172
|
+
_request_timeout: Union[
|
|
173
|
+
None,
|
|
174
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
175
|
+
Tuple[
|
|
176
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
177
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
178
|
+
]
|
|
179
|
+
] = None,
|
|
180
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
181
|
+
_content_type: Optional[StrictStr] = None,
|
|
182
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
183
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
184
|
+
) -> RESTResponseType:
|
|
185
|
+
"""Read roles
|
|
186
|
+
|
|
187
|
+
Read many roles
|
|
188
|
+
|
|
189
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
190
|
+
number provided, it will be total request
|
|
191
|
+
timeout. It can also be a pair (tuple) of
|
|
192
|
+
(connection, read) timeouts.
|
|
193
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
194
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
195
|
+
request; this effectively ignores the
|
|
196
|
+
authentication in the spec for a single request.
|
|
197
|
+
:type _request_auth: dict, optional
|
|
198
|
+
:param _content_type: force content-type for the request.
|
|
199
|
+
:type _content_type: str, Optional
|
|
200
|
+
:param _headers: set to override the headers for a single
|
|
201
|
+
request; this effectively ignores the headers
|
|
202
|
+
in the spec for a single request.
|
|
203
|
+
:type _headers: dict, optional
|
|
204
|
+
:param _host_index: set to override the host_index for a single
|
|
205
|
+
request; this effectively ignores the host_index
|
|
206
|
+
in the spec for a single request.
|
|
207
|
+
:type _host_index: int, optional
|
|
208
|
+
:return: Returns the result object.
|
|
209
|
+
""" # noqa: E501
|
|
210
|
+
|
|
211
|
+
_param = self._get_many_role_get_serialize(
|
|
212
|
+
_request_auth=_request_auth,
|
|
213
|
+
_content_type=_content_type,
|
|
214
|
+
_headers=_headers,
|
|
215
|
+
_host_index=_host_index
|
|
216
|
+
)
|
|
217
|
+
|
|
218
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
219
|
+
'200': "List[Role]",
|
|
220
|
+
'404': None,
|
|
221
|
+
}
|
|
222
|
+
response_data = self.api_client.call_api(
|
|
223
|
+
*_param,
|
|
224
|
+
_request_timeout=_request_timeout
|
|
225
|
+
)
|
|
226
|
+
return response_data.response
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
def _get_many_role_get_serialize(
|
|
230
|
+
self,
|
|
231
|
+
_request_auth,
|
|
232
|
+
_content_type,
|
|
233
|
+
_headers,
|
|
234
|
+
_host_index,
|
|
235
|
+
) -> RequestSerialized:
|
|
236
|
+
|
|
237
|
+
_host = None
|
|
238
|
+
|
|
239
|
+
_collection_formats: Dict[str, str] = {
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
_path_params: Dict[str, str] = {}
|
|
243
|
+
_query_params: List[Tuple[str, str]] = []
|
|
244
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
245
|
+
_form_params: List[Tuple[str, str]] = []
|
|
246
|
+
_files: Dict[
|
|
247
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
248
|
+
] = {}
|
|
249
|
+
_body_params: Optional[bytes] = None
|
|
250
|
+
|
|
251
|
+
# process the path parameters
|
|
252
|
+
# process the query parameters
|
|
253
|
+
# process the header parameters
|
|
254
|
+
# process the form parameters
|
|
255
|
+
# process the body parameter
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
# set the HTTP header `Accept`
|
|
259
|
+
if 'Accept' not in _header_params:
|
|
260
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
261
|
+
[
|
|
262
|
+
'application/json'
|
|
263
|
+
]
|
|
264
|
+
)
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
# authentication setting
|
|
268
|
+
_auth_settings: List[str] = [
|
|
269
|
+
]
|
|
270
|
+
|
|
271
|
+
return self.api_client.param_serialize(
|
|
272
|
+
method='GET',
|
|
273
|
+
resource_path='/role/',
|
|
274
|
+
path_params=_path_params,
|
|
275
|
+
query_params=_query_params,
|
|
276
|
+
header_params=_header_params,
|
|
277
|
+
body=_body_params,
|
|
278
|
+
post_params=_form_params,
|
|
279
|
+
files=_files,
|
|
280
|
+
auth_settings=_auth_settings,
|
|
281
|
+
collection_formats=_collection_formats,
|
|
282
|
+
_host=_host,
|
|
283
|
+
_request_auth=_request_auth
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
@validate_call
|
|
290
|
+
def get_role_role_id_get(
|
|
291
|
+
self,
|
|
292
|
+
role_id: StrictStr,
|
|
293
|
+
_request_timeout: Union[
|
|
294
|
+
None,
|
|
295
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
296
|
+
Tuple[
|
|
297
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
298
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
299
|
+
]
|
|
300
|
+
] = None,
|
|
301
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
302
|
+
_content_type: Optional[StrictStr] = None,
|
|
303
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
304
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
305
|
+
) -> Role:
|
|
306
|
+
"""Read a role
|
|
307
|
+
|
|
308
|
+
Read a role by role ID.
|
|
309
|
+
|
|
310
|
+
:param role_id: (required)
|
|
311
|
+
:type role_id: str
|
|
312
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
313
|
+
number provided, it will be total request
|
|
314
|
+
timeout. It can also be a pair (tuple) of
|
|
315
|
+
(connection, read) timeouts.
|
|
316
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
317
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
318
|
+
request; this effectively ignores the
|
|
319
|
+
authentication in the spec for a single request.
|
|
320
|
+
:type _request_auth: dict, optional
|
|
321
|
+
:param _content_type: force content-type for the request.
|
|
322
|
+
:type _content_type: str, Optional
|
|
323
|
+
:param _headers: set to override the headers for a single
|
|
324
|
+
request; this effectively ignores the headers
|
|
325
|
+
in the spec for a single request.
|
|
326
|
+
:type _headers: dict, optional
|
|
327
|
+
:param _host_index: set to override the host_index for a single
|
|
328
|
+
request; this effectively ignores the host_index
|
|
329
|
+
in the spec for a single request.
|
|
330
|
+
:type _host_index: int, optional
|
|
331
|
+
:return: Returns the result object.
|
|
332
|
+
""" # noqa: E501
|
|
333
|
+
|
|
334
|
+
_param = self._get_role_role_id_get_serialize(
|
|
335
|
+
role_id=role_id,
|
|
336
|
+
_request_auth=_request_auth,
|
|
337
|
+
_content_type=_content_type,
|
|
338
|
+
_headers=_headers,
|
|
339
|
+
_host_index=_host_index
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
343
|
+
'200': "Role",
|
|
344
|
+
'404': None,
|
|
345
|
+
'422': "HTTPValidationError",
|
|
346
|
+
}
|
|
347
|
+
response_data = self.api_client.call_api(
|
|
348
|
+
*_param,
|
|
349
|
+
_request_timeout=_request_timeout
|
|
350
|
+
)
|
|
351
|
+
response_data.read()
|
|
352
|
+
return self.api_client.response_deserialize(
|
|
353
|
+
response_data=response_data,
|
|
354
|
+
response_types_map=_response_types_map,
|
|
355
|
+
).data
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
@validate_call
|
|
359
|
+
def get_role_role_id_get_with_http_info(
|
|
360
|
+
self,
|
|
361
|
+
role_id: StrictStr,
|
|
362
|
+
_request_timeout: Union[
|
|
363
|
+
None,
|
|
364
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
365
|
+
Tuple[
|
|
366
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
367
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
368
|
+
]
|
|
369
|
+
] = None,
|
|
370
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
371
|
+
_content_type: Optional[StrictStr] = None,
|
|
372
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
373
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
374
|
+
) -> ApiResponse[Role]:
|
|
375
|
+
"""Read a role
|
|
376
|
+
|
|
377
|
+
Read a role by role ID.
|
|
378
|
+
|
|
379
|
+
:param role_id: (required)
|
|
380
|
+
:type role_id: str
|
|
381
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
382
|
+
number provided, it will be total request
|
|
383
|
+
timeout. It can also be a pair (tuple) of
|
|
384
|
+
(connection, read) timeouts.
|
|
385
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
386
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
387
|
+
request; this effectively ignores the
|
|
388
|
+
authentication in the spec for a single request.
|
|
389
|
+
:type _request_auth: dict, optional
|
|
390
|
+
:param _content_type: force content-type for the request.
|
|
391
|
+
:type _content_type: str, Optional
|
|
392
|
+
:param _headers: set to override the headers for a single
|
|
393
|
+
request; this effectively ignores the headers
|
|
394
|
+
in the spec for a single request.
|
|
395
|
+
:type _headers: dict, optional
|
|
396
|
+
:param _host_index: set to override the host_index for a single
|
|
397
|
+
request; this effectively ignores the host_index
|
|
398
|
+
in the spec for a single request.
|
|
399
|
+
:type _host_index: int, optional
|
|
400
|
+
:return: Returns the result object.
|
|
401
|
+
""" # noqa: E501
|
|
402
|
+
|
|
403
|
+
_param = self._get_role_role_id_get_serialize(
|
|
404
|
+
role_id=role_id,
|
|
405
|
+
_request_auth=_request_auth,
|
|
406
|
+
_content_type=_content_type,
|
|
407
|
+
_headers=_headers,
|
|
408
|
+
_host_index=_host_index
|
|
409
|
+
)
|
|
410
|
+
|
|
411
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
412
|
+
'200': "Role",
|
|
413
|
+
'404': None,
|
|
414
|
+
'422': "HTTPValidationError",
|
|
415
|
+
}
|
|
416
|
+
response_data = self.api_client.call_api(
|
|
417
|
+
*_param,
|
|
418
|
+
_request_timeout=_request_timeout
|
|
419
|
+
)
|
|
420
|
+
response_data.read()
|
|
421
|
+
return self.api_client.response_deserialize(
|
|
422
|
+
response_data=response_data,
|
|
423
|
+
response_types_map=_response_types_map,
|
|
424
|
+
)
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
@validate_call
|
|
428
|
+
def get_role_role_id_get_without_preload_content(
|
|
429
|
+
self,
|
|
430
|
+
role_id: StrictStr,
|
|
431
|
+
_request_timeout: Union[
|
|
432
|
+
None,
|
|
433
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
434
|
+
Tuple[
|
|
435
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
436
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
437
|
+
]
|
|
438
|
+
] = None,
|
|
439
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
440
|
+
_content_type: Optional[StrictStr] = None,
|
|
441
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
442
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
443
|
+
) -> RESTResponseType:
|
|
444
|
+
"""Read a role
|
|
445
|
+
|
|
446
|
+
Read a role by role ID.
|
|
447
|
+
|
|
448
|
+
:param role_id: (required)
|
|
449
|
+
:type role_id: str
|
|
450
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
451
|
+
number provided, it will be total request
|
|
452
|
+
timeout. It can also be a pair (tuple) of
|
|
453
|
+
(connection, read) timeouts.
|
|
454
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
455
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
456
|
+
request; this effectively ignores the
|
|
457
|
+
authentication in the spec for a single request.
|
|
458
|
+
:type _request_auth: dict, optional
|
|
459
|
+
:param _content_type: force content-type for the request.
|
|
460
|
+
:type _content_type: str, Optional
|
|
461
|
+
:param _headers: set to override the headers for a single
|
|
462
|
+
request; this effectively ignores the headers
|
|
463
|
+
in the spec for a single request.
|
|
464
|
+
:type _headers: dict, optional
|
|
465
|
+
:param _host_index: set to override the host_index for a single
|
|
466
|
+
request; this effectively ignores the host_index
|
|
467
|
+
in the spec for a single request.
|
|
468
|
+
:type _host_index: int, optional
|
|
469
|
+
:return: Returns the result object.
|
|
470
|
+
""" # noqa: E501
|
|
471
|
+
|
|
472
|
+
_param = self._get_role_role_id_get_serialize(
|
|
473
|
+
role_id=role_id,
|
|
474
|
+
_request_auth=_request_auth,
|
|
475
|
+
_content_type=_content_type,
|
|
476
|
+
_headers=_headers,
|
|
477
|
+
_host_index=_host_index
|
|
478
|
+
)
|
|
479
|
+
|
|
480
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
481
|
+
'200': "Role",
|
|
482
|
+
'404': None,
|
|
483
|
+
'422': "HTTPValidationError",
|
|
484
|
+
}
|
|
485
|
+
response_data = self.api_client.call_api(
|
|
486
|
+
*_param,
|
|
487
|
+
_request_timeout=_request_timeout
|
|
488
|
+
)
|
|
489
|
+
return response_data.response
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
def _get_role_role_id_get_serialize(
|
|
493
|
+
self,
|
|
494
|
+
role_id,
|
|
495
|
+
_request_auth,
|
|
496
|
+
_content_type,
|
|
497
|
+
_headers,
|
|
498
|
+
_host_index,
|
|
499
|
+
) -> RequestSerialized:
|
|
500
|
+
|
|
501
|
+
_host = None
|
|
502
|
+
|
|
503
|
+
_collection_formats: Dict[str, str] = {
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
_path_params: Dict[str, str] = {}
|
|
507
|
+
_query_params: List[Tuple[str, str]] = []
|
|
508
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
509
|
+
_form_params: List[Tuple[str, str]] = []
|
|
510
|
+
_files: Dict[
|
|
511
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
512
|
+
] = {}
|
|
513
|
+
_body_params: Optional[bytes] = None
|
|
514
|
+
|
|
515
|
+
# process the path parameters
|
|
516
|
+
if role_id is not None:
|
|
517
|
+
_path_params['role_id'] = role_id
|
|
518
|
+
# process the query parameters
|
|
519
|
+
# process the header parameters
|
|
520
|
+
# process the form parameters
|
|
521
|
+
# process the body parameter
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
# set the HTTP header `Accept`
|
|
525
|
+
if 'Accept' not in _header_params:
|
|
526
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
527
|
+
[
|
|
528
|
+
'application/json'
|
|
529
|
+
]
|
|
530
|
+
)
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
# authentication setting
|
|
534
|
+
_auth_settings: List[str] = [
|
|
535
|
+
]
|
|
536
|
+
|
|
537
|
+
return self.api_client.param_serialize(
|
|
538
|
+
method='GET',
|
|
539
|
+
resource_path='/role/{role_id}',
|
|
540
|
+
path_params=_path_params,
|
|
541
|
+
query_params=_query_params,
|
|
542
|
+
header_params=_header_params,
|
|
543
|
+
body=_body_params,
|
|
544
|
+
post_params=_form_params,
|
|
545
|
+
files=_files,
|
|
546
|
+
auth_settings=_auth_settings,
|
|
547
|
+
collection_formats=_collection_formats,
|
|
548
|
+
_host=_host,
|
|
549
|
+
_request_auth=_request_auth
|
|
550
|
+
)
|
|
551
|
+
|
|
552
|
+
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|