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
@@ -0,0 +1,697 @@
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 datetime import datetime
20
+ from pydantic import Field, StrictBool, StrictStr
21
+ from typing import List, Optional
22
+ from typing_extensions import Annotated
23
+ from across.sdk.v1.models.broker_event import BrokerEvent
24
+ from across.sdk.v1.models.broker_event_type import BrokerEventType
25
+ from across.sdk.v1.models.page_broker_event import PageBrokerEvent
26
+
27
+ from across.sdk.v1.api_client import ApiClient, RequestSerialized
28
+ from across.sdk.v1.api_response import ApiResponse
29
+ from across.sdk.v1.rest import RESTResponseType
30
+
31
+
32
+ class BrokerEventApi:
33
+ """NOTE: This class is auto generated by OpenAPI Generator
34
+ Ref: https://openapi-generator.tech
35
+
36
+ Do not edit the class manually.
37
+ """
38
+
39
+ def __init__(self, api_client=None) -> None:
40
+ if api_client is None:
41
+ api_client = ApiClient.get_default()
42
+ self.api_client = api_client
43
+
44
+
45
+ @validate_call
46
+ def get_broker_event(
47
+ self,
48
+ broker_event_id: StrictStr,
49
+ _request_timeout: Union[
50
+ None,
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Tuple[
53
+ Annotated[StrictFloat, Field(gt=0)],
54
+ Annotated[StrictFloat, Field(gt=0)]
55
+ ]
56
+ ] = None,
57
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
58
+ _content_type: Optional[StrictStr] = None,
59
+ _headers: Optional[Dict[StrictStr, Any]] = None,
60
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
61
+ ) -> BrokerEvent:
62
+ """Read a broker event
63
+
64
+ Read a broker event by ID.
65
+
66
+ :param broker_event_id: (required)
67
+ :type broker_event_id: str
68
+ :param _request_timeout: timeout setting for this request. If one
69
+ number provided, it will be total request
70
+ timeout. It can also be a pair (tuple) of
71
+ (connection, read) timeouts.
72
+ :type _request_timeout: int, tuple(int, int), optional
73
+ :param _request_auth: set to override the auth_settings for an a single
74
+ request; this effectively ignores the
75
+ authentication in the spec for a single request.
76
+ :type _request_auth: dict, optional
77
+ :param _content_type: force content-type for the request.
78
+ :type _content_type: str, Optional
79
+ :param _headers: set to override the headers for a single
80
+ request; this effectively ignores the headers
81
+ in the spec for a single request.
82
+ :type _headers: dict, optional
83
+ :param _host_index: set to override the host_index for a single
84
+ request; this effectively ignores the host_index
85
+ in the spec for a single request.
86
+ :type _host_index: int, optional
87
+ :return: Returns the result object.
88
+ """ # noqa: E501
89
+
90
+ _param = self._get_broker_event_serialize(
91
+ broker_event_id=broker_event_id,
92
+ _request_auth=_request_auth,
93
+ _content_type=_content_type,
94
+ _headers=_headers,
95
+ _host_index=_host_index
96
+ )
97
+
98
+ _response_types_map: Dict[str, Optional[str]] = {
99
+ '200': "BrokerEvent",
100
+ '404': None,
101
+ '422': "HTTPValidationError",
102
+ }
103
+ response_data = self.api_client.call_api(
104
+ *_param,
105
+ _request_timeout=_request_timeout
106
+ )
107
+ response_data.read()
108
+ return self.api_client.response_deserialize(
109
+ response_data=response_data,
110
+ response_types_map=_response_types_map,
111
+ ).data
112
+
113
+
114
+ @validate_call
115
+ def get_broker_event_with_http_info(
116
+ self,
117
+ broker_event_id: StrictStr,
118
+ _request_timeout: Union[
119
+ None,
120
+ Annotated[StrictFloat, Field(gt=0)],
121
+ Tuple[
122
+ Annotated[StrictFloat, Field(gt=0)],
123
+ Annotated[StrictFloat, Field(gt=0)]
124
+ ]
125
+ ] = None,
126
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
127
+ _content_type: Optional[StrictStr] = None,
128
+ _headers: Optional[Dict[StrictStr, Any]] = None,
129
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
130
+ ) -> ApiResponse[BrokerEvent]:
131
+ """Read a broker event
132
+
133
+ Read a broker event by ID.
134
+
135
+ :param broker_event_id: (required)
136
+ :type broker_event_id: str
137
+ :param _request_timeout: timeout setting for this request. If one
138
+ number provided, it will be total request
139
+ timeout. It can also be a pair (tuple) of
140
+ (connection, read) timeouts.
141
+ :type _request_timeout: int, tuple(int, int), optional
142
+ :param _request_auth: set to override the auth_settings for an a single
143
+ request; this effectively ignores the
144
+ authentication in the spec for a single request.
145
+ :type _request_auth: dict, optional
146
+ :param _content_type: force content-type for the request.
147
+ :type _content_type: str, Optional
148
+ :param _headers: set to override the headers for a single
149
+ request; this effectively ignores the headers
150
+ in the spec for a single request.
151
+ :type _headers: dict, optional
152
+ :param _host_index: set to override the host_index for a single
153
+ request; this effectively ignores the host_index
154
+ in the spec for a single request.
155
+ :type _host_index: int, optional
156
+ :return: Returns the result object.
157
+ """ # noqa: E501
158
+
159
+ _param = self._get_broker_event_serialize(
160
+ broker_event_id=broker_event_id,
161
+ _request_auth=_request_auth,
162
+ _content_type=_content_type,
163
+ _headers=_headers,
164
+ _host_index=_host_index
165
+ )
166
+
167
+ _response_types_map: Dict[str, Optional[str]] = {
168
+ '200': "BrokerEvent",
169
+ '404': None,
170
+ '422': "HTTPValidationError",
171
+ }
172
+ response_data = self.api_client.call_api(
173
+ *_param,
174
+ _request_timeout=_request_timeout
175
+ )
176
+ response_data.read()
177
+ return self.api_client.response_deserialize(
178
+ response_data=response_data,
179
+ response_types_map=_response_types_map,
180
+ )
181
+
182
+
183
+ @validate_call
184
+ def get_broker_event_without_preload_content(
185
+ self,
186
+ broker_event_id: StrictStr,
187
+ _request_timeout: Union[
188
+ None,
189
+ Annotated[StrictFloat, Field(gt=0)],
190
+ Tuple[
191
+ Annotated[StrictFloat, Field(gt=0)],
192
+ Annotated[StrictFloat, Field(gt=0)]
193
+ ]
194
+ ] = None,
195
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
196
+ _content_type: Optional[StrictStr] = None,
197
+ _headers: Optional[Dict[StrictStr, Any]] = None,
198
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
199
+ ) -> RESTResponseType:
200
+ """Read a broker event
201
+
202
+ Read a broker event by ID.
203
+
204
+ :param broker_event_id: (required)
205
+ :type broker_event_id: str
206
+ :param _request_timeout: timeout setting for this request. If one
207
+ number provided, it will be total request
208
+ timeout. It can also be a pair (tuple) of
209
+ (connection, read) timeouts.
210
+ :type _request_timeout: int, tuple(int, int), optional
211
+ :param _request_auth: set to override the auth_settings for an a single
212
+ request; this effectively ignores the
213
+ authentication in the spec for a single request.
214
+ :type _request_auth: dict, optional
215
+ :param _content_type: force content-type for the request.
216
+ :type _content_type: str, Optional
217
+ :param _headers: set to override the headers for a single
218
+ request; this effectively ignores the headers
219
+ in the spec for a single request.
220
+ :type _headers: dict, optional
221
+ :param _host_index: set to override the host_index for a single
222
+ request; this effectively ignores the host_index
223
+ in the spec for a single request.
224
+ :type _host_index: int, optional
225
+ :return: Returns the result object.
226
+ """ # noqa: E501
227
+
228
+ _param = self._get_broker_event_serialize(
229
+ broker_event_id=broker_event_id,
230
+ _request_auth=_request_auth,
231
+ _content_type=_content_type,
232
+ _headers=_headers,
233
+ _host_index=_host_index
234
+ )
235
+
236
+ _response_types_map: Dict[str, Optional[str]] = {
237
+ '200': "BrokerEvent",
238
+ '404': None,
239
+ '422': "HTTPValidationError",
240
+ }
241
+ response_data = self.api_client.call_api(
242
+ *_param,
243
+ _request_timeout=_request_timeout
244
+ )
245
+ return response_data.response
246
+
247
+
248
+ def _get_broker_event_serialize(
249
+ self,
250
+ broker_event_id,
251
+ _request_auth,
252
+ _content_type,
253
+ _headers,
254
+ _host_index,
255
+ ) -> RequestSerialized:
256
+
257
+ _host = None
258
+
259
+ _collection_formats: Dict[str, str] = {
260
+ }
261
+
262
+ _path_params: Dict[str, str] = {}
263
+ _query_params: List[Tuple[str, str]] = []
264
+ _header_params: Dict[str, Optional[str]] = _headers or {}
265
+ _form_params: List[Tuple[str, str]] = []
266
+ _files: Dict[
267
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
268
+ ] = {}
269
+ _body_params: Optional[bytes] = None
270
+
271
+ # process the path parameters
272
+ if broker_event_id is not None:
273
+ _path_params['broker_event_id'] = broker_event_id
274
+ # process the query parameters
275
+ # process the header parameters
276
+ # process the form parameters
277
+ # process the body parameter
278
+
279
+
280
+ # set the HTTP header `Accept`
281
+ if 'Accept' not in _header_params:
282
+ _header_params['Accept'] = self.api_client.select_header_accept(
283
+ [
284
+ 'application/json'
285
+ ]
286
+ )
287
+
288
+
289
+ # authentication setting
290
+ _auth_settings: List[str] = [
291
+ ]
292
+
293
+ return self.api_client.param_serialize(
294
+ method='GET',
295
+ resource_path='/broker-event/{broker_event_id}',
296
+ path_params=_path_params,
297
+ query_params=_query_params,
298
+ header_params=_header_params,
299
+ body=_body_params,
300
+ post_params=_form_params,
301
+ files=_files,
302
+ auth_settings=_auth_settings,
303
+ collection_formats=_collection_formats,
304
+ _host=_host,
305
+ _request_auth=_request_auth
306
+ )
307
+
308
+
309
+
310
+
311
+ @validate_call
312
+ def get_broker_events(
313
+ self,
314
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
315
+ page_limit: Annotated[Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]], Field(description="Records per page")] = None,
316
+ type: Optional[List[BrokerEventType]] = None,
317
+ name: Optional[StrictStr] = None,
318
+ date_range_begin: Optional[datetime] = None,
319
+ date_range_end: Optional[datetime] = None,
320
+ include_localizations: Optional[StrictBool] = None,
321
+ _request_timeout: Union[
322
+ None,
323
+ Annotated[StrictFloat, Field(gt=0)],
324
+ Tuple[
325
+ Annotated[StrictFloat, Field(gt=0)],
326
+ Annotated[StrictFloat, Field(gt=0)]
327
+ ]
328
+ ] = None,
329
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
330
+ _content_type: Optional[StrictStr] = None,
331
+ _headers: Optional[Dict[StrictStr, Any]] = None,
332
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
333
+ ) -> PageBrokerEvent:
334
+ """Read broker event(s)
335
+
336
+ Read many broker events based on query params
337
+
338
+ :param page: Page number
339
+ :type page: int
340
+ :param page_limit: Records per page
341
+ :type page_limit: int
342
+ :param type:
343
+ :type type: List[BrokerEventType]
344
+ :param name:
345
+ :type name: str
346
+ :param date_range_begin:
347
+ :type date_range_begin: datetime
348
+ :param date_range_end:
349
+ :type date_range_end: datetime
350
+ :param include_localizations:
351
+ :type include_localizations: bool
352
+ :param _request_timeout: timeout setting for this request. If one
353
+ number provided, it will be total request
354
+ timeout. It can also be a pair (tuple) of
355
+ (connection, read) timeouts.
356
+ :type _request_timeout: int, tuple(int, int), optional
357
+ :param _request_auth: set to override the auth_settings for an a single
358
+ request; this effectively ignores the
359
+ authentication in the spec for a single request.
360
+ :type _request_auth: dict, optional
361
+ :param _content_type: force content-type for the request.
362
+ :type _content_type: str, Optional
363
+ :param _headers: set to override the headers for a single
364
+ request; this effectively ignores the headers
365
+ in the spec for a single request.
366
+ :type _headers: dict, optional
367
+ :param _host_index: set to override the host_index for a single
368
+ request; this effectively ignores the host_index
369
+ in the spec for a single request.
370
+ :type _host_index: int, optional
371
+ :return: Returns the result object.
372
+ """ # noqa: E501
373
+
374
+ _param = self._get_broker_events_serialize(
375
+ page=page,
376
+ page_limit=page_limit,
377
+ type=type,
378
+ name=name,
379
+ date_range_begin=date_range_begin,
380
+ date_range_end=date_range_end,
381
+ include_localizations=include_localizations,
382
+ _request_auth=_request_auth,
383
+ _content_type=_content_type,
384
+ _headers=_headers,
385
+ _host_index=_host_index
386
+ )
387
+
388
+ _response_types_map: Dict[str, Optional[str]] = {
389
+ '200': "PageBrokerEvent",
390
+ '404': None,
391
+ '422': "HTTPValidationError",
392
+ }
393
+ response_data = self.api_client.call_api(
394
+ *_param,
395
+ _request_timeout=_request_timeout
396
+ )
397
+ response_data.read()
398
+ return self.api_client.response_deserialize(
399
+ response_data=response_data,
400
+ response_types_map=_response_types_map,
401
+ ).data
402
+
403
+
404
+ @validate_call
405
+ def get_broker_events_with_http_info(
406
+ self,
407
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
408
+ page_limit: Annotated[Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]], Field(description="Records per page")] = None,
409
+ type: Optional[List[BrokerEventType]] = None,
410
+ name: Optional[StrictStr] = None,
411
+ date_range_begin: Optional[datetime] = None,
412
+ date_range_end: Optional[datetime] = None,
413
+ include_localizations: Optional[StrictBool] = None,
414
+ _request_timeout: Union[
415
+ None,
416
+ Annotated[StrictFloat, Field(gt=0)],
417
+ Tuple[
418
+ Annotated[StrictFloat, Field(gt=0)],
419
+ Annotated[StrictFloat, Field(gt=0)]
420
+ ]
421
+ ] = None,
422
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
423
+ _content_type: Optional[StrictStr] = None,
424
+ _headers: Optional[Dict[StrictStr, Any]] = None,
425
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
426
+ ) -> ApiResponse[PageBrokerEvent]:
427
+ """Read broker event(s)
428
+
429
+ Read many broker events based on query params
430
+
431
+ :param page: Page number
432
+ :type page: int
433
+ :param page_limit: Records per page
434
+ :type page_limit: int
435
+ :param type:
436
+ :type type: List[BrokerEventType]
437
+ :param name:
438
+ :type name: str
439
+ :param date_range_begin:
440
+ :type date_range_begin: datetime
441
+ :param date_range_end:
442
+ :type date_range_end: datetime
443
+ :param include_localizations:
444
+ :type include_localizations: bool
445
+ :param _request_timeout: timeout setting for this request. If one
446
+ number provided, it will be total request
447
+ timeout. It can also be a pair (tuple) of
448
+ (connection, read) timeouts.
449
+ :type _request_timeout: int, tuple(int, int), optional
450
+ :param _request_auth: set to override the auth_settings for an a single
451
+ request; this effectively ignores the
452
+ authentication in the spec for a single request.
453
+ :type _request_auth: dict, optional
454
+ :param _content_type: force content-type for the request.
455
+ :type _content_type: str, Optional
456
+ :param _headers: set to override the headers for a single
457
+ request; this effectively ignores the headers
458
+ in the spec for a single request.
459
+ :type _headers: dict, optional
460
+ :param _host_index: set to override the host_index for a single
461
+ request; this effectively ignores the host_index
462
+ in the spec for a single request.
463
+ :type _host_index: int, optional
464
+ :return: Returns the result object.
465
+ """ # noqa: E501
466
+
467
+ _param = self._get_broker_events_serialize(
468
+ page=page,
469
+ page_limit=page_limit,
470
+ type=type,
471
+ name=name,
472
+ date_range_begin=date_range_begin,
473
+ date_range_end=date_range_end,
474
+ include_localizations=include_localizations,
475
+ _request_auth=_request_auth,
476
+ _content_type=_content_type,
477
+ _headers=_headers,
478
+ _host_index=_host_index
479
+ )
480
+
481
+ _response_types_map: Dict[str, Optional[str]] = {
482
+ '200': "PageBrokerEvent",
483
+ '404': None,
484
+ '422': "HTTPValidationError",
485
+ }
486
+ response_data = self.api_client.call_api(
487
+ *_param,
488
+ _request_timeout=_request_timeout
489
+ )
490
+ response_data.read()
491
+ return self.api_client.response_deserialize(
492
+ response_data=response_data,
493
+ response_types_map=_response_types_map,
494
+ )
495
+
496
+
497
+ @validate_call
498
+ def get_broker_events_without_preload_content(
499
+ self,
500
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
501
+ page_limit: Annotated[Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]], Field(description="Records per page")] = None,
502
+ type: Optional[List[BrokerEventType]] = None,
503
+ name: Optional[StrictStr] = None,
504
+ date_range_begin: Optional[datetime] = None,
505
+ date_range_end: Optional[datetime] = None,
506
+ include_localizations: Optional[StrictBool] = None,
507
+ _request_timeout: Union[
508
+ None,
509
+ Annotated[StrictFloat, Field(gt=0)],
510
+ Tuple[
511
+ Annotated[StrictFloat, Field(gt=0)],
512
+ Annotated[StrictFloat, Field(gt=0)]
513
+ ]
514
+ ] = None,
515
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
516
+ _content_type: Optional[StrictStr] = None,
517
+ _headers: Optional[Dict[StrictStr, Any]] = None,
518
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
519
+ ) -> RESTResponseType:
520
+ """Read broker event(s)
521
+
522
+ Read many broker events based on query params
523
+
524
+ :param page: Page number
525
+ :type page: int
526
+ :param page_limit: Records per page
527
+ :type page_limit: int
528
+ :param type:
529
+ :type type: List[BrokerEventType]
530
+ :param name:
531
+ :type name: str
532
+ :param date_range_begin:
533
+ :type date_range_begin: datetime
534
+ :param date_range_end:
535
+ :type date_range_end: datetime
536
+ :param include_localizations:
537
+ :type include_localizations: bool
538
+ :param _request_timeout: timeout setting for this request. If one
539
+ number provided, it will be total request
540
+ timeout. It can also be a pair (tuple) of
541
+ (connection, read) timeouts.
542
+ :type _request_timeout: int, tuple(int, int), optional
543
+ :param _request_auth: set to override the auth_settings for an a single
544
+ request; this effectively ignores the
545
+ authentication in the spec for a single request.
546
+ :type _request_auth: dict, optional
547
+ :param _content_type: force content-type for the request.
548
+ :type _content_type: str, Optional
549
+ :param _headers: set to override the headers for a single
550
+ request; this effectively ignores the headers
551
+ in the spec for a single request.
552
+ :type _headers: dict, optional
553
+ :param _host_index: set to override the host_index for a single
554
+ request; this effectively ignores the host_index
555
+ in the spec for a single request.
556
+ :type _host_index: int, optional
557
+ :return: Returns the result object.
558
+ """ # noqa: E501
559
+
560
+ _param = self._get_broker_events_serialize(
561
+ page=page,
562
+ page_limit=page_limit,
563
+ type=type,
564
+ name=name,
565
+ date_range_begin=date_range_begin,
566
+ date_range_end=date_range_end,
567
+ include_localizations=include_localizations,
568
+ _request_auth=_request_auth,
569
+ _content_type=_content_type,
570
+ _headers=_headers,
571
+ _host_index=_host_index
572
+ )
573
+
574
+ _response_types_map: Dict[str, Optional[str]] = {
575
+ '200': "PageBrokerEvent",
576
+ '404': None,
577
+ '422': "HTTPValidationError",
578
+ }
579
+ response_data = self.api_client.call_api(
580
+ *_param,
581
+ _request_timeout=_request_timeout
582
+ )
583
+ return response_data.response
584
+
585
+
586
+ def _get_broker_events_serialize(
587
+ self,
588
+ page,
589
+ page_limit,
590
+ type,
591
+ name,
592
+ date_range_begin,
593
+ date_range_end,
594
+ include_localizations,
595
+ _request_auth,
596
+ _content_type,
597
+ _headers,
598
+ _host_index,
599
+ ) -> RequestSerialized:
600
+
601
+ _host = None
602
+
603
+ _collection_formats: Dict[str, str] = {
604
+ 'type': 'multi',
605
+ }
606
+
607
+ _path_params: Dict[str, str] = {}
608
+ _query_params: List[Tuple[str, str]] = []
609
+ _header_params: Dict[str, Optional[str]] = _headers or {}
610
+ _form_params: List[Tuple[str, str]] = []
611
+ _files: Dict[
612
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
613
+ ] = {}
614
+ _body_params: Optional[bytes] = None
615
+
616
+ # process the path parameters
617
+ # process the query parameters
618
+ if page is not None:
619
+
620
+ _query_params.append(('page', page))
621
+
622
+ if page_limit is not None:
623
+
624
+ _query_params.append(('page_limit', page_limit))
625
+
626
+ if type is not None:
627
+
628
+ _query_params.append(('type', type))
629
+
630
+ if name is not None:
631
+
632
+ _query_params.append(('name', name))
633
+
634
+ if date_range_begin is not None:
635
+ if isinstance(date_range_begin, datetime):
636
+ _query_params.append(
637
+ (
638
+ 'date_range_begin',
639
+ date_range_begin.strftime(
640
+ self.api_client.configuration.datetime_format
641
+ )
642
+ )
643
+ )
644
+ else:
645
+ _query_params.append(('date_range_begin', date_range_begin))
646
+
647
+ if date_range_end is not None:
648
+ if isinstance(date_range_end, datetime):
649
+ _query_params.append(
650
+ (
651
+ 'date_range_end',
652
+ date_range_end.strftime(
653
+ self.api_client.configuration.datetime_format
654
+ )
655
+ )
656
+ )
657
+ else:
658
+ _query_params.append(('date_range_end', date_range_end))
659
+
660
+ if include_localizations is not None:
661
+
662
+ _query_params.append(('include_localizations', include_localizations))
663
+
664
+ # process the header parameters
665
+ # process the form parameters
666
+ # process the body parameter
667
+
668
+
669
+ # set the HTTP header `Accept`
670
+ if 'Accept' not in _header_params:
671
+ _header_params['Accept'] = self.api_client.select_header_accept(
672
+ [
673
+ 'application/json'
674
+ ]
675
+ )
676
+
677
+
678
+ # authentication setting
679
+ _auth_settings: List[str] = [
680
+ ]
681
+
682
+ return self.api_client.param_serialize(
683
+ method='GET',
684
+ resource_path='/broker-event/',
685
+ path_params=_path_params,
686
+ query_params=_query_params,
687
+ header_params=_header_params,
688
+ body=_body_params,
689
+ post_params=_form_params,
690
+ files=_files,
691
+ auth_settings=_auth_settings,
692
+ collection_formats=_collection_formats,
693
+ _host=_host,
694
+ _request_auth=_request_auth
695
+ )
696
+
697
+
@@ -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.