across-server-openapi-python 1.3.0__py3-none-any.whl → 2.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. across/sdk/v1/__init__.py +76 -17
  2. across/sdk/v1/api/__init__.py +3 -1
  3. across/sdk/v1/api/auth_api.py +17 -286
  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 +20 -20
  7. across/sdk/v1/api/group_api.py +31 -281
  8. across/sdk/v1/api/group_invite_api.py +65 -66
  9. across/sdk/v1/api/group_role_api.py +105 -106
  10. across/sdk/v1/api/instrument_api.py +20 -20
  11. across/sdk/v1/api/internal_api.py +20 -21
  12. across/sdk/v1/api/observation_api.py +762 -135
  13. across/sdk/v1/api/observation_request_api.py +2108 -0
  14. across/sdk/v1/api/observatory_api.py +24 -25
  15. across/sdk/v1/api/permission_api.py +5 -6
  16. across/sdk/v1/api/role_api.py +1 -1
  17. across/sdk/v1/api/schedule_api.py +84 -86
  18. across/sdk/v1/api/service_account_api.py +125 -126
  19. across/sdk/v1/api/telescope_api.py +26 -26
  20. across/sdk/v1/api/tle_api.py +7 -8
  21. across/sdk/v1/api/tools_api.py +55 -55
  22. across/sdk/v1/api/user_api.py +84 -333
  23. across/sdk/v1/api_client.py +111 -47
  24. across/sdk/v1/configuration.py +106 -33
  25. across/sdk/v1/exceptions.py +8 -6
  26. across/sdk/v1/models/__init__.py +36 -9
  27. across/sdk/v1/models/access_token_response.py +5 -4
  28. across/sdk/v1/models/across_server_routes_v1_group_invite_schemas_group_invite.py +106 -0
  29. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group.py +93 -0
  30. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group_role.py +20 -15
  31. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_service_account.py +107 -0
  32. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_user.py +7 -5
  33. across/sdk/v1/models/across_server_routes_v1_group_schemas_group.py +12 -12
  34. across/sdk/v1/models/across_server_routes_v1_group_schemas_user.py +8 -7
  35. across/sdk/v1/models/across_server_routes_v1_role_schemas_user.py +95 -0
  36. across/sdk/v1/models/across_server_routes_v1_user_schemas_group.py +11 -10
  37. across/sdk/v1/models/across_server_routes_v1_user_schemas_group_invite.py +8 -6
  38. across/sdk/v1/models/across_server_routes_v1_user_schemas_group_role.py +106 -0
  39. across/sdk/v1/models/across_server_routes_v1_user_schemas_user.py +14 -16
  40. across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py +8 -7
  41. across/sdk/v1/models/bandpass.py +1 -1
  42. across/sdk/v1/models/bandpass_type.py +1 -1
  43. across/sdk/v1/models/broker_alert.py +106 -0
  44. across/sdk/v1/models/broker_alert_create.py +115 -0
  45. across/sdk/v1/models/broker_alert_data_source.py +39 -0
  46. across/sdk/v1/models/broker_alert_status.py +41 -0
  47. across/sdk/v1/models/broker_event.py +115 -0
  48. across/sdk/v1/models/broker_event_type.py +41 -0
  49. across/sdk/v1/models/constrained_date.py +8 -6
  50. across/sdk/v1/models/constraint_reason.py +5 -4
  51. across/sdk/v1/models/constraint_type.py +1 -1
  52. across/sdk/v1/models/coordinate.py +5 -4
  53. across/sdk/v1/models/date_range.py +5 -4
  54. across/sdk/v1/models/date_range_create.py +96 -0
  55. across/sdk/v1/models/depth_unit.py +1 -1
  56. across/sdk/v1/models/energy_bandpass.py +5 -4
  57. across/sdk/v1/models/energy_unit.py +1 -1
  58. across/sdk/v1/models/ephemeris_type.py +1 -1
  59. across/sdk/v1/models/filter.py +8 -6
  60. across/sdk/v1/models/frequency_bandpass.py +5 -4
  61. across/sdk/v1/models/frequency_unit.py +1 -1
  62. across/sdk/v1/models/grant_type.py +1 -1
  63. across/sdk/v1/models/ground_parameters.py +5 -4
  64. across/sdk/v1/models/group.py +5 -15
  65. across/sdk/v1/models/group_base.py +93 -0
  66. across/sdk/v1/models/group_invite.py +1 -1
  67. across/sdk/v1/models/group_invite_create.py +5 -4
  68. across/sdk/v1/models/group_invite_group_details.py +7 -5
  69. across/sdk/v1/models/group_read.py +7 -5
  70. across/sdk/v1/models/group_role.py +37 -6
  71. across/sdk/v1/models/group_role_create.py +7 -5
  72. across/sdk/v1/models/group_role_read.py +16 -9
  73. across/sdk/v1/models/http_validation_error.py +6 -6
  74. across/sdk/v1/models/id_name_schema.py +7 -5
  75. across/sdk/v1/models/instrument.py +31 -15
  76. across/sdk/v1/models/ivoa_obs_category.py +1 -1
  77. across/sdk/v1/models/ivoa_obs_tracking_type.py +1 -1
  78. across/sdk/v1/models/joint_visibility_result.py +23 -23
  79. across/sdk/v1/models/jpl_parameters.py +5 -4
  80. across/sdk/v1/models/localization.py +128 -0
  81. across/sdk/v1/models/localization_contour_base.py +95 -0
  82. across/sdk/v1/models/localization_create.py +121 -0
  83. across/sdk/v1/models/location_inner.py +1 -1
  84. across/sdk/v1/models/name_resolver.py +5 -4
  85. across/sdk/v1/models/nullable_date_range.py +5 -4
  86. across/sdk/v1/models/nullable_end_date_range.py +96 -0
  87. across/sdk/v1/models/observation.py +11 -10
  88. across/sdk/v1/models/observation_create.py +9 -8
  89. across/sdk/v1/models/observation_footprint.py +10 -9
  90. across/sdk/v1/models/observation_footprint_create.py +6 -6
  91. across/sdk/v1/models/observation_request.py +202 -0
  92. across/sdk/v1/models/observation_request_create.py +148 -0
  93. across/sdk/v1/models/observation_request_create_many.py +95 -0
  94. across/sdk/v1/models/observation_request_status.py +40 -0
  95. across/sdk/v1/models/observation_request_update.py +213 -0
  96. across/sdk/v1/models/observation_request_version.py +99 -0
  97. across/sdk/v1/models/observation_status.py +1 -1
  98. across/sdk/v1/models/observation_strategy.py +1 -1
  99. across/sdk/v1/models/observation_type.py +1 -1
  100. across/sdk/v1/models/observation_window.py +134 -0
  101. across/sdk/v1/models/observation_window1.py +140 -0
  102. across/sdk/v1/models/observatory.py +9 -9
  103. across/sdk/v1/models/observatory_ephemeris_type.py +5 -4
  104. across/sdk/v1/models/observatory_type.py +1 -1
  105. across/sdk/v1/models/observing_proposal.py +93 -0
  106. across/sdk/v1/models/observing_proposal_create.py +98 -0
  107. across/sdk/v1/models/page_broker_alert.py +116 -0
  108. across/sdk/v1/models/page_broker_event.py +116 -0
  109. across/sdk/v1/models/page_observation.py +6 -6
  110. across/sdk/v1/models/page_observation_request.py +116 -0
  111. across/sdk/v1/models/page_schedule.py +6 -6
  112. across/sdk/v1/models/parameters.py +1 -1
  113. across/sdk/v1/models/permission.py +7 -5
  114. across/sdk/v1/models/point.py +5 -4
  115. across/sdk/v1/models/proper_motion.py +93 -0
  116. across/sdk/v1/models/role.py +4 -4
  117. across/sdk/v1/models/role_base.py +7 -5
  118. across/sdk/v1/models/schedule.py +10 -9
  119. across/sdk/v1/models/schedule_cadence.py +8 -6
  120. across/sdk/v1/models/schedule_create.py +8 -7
  121. across/sdk/v1/models/schedule_create_many.py +9 -8
  122. across/sdk/v1/models/schedule_fidelity.py +1 -1
  123. across/sdk/v1/models/schedule_status.py +1 -1
  124. across/sdk/v1/models/service_account.py +1 -1
  125. across/sdk/v1/models/service_account_create.py +5 -4
  126. across/sdk/v1/models/service_account_secret.py +7 -5
  127. across/sdk/v1/models/service_account_update.py +5 -4
  128. across/sdk/v1/models/setting.py +100 -0
  129. across/sdk/v1/models/setting_type.py +39 -0
  130. across/sdk/v1/models/spice_parameters.py +5 -4
  131. across/sdk/v1/models/system_service_account.py +9 -9
  132. across/sdk/v1/models/telescope.py +9 -9
  133. across/sdk/v1/models/telescope_instrument.py +31 -15
  134. across/sdk/v1/models/tle.py +5 -4
  135. across/sdk/v1/models/tle_create.py +5 -4
  136. across/sdk/v1/models/tle_parameters.py +5 -4
  137. across/sdk/v1/models/unit_value.py +5 -4
  138. across/sdk/v1/models/user.py +47 -7
  139. across/sdk/v1/models/user_create.py +5 -4
  140. across/sdk/v1/models/user_info.py +7 -5
  141. across/sdk/v1/models/user_update.py +5 -4
  142. across/sdk/v1/models/validation_error.py +21 -12
  143. across/sdk/v1/models/validation_error_loc_inner.py +1 -1
  144. across/sdk/v1/models/visibility_result.py +14 -11
  145. across/sdk/v1/models/visibility_type.py +1 -1
  146. across/sdk/v1/models/visibility_window.py +5 -4
  147. across/sdk/v1/models/wavelength_bandpass.py +5 -4
  148. across/sdk/v1/models/wavelength_unit.py +1 -1
  149. across/sdk/v1/models/window.py +5 -4
  150. across/sdk/v1/rest.py +88 -12
  151. {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/METADATA +122 -45
  152. across_server_openapi_python-2.0.0.dist-info/RECORD +162 -0
  153. {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/WHEEL +1 -1
  154. across_server_openapi_python-1.3.0.dist-info/RECORD +0 -126
  155. {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/licenses/LICENSE +0 -0
  156. {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/top_level.txt +0 -0
@@ -1,53 +1,680 @@
1
- # coding: utf-8
1
+ """
2
+ ACROSS Server
3
+
4
+ Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
5
+
6
+ The version of the OpenAPI document: 2.0.2
7
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+
9
+ Do not edit the class manually.
10
+ """ # noqa: E501
11
+
12
+
13
+ import warnings
14
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
15
+ from typing import Any, Dict, List, Optional, Tuple, Union
16
+ from typing_extensions import Annotated
17
+
18
+ from datetime import datetime
19
+ from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
20
+ from typing import Any, List, Optional, Union
21
+ from typing_extensions import Annotated
22
+ from uuid import UUID
23
+ from across.sdk.v1.models.observation import Observation
24
+ from across.sdk.v1.models.page_observation import PageObservation
25
+
26
+ from across.sdk.v1.api_client import ApiClient, RequestSerialized
27
+ from across.sdk.v1.api_response import ApiResponse
28
+ from across.sdk.v1.rest import RESTResponseType
29
+
30
+
31
+ class ObservationApi:
32
+ """NOTE: This class is auto generated by OpenAPI Generator
33
+ Ref: https://openapi-generator.tech
34
+
35
+ Do not edit the class manually.
36
+ """
37
+
38
+ def __init__(self, api_client=None) -> None:
39
+ if api_client is None:
40
+ api_client = ApiClient.get_default()
41
+ self.api_client = api_client
42
+
43
+
44
+ @validate_call
45
+ def contains_point(
46
+ self,
47
+ ra: Union[Annotated[float, Field(lt=360.0, strict=True, ge=0.0)], Annotated[int, Field(lt=360, strict=True, ge=0)]],
48
+ dec: Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]],
49
+ page: Annotated[Optional[Annotated[int, Field(le=2000, strict=True, ge=1)]], Field(description="Page number")] = None,
50
+ page_limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=100)]], Field(description="Records per page")] = None,
51
+ external_id: Optional[StrictStr] = None,
52
+ schedule_ids: Optional[List[UUID]] = None,
53
+ observatory_ids: Optional[List[UUID]] = None,
54
+ telescope_ids: Optional[List[UUID]] = None,
55
+ instrument_ids: Optional[List[UUID]] = None,
56
+ status: Optional[Any] = None,
57
+ proposal: Optional[StrictStr] = None,
58
+ object_name: Optional[StrictStr] = None,
59
+ date_range_begin: Optional[datetime] = None,
60
+ date_range_end: Optional[datetime] = None,
61
+ bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
62
+ bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
63
+ bandpass_type: Optional[Any] = None,
64
+ type: Optional[Any] = None,
65
+ depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
66
+ depth_unit: Optional[Any] = None,
67
+ include_footprints: Optional[StrictBool] = None,
68
+ _request_timeout: Union[
69
+ None,
70
+ Annotated[StrictFloat, Field(gt=0)],
71
+ Tuple[
72
+ Annotated[StrictFloat, Field(gt=0)],
73
+ Annotated[StrictFloat, Field(gt=0)]
74
+ ]
75
+ ] = None,
76
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
77
+ _content_type: Optional[StrictStr] = None,
78
+ _headers: Optional[Dict[StrictStr, Any]] = None,
79
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
80
+ ) -> PageObservation:
81
+ """Read many observations whose footprints contains a given RA/DEC
82
+
83
+ Read many observations whose footprints contains a given RA/DEC
84
+
85
+ :param ra: (required)
86
+ :type ra: float
87
+ :param dec: (required)
88
+ :type dec: float
89
+ :param page: Page number
90
+ :type page: int
91
+ :param page_limit: Records per page
92
+ :type page_limit: int
93
+ :param external_id:
94
+ :type external_id: str
95
+ :param schedule_ids:
96
+ :type schedule_ids: List[UUID]
97
+ :param observatory_ids:
98
+ :type observatory_ids: List[UUID]
99
+ :param telescope_ids:
100
+ :type telescope_ids: List[UUID]
101
+ :param instrument_ids:
102
+ :type instrument_ids: List[UUID]
103
+ :param status:
104
+ :type status: ObservationStatus
105
+ :param proposal:
106
+ :type proposal: str
107
+ :param object_name:
108
+ :type object_name: str
109
+ :param date_range_begin:
110
+ :type date_range_begin: datetime
111
+ :param date_range_end:
112
+ :type date_range_end: datetime
113
+ :param bandpass_min:
114
+ :type bandpass_min: float
115
+ :param bandpass_max:
116
+ :type bandpass_max: float
117
+ :param bandpass_type:
118
+ :type bandpass_type: BandpassType
119
+ :param type:
120
+ :type type: ObservationType
121
+ :param depth_value:
122
+ :type depth_value: float
123
+ :param depth_unit:
124
+ :type depth_unit: DepthUnit
125
+ :param include_footprints:
126
+ :type include_footprints: bool
127
+ :param _request_timeout: timeout setting for this request. If one
128
+ number provided, it will be total request
129
+ timeout. It can also be a pair (tuple) of
130
+ (connection, read) timeouts.
131
+ :type _request_timeout: int, tuple(int, int), optional
132
+ :param _request_auth: set to override the auth_settings for an a single
133
+ request; this effectively ignores the
134
+ authentication in the spec for a single request.
135
+ :type _request_auth: dict, optional
136
+ :param _content_type: force content-type for the request.
137
+ :type _content_type: str, Optional
138
+ :param _headers: set to override the headers for a single
139
+ request; this effectively ignores the headers
140
+ in the spec for a single request.
141
+ :type _headers: dict, optional
142
+ :param _host_index: set to override the host_index for a single
143
+ request; this effectively ignores the host_index
144
+ in the spec for a single request.
145
+ :type _host_index: int, optional
146
+ :return: Returns the result object.
147
+ """ # noqa: E501
148
+
149
+ _param = self._contains_point_serialize(
150
+ ra=ra,
151
+ dec=dec,
152
+ page=page,
153
+ page_limit=page_limit,
154
+ external_id=external_id,
155
+ schedule_ids=schedule_ids,
156
+ observatory_ids=observatory_ids,
157
+ telescope_ids=telescope_ids,
158
+ instrument_ids=instrument_ids,
159
+ status=status,
160
+ proposal=proposal,
161
+ object_name=object_name,
162
+ date_range_begin=date_range_begin,
163
+ date_range_end=date_range_end,
164
+ bandpass_min=bandpass_min,
165
+ bandpass_max=bandpass_max,
166
+ bandpass_type=bandpass_type,
167
+ type=type,
168
+ depth_value=depth_value,
169
+ depth_unit=depth_unit,
170
+ include_footprints=include_footprints,
171
+ _request_auth=_request_auth,
172
+ _content_type=_content_type,
173
+ _headers=_headers,
174
+ _host_index=_host_index
175
+ )
176
+
177
+ _response_types_map: Dict[str, Optional[str]] = {
178
+ '200': "PageObservation",
179
+ '404': None,
180
+ '422': "HTTPValidationError",
181
+ }
182
+ response_data = self.api_client.call_api(
183
+ *_param,
184
+ _request_timeout=_request_timeout
185
+ )
186
+ response_data.read()
187
+ return self.api_client.response_deserialize(
188
+ response_data=response_data,
189
+ response_types_map=_response_types_map,
190
+ ).data
191
+
192
+
193
+ @validate_call
194
+ def contains_point_with_http_info(
195
+ self,
196
+ ra: Union[Annotated[float, Field(lt=360.0, strict=True, ge=0.0)], Annotated[int, Field(lt=360, strict=True, ge=0)]],
197
+ dec: Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]],
198
+ page: Annotated[Optional[Annotated[int, Field(le=2000, strict=True, ge=1)]], Field(description="Page number")] = None,
199
+ page_limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=100)]], Field(description="Records per page")] = None,
200
+ external_id: Optional[StrictStr] = None,
201
+ schedule_ids: Optional[List[UUID]] = None,
202
+ observatory_ids: Optional[List[UUID]] = None,
203
+ telescope_ids: Optional[List[UUID]] = None,
204
+ instrument_ids: Optional[List[UUID]] = None,
205
+ status: Optional[Any] = None,
206
+ proposal: Optional[StrictStr] = None,
207
+ object_name: Optional[StrictStr] = None,
208
+ date_range_begin: Optional[datetime] = None,
209
+ date_range_end: Optional[datetime] = None,
210
+ bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
211
+ bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
212
+ bandpass_type: Optional[Any] = None,
213
+ type: Optional[Any] = None,
214
+ depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
215
+ depth_unit: Optional[Any] = None,
216
+ include_footprints: Optional[StrictBool] = None,
217
+ _request_timeout: Union[
218
+ None,
219
+ Annotated[StrictFloat, Field(gt=0)],
220
+ Tuple[
221
+ Annotated[StrictFloat, Field(gt=0)],
222
+ Annotated[StrictFloat, Field(gt=0)]
223
+ ]
224
+ ] = None,
225
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
226
+ _content_type: Optional[StrictStr] = None,
227
+ _headers: Optional[Dict[StrictStr, Any]] = None,
228
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
229
+ ) -> ApiResponse[PageObservation]:
230
+ """Read many observations whose footprints contains a given RA/DEC
231
+
232
+ Read many observations whose footprints contains a given RA/DEC
233
+
234
+ :param ra: (required)
235
+ :type ra: float
236
+ :param dec: (required)
237
+ :type dec: float
238
+ :param page: Page number
239
+ :type page: int
240
+ :param page_limit: Records per page
241
+ :type page_limit: int
242
+ :param external_id:
243
+ :type external_id: str
244
+ :param schedule_ids:
245
+ :type schedule_ids: List[UUID]
246
+ :param observatory_ids:
247
+ :type observatory_ids: List[UUID]
248
+ :param telescope_ids:
249
+ :type telescope_ids: List[UUID]
250
+ :param instrument_ids:
251
+ :type instrument_ids: List[UUID]
252
+ :param status:
253
+ :type status: ObservationStatus
254
+ :param proposal:
255
+ :type proposal: str
256
+ :param object_name:
257
+ :type object_name: str
258
+ :param date_range_begin:
259
+ :type date_range_begin: datetime
260
+ :param date_range_end:
261
+ :type date_range_end: datetime
262
+ :param bandpass_min:
263
+ :type bandpass_min: float
264
+ :param bandpass_max:
265
+ :type bandpass_max: float
266
+ :param bandpass_type:
267
+ :type bandpass_type: BandpassType
268
+ :param type:
269
+ :type type: ObservationType
270
+ :param depth_value:
271
+ :type depth_value: float
272
+ :param depth_unit:
273
+ :type depth_unit: DepthUnit
274
+ :param include_footprints:
275
+ :type include_footprints: bool
276
+ :param _request_timeout: timeout setting for this request. If one
277
+ number provided, it will be total request
278
+ timeout. It can also be a pair (tuple) of
279
+ (connection, read) timeouts.
280
+ :type _request_timeout: int, tuple(int, int), optional
281
+ :param _request_auth: set to override the auth_settings for an a single
282
+ request; this effectively ignores the
283
+ authentication in the spec for a single request.
284
+ :type _request_auth: dict, optional
285
+ :param _content_type: force content-type for the request.
286
+ :type _content_type: str, Optional
287
+ :param _headers: set to override the headers for a single
288
+ request; this effectively ignores the headers
289
+ in the spec for a single request.
290
+ :type _headers: dict, optional
291
+ :param _host_index: set to override the host_index for a single
292
+ request; this effectively ignores the host_index
293
+ in the spec for a single request.
294
+ :type _host_index: int, optional
295
+ :return: Returns the result object.
296
+ """ # noqa: E501
297
+
298
+ _param = self._contains_point_serialize(
299
+ ra=ra,
300
+ dec=dec,
301
+ page=page,
302
+ page_limit=page_limit,
303
+ external_id=external_id,
304
+ schedule_ids=schedule_ids,
305
+ observatory_ids=observatory_ids,
306
+ telescope_ids=telescope_ids,
307
+ instrument_ids=instrument_ids,
308
+ status=status,
309
+ proposal=proposal,
310
+ object_name=object_name,
311
+ date_range_begin=date_range_begin,
312
+ date_range_end=date_range_end,
313
+ bandpass_min=bandpass_min,
314
+ bandpass_max=bandpass_max,
315
+ bandpass_type=bandpass_type,
316
+ type=type,
317
+ depth_value=depth_value,
318
+ depth_unit=depth_unit,
319
+ include_footprints=include_footprints,
320
+ _request_auth=_request_auth,
321
+ _content_type=_content_type,
322
+ _headers=_headers,
323
+ _host_index=_host_index
324
+ )
325
+
326
+ _response_types_map: Dict[str, Optional[str]] = {
327
+ '200': "PageObservation",
328
+ '404': None,
329
+ '422': "HTTPValidationError",
330
+ }
331
+ response_data = self.api_client.call_api(
332
+ *_param,
333
+ _request_timeout=_request_timeout
334
+ )
335
+ response_data.read()
336
+ return self.api_client.response_deserialize(
337
+ response_data=response_data,
338
+ response_types_map=_response_types_map,
339
+ )
340
+
341
+
342
+ @validate_call
343
+ def contains_point_without_preload_content(
344
+ self,
345
+ ra: Union[Annotated[float, Field(lt=360.0, strict=True, ge=0.0)], Annotated[int, Field(lt=360, strict=True, ge=0)]],
346
+ dec: Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]],
347
+ page: Annotated[Optional[Annotated[int, Field(le=2000, strict=True, ge=1)]], Field(description="Page number")] = None,
348
+ page_limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=100)]], Field(description="Records per page")] = None,
349
+ external_id: Optional[StrictStr] = None,
350
+ schedule_ids: Optional[List[UUID]] = None,
351
+ observatory_ids: Optional[List[UUID]] = None,
352
+ telescope_ids: Optional[List[UUID]] = None,
353
+ instrument_ids: Optional[List[UUID]] = None,
354
+ status: Optional[Any] = None,
355
+ proposal: Optional[StrictStr] = None,
356
+ object_name: Optional[StrictStr] = None,
357
+ date_range_begin: Optional[datetime] = None,
358
+ date_range_end: Optional[datetime] = None,
359
+ bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
360
+ bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
361
+ bandpass_type: Optional[Any] = None,
362
+ type: Optional[Any] = None,
363
+ depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
364
+ depth_unit: Optional[Any] = None,
365
+ include_footprints: Optional[StrictBool] = None,
366
+ _request_timeout: Union[
367
+ None,
368
+ Annotated[StrictFloat, Field(gt=0)],
369
+ Tuple[
370
+ Annotated[StrictFloat, Field(gt=0)],
371
+ Annotated[StrictFloat, Field(gt=0)]
372
+ ]
373
+ ] = None,
374
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
375
+ _content_type: Optional[StrictStr] = None,
376
+ _headers: Optional[Dict[StrictStr, Any]] = None,
377
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
378
+ ) -> RESTResponseType:
379
+ """Read many observations whose footprints contains a given RA/DEC
380
+
381
+ Read many observations whose footprints contains a given RA/DEC
382
+
383
+ :param ra: (required)
384
+ :type ra: float
385
+ :param dec: (required)
386
+ :type dec: float
387
+ :param page: Page number
388
+ :type page: int
389
+ :param page_limit: Records per page
390
+ :type page_limit: int
391
+ :param external_id:
392
+ :type external_id: str
393
+ :param schedule_ids:
394
+ :type schedule_ids: List[UUID]
395
+ :param observatory_ids:
396
+ :type observatory_ids: List[UUID]
397
+ :param telescope_ids:
398
+ :type telescope_ids: List[UUID]
399
+ :param instrument_ids:
400
+ :type instrument_ids: List[UUID]
401
+ :param status:
402
+ :type status: ObservationStatus
403
+ :param proposal:
404
+ :type proposal: str
405
+ :param object_name:
406
+ :type object_name: str
407
+ :param date_range_begin:
408
+ :type date_range_begin: datetime
409
+ :param date_range_end:
410
+ :type date_range_end: datetime
411
+ :param bandpass_min:
412
+ :type bandpass_min: float
413
+ :param bandpass_max:
414
+ :type bandpass_max: float
415
+ :param bandpass_type:
416
+ :type bandpass_type: BandpassType
417
+ :param type:
418
+ :type type: ObservationType
419
+ :param depth_value:
420
+ :type depth_value: float
421
+ :param depth_unit:
422
+ :type depth_unit: DepthUnit
423
+ :param include_footprints:
424
+ :type include_footprints: bool
425
+ :param _request_timeout: timeout setting for this request. If one
426
+ number provided, it will be total request
427
+ timeout. It can also be a pair (tuple) of
428
+ (connection, read) timeouts.
429
+ :type _request_timeout: int, tuple(int, int), optional
430
+ :param _request_auth: set to override the auth_settings for an a single
431
+ request; this effectively ignores the
432
+ authentication in the spec for a single request.
433
+ :type _request_auth: dict, optional
434
+ :param _content_type: force content-type for the request.
435
+ :type _content_type: str, Optional
436
+ :param _headers: set to override the headers for a single
437
+ request; this effectively ignores the headers
438
+ in the spec for a single request.
439
+ :type _headers: dict, optional
440
+ :param _host_index: set to override the host_index for a single
441
+ request; this effectively ignores the host_index
442
+ in the spec for a single request.
443
+ :type _host_index: int, optional
444
+ :return: Returns the result object.
445
+ """ # noqa: E501
446
+
447
+ _param = self._contains_point_serialize(
448
+ ra=ra,
449
+ dec=dec,
450
+ page=page,
451
+ page_limit=page_limit,
452
+ external_id=external_id,
453
+ schedule_ids=schedule_ids,
454
+ observatory_ids=observatory_ids,
455
+ telescope_ids=telescope_ids,
456
+ instrument_ids=instrument_ids,
457
+ status=status,
458
+ proposal=proposal,
459
+ object_name=object_name,
460
+ date_range_begin=date_range_begin,
461
+ date_range_end=date_range_end,
462
+ bandpass_min=bandpass_min,
463
+ bandpass_max=bandpass_max,
464
+ bandpass_type=bandpass_type,
465
+ type=type,
466
+ depth_value=depth_value,
467
+ depth_unit=depth_unit,
468
+ include_footprints=include_footprints,
469
+ _request_auth=_request_auth,
470
+ _content_type=_content_type,
471
+ _headers=_headers,
472
+ _host_index=_host_index
473
+ )
474
+
475
+ _response_types_map: Dict[str, Optional[str]] = {
476
+ '200': "PageObservation",
477
+ '404': None,
478
+ '422': "HTTPValidationError",
479
+ }
480
+ response_data = self.api_client.call_api(
481
+ *_param,
482
+ _request_timeout=_request_timeout
483
+ )
484
+ return response_data.response
485
+
486
+
487
+ def _contains_point_serialize(
488
+ self,
489
+ ra,
490
+ dec,
491
+ page,
492
+ page_limit,
493
+ external_id,
494
+ schedule_ids,
495
+ observatory_ids,
496
+ telescope_ids,
497
+ instrument_ids,
498
+ status,
499
+ proposal,
500
+ object_name,
501
+ date_range_begin,
502
+ date_range_end,
503
+ bandpass_min,
504
+ bandpass_max,
505
+ bandpass_type,
506
+ type,
507
+ depth_value,
508
+ depth_unit,
509
+ include_footprints,
510
+ _request_auth,
511
+ _content_type,
512
+ _headers,
513
+ _host_index,
514
+ ) -> RequestSerialized:
2
515
 
3
- """
4
- ACROSS Server
516
+ _host = None
5
517
 
6
- Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
518
+ _collection_formats: Dict[str, str] = {
519
+ 'schedule_ids': 'multi',
520
+ 'observatory_ids': 'multi',
521
+ 'telescope_ids': 'multi',
522
+ 'instrument_ids': 'multi',
523
+ }
7
524
 
8
- The version of the OpenAPI document: 1.4.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
525
+ _path_params: Dict[str, str] = {}
526
+ _query_params: List[Tuple[str, str]] = []
527
+ _header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
528
+ _form_params: List[Tuple[str, str]] = []
529
+ _files: Dict[
530
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
531
+ ] = {}
532
+ _body_params: Optional[bytes] = None
10
533
 
11
- Do not edit the class manually.
12
- """ # noqa: E501
534
+ # process the path parameters
535
+ # process the query parameters
536
+ if page is not None:
537
+
538
+ _query_params.append(('page', page))
539
+
540
+ if page_limit is not None:
541
+
542
+ _query_params.append(('page_limit', page_limit))
543
+
544
+ if external_id is not None:
545
+
546
+ _query_params.append(('external_id', external_id))
547
+
548
+ if schedule_ids is not None:
549
+
550
+ _query_params.append(('schedule_ids', schedule_ids))
551
+
552
+ if observatory_ids is not None:
553
+
554
+ _query_params.append(('observatory_ids', observatory_ids))
555
+
556
+ if telescope_ids is not None:
557
+
558
+ _query_params.append(('telescope_ids', telescope_ids))
559
+
560
+ if instrument_ids is not None:
561
+
562
+ _query_params.append(('instrument_ids', instrument_ids))
563
+
564
+ if status is not None:
565
+
566
+ _query_params.append(('status', status.value))
567
+
568
+ if proposal is not None:
569
+
570
+ _query_params.append(('proposal', proposal))
571
+
572
+ if object_name is not None:
573
+
574
+ _query_params.append(('object_name', object_name))
575
+
576
+ if date_range_begin is not None:
577
+ if isinstance(date_range_begin, datetime):
578
+ _query_params.append(
579
+ (
580
+ 'date_range_begin',
581
+ date_range_begin.strftime(
582
+ self.api_client.configuration.datetime_format
583
+ )
584
+ )
585
+ )
586
+ else:
587
+ _query_params.append(('date_range_begin', date_range_begin))
588
+
589
+ if date_range_end is not None:
590
+ if isinstance(date_range_end, datetime):
591
+ _query_params.append(
592
+ (
593
+ 'date_range_end',
594
+ date_range_end.strftime(
595
+ self.api_client.configuration.datetime_format
596
+ )
597
+ )
598
+ )
599
+ else:
600
+ _query_params.append(('date_range_end', date_range_end))
601
+
602
+ if bandpass_min is not None:
603
+
604
+ _query_params.append(('bandpass_min', bandpass_min))
605
+
606
+ if bandpass_max is not None:
607
+
608
+ _query_params.append(('bandpass_max', bandpass_max))
609
+
610
+ if bandpass_type is not None:
611
+
612
+ _query_params.extend(self.api_client.explode_query_object('bandpass_type', bandpass_type))
613
+
614
+ if type is not None:
615
+
616
+ _query_params.append(('type', type.value))
617
+
618
+ if depth_value is not None:
619
+
620
+ _query_params.append(('depth_value', depth_value))
621
+
622
+ if depth_unit is not None:
623
+
624
+ _query_params.append(('depth_unit', depth_unit.value))
625
+
626
+ if include_footprints is not None:
627
+
628
+ _query_params.append(('include_footprints', include_footprints))
629
+
630
+ if ra is not None:
631
+
632
+ _query_params.append(('ra', ra))
633
+
634
+ if dec is not None:
635
+
636
+ _query_params.append(('dec', dec))
637
+
638
+ # process the header parameters
639
+ # process the form parameters
640
+ # process the body parameter
13
641
 
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
642
 
19
- from datetime import datetime
20
- from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
21
- from typing import Any, List, Optional, Union
22
- from typing_extensions import Annotated
23
- from across.sdk.v1.models.depth_unit import DepthUnit
24
- from across.sdk.v1.models.observation import Observation
25
- from across.sdk.v1.models.observation_status import ObservationStatus
26
- from across.sdk.v1.models.observation_type import ObservationType
27
- from across.sdk.v1.models.page_observation import PageObservation
643
+ # set the HTTP header `Accept`
644
+ if not any(key.lower() == 'accept' for key in _header_params):
645
+ _header_params['Accept'] = self.api_client.select_header_accept(
646
+ [
647
+ 'application/json'
648
+ ]
649
+ )
28
650
 
29
- from across.sdk.v1.api_client import ApiClient, RequestSerialized
30
- from across.sdk.v1.api_response import ApiResponse
31
- from across.sdk.v1.rest import RESTResponseType
32
651
 
652
+ # authentication setting
653
+ _auth_settings: List[str] = [
654
+ ]
33
655
 
34
- class ObservationApi:
35
- """NOTE: This class is auto generated by OpenAPI Generator
36
- Ref: https://openapi-generator.tech
656
+ return self.api_client.param_serialize(
657
+ method='GET',
658
+ resource_path='/observation/search/contains-point',
659
+ path_params=_path_params,
660
+ query_params=_query_params,
661
+ header_params=_header_params,
662
+ body=_body_params,
663
+ post_params=_form_params,
664
+ files=_files,
665
+ auth_settings=_auth_settings,
666
+ collection_formats=_collection_formats,
667
+ _host=_host,
668
+ _request_auth=_request_auth
669
+ )
37
670
 
38
- Do not edit the class manually.
39
- """
40
671
 
41
- def __init__(self, api_client=None) -> None:
42
- if api_client is None:
43
- api_client = ApiClient.get_default()
44
- self.api_client = api_client
45
672
 
46
673
 
47
674
  @validate_call
48
675
  def get_observation(
49
676
  self,
50
- observation_id: StrictStr,
677
+ observation_id: UUID,
51
678
  include_footprints: Optional[StrictBool] = None,
52
679
  _request_timeout: Union[
53
680
  None,
@@ -67,7 +694,7 @@ class ObservationApi:
67
694
  Read an observation by an observation ID.
68
695
 
69
696
  :param observation_id: (required)
70
- :type observation_id: str
697
+ :type observation_id: UUID
71
698
  :param include_footprints:
72
699
  :type include_footprints: bool
73
700
  :param _request_timeout: timeout setting for this request. If one
@@ -120,7 +747,7 @@ class ObservationApi:
120
747
  @validate_call
121
748
  def get_observation_with_http_info(
122
749
  self,
123
- observation_id: StrictStr,
750
+ observation_id: UUID,
124
751
  include_footprints: Optional[StrictBool] = None,
125
752
  _request_timeout: Union[
126
753
  None,
@@ -140,7 +767,7 @@ class ObservationApi:
140
767
  Read an observation by an observation ID.
141
768
 
142
769
  :param observation_id: (required)
143
- :type observation_id: str
770
+ :type observation_id: UUID
144
771
  :param include_footprints:
145
772
  :type include_footprints: bool
146
773
  :param _request_timeout: timeout setting for this request. If one
@@ -193,7 +820,7 @@ class ObservationApi:
193
820
  @validate_call
194
821
  def get_observation_without_preload_content(
195
822
  self,
196
- observation_id: StrictStr,
823
+ observation_id: UUID,
197
824
  include_footprints: Optional[StrictBool] = None,
198
825
  _request_timeout: Union[
199
826
  None,
@@ -213,7 +840,7 @@ class ObservationApi:
213
840
  Read an observation by an observation ID.
214
841
 
215
842
  :param observation_id: (required)
216
- :type observation_id: str
843
+ :type observation_id: UUID
217
844
  :param include_footprints:
218
845
  :type include_footprints: bool
219
846
  :param _request_timeout: timeout setting for this request. If one
@@ -276,7 +903,7 @@ class ObservationApi:
276
903
 
277
904
  _path_params: Dict[str, str] = {}
278
905
  _query_params: List[Tuple[str, str]] = []
279
- _header_params: Dict[str, Optional[str]] = _headers or {}
906
+ _header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
280
907
  _form_params: List[Tuple[str, str]] = []
281
908
  _files: Dict[
282
909
  str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
@@ -297,7 +924,7 @@ class ObservationApi:
297
924
 
298
925
 
299
926
  # set the HTTP header `Accept`
300
- if 'Accept' not in _header_params:
927
+ if not any(key.lower() == 'accept' for key in _header_params):
301
928
  _header_params['Accept'] = self.api_client.select_header_accept(
302
929
  [
303
930
  'application/json'
@@ -330,14 +957,14 @@ class ObservationApi:
330
957
  @validate_call
331
958
  def get_observations(
332
959
  self,
333
- page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
334
- page_limit: Annotated[Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]], Field(description="Records per page")] = None,
960
+ page: Annotated[Optional[Annotated[int, Field(le=2000, strict=True, ge=1)]], Field(description="Page number")] = None,
961
+ page_limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=100)]], Field(description="Records per page")] = None,
335
962
  external_id: Optional[StrictStr] = None,
336
- schedule_ids: Optional[List[Optional[StrictStr]]] = None,
337
- observatory_ids: Optional[List[StrictStr]] = None,
338
- telescope_ids: Optional[List[StrictStr]] = None,
339
- instrument_ids: Optional[List[StrictStr]] = None,
340
- status: Optional[ObservationStatus] = None,
963
+ schedule_ids: Optional[List[Optional[UUID]]] = None,
964
+ observatory_ids: Optional[List[UUID]] = None,
965
+ telescope_ids: Optional[List[UUID]] = None,
966
+ instrument_ids: Optional[List[UUID]] = None,
967
+ status: Optional[Any] = None,
341
968
  proposal: Optional[StrictStr] = None,
342
969
  object_name: Optional[StrictStr] = None,
343
970
  date_range_begin: Optional[datetime] = None,
@@ -345,13 +972,13 @@ class ObservationApi:
345
972
  bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
346
973
  bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
347
974
  bandpass_type: Optional[Any] = None,
348
- cone_search_ra: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = None,
349
- cone_search_dec: Optional[Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]]] = None,
350
- cone_search_radius: Optional[Union[StrictFloat, StrictInt]] = None,
351
- type: Optional[ObservationType] = None,
975
+ type: Optional[Any] = None,
352
976
  depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
353
- depth_unit: Optional[DepthUnit] = None,
977
+ depth_unit: Optional[Any] = None,
354
978
  include_footprints: Optional[StrictBool] = None,
979
+ cone_search_ra: Optional[Union[Annotated[float, Field(lt=360.0, strict=True, ge=0.0)], Annotated[int, Field(lt=360, strict=True, ge=0)]]] = None,
980
+ cone_search_dec: Optional[Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]]] = None,
981
+ cone_search_radius: Optional[Union[Annotated[float, Field(strict=True, gt=0.0)], Annotated[int, Field(strict=True, gt=0)]]] = None,
355
982
  _request_timeout: Union[
356
983
  None,
357
984
  Annotated[StrictFloat, Field(gt=0)],
@@ -376,13 +1003,13 @@ class ObservationApi:
376
1003
  :param external_id:
377
1004
  :type external_id: str
378
1005
  :param schedule_ids:
379
- :type schedule_ids: List[Optional[str]]
1006
+ :type schedule_ids: List[Optional[UUID]]
380
1007
  :param observatory_ids:
381
- :type observatory_ids: List[str]
1008
+ :type observatory_ids: List[UUID]
382
1009
  :param telescope_ids:
383
- :type telescope_ids: List[str]
1010
+ :type telescope_ids: List[UUID]
384
1011
  :param instrument_ids:
385
- :type instrument_ids: List[str]
1012
+ :type instrument_ids: List[UUID]
386
1013
  :param status:
387
1014
  :type status: ObservationStatus
388
1015
  :param proposal:
@@ -399,12 +1026,6 @@ class ObservationApi:
399
1026
  :type bandpass_max: float
400
1027
  :param bandpass_type:
401
1028
  :type bandpass_type: BandpassType
402
- :param cone_search_ra:
403
- :type cone_search_ra: float
404
- :param cone_search_dec:
405
- :type cone_search_dec: float
406
- :param cone_search_radius:
407
- :type cone_search_radius: float
408
1029
  :param type:
409
1030
  :type type: ObservationType
410
1031
  :param depth_value:
@@ -413,6 +1034,12 @@ class ObservationApi:
413
1034
  :type depth_unit: DepthUnit
414
1035
  :param include_footprints:
415
1036
  :type include_footprints: bool
1037
+ :param cone_search_ra:
1038
+ :type cone_search_ra: float
1039
+ :param cone_search_dec:
1040
+ :type cone_search_dec: float
1041
+ :param cone_search_radius:
1042
+ :type cone_search_radius: float
416
1043
  :param _request_timeout: timeout setting for this request. If one
417
1044
  number provided, it will be total request
418
1045
  timeout. It can also be a pair (tuple) of
@@ -451,13 +1078,13 @@ class ObservationApi:
451
1078
  bandpass_min=bandpass_min,
452
1079
  bandpass_max=bandpass_max,
453
1080
  bandpass_type=bandpass_type,
454
- cone_search_ra=cone_search_ra,
455
- cone_search_dec=cone_search_dec,
456
- cone_search_radius=cone_search_radius,
457
1081
  type=type,
458
1082
  depth_value=depth_value,
459
1083
  depth_unit=depth_unit,
460
1084
  include_footprints=include_footprints,
1085
+ cone_search_ra=cone_search_ra,
1086
+ cone_search_dec=cone_search_dec,
1087
+ cone_search_radius=cone_search_radius,
461
1088
  _request_auth=_request_auth,
462
1089
  _content_type=_content_type,
463
1090
  _headers=_headers,
@@ -483,14 +1110,14 @@ class ObservationApi:
483
1110
  @validate_call
484
1111
  def get_observations_with_http_info(
485
1112
  self,
486
- page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
487
- page_limit: Annotated[Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]], Field(description="Records per page")] = None,
1113
+ page: Annotated[Optional[Annotated[int, Field(le=2000, strict=True, ge=1)]], Field(description="Page number")] = None,
1114
+ page_limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=100)]], Field(description="Records per page")] = None,
488
1115
  external_id: Optional[StrictStr] = None,
489
- schedule_ids: Optional[List[Optional[StrictStr]]] = None,
490
- observatory_ids: Optional[List[StrictStr]] = None,
491
- telescope_ids: Optional[List[StrictStr]] = None,
492
- instrument_ids: Optional[List[StrictStr]] = None,
493
- status: Optional[ObservationStatus] = None,
1116
+ schedule_ids: Optional[List[Optional[UUID]]] = None,
1117
+ observatory_ids: Optional[List[UUID]] = None,
1118
+ telescope_ids: Optional[List[UUID]] = None,
1119
+ instrument_ids: Optional[List[UUID]] = None,
1120
+ status: Optional[Any] = None,
494
1121
  proposal: Optional[StrictStr] = None,
495
1122
  object_name: Optional[StrictStr] = None,
496
1123
  date_range_begin: Optional[datetime] = None,
@@ -498,13 +1125,13 @@ class ObservationApi:
498
1125
  bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
499
1126
  bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
500
1127
  bandpass_type: Optional[Any] = None,
501
- cone_search_ra: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = None,
502
- cone_search_dec: Optional[Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]]] = None,
503
- cone_search_radius: Optional[Union[StrictFloat, StrictInt]] = None,
504
- type: Optional[ObservationType] = None,
1128
+ type: Optional[Any] = None,
505
1129
  depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
506
- depth_unit: Optional[DepthUnit] = None,
1130
+ depth_unit: Optional[Any] = None,
507
1131
  include_footprints: Optional[StrictBool] = None,
1132
+ cone_search_ra: Optional[Union[Annotated[float, Field(lt=360.0, strict=True, ge=0.0)], Annotated[int, Field(lt=360, strict=True, ge=0)]]] = None,
1133
+ cone_search_dec: Optional[Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]]] = None,
1134
+ cone_search_radius: Optional[Union[Annotated[float, Field(strict=True, gt=0.0)], Annotated[int, Field(strict=True, gt=0)]]] = None,
508
1135
  _request_timeout: Union[
509
1136
  None,
510
1137
  Annotated[StrictFloat, Field(gt=0)],
@@ -529,13 +1156,13 @@ class ObservationApi:
529
1156
  :param external_id:
530
1157
  :type external_id: str
531
1158
  :param schedule_ids:
532
- :type schedule_ids: List[Optional[str]]
1159
+ :type schedule_ids: List[Optional[UUID]]
533
1160
  :param observatory_ids:
534
- :type observatory_ids: List[str]
1161
+ :type observatory_ids: List[UUID]
535
1162
  :param telescope_ids:
536
- :type telescope_ids: List[str]
1163
+ :type telescope_ids: List[UUID]
537
1164
  :param instrument_ids:
538
- :type instrument_ids: List[str]
1165
+ :type instrument_ids: List[UUID]
539
1166
  :param status:
540
1167
  :type status: ObservationStatus
541
1168
  :param proposal:
@@ -552,12 +1179,6 @@ class ObservationApi:
552
1179
  :type bandpass_max: float
553
1180
  :param bandpass_type:
554
1181
  :type bandpass_type: BandpassType
555
- :param cone_search_ra:
556
- :type cone_search_ra: float
557
- :param cone_search_dec:
558
- :type cone_search_dec: float
559
- :param cone_search_radius:
560
- :type cone_search_radius: float
561
1182
  :param type:
562
1183
  :type type: ObservationType
563
1184
  :param depth_value:
@@ -566,6 +1187,12 @@ class ObservationApi:
566
1187
  :type depth_unit: DepthUnit
567
1188
  :param include_footprints:
568
1189
  :type include_footprints: bool
1190
+ :param cone_search_ra:
1191
+ :type cone_search_ra: float
1192
+ :param cone_search_dec:
1193
+ :type cone_search_dec: float
1194
+ :param cone_search_radius:
1195
+ :type cone_search_radius: float
569
1196
  :param _request_timeout: timeout setting for this request. If one
570
1197
  number provided, it will be total request
571
1198
  timeout. It can also be a pair (tuple) of
@@ -604,13 +1231,13 @@ class ObservationApi:
604
1231
  bandpass_min=bandpass_min,
605
1232
  bandpass_max=bandpass_max,
606
1233
  bandpass_type=bandpass_type,
607
- cone_search_ra=cone_search_ra,
608
- cone_search_dec=cone_search_dec,
609
- cone_search_radius=cone_search_radius,
610
1234
  type=type,
611
1235
  depth_value=depth_value,
612
1236
  depth_unit=depth_unit,
613
1237
  include_footprints=include_footprints,
1238
+ cone_search_ra=cone_search_ra,
1239
+ cone_search_dec=cone_search_dec,
1240
+ cone_search_radius=cone_search_radius,
614
1241
  _request_auth=_request_auth,
615
1242
  _content_type=_content_type,
616
1243
  _headers=_headers,
@@ -636,14 +1263,14 @@ class ObservationApi:
636
1263
  @validate_call
637
1264
  def get_observations_without_preload_content(
638
1265
  self,
639
- page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
640
- page_limit: Annotated[Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]], Field(description="Records per page")] = None,
1266
+ page: Annotated[Optional[Annotated[int, Field(le=2000, strict=True, ge=1)]], Field(description="Page number")] = None,
1267
+ page_limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=100)]], Field(description="Records per page")] = None,
641
1268
  external_id: Optional[StrictStr] = None,
642
- schedule_ids: Optional[List[Optional[StrictStr]]] = None,
643
- observatory_ids: Optional[List[StrictStr]] = None,
644
- telescope_ids: Optional[List[StrictStr]] = None,
645
- instrument_ids: Optional[List[StrictStr]] = None,
646
- status: Optional[ObservationStatus] = None,
1269
+ schedule_ids: Optional[List[Optional[UUID]]] = None,
1270
+ observatory_ids: Optional[List[UUID]] = None,
1271
+ telescope_ids: Optional[List[UUID]] = None,
1272
+ instrument_ids: Optional[List[UUID]] = None,
1273
+ status: Optional[Any] = None,
647
1274
  proposal: Optional[StrictStr] = None,
648
1275
  object_name: Optional[StrictStr] = None,
649
1276
  date_range_begin: Optional[datetime] = None,
@@ -651,13 +1278,13 @@ class ObservationApi:
651
1278
  bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
652
1279
  bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
653
1280
  bandpass_type: Optional[Any] = None,
654
- cone_search_ra: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = None,
655
- cone_search_dec: Optional[Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]]] = None,
656
- cone_search_radius: Optional[Union[StrictFloat, StrictInt]] = None,
657
- type: Optional[ObservationType] = None,
1281
+ type: Optional[Any] = None,
658
1282
  depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
659
- depth_unit: Optional[DepthUnit] = None,
1283
+ depth_unit: Optional[Any] = None,
660
1284
  include_footprints: Optional[StrictBool] = None,
1285
+ cone_search_ra: Optional[Union[Annotated[float, Field(lt=360.0, strict=True, ge=0.0)], Annotated[int, Field(lt=360, strict=True, ge=0)]]] = None,
1286
+ cone_search_dec: Optional[Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]]] = None,
1287
+ cone_search_radius: Optional[Union[Annotated[float, Field(strict=True, gt=0.0)], Annotated[int, Field(strict=True, gt=0)]]] = None,
661
1288
  _request_timeout: Union[
662
1289
  None,
663
1290
  Annotated[StrictFloat, Field(gt=0)],
@@ -682,13 +1309,13 @@ class ObservationApi:
682
1309
  :param external_id:
683
1310
  :type external_id: str
684
1311
  :param schedule_ids:
685
- :type schedule_ids: List[Optional[str]]
1312
+ :type schedule_ids: List[Optional[UUID]]
686
1313
  :param observatory_ids:
687
- :type observatory_ids: List[str]
1314
+ :type observatory_ids: List[UUID]
688
1315
  :param telescope_ids:
689
- :type telescope_ids: List[str]
1316
+ :type telescope_ids: List[UUID]
690
1317
  :param instrument_ids:
691
- :type instrument_ids: List[str]
1318
+ :type instrument_ids: List[UUID]
692
1319
  :param status:
693
1320
  :type status: ObservationStatus
694
1321
  :param proposal:
@@ -705,12 +1332,6 @@ class ObservationApi:
705
1332
  :type bandpass_max: float
706
1333
  :param bandpass_type:
707
1334
  :type bandpass_type: BandpassType
708
- :param cone_search_ra:
709
- :type cone_search_ra: float
710
- :param cone_search_dec:
711
- :type cone_search_dec: float
712
- :param cone_search_radius:
713
- :type cone_search_radius: float
714
1335
  :param type:
715
1336
  :type type: ObservationType
716
1337
  :param depth_value:
@@ -719,6 +1340,12 @@ class ObservationApi:
719
1340
  :type depth_unit: DepthUnit
720
1341
  :param include_footprints:
721
1342
  :type include_footprints: bool
1343
+ :param cone_search_ra:
1344
+ :type cone_search_ra: float
1345
+ :param cone_search_dec:
1346
+ :type cone_search_dec: float
1347
+ :param cone_search_radius:
1348
+ :type cone_search_radius: float
722
1349
  :param _request_timeout: timeout setting for this request. If one
723
1350
  number provided, it will be total request
724
1351
  timeout. It can also be a pair (tuple) of
@@ -757,13 +1384,13 @@ class ObservationApi:
757
1384
  bandpass_min=bandpass_min,
758
1385
  bandpass_max=bandpass_max,
759
1386
  bandpass_type=bandpass_type,
760
- cone_search_ra=cone_search_ra,
761
- cone_search_dec=cone_search_dec,
762
- cone_search_radius=cone_search_radius,
763
1387
  type=type,
764
1388
  depth_value=depth_value,
765
1389
  depth_unit=depth_unit,
766
1390
  include_footprints=include_footprints,
1391
+ cone_search_ra=cone_search_ra,
1392
+ cone_search_dec=cone_search_dec,
1393
+ cone_search_radius=cone_search_radius,
767
1394
  _request_auth=_request_auth,
768
1395
  _content_type=_content_type,
769
1396
  _headers=_headers,
@@ -799,13 +1426,13 @@ class ObservationApi:
799
1426
  bandpass_min,
800
1427
  bandpass_max,
801
1428
  bandpass_type,
802
- cone_search_ra,
803
- cone_search_dec,
804
- cone_search_radius,
805
1429
  type,
806
1430
  depth_value,
807
1431
  depth_unit,
808
1432
  include_footprints,
1433
+ cone_search_ra,
1434
+ cone_search_dec,
1435
+ cone_search_radius,
809
1436
  _request_auth,
810
1437
  _content_type,
811
1438
  _headers,
@@ -823,7 +1450,7 @@ class ObservationApi:
823
1450
 
824
1451
  _path_params: Dict[str, str] = {}
825
1452
  _query_params: List[Tuple[str, str]] = []
826
- _header_params: Dict[str, Optional[str]] = _headers or {}
1453
+ _header_params: Dict[str, Any] = self.api_client._merge_headers(_headers)
827
1454
  _form_params: List[Tuple[str, str]] = []
828
1455
  _files: Dict[
829
1456
  str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
@@ -908,19 +1535,7 @@ class ObservationApi:
908
1535
 
909
1536
  if bandpass_type is not None:
910
1537
 
911
- _query_params.append(('bandpass_type', bandpass_type))
912
-
913
- if cone_search_ra is not None:
914
-
915
- _query_params.append(('cone_search_ra', cone_search_ra))
916
-
917
- if cone_search_dec is not None:
918
-
919
- _query_params.append(('cone_search_dec', cone_search_dec))
920
-
921
- if cone_search_radius is not None:
922
-
923
- _query_params.append(('cone_search_radius', cone_search_radius))
1538
+ _query_params.extend(self.api_client.explode_query_object('bandpass_type', bandpass_type))
924
1539
 
925
1540
  if type is not None:
926
1541
 
@@ -938,13 +1553,25 @@ class ObservationApi:
938
1553
 
939
1554
  _query_params.append(('include_footprints', include_footprints))
940
1555
 
1556
+ if cone_search_ra is not None:
1557
+
1558
+ _query_params.append(('cone_search_ra', cone_search_ra))
1559
+
1560
+ if cone_search_dec is not None:
1561
+
1562
+ _query_params.append(('cone_search_dec', cone_search_dec))
1563
+
1564
+ if cone_search_radius is not None:
1565
+
1566
+ _query_params.append(('cone_search_radius', cone_search_radius))
1567
+
941
1568
  # process the header parameters
942
1569
  # process the form parameters
943
1570
  # process the body parameter
944
1571
 
945
1572
 
946
1573
  # set the HTTP header `Accept`
947
- if 'Accept' not in _header_params:
1574
+ if not any(key.lower() == 'accept' for key in _header_params):
948
1575
  _header_params['Accept'] = self.api_client.select_header_accept(
949
1576
  [
950
1577
  'application/json'
@@ -958,7 +1585,7 @@ class ObservationApi:
958
1585
 
959
1586
  return self.api_client.param_serialize(
960
1587
  method='GET',
961
- resource_path='/observation/',
1588
+ resource_path='/observation',
962
1589
  path_params=_path_params,
963
1590
  query_params=_query_params,
964
1591
  header_params=_header_params,