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.
- across/sdk/v1/__init__.py +41 -7
- across/sdk/v1/api/__init__.py +3 -0
- across/sdk/v1/api/auth_api.py +269 -1
- across/sdk/v1/api/broker_alert_api.py +1017 -0
- across/sdk/v1/api/broker_event_api.py +697 -0
- across/sdk/v1/api/filter_api.py +1 -1
- across/sdk/v1/api/group_api.py +250 -1
- across/sdk/v1/api/group_invite_api.py +1 -1
- across/sdk/v1/api/group_role_api.py +7 -7
- across/sdk/v1/api/instrument_api.py +1 -1
- across/sdk/v1/api/internal_api.py +2 -2
- across/sdk/v1/api/observation_api.py +682 -52
- across/sdk/v1/api/observatory_api.py +1 -1
- across/sdk/v1/api/permission_api.py +1 -1
- across/sdk/v1/api/role_api.py +552 -0
- across/sdk/v1/api/schedule_api.py +1 -1
- across/sdk/v1/api/service_account_api.py +7 -7
- across/sdk/v1/api/telescope_api.py +35 -1
- across/sdk/v1/api/tle_api.py +1 -1
- across/sdk/v1/api/tools_api.py +1 -1
- across/sdk/v1/api/user_api.py +265 -17
- across/sdk/v1/api_client.py +1 -1
- across/sdk/v1/configuration.py +4 -4
- across/sdk/v1/exceptions.py +1 -1
- across/sdk/v1/models/__init__.py +18 -4
- across/sdk/v1/models/access_token_response.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group.py +91 -0
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group_role.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_user.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_group_schemas_group.py +7 -7
- across/sdk/v1/models/across_server_routes_v1_group_schemas_user.py +105 -0
- across/sdk/v1/models/across_server_routes_v1_role_schemas_user.py +95 -0
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group.py +101 -0
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group_invite.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group_role.py +105 -0
- across/sdk/v1/models/across_server_routes_v1_user_schemas_user.py +4 -4
- across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py +1 -1
- across/sdk/v1/models/bandpass.py +1 -1
- across/sdk/v1/models/bandpass_type.py +1 -1
- across/sdk/v1/models/broker_alert.py +104 -0
- across/sdk/v1/models/broker_alert_create.py +115 -0
- across/sdk/v1/models/broker_alert_data_source.py +39 -0
- across/sdk/v1/models/broker_alert_status.py +41 -0
- across/sdk/v1/models/broker_event.py +115 -0
- across/sdk/v1/models/broker_event_type.py +41 -0
- across/sdk/v1/models/constrained_date.py +4 -7
- across/sdk/v1/models/constraint_reason.py +1 -1
- across/sdk/v1/models/constraint_type.py +1 -1
- across/sdk/v1/models/coordinate.py +1 -1
- across/sdk/v1/models/date_range.py +1 -1
- across/sdk/v1/models/depth_unit.py +1 -1
- across/sdk/v1/models/energy_bandpass.py +1 -1
- across/sdk/v1/models/energy_unit.py +1 -1
- across/sdk/v1/models/ephemeris_type.py +1 -1
- across/sdk/v1/models/filter.py +1 -1
- across/sdk/v1/models/frequency_bandpass.py +1 -1
- across/sdk/v1/models/frequency_unit.py +1 -1
- across/sdk/v1/models/grant_type.py +1 -1
- across/sdk/v1/models/ground_parameters.py +1 -1
- across/sdk/v1/models/group.py +4 -4
- across/sdk/v1/models/group_base.py +91 -0
- across/sdk/v1/models/group_invite.py +1 -1
- across/sdk/v1/models/group_invite_create.py +1 -1
- across/sdk/v1/models/group_invite_group_details.py +1 -1
- across/sdk/v1/models/group_read.py +1 -1
- across/sdk/v1/models/group_role.py +37 -6
- across/sdk/v1/models/group_role_create.py +1 -1
- across/sdk/v1/models/group_role_read.py +9 -3
- across/sdk/v1/models/http_validation_error.py +1 -1
- across/sdk/v1/models/id_name_schema.py +1 -1
- across/sdk/v1/models/instrument.py +1 -1
- across/sdk/v1/models/ivoa_obs_category.py +1 -1
- across/sdk/v1/models/ivoa_obs_tracking_type.py +1 -1
- across/sdk/v1/models/joint_visibility_result.py +1 -1
- across/sdk/v1/models/jpl_parameters.py +1 -1
- across/sdk/v1/models/localization.py +127 -0
- across/sdk/v1/models/localization_contour_base.py +95 -0
- across/sdk/v1/models/localization_create.py +121 -0
- across/sdk/v1/models/location_inner.py +138 -0
- across/sdk/v1/models/name_resolver.py +1 -1
- across/sdk/v1/models/nullable_date_range.py +1 -1
- across/sdk/v1/models/observation.py +1 -1
- across/sdk/v1/models/observation_create.py +1 -1
- across/sdk/v1/models/observation_footprint.py +1 -1
- across/sdk/v1/models/observation_footprint_create.py +1 -1
- across/sdk/v1/models/observation_status.py +1 -1
- across/sdk/v1/models/observation_strategy.py +1 -1
- across/sdk/v1/models/observation_type.py +1 -1
- across/sdk/v1/models/observatory.py +1 -1
- across/sdk/v1/models/observatory_ephemeris_type.py +1 -1
- across/sdk/v1/models/observatory_type.py +1 -1
- across/sdk/v1/models/page_broker_alert.py +116 -0
- across/sdk/v1/models/page_broker_event.py +116 -0
- across/sdk/v1/models/page_observation.py +1 -1
- across/sdk/v1/models/page_schedule.py +1 -1
- across/sdk/v1/models/parameters.py +1 -1
- across/sdk/v1/models/permission.py +1 -1
- across/sdk/v1/models/point.py +1 -1
- across/sdk/v1/models/role.py +99 -0
- across/sdk/v1/models/role_base.py +1 -1
- across/sdk/v1/models/schedule.py +1 -1
- across/sdk/v1/models/schedule_cadence.py +1 -1
- across/sdk/v1/models/schedule_create.py +1 -1
- across/sdk/v1/models/schedule_create_many.py +1 -1
- across/sdk/v1/models/schedule_fidelity.py +1 -1
- across/sdk/v1/models/schedule_status.py +1 -1
- across/sdk/v1/models/service_account.py +1 -1
- across/sdk/v1/models/service_account_create.py +1 -1
- across/sdk/v1/models/service_account_secret.py +1 -1
- across/sdk/v1/models/service_account_update.py +1 -1
- across/sdk/v1/models/spice_parameters.py +1 -1
- across/sdk/v1/models/system_service_account.py +1 -1
- across/sdk/v1/models/telescope.py +1 -1
- across/sdk/v1/models/telescope_instrument.py +1 -1
- across/sdk/v1/models/tle.py +1 -1
- across/sdk/v1/models/tle_create.py +1 -1
- across/sdk/v1/models/tle_parameters.py +1 -1
- across/sdk/v1/models/unit_value.py +1 -1
- across/sdk/v1/models/user.py +37 -7
- across/sdk/v1/models/user_create.py +1 -1
- across/sdk/v1/models/user_info.py +1 -1
- across/sdk/v1/models/user_update.py +1 -1
- across/sdk/v1/models/validation_error.py +1 -1
- across/sdk/v1/models/validation_error_loc_inner.py +1 -1
- across/sdk/v1/models/visibility_result.py +1 -1
- across/sdk/v1/models/visibility_type.py +1 -1
- across/sdk/v1/models/visibility_window.py +1 -1
- across/sdk/v1/models/wavelength_bandpass.py +1 -1
- across/sdk/v1/models/wavelength_unit.py +1 -1
- across/sdk/v1/models/window.py +1 -1
- across/sdk/v1/rest.py +1 -1
- {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.4.0.dist-info}/METADATA +45 -29
- across_server_openapi_python-1.4.0.dist-info/RECORD +143 -0
- across_server_openapi_python-1.2.0.dist-info/RECORD +0 -121
- {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.4.0.dist-info}/WHEEL +0 -0
- {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.4.0.dist-info}/licenses/LICENSE +0 -0
- {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.
|
|
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.
|
|
@@ -44,6 +44,636 @@ class ObservationApi:
|
|
|
44
44
|
self.api_client = api_client
|
|
45
45
|
|
|
46
46
|
|
|
47
|
+
@validate_call
|
|
48
|
+
def contains_point(
|
|
49
|
+
self,
|
|
50
|
+
ra: Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]],
|
|
51
|
+
dec: Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]],
|
|
52
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
53
|
+
page_limit: Annotated[Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]], Field(description="Records per page")] = None,
|
|
54
|
+
external_id: Optional[StrictStr] = None,
|
|
55
|
+
schedule_ids: Optional[List[StrictStr]] = None,
|
|
56
|
+
observatory_ids: Optional[List[StrictStr]] = None,
|
|
57
|
+
telescope_ids: Optional[List[StrictStr]] = None,
|
|
58
|
+
instrument_ids: Optional[List[StrictStr]] = None,
|
|
59
|
+
status: Optional[ObservationStatus] = None,
|
|
60
|
+
proposal: Optional[StrictStr] = None,
|
|
61
|
+
object_name: Optional[StrictStr] = None,
|
|
62
|
+
date_range_begin: Optional[datetime] = None,
|
|
63
|
+
date_range_end: Optional[datetime] = None,
|
|
64
|
+
bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
65
|
+
bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
66
|
+
bandpass_type: Optional[Any] = None,
|
|
67
|
+
type: Optional[ObservationType] = None,
|
|
68
|
+
depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
69
|
+
depth_unit: Optional[DepthUnit] = None,
|
|
70
|
+
include_footprints: Optional[StrictBool] = None,
|
|
71
|
+
_request_timeout: Union[
|
|
72
|
+
None,
|
|
73
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
74
|
+
Tuple[
|
|
75
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
76
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
77
|
+
]
|
|
78
|
+
] = None,
|
|
79
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
80
|
+
_content_type: Optional[StrictStr] = None,
|
|
81
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
82
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
83
|
+
) -> PageObservation:
|
|
84
|
+
"""Read many observations whose footprints contains a given RA/DEC
|
|
85
|
+
|
|
86
|
+
Read many observations whose footprints contains a given RA/DEC
|
|
87
|
+
|
|
88
|
+
:param ra: (required)
|
|
89
|
+
:type ra: float
|
|
90
|
+
:param dec: (required)
|
|
91
|
+
:type dec: float
|
|
92
|
+
:param page: Page number
|
|
93
|
+
:type page: int
|
|
94
|
+
:param page_limit: Records per page
|
|
95
|
+
:type page_limit: int
|
|
96
|
+
:param external_id:
|
|
97
|
+
:type external_id: str
|
|
98
|
+
:param schedule_ids:
|
|
99
|
+
:type schedule_ids: List[str]
|
|
100
|
+
:param observatory_ids:
|
|
101
|
+
:type observatory_ids: List[str]
|
|
102
|
+
:param telescope_ids:
|
|
103
|
+
:type telescope_ids: List[str]
|
|
104
|
+
:param instrument_ids:
|
|
105
|
+
:type instrument_ids: List[str]
|
|
106
|
+
:param status:
|
|
107
|
+
:type status: ObservationStatus
|
|
108
|
+
:param proposal:
|
|
109
|
+
:type proposal: str
|
|
110
|
+
:param object_name:
|
|
111
|
+
:type object_name: str
|
|
112
|
+
:param date_range_begin:
|
|
113
|
+
:type date_range_begin: datetime
|
|
114
|
+
:param date_range_end:
|
|
115
|
+
:type date_range_end: datetime
|
|
116
|
+
:param bandpass_min:
|
|
117
|
+
:type bandpass_min: float
|
|
118
|
+
:param bandpass_max:
|
|
119
|
+
:type bandpass_max: float
|
|
120
|
+
:param bandpass_type:
|
|
121
|
+
:type bandpass_type: BandpassType
|
|
122
|
+
:param type:
|
|
123
|
+
:type type: ObservationType
|
|
124
|
+
:param depth_value:
|
|
125
|
+
:type depth_value: float
|
|
126
|
+
:param depth_unit:
|
|
127
|
+
:type depth_unit: DepthUnit
|
|
128
|
+
:param include_footprints:
|
|
129
|
+
:type include_footprints: bool
|
|
130
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
131
|
+
number provided, it will be total request
|
|
132
|
+
timeout. It can also be a pair (tuple) of
|
|
133
|
+
(connection, read) timeouts.
|
|
134
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
135
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
136
|
+
request; this effectively ignores the
|
|
137
|
+
authentication in the spec for a single request.
|
|
138
|
+
:type _request_auth: dict, optional
|
|
139
|
+
:param _content_type: force content-type for the request.
|
|
140
|
+
:type _content_type: str, Optional
|
|
141
|
+
:param _headers: set to override the headers for a single
|
|
142
|
+
request; this effectively ignores the headers
|
|
143
|
+
in the spec for a single request.
|
|
144
|
+
:type _headers: dict, optional
|
|
145
|
+
:param _host_index: set to override the host_index for a single
|
|
146
|
+
request; this effectively ignores the host_index
|
|
147
|
+
in the spec for a single request.
|
|
148
|
+
:type _host_index: int, optional
|
|
149
|
+
:return: Returns the result object.
|
|
150
|
+
""" # noqa: E501
|
|
151
|
+
|
|
152
|
+
_param = self._contains_point_serialize(
|
|
153
|
+
ra=ra,
|
|
154
|
+
dec=dec,
|
|
155
|
+
page=page,
|
|
156
|
+
page_limit=page_limit,
|
|
157
|
+
external_id=external_id,
|
|
158
|
+
schedule_ids=schedule_ids,
|
|
159
|
+
observatory_ids=observatory_ids,
|
|
160
|
+
telescope_ids=telescope_ids,
|
|
161
|
+
instrument_ids=instrument_ids,
|
|
162
|
+
status=status,
|
|
163
|
+
proposal=proposal,
|
|
164
|
+
object_name=object_name,
|
|
165
|
+
date_range_begin=date_range_begin,
|
|
166
|
+
date_range_end=date_range_end,
|
|
167
|
+
bandpass_min=bandpass_min,
|
|
168
|
+
bandpass_max=bandpass_max,
|
|
169
|
+
bandpass_type=bandpass_type,
|
|
170
|
+
type=type,
|
|
171
|
+
depth_value=depth_value,
|
|
172
|
+
depth_unit=depth_unit,
|
|
173
|
+
include_footprints=include_footprints,
|
|
174
|
+
_request_auth=_request_auth,
|
|
175
|
+
_content_type=_content_type,
|
|
176
|
+
_headers=_headers,
|
|
177
|
+
_host_index=_host_index
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
181
|
+
'200': "PageObservation",
|
|
182
|
+
'404': None,
|
|
183
|
+
'422': "HTTPValidationError",
|
|
184
|
+
}
|
|
185
|
+
response_data = self.api_client.call_api(
|
|
186
|
+
*_param,
|
|
187
|
+
_request_timeout=_request_timeout
|
|
188
|
+
)
|
|
189
|
+
response_data.read()
|
|
190
|
+
return self.api_client.response_deserialize(
|
|
191
|
+
response_data=response_data,
|
|
192
|
+
response_types_map=_response_types_map,
|
|
193
|
+
).data
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
@validate_call
|
|
197
|
+
def contains_point_with_http_info(
|
|
198
|
+
self,
|
|
199
|
+
ra: Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]],
|
|
200
|
+
dec: Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]],
|
|
201
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
202
|
+
page_limit: Annotated[Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]], Field(description="Records per page")] = None,
|
|
203
|
+
external_id: Optional[StrictStr] = None,
|
|
204
|
+
schedule_ids: Optional[List[StrictStr]] = None,
|
|
205
|
+
observatory_ids: Optional[List[StrictStr]] = None,
|
|
206
|
+
telescope_ids: Optional[List[StrictStr]] = None,
|
|
207
|
+
instrument_ids: Optional[List[StrictStr]] = None,
|
|
208
|
+
status: Optional[ObservationStatus] = None,
|
|
209
|
+
proposal: Optional[StrictStr] = None,
|
|
210
|
+
object_name: Optional[StrictStr] = None,
|
|
211
|
+
date_range_begin: Optional[datetime] = None,
|
|
212
|
+
date_range_end: Optional[datetime] = None,
|
|
213
|
+
bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
214
|
+
bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
215
|
+
bandpass_type: Optional[Any] = None,
|
|
216
|
+
type: Optional[ObservationType] = None,
|
|
217
|
+
depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
218
|
+
depth_unit: Optional[DepthUnit] = None,
|
|
219
|
+
include_footprints: Optional[StrictBool] = None,
|
|
220
|
+
_request_timeout: Union[
|
|
221
|
+
None,
|
|
222
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
223
|
+
Tuple[
|
|
224
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
225
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
226
|
+
]
|
|
227
|
+
] = None,
|
|
228
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
229
|
+
_content_type: Optional[StrictStr] = None,
|
|
230
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
231
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
232
|
+
) -> ApiResponse[PageObservation]:
|
|
233
|
+
"""Read many observations whose footprints contains a given RA/DEC
|
|
234
|
+
|
|
235
|
+
Read many observations whose footprints contains a given RA/DEC
|
|
236
|
+
|
|
237
|
+
:param ra: (required)
|
|
238
|
+
:type ra: float
|
|
239
|
+
:param dec: (required)
|
|
240
|
+
:type dec: float
|
|
241
|
+
:param page: Page number
|
|
242
|
+
:type page: int
|
|
243
|
+
:param page_limit: Records per page
|
|
244
|
+
:type page_limit: int
|
|
245
|
+
:param external_id:
|
|
246
|
+
:type external_id: str
|
|
247
|
+
:param schedule_ids:
|
|
248
|
+
:type schedule_ids: List[str]
|
|
249
|
+
:param observatory_ids:
|
|
250
|
+
:type observatory_ids: List[str]
|
|
251
|
+
:param telescope_ids:
|
|
252
|
+
:type telescope_ids: List[str]
|
|
253
|
+
:param instrument_ids:
|
|
254
|
+
:type instrument_ids: List[str]
|
|
255
|
+
:param status:
|
|
256
|
+
:type status: ObservationStatus
|
|
257
|
+
:param proposal:
|
|
258
|
+
:type proposal: str
|
|
259
|
+
:param object_name:
|
|
260
|
+
:type object_name: str
|
|
261
|
+
:param date_range_begin:
|
|
262
|
+
:type date_range_begin: datetime
|
|
263
|
+
:param date_range_end:
|
|
264
|
+
:type date_range_end: datetime
|
|
265
|
+
:param bandpass_min:
|
|
266
|
+
:type bandpass_min: float
|
|
267
|
+
:param bandpass_max:
|
|
268
|
+
:type bandpass_max: float
|
|
269
|
+
:param bandpass_type:
|
|
270
|
+
:type bandpass_type: BandpassType
|
|
271
|
+
:param type:
|
|
272
|
+
:type type: ObservationType
|
|
273
|
+
:param depth_value:
|
|
274
|
+
:type depth_value: float
|
|
275
|
+
:param depth_unit:
|
|
276
|
+
:type depth_unit: DepthUnit
|
|
277
|
+
:param include_footprints:
|
|
278
|
+
:type include_footprints: bool
|
|
279
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
280
|
+
number provided, it will be total request
|
|
281
|
+
timeout. It can also be a pair (tuple) of
|
|
282
|
+
(connection, read) timeouts.
|
|
283
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
284
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
285
|
+
request; this effectively ignores the
|
|
286
|
+
authentication in the spec for a single request.
|
|
287
|
+
:type _request_auth: dict, optional
|
|
288
|
+
:param _content_type: force content-type for the request.
|
|
289
|
+
:type _content_type: str, Optional
|
|
290
|
+
:param _headers: set to override the headers for a single
|
|
291
|
+
request; this effectively ignores the headers
|
|
292
|
+
in the spec for a single request.
|
|
293
|
+
:type _headers: dict, optional
|
|
294
|
+
:param _host_index: set to override the host_index for a single
|
|
295
|
+
request; this effectively ignores the host_index
|
|
296
|
+
in the spec for a single request.
|
|
297
|
+
:type _host_index: int, optional
|
|
298
|
+
:return: Returns the result object.
|
|
299
|
+
""" # noqa: E501
|
|
300
|
+
|
|
301
|
+
_param = self._contains_point_serialize(
|
|
302
|
+
ra=ra,
|
|
303
|
+
dec=dec,
|
|
304
|
+
page=page,
|
|
305
|
+
page_limit=page_limit,
|
|
306
|
+
external_id=external_id,
|
|
307
|
+
schedule_ids=schedule_ids,
|
|
308
|
+
observatory_ids=observatory_ids,
|
|
309
|
+
telescope_ids=telescope_ids,
|
|
310
|
+
instrument_ids=instrument_ids,
|
|
311
|
+
status=status,
|
|
312
|
+
proposal=proposal,
|
|
313
|
+
object_name=object_name,
|
|
314
|
+
date_range_begin=date_range_begin,
|
|
315
|
+
date_range_end=date_range_end,
|
|
316
|
+
bandpass_min=bandpass_min,
|
|
317
|
+
bandpass_max=bandpass_max,
|
|
318
|
+
bandpass_type=bandpass_type,
|
|
319
|
+
type=type,
|
|
320
|
+
depth_value=depth_value,
|
|
321
|
+
depth_unit=depth_unit,
|
|
322
|
+
include_footprints=include_footprints,
|
|
323
|
+
_request_auth=_request_auth,
|
|
324
|
+
_content_type=_content_type,
|
|
325
|
+
_headers=_headers,
|
|
326
|
+
_host_index=_host_index
|
|
327
|
+
)
|
|
328
|
+
|
|
329
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
330
|
+
'200': "PageObservation",
|
|
331
|
+
'404': None,
|
|
332
|
+
'422': "HTTPValidationError",
|
|
333
|
+
}
|
|
334
|
+
response_data = self.api_client.call_api(
|
|
335
|
+
*_param,
|
|
336
|
+
_request_timeout=_request_timeout
|
|
337
|
+
)
|
|
338
|
+
response_data.read()
|
|
339
|
+
return self.api_client.response_deserialize(
|
|
340
|
+
response_data=response_data,
|
|
341
|
+
response_types_map=_response_types_map,
|
|
342
|
+
)
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
@validate_call
|
|
346
|
+
def contains_point_without_preload_content(
|
|
347
|
+
self,
|
|
348
|
+
ra: Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]],
|
|
349
|
+
dec: Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]],
|
|
350
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
351
|
+
page_limit: Annotated[Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]], Field(description="Records per page")] = None,
|
|
352
|
+
external_id: Optional[StrictStr] = None,
|
|
353
|
+
schedule_ids: Optional[List[StrictStr]] = None,
|
|
354
|
+
observatory_ids: Optional[List[StrictStr]] = None,
|
|
355
|
+
telescope_ids: Optional[List[StrictStr]] = None,
|
|
356
|
+
instrument_ids: Optional[List[StrictStr]] = None,
|
|
357
|
+
status: Optional[ObservationStatus] = None,
|
|
358
|
+
proposal: Optional[StrictStr] = None,
|
|
359
|
+
object_name: Optional[StrictStr] = None,
|
|
360
|
+
date_range_begin: Optional[datetime] = None,
|
|
361
|
+
date_range_end: Optional[datetime] = None,
|
|
362
|
+
bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
363
|
+
bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
364
|
+
bandpass_type: Optional[Any] = None,
|
|
365
|
+
type: Optional[ObservationType] = None,
|
|
366
|
+
depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
367
|
+
depth_unit: Optional[DepthUnit] = None,
|
|
368
|
+
include_footprints: Optional[StrictBool] = None,
|
|
369
|
+
_request_timeout: Union[
|
|
370
|
+
None,
|
|
371
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
372
|
+
Tuple[
|
|
373
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
374
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
375
|
+
]
|
|
376
|
+
] = None,
|
|
377
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
378
|
+
_content_type: Optional[StrictStr] = None,
|
|
379
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
380
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
381
|
+
) -> RESTResponseType:
|
|
382
|
+
"""Read many observations whose footprints contains a given RA/DEC
|
|
383
|
+
|
|
384
|
+
Read many observations whose footprints contains a given RA/DEC
|
|
385
|
+
|
|
386
|
+
:param ra: (required)
|
|
387
|
+
:type ra: float
|
|
388
|
+
:param dec: (required)
|
|
389
|
+
:type dec: float
|
|
390
|
+
:param page: Page number
|
|
391
|
+
:type page: int
|
|
392
|
+
:param page_limit: Records per page
|
|
393
|
+
:type page_limit: int
|
|
394
|
+
:param external_id:
|
|
395
|
+
:type external_id: str
|
|
396
|
+
:param schedule_ids:
|
|
397
|
+
:type schedule_ids: List[str]
|
|
398
|
+
:param observatory_ids:
|
|
399
|
+
:type observatory_ids: List[str]
|
|
400
|
+
:param telescope_ids:
|
|
401
|
+
:type telescope_ids: List[str]
|
|
402
|
+
:param instrument_ids:
|
|
403
|
+
:type instrument_ids: List[str]
|
|
404
|
+
:param status:
|
|
405
|
+
:type status: ObservationStatus
|
|
406
|
+
:param proposal:
|
|
407
|
+
:type proposal: str
|
|
408
|
+
:param object_name:
|
|
409
|
+
:type object_name: str
|
|
410
|
+
:param date_range_begin:
|
|
411
|
+
:type date_range_begin: datetime
|
|
412
|
+
:param date_range_end:
|
|
413
|
+
:type date_range_end: datetime
|
|
414
|
+
:param bandpass_min:
|
|
415
|
+
:type bandpass_min: float
|
|
416
|
+
:param bandpass_max:
|
|
417
|
+
:type bandpass_max: float
|
|
418
|
+
:param bandpass_type:
|
|
419
|
+
:type bandpass_type: BandpassType
|
|
420
|
+
:param type:
|
|
421
|
+
:type type: ObservationType
|
|
422
|
+
:param depth_value:
|
|
423
|
+
:type depth_value: float
|
|
424
|
+
:param depth_unit:
|
|
425
|
+
:type depth_unit: DepthUnit
|
|
426
|
+
:param include_footprints:
|
|
427
|
+
:type include_footprints: bool
|
|
428
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
429
|
+
number provided, it will be total request
|
|
430
|
+
timeout. It can also be a pair (tuple) of
|
|
431
|
+
(connection, read) timeouts.
|
|
432
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
433
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
434
|
+
request; this effectively ignores the
|
|
435
|
+
authentication in the spec for a single request.
|
|
436
|
+
:type _request_auth: dict, optional
|
|
437
|
+
:param _content_type: force content-type for the request.
|
|
438
|
+
:type _content_type: str, Optional
|
|
439
|
+
:param _headers: set to override the headers for a single
|
|
440
|
+
request; this effectively ignores the headers
|
|
441
|
+
in the spec for a single request.
|
|
442
|
+
:type _headers: dict, optional
|
|
443
|
+
:param _host_index: set to override the host_index for a single
|
|
444
|
+
request; this effectively ignores the host_index
|
|
445
|
+
in the spec for a single request.
|
|
446
|
+
:type _host_index: int, optional
|
|
447
|
+
:return: Returns the result object.
|
|
448
|
+
""" # noqa: E501
|
|
449
|
+
|
|
450
|
+
_param = self._contains_point_serialize(
|
|
451
|
+
ra=ra,
|
|
452
|
+
dec=dec,
|
|
453
|
+
page=page,
|
|
454
|
+
page_limit=page_limit,
|
|
455
|
+
external_id=external_id,
|
|
456
|
+
schedule_ids=schedule_ids,
|
|
457
|
+
observatory_ids=observatory_ids,
|
|
458
|
+
telescope_ids=telescope_ids,
|
|
459
|
+
instrument_ids=instrument_ids,
|
|
460
|
+
status=status,
|
|
461
|
+
proposal=proposal,
|
|
462
|
+
object_name=object_name,
|
|
463
|
+
date_range_begin=date_range_begin,
|
|
464
|
+
date_range_end=date_range_end,
|
|
465
|
+
bandpass_min=bandpass_min,
|
|
466
|
+
bandpass_max=bandpass_max,
|
|
467
|
+
bandpass_type=bandpass_type,
|
|
468
|
+
type=type,
|
|
469
|
+
depth_value=depth_value,
|
|
470
|
+
depth_unit=depth_unit,
|
|
471
|
+
include_footprints=include_footprints,
|
|
472
|
+
_request_auth=_request_auth,
|
|
473
|
+
_content_type=_content_type,
|
|
474
|
+
_headers=_headers,
|
|
475
|
+
_host_index=_host_index
|
|
476
|
+
)
|
|
477
|
+
|
|
478
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
479
|
+
'200': "PageObservation",
|
|
480
|
+
'404': None,
|
|
481
|
+
'422': "HTTPValidationError",
|
|
482
|
+
}
|
|
483
|
+
response_data = self.api_client.call_api(
|
|
484
|
+
*_param,
|
|
485
|
+
_request_timeout=_request_timeout
|
|
486
|
+
)
|
|
487
|
+
return response_data.response
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
def _contains_point_serialize(
|
|
491
|
+
self,
|
|
492
|
+
ra,
|
|
493
|
+
dec,
|
|
494
|
+
page,
|
|
495
|
+
page_limit,
|
|
496
|
+
external_id,
|
|
497
|
+
schedule_ids,
|
|
498
|
+
observatory_ids,
|
|
499
|
+
telescope_ids,
|
|
500
|
+
instrument_ids,
|
|
501
|
+
status,
|
|
502
|
+
proposal,
|
|
503
|
+
object_name,
|
|
504
|
+
date_range_begin,
|
|
505
|
+
date_range_end,
|
|
506
|
+
bandpass_min,
|
|
507
|
+
bandpass_max,
|
|
508
|
+
bandpass_type,
|
|
509
|
+
type,
|
|
510
|
+
depth_value,
|
|
511
|
+
depth_unit,
|
|
512
|
+
include_footprints,
|
|
513
|
+
_request_auth,
|
|
514
|
+
_content_type,
|
|
515
|
+
_headers,
|
|
516
|
+
_host_index,
|
|
517
|
+
) -> RequestSerialized:
|
|
518
|
+
|
|
519
|
+
_host = None
|
|
520
|
+
|
|
521
|
+
_collection_formats: Dict[str, str] = {
|
|
522
|
+
'schedule_ids': 'multi',
|
|
523
|
+
'observatory_ids': 'multi',
|
|
524
|
+
'telescope_ids': 'multi',
|
|
525
|
+
'instrument_ids': 'multi',
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
_path_params: Dict[str, str] = {}
|
|
529
|
+
_query_params: List[Tuple[str, str]] = []
|
|
530
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
531
|
+
_form_params: List[Tuple[str, str]] = []
|
|
532
|
+
_files: Dict[
|
|
533
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
534
|
+
] = {}
|
|
535
|
+
_body_params: Optional[bytes] = None
|
|
536
|
+
|
|
537
|
+
# process the path parameters
|
|
538
|
+
# process the query parameters
|
|
539
|
+
if page is not None:
|
|
540
|
+
|
|
541
|
+
_query_params.append(('page', page))
|
|
542
|
+
|
|
543
|
+
if page_limit is not None:
|
|
544
|
+
|
|
545
|
+
_query_params.append(('page_limit', page_limit))
|
|
546
|
+
|
|
547
|
+
if external_id is not None:
|
|
548
|
+
|
|
549
|
+
_query_params.append(('external_id', external_id))
|
|
550
|
+
|
|
551
|
+
if schedule_ids is not None:
|
|
552
|
+
|
|
553
|
+
_query_params.append(('schedule_ids', schedule_ids))
|
|
554
|
+
|
|
555
|
+
if observatory_ids is not None:
|
|
556
|
+
|
|
557
|
+
_query_params.append(('observatory_ids', observatory_ids))
|
|
558
|
+
|
|
559
|
+
if telescope_ids is not None:
|
|
560
|
+
|
|
561
|
+
_query_params.append(('telescope_ids', telescope_ids))
|
|
562
|
+
|
|
563
|
+
if instrument_ids is not None:
|
|
564
|
+
|
|
565
|
+
_query_params.append(('instrument_ids', instrument_ids))
|
|
566
|
+
|
|
567
|
+
if status is not None:
|
|
568
|
+
|
|
569
|
+
_query_params.append(('status', status.value))
|
|
570
|
+
|
|
571
|
+
if proposal is not None:
|
|
572
|
+
|
|
573
|
+
_query_params.append(('proposal', proposal))
|
|
574
|
+
|
|
575
|
+
if object_name is not None:
|
|
576
|
+
|
|
577
|
+
_query_params.append(('object_name', object_name))
|
|
578
|
+
|
|
579
|
+
if date_range_begin is not None:
|
|
580
|
+
if isinstance(date_range_begin, datetime):
|
|
581
|
+
_query_params.append(
|
|
582
|
+
(
|
|
583
|
+
'date_range_begin',
|
|
584
|
+
date_range_begin.strftime(
|
|
585
|
+
self.api_client.configuration.datetime_format
|
|
586
|
+
)
|
|
587
|
+
)
|
|
588
|
+
)
|
|
589
|
+
else:
|
|
590
|
+
_query_params.append(('date_range_begin', date_range_begin))
|
|
591
|
+
|
|
592
|
+
if date_range_end is not None:
|
|
593
|
+
if isinstance(date_range_end, datetime):
|
|
594
|
+
_query_params.append(
|
|
595
|
+
(
|
|
596
|
+
'date_range_end',
|
|
597
|
+
date_range_end.strftime(
|
|
598
|
+
self.api_client.configuration.datetime_format
|
|
599
|
+
)
|
|
600
|
+
)
|
|
601
|
+
)
|
|
602
|
+
else:
|
|
603
|
+
_query_params.append(('date_range_end', date_range_end))
|
|
604
|
+
|
|
605
|
+
if bandpass_min is not None:
|
|
606
|
+
|
|
607
|
+
_query_params.append(('bandpass_min', bandpass_min))
|
|
608
|
+
|
|
609
|
+
if bandpass_max is not None:
|
|
610
|
+
|
|
611
|
+
_query_params.append(('bandpass_max', bandpass_max))
|
|
612
|
+
|
|
613
|
+
if bandpass_type is not None:
|
|
614
|
+
|
|
615
|
+
_query_params.append(('bandpass_type', bandpass_type))
|
|
616
|
+
|
|
617
|
+
if type is not None:
|
|
618
|
+
|
|
619
|
+
_query_params.append(('type', type.value))
|
|
620
|
+
|
|
621
|
+
if depth_value is not None:
|
|
622
|
+
|
|
623
|
+
_query_params.append(('depth_value', depth_value))
|
|
624
|
+
|
|
625
|
+
if depth_unit is not None:
|
|
626
|
+
|
|
627
|
+
_query_params.append(('depth_unit', depth_unit.value))
|
|
628
|
+
|
|
629
|
+
if include_footprints is not None:
|
|
630
|
+
|
|
631
|
+
_query_params.append(('include_footprints', include_footprints))
|
|
632
|
+
|
|
633
|
+
if ra is not None:
|
|
634
|
+
|
|
635
|
+
_query_params.append(('ra', ra))
|
|
636
|
+
|
|
637
|
+
if dec is not None:
|
|
638
|
+
|
|
639
|
+
_query_params.append(('dec', dec))
|
|
640
|
+
|
|
641
|
+
# process the header parameters
|
|
642
|
+
# process the form parameters
|
|
643
|
+
# process the body parameter
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
# set the HTTP header `Accept`
|
|
647
|
+
if 'Accept' not in _header_params:
|
|
648
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
649
|
+
[
|
|
650
|
+
'application/json'
|
|
651
|
+
]
|
|
652
|
+
)
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
# authentication setting
|
|
656
|
+
_auth_settings: List[str] = [
|
|
657
|
+
]
|
|
658
|
+
|
|
659
|
+
return self.api_client.param_serialize(
|
|
660
|
+
method='GET',
|
|
661
|
+
resource_path='/observation/search/contains-point/',
|
|
662
|
+
path_params=_path_params,
|
|
663
|
+
query_params=_query_params,
|
|
664
|
+
header_params=_header_params,
|
|
665
|
+
body=_body_params,
|
|
666
|
+
post_params=_form_params,
|
|
667
|
+
files=_files,
|
|
668
|
+
auth_settings=_auth_settings,
|
|
669
|
+
collection_formats=_collection_formats,
|
|
670
|
+
_host=_host,
|
|
671
|
+
_request_auth=_request_auth
|
|
672
|
+
)
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
|
|
47
677
|
@validate_call
|
|
48
678
|
def get_observation(
|
|
49
679
|
self,
|
|
@@ -345,13 +975,13 @@ class ObservationApi:
|
|
|
345
975
|
bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
346
976
|
bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
347
977
|
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
978
|
type: Optional[ObservationType] = None,
|
|
352
979
|
depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
353
980
|
depth_unit: Optional[DepthUnit] = None,
|
|
354
981
|
include_footprints: Optional[StrictBool] = None,
|
|
982
|
+
cone_search_ra: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = None,
|
|
983
|
+
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,
|
|
984
|
+
cone_search_radius: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
355
985
|
_request_timeout: Union[
|
|
356
986
|
None,
|
|
357
987
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -399,12 +1029,6 @@ class ObservationApi:
|
|
|
399
1029
|
:type bandpass_max: float
|
|
400
1030
|
:param bandpass_type:
|
|
401
1031
|
: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
1032
|
:param type:
|
|
409
1033
|
:type type: ObservationType
|
|
410
1034
|
:param depth_value:
|
|
@@ -413,6 +1037,12 @@ class ObservationApi:
|
|
|
413
1037
|
:type depth_unit: DepthUnit
|
|
414
1038
|
:param include_footprints:
|
|
415
1039
|
:type include_footprints: bool
|
|
1040
|
+
:param cone_search_ra:
|
|
1041
|
+
:type cone_search_ra: float
|
|
1042
|
+
:param cone_search_dec:
|
|
1043
|
+
:type cone_search_dec: float
|
|
1044
|
+
:param cone_search_radius:
|
|
1045
|
+
:type cone_search_radius: float
|
|
416
1046
|
:param _request_timeout: timeout setting for this request. If one
|
|
417
1047
|
number provided, it will be total request
|
|
418
1048
|
timeout. It can also be a pair (tuple) of
|
|
@@ -451,13 +1081,13 @@ class ObservationApi:
|
|
|
451
1081
|
bandpass_min=bandpass_min,
|
|
452
1082
|
bandpass_max=bandpass_max,
|
|
453
1083
|
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
1084
|
type=type,
|
|
458
1085
|
depth_value=depth_value,
|
|
459
1086
|
depth_unit=depth_unit,
|
|
460
1087
|
include_footprints=include_footprints,
|
|
1088
|
+
cone_search_ra=cone_search_ra,
|
|
1089
|
+
cone_search_dec=cone_search_dec,
|
|
1090
|
+
cone_search_radius=cone_search_radius,
|
|
461
1091
|
_request_auth=_request_auth,
|
|
462
1092
|
_content_type=_content_type,
|
|
463
1093
|
_headers=_headers,
|
|
@@ -498,13 +1128,13 @@ class ObservationApi:
|
|
|
498
1128
|
bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
499
1129
|
bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
500
1130
|
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
1131
|
type: Optional[ObservationType] = None,
|
|
505
1132
|
depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
506
1133
|
depth_unit: Optional[DepthUnit] = None,
|
|
507
1134
|
include_footprints: Optional[StrictBool] = None,
|
|
1135
|
+
cone_search_ra: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = None,
|
|
1136
|
+
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,
|
|
1137
|
+
cone_search_radius: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
508
1138
|
_request_timeout: Union[
|
|
509
1139
|
None,
|
|
510
1140
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -552,12 +1182,6 @@ class ObservationApi:
|
|
|
552
1182
|
:type bandpass_max: float
|
|
553
1183
|
:param bandpass_type:
|
|
554
1184
|
: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
1185
|
:param type:
|
|
562
1186
|
:type type: ObservationType
|
|
563
1187
|
:param depth_value:
|
|
@@ -566,6 +1190,12 @@ class ObservationApi:
|
|
|
566
1190
|
:type depth_unit: DepthUnit
|
|
567
1191
|
:param include_footprints:
|
|
568
1192
|
:type include_footprints: bool
|
|
1193
|
+
:param cone_search_ra:
|
|
1194
|
+
:type cone_search_ra: float
|
|
1195
|
+
:param cone_search_dec:
|
|
1196
|
+
:type cone_search_dec: float
|
|
1197
|
+
:param cone_search_radius:
|
|
1198
|
+
:type cone_search_radius: float
|
|
569
1199
|
:param _request_timeout: timeout setting for this request. If one
|
|
570
1200
|
number provided, it will be total request
|
|
571
1201
|
timeout. It can also be a pair (tuple) of
|
|
@@ -604,13 +1234,13 @@ class ObservationApi:
|
|
|
604
1234
|
bandpass_min=bandpass_min,
|
|
605
1235
|
bandpass_max=bandpass_max,
|
|
606
1236
|
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
1237
|
type=type,
|
|
611
1238
|
depth_value=depth_value,
|
|
612
1239
|
depth_unit=depth_unit,
|
|
613
1240
|
include_footprints=include_footprints,
|
|
1241
|
+
cone_search_ra=cone_search_ra,
|
|
1242
|
+
cone_search_dec=cone_search_dec,
|
|
1243
|
+
cone_search_radius=cone_search_radius,
|
|
614
1244
|
_request_auth=_request_auth,
|
|
615
1245
|
_content_type=_content_type,
|
|
616
1246
|
_headers=_headers,
|
|
@@ -651,13 +1281,13 @@ class ObservationApi:
|
|
|
651
1281
|
bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
652
1282
|
bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
653
1283
|
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
1284
|
type: Optional[ObservationType] = None,
|
|
658
1285
|
depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
659
1286
|
depth_unit: Optional[DepthUnit] = None,
|
|
660
1287
|
include_footprints: Optional[StrictBool] = None,
|
|
1288
|
+
cone_search_ra: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = None,
|
|
1289
|
+
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,
|
|
1290
|
+
cone_search_radius: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
661
1291
|
_request_timeout: Union[
|
|
662
1292
|
None,
|
|
663
1293
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -705,12 +1335,6 @@ class ObservationApi:
|
|
|
705
1335
|
:type bandpass_max: float
|
|
706
1336
|
:param bandpass_type:
|
|
707
1337
|
: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
1338
|
:param type:
|
|
715
1339
|
:type type: ObservationType
|
|
716
1340
|
:param depth_value:
|
|
@@ -719,6 +1343,12 @@ class ObservationApi:
|
|
|
719
1343
|
:type depth_unit: DepthUnit
|
|
720
1344
|
:param include_footprints:
|
|
721
1345
|
:type include_footprints: bool
|
|
1346
|
+
:param cone_search_ra:
|
|
1347
|
+
:type cone_search_ra: float
|
|
1348
|
+
:param cone_search_dec:
|
|
1349
|
+
:type cone_search_dec: float
|
|
1350
|
+
:param cone_search_radius:
|
|
1351
|
+
:type cone_search_radius: float
|
|
722
1352
|
:param _request_timeout: timeout setting for this request. If one
|
|
723
1353
|
number provided, it will be total request
|
|
724
1354
|
timeout. It can also be a pair (tuple) of
|
|
@@ -757,13 +1387,13 @@ class ObservationApi:
|
|
|
757
1387
|
bandpass_min=bandpass_min,
|
|
758
1388
|
bandpass_max=bandpass_max,
|
|
759
1389
|
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
1390
|
type=type,
|
|
764
1391
|
depth_value=depth_value,
|
|
765
1392
|
depth_unit=depth_unit,
|
|
766
1393
|
include_footprints=include_footprints,
|
|
1394
|
+
cone_search_ra=cone_search_ra,
|
|
1395
|
+
cone_search_dec=cone_search_dec,
|
|
1396
|
+
cone_search_radius=cone_search_radius,
|
|
767
1397
|
_request_auth=_request_auth,
|
|
768
1398
|
_content_type=_content_type,
|
|
769
1399
|
_headers=_headers,
|
|
@@ -799,13 +1429,13 @@ class ObservationApi:
|
|
|
799
1429
|
bandpass_min,
|
|
800
1430
|
bandpass_max,
|
|
801
1431
|
bandpass_type,
|
|
802
|
-
cone_search_ra,
|
|
803
|
-
cone_search_dec,
|
|
804
|
-
cone_search_radius,
|
|
805
1432
|
type,
|
|
806
1433
|
depth_value,
|
|
807
1434
|
depth_unit,
|
|
808
1435
|
include_footprints,
|
|
1436
|
+
cone_search_ra,
|
|
1437
|
+
cone_search_dec,
|
|
1438
|
+
cone_search_radius,
|
|
809
1439
|
_request_auth,
|
|
810
1440
|
_content_type,
|
|
811
1441
|
_headers,
|
|
@@ -910,18 +1540,6 @@ class ObservationApi:
|
|
|
910
1540
|
|
|
911
1541
|
_query_params.append(('bandpass_type', bandpass_type))
|
|
912
1542
|
|
|
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))
|
|
924
|
-
|
|
925
1543
|
if type is not None:
|
|
926
1544
|
|
|
927
1545
|
_query_params.append(('type', type.value))
|
|
@@ -938,6 +1556,18 @@ class ObservationApi:
|
|
|
938
1556
|
|
|
939
1557
|
_query_params.append(('include_footprints', include_footprints))
|
|
940
1558
|
|
|
1559
|
+
if cone_search_ra is not None:
|
|
1560
|
+
|
|
1561
|
+
_query_params.append(('cone_search_ra', cone_search_ra))
|
|
1562
|
+
|
|
1563
|
+
if cone_search_dec is not None:
|
|
1564
|
+
|
|
1565
|
+
_query_params.append(('cone_search_dec', cone_search_dec))
|
|
1566
|
+
|
|
1567
|
+
if cone_search_radius is not None:
|
|
1568
|
+
|
|
1569
|
+
_query_params.append(('cone_search_radius', cone_search_radius))
|
|
1570
|
+
|
|
941
1571
|
# process the header parameters
|
|
942
1572
|
# process the form parameters
|
|
943
1573
|
# process the body parameter
|