across-server-openapi-python 1.2.0__py3-none-any.whl → 1.4.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. across/sdk/v1/__init__.py +41 -7
  2. across/sdk/v1/api/__init__.py +3 -0
  3. across/sdk/v1/api/auth_api.py +269 -1
  4. across/sdk/v1/api/broker_alert_api.py +1017 -0
  5. across/sdk/v1/api/broker_event_api.py +697 -0
  6. across/sdk/v1/api/filter_api.py +1 -1
  7. across/sdk/v1/api/group_api.py +250 -1
  8. across/sdk/v1/api/group_invite_api.py +1 -1
  9. across/sdk/v1/api/group_role_api.py +7 -7
  10. across/sdk/v1/api/instrument_api.py +1 -1
  11. across/sdk/v1/api/internal_api.py +2 -2
  12. across/sdk/v1/api/observation_api.py +682 -52
  13. across/sdk/v1/api/observatory_api.py +1 -1
  14. across/sdk/v1/api/permission_api.py +1 -1
  15. across/sdk/v1/api/role_api.py +552 -0
  16. across/sdk/v1/api/schedule_api.py +1 -1
  17. across/sdk/v1/api/service_account_api.py +7 -7
  18. across/sdk/v1/api/telescope_api.py +35 -1
  19. across/sdk/v1/api/tle_api.py +1 -1
  20. across/sdk/v1/api/tools_api.py +1 -1
  21. across/sdk/v1/api/user_api.py +265 -17
  22. across/sdk/v1/api_client.py +1 -1
  23. across/sdk/v1/configuration.py +4 -4
  24. across/sdk/v1/exceptions.py +1 -1
  25. across/sdk/v1/models/__init__.py +18 -4
  26. across/sdk/v1/models/access_token_response.py +1 -1
  27. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group.py +91 -0
  28. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group_role.py +1 -1
  29. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_user.py +1 -1
  30. across/sdk/v1/models/across_server_routes_v1_group_schemas_group.py +7 -7
  31. across/sdk/v1/models/across_server_routes_v1_group_schemas_user.py +105 -0
  32. across/sdk/v1/models/across_server_routes_v1_role_schemas_user.py +95 -0
  33. across/sdk/v1/models/across_server_routes_v1_user_schemas_group.py +101 -0
  34. across/sdk/v1/models/across_server_routes_v1_user_schemas_group_invite.py +1 -1
  35. across/sdk/v1/models/across_server_routes_v1_user_schemas_group_role.py +105 -0
  36. across/sdk/v1/models/across_server_routes_v1_user_schemas_user.py +4 -4
  37. across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py +1 -1
  38. across/sdk/v1/models/bandpass.py +1 -1
  39. across/sdk/v1/models/bandpass_type.py +1 -1
  40. across/sdk/v1/models/broker_alert.py +104 -0
  41. across/sdk/v1/models/broker_alert_create.py +115 -0
  42. across/sdk/v1/models/broker_alert_data_source.py +39 -0
  43. across/sdk/v1/models/broker_alert_status.py +41 -0
  44. across/sdk/v1/models/broker_event.py +115 -0
  45. across/sdk/v1/models/broker_event_type.py +41 -0
  46. across/sdk/v1/models/constrained_date.py +4 -7
  47. across/sdk/v1/models/constraint_reason.py +1 -1
  48. across/sdk/v1/models/constraint_type.py +1 -1
  49. across/sdk/v1/models/coordinate.py +1 -1
  50. across/sdk/v1/models/date_range.py +1 -1
  51. across/sdk/v1/models/depth_unit.py +1 -1
  52. across/sdk/v1/models/energy_bandpass.py +1 -1
  53. across/sdk/v1/models/energy_unit.py +1 -1
  54. across/sdk/v1/models/ephemeris_type.py +1 -1
  55. across/sdk/v1/models/filter.py +1 -1
  56. across/sdk/v1/models/frequency_bandpass.py +1 -1
  57. across/sdk/v1/models/frequency_unit.py +1 -1
  58. across/sdk/v1/models/grant_type.py +1 -1
  59. across/sdk/v1/models/ground_parameters.py +1 -1
  60. across/sdk/v1/models/group.py +4 -4
  61. across/sdk/v1/models/group_base.py +91 -0
  62. across/sdk/v1/models/group_invite.py +1 -1
  63. across/sdk/v1/models/group_invite_create.py +1 -1
  64. across/sdk/v1/models/group_invite_group_details.py +1 -1
  65. across/sdk/v1/models/group_read.py +1 -1
  66. across/sdk/v1/models/group_role.py +37 -6
  67. across/sdk/v1/models/group_role_create.py +1 -1
  68. across/sdk/v1/models/group_role_read.py +9 -3
  69. across/sdk/v1/models/http_validation_error.py +1 -1
  70. across/sdk/v1/models/id_name_schema.py +1 -1
  71. across/sdk/v1/models/instrument.py +1 -1
  72. across/sdk/v1/models/ivoa_obs_category.py +1 -1
  73. across/sdk/v1/models/ivoa_obs_tracking_type.py +1 -1
  74. across/sdk/v1/models/joint_visibility_result.py +1 -1
  75. across/sdk/v1/models/jpl_parameters.py +1 -1
  76. across/sdk/v1/models/localization.py +127 -0
  77. across/sdk/v1/models/localization_contour_base.py +95 -0
  78. across/sdk/v1/models/localization_create.py +121 -0
  79. across/sdk/v1/models/location_inner.py +138 -0
  80. across/sdk/v1/models/name_resolver.py +1 -1
  81. across/sdk/v1/models/nullable_date_range.py +1 -1
  82. across/sdk/v1/models/observation.py +1 -1
  83. across/sdk/v1/models/observation_create.py +1 -1
  84. across/sdk/v1/models/observation_footprint.py +1 -1
  85. across/sdk/v1/models/observation_footprint_create.py +1 -1
  86. across/sdk/v1/models/observation_status.py +1 -1
  87. across/sdk/v1/models/observation_strategy.py +1 -1
  88. across/sdk/v1/models/observation_type.py +1 -1
  89. across/sdk/v1/models/observatory.py +1 -1
  90. across/sdk/v1/models/observatory_ephemeris_type.py +1 -1
  91. across/sdk/v1/models/observatory_type.py +1 -1
  92. across/sdk/v1/models/page_broker_alert.py +116 -0
  93. across/sdk/v1/models/page_broker_event.py +116 -0
  94. across/sdk/v1/models/page_observation.py +1 -1
  95. across/sdk/v1/models/page_schedule.py +1 -1
  96. across/sdk/v1/models/parameters.py +1 -1
  97. across/sdk/v1/models/permission.py +1 -1
  98. across/sdk/v1/models/point.py +1 -1
  99. across/sdk/v1/models/role.py +99 -0
  100. across/sdk/v1/models/role_base.py +1 -1
  101. across/sdk/v1/models/schedule.py +1 -1
  102. across/sdk/v1/models/schedule_cadence.py +1 -1
  103. across/sdk/v1/models/schedule_create.py +1 -1
  104. across/sdk/v1/models/schedule_create_many.py +1 -1
  105. across/sdk/v1/models/schedule_fidelity.py +1 -1
  106. across/sdk/v1/models/schedule_status.py +1 -1
  107. across/sdk/v1/models/service_account.py +1 -1
  108. across/sdk/v1/models/service_account_create.py +1 -1
  109. across/sdk/v1/models/service_account_secret.py +1 -1
  110. across/sdk/v1/models/service_account_update.py +1 -1
  111. across/sdk/v1/models/spice_parameters.py +1 -1
  112. across/sdk/v1/models/system_service_account.py +1 -1
  113. across/sdk/v1/models/telescope.py +1 -1
  114. across/sdk/v1/models/telescope_instrument.py +1 -1
  115. across/sdk/v1/models/tle.py +1 -1
  116. across/sdk/v1/models/tle_create.py +1 -1
  117. across/sdk/v1/models/tle_parameters.py +1 -1
  118. across/sdk/v1/models/unit_value.py +1 -1
  119. across/sdk/v1/models/user.py +37 -7
  120. across/sdk/v1/models/user_create.py +1 -1
  121. across/sdk/v1/models/user_info.py +1 -1
  122. across/sdk/v1/models/user_update.py +1 -1
  123. across/sdk/v1/models/validation_error.py +1 -1
  124. across/sdk/v1/models/validation_error_loc_inner.py +1 -1
  125. across/sdk/v1/models/visibility_result.py +1 -1
  126. across/sdk/v1/models/visibility_type.py +1 -1
  127. across/sdk/v1/models/visibility_window.py +1 -1
  128. across/sdk/v1/models/wavelength_bandpass.py +1 -1
  129. across/sdk/v1/models/wavelength_unit.py +1 -1
  130. across/sdk/v1/models/window.py +1 -1
  131. across/sdk/v1/rest.py +1 -1
  132. {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.4.0.dist-info}/METADATA +45 -29
  133. across_server_openapi_python-1.4.0.dist-info/RECORD +143 -0
  134. across_server_openapi_python-1.2.0.dist-info/RECORD +0 -121
  135. {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.4.0.dist-info}/WHEEL +0 -0
  136. {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.4.0.dist-info}/licenses/LICENSE +0 -0
  137. {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.4.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.3.2
8
+ The version of the OpenAPI document: 1.6.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.3.2
8
+ The version of the OpenAPI document: 1.6.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.6.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.3.2
8
+ The version of the OpenAPI document: 1.6.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.3.2
8
+ The version of the OpenAPI document: 1.6.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -617,7 +617,7 @@ class ServiceAccountApi:
617
617
 
618
618
  return self.api_client.param_serialize(
619
619
  method='POST',
620
- resource_path='/user/{user_id}/service_account/',
620
+ resource_path='/user/{user_id}/service-account/',
621
621
  path_params=_path_params,
622
622
  query_params=_query_params,
623
623
  header_params=_header_params,
@@ -899,7 +899,7 @@ class ServiceAccountApi:
899
899
 
900
900
  return self.api_client.param_serialize(
901
901
  method='DELETE',
902
- resource_path='/user/{user_id}/service_account/{service_account_id}',
902
+ resource_path='/user/{user_id}/service-account/{service_account_id}',
903
903
  path_params=_path_params,
904
904
  query_params=_query_params,
905
905
  header_params=_header_params,
@@ -1166,7 +1166,7 @@ class ServiceAccountApi:
1166
1166
 
1167
1167
  return self.api_client.param_serialize(
1168
1168
  method='GET',
1169
- resource_path='/user/{user_id}/service_account/',
1169
+ resource_path='/user/{user_id}/service-account/',
1170
1170
  path_params=_path_params,
1171
1171
  query_params=_query_params,
1172
1172
  header_params=_header_params,
@@ -1448,7 +1448,7 @@ class ServiceAccountApi:
1448
1448
 
1449
1449
  return self.api_client.param_serialize(
1450
1450
  method='GET',
1451
- resource_path='/user/{user_id}/service_account/{service_account_id}',
1451
+ resource_path='/user/{user_id}/service-account/{service_account_id}',
1452
1452
  path_params=_path_params,
1453
1453
  query_params=_query_params,
1454
1454
  header_params=_header_params,
@@ -2055,7 +2055,7 @@ class ServiceAccountApi:
2055
2055
 
2056
2056
  return self.api_client.param_serialize(
2057
2057
  method='PATCH',
2058
- resource_path='/user/{user_id}/service_account/{service_account_id}',
2058
+ resource_path='/user/{user_id}/service-account/{service_account_id}',
2059
2059
  path_params=_path_params,
2060
2060
  query_params=_query_params,
2061
2061
  header_params=_header_params,
@@ -2337,7 +2337,7 @@ class ServiceAccountApi:
2337
2337
 
2338
2338
  return self.api_client.param_serialize(
2339
2339
  method='PATCH',
2340
- resource_path='/user/{user_id}/service_account/{service_account_id}/rotate_key',
2340
+ resource_path='/user/{user_id}/service-account/{service_account_id}/rotate-key',
2341
2341
  path_params=_path_params,
2342
2342
  query_params=_query_params,
2343
2343
  header_params=_header_params,