udl-sdk 0.1.0a16__py3-none-any.whl → 0.1.0a18__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.
- {udl_sdk-0.1.0a16.dist-info → udl_sdk-0.1.0a18.dist-info}/METADATA +1 -1
- {udl_sdk-0.1.0a16.dist-info → udl_sdk-0.1.0a18.dist-info}/RECORD +136 -129
- unifieddatalibrary/_client.py +113 -82
- unifieddatalibrary/_version.py +1 -1
- unifieddatalibrary/resources/__init__.py +28 -84
- unifieddatalibrary/resources/air_operations/__init__.py +0 -14
- unifieddatalibrary/resources/air_operations/air_operations.py +0 -32
- unifieddatalibrary/resources/air_operations/aircraft_sorties.py +1507 -37
- unifieddatalibrary/resources/air_operations/crewpapers.py +4 -4
- unifieddatalibrary/resources/airload_plans.py +1311 -59
- unifieddatalibrary/resources/attitude_sets/attitude_sets.py +106 -0
- unifieddatalibrary/resources/conjunctions/conjunctions.py +4 -4
- unifieddatalibrary/resources/gnss_raw_if/gnss_raw_if.py +801 -0
- unifieddatalibrary/resources/iono_observations/__init__.py +33 -0
- unifieddatalibrary/resources/{iono_observation → iono_observations}/history.py +2 -2
- unifieddatalibrary/resources/{ion_oobservation.py → iono_observations/iono_observations.py} +123 -91
- unifieddatalibrary/resources/logistics_support/logistics_support.py +5 -4
- unifieddatalibrary/resources/onorbitantenna.py +5 -4
- unifieddatalibrary/resources/onorbitbattery.py +5 -4
- unifieddatalibrary/resources/onorbitsolararray.py +5 -4
- unifieddatalibrary/resources/onorbitthruster.py +5 -4
- unifieddatalibrary/resources/{report_and_activity → report_and_activities}/__init__.py +13 -13
- unifieddatalibrary/resources/{report_and_activity → report_and_activities}/poi/history.py +2 -2
- unifieddatalibrary/resources/{report_and_activity/report_and_activity.py → report_and_activities/report_and_activities.py} +35 -35
- unifieddatalibrary/resources/{report_and_activity → report_and_activities}/udl_h3geo.py +1 -1
- unifieddatalibrary/resources/{report_and_activity → report_and_activities}/udl_sigact.py +1 -1
- unifieddatalibrary/resources/scs/paths.py +4 -4
- unifieddatalibrary/resources/scs/scs.py +4 -4
- unifieddatalibrary/resources/scs/v2.py +4 -4
- unifieddatalibrary/resources/status.py +5 -4
- unifieddatalibrary/resources/supporting_data/__init__.py +0 -42
- unifieddatalibrary/resources/supporting_data/dataowner.py +257 -1
- unifieddatalibrary/resources/supporting_data/supporting_data.py +0 -96
- unifieddatalibrary/resources/track_route/track_route.py +26 -23
- unifieddatalibrary/types/__init__.py +40 -30
- unifieddatalibrary/types/air_operations/__init__.py +12 -12
- unifieddatalibrary/types/air_operations/{aircraft_sortie_list_params.py → aircraft_sorty_count_params.py} +2 -2
- unifieddatalibrary/types/air_operations/aircraft_sorty_count_response.py +7 -0
- unifieddatalibrary/types/air_operations/{aircraft_sortie_create_bulk_params.py → aircraft_sorty_create_bulk_params.py} +2 -2
- unifieddatalibrary/types/air_operations/{aircraft_sortie_create_params.py → aircraft_sorty_create_params.py} +2 -2
- unifieddatalibrary/types/air_operations/{aircraft_sortie_history_aodr_params.py → aircraft_sorty_history_aodr_params.py} +2 -2
- unifieddatalibrary/types/air_operations/{aircraft_sortie_history_count_params.py → aircraft_sorty_history_count_params.py} +2 -2
- unifieddatalibrary/types/{ion_oobservation_count_response.py → air_operations/aircraft_sorty_history_count_response.py} +2 -2
- unifieddatalibrary/types/air_operations/{aircraft_sortie_history_query_params.py → aircraft_sorty_history_query_params.py} +2 -2
- unifieddatalibrary/types/air_operations/{aircraft_sortie_history_query_response.py → aircraft_sorty_history_query_response.py} +2 -2
- unifieddatalibrary/types/air_operations/{aircraft_sortie_count_params.py → aircraft_sorty_list_params.py} +2 -2
- unifieddatalibrary/types/{air_load_plan_count_params.py → airload_plan_count_params.py} +2 -2
- unifieddatalibrary/types/{air_load_plan_count_response.py → airload_plan_count_response.py} +2 -2
- unifieddatalibrary/types/{air_load_plan_create_params.py → airload_plan_create_params.py} +2 -2
- unifieddatalibrary/types/{air_load_plan_list_params.py → airload_plan_list_params.py} +2 -2
- unifieddatalibrary/types/{air_load_plan_queryhelp_response.py → airload_plan_queryhelp_response.py} +2 -2
- unifieddatalibrary/types/{air_load_plan_retrieve_params.py → airload_plan_retrieve_params.py} +2 -2
- unifieddatalibrary/types/{air_load_plan_tuple_params.py → airload_plan_tuple_params.py} +2 -2
- unifieddatalibrary/types/{air_load_plan_tuple_response.py → airload_plan_tuple_response.py} +2 -2
- unifieddatalibrary/types/altitude_blocks_ingest_param.py +22 -0
- unifieddatalibrary/types/{attitudeset_retrieve_params.py → attitude_set_retrieve_params.py} +2 -2
- unifieddatalibrary/types/{gnss_rawif_count_params.py → gnss_raw_if_count_params.py} +2 -2
- unifieddatalibrary/types/{gnss_rawif_count_response.py → gnss_raw_if_count_response.py} +2 -2
- unifieddatalibrary/types/{gnss_rawif_file_get_params.py → gnss_raw_if_file_get_params.py} +2 -2
- unifieddatalibrary/types/{gnss_rawif_get_params.py → gnss_raw_if_get_params.py} +2 -2
- unifieddatalibrary/types/{gnss_rawif_get_response.py → gnss_raw_if_get_response.py} +2 -2
- unifieddatalibrary/types/{gnss_rawif_list_params.py → gnss_raw_if_list_params.py} +2 -2
- unifieddatalibrary/types/{gnss_rawif_list_response.py → gnss_raw_if_list_response.py} +2 -2
- unifieddatalibrary/types/{gnss_rawif_queryhelp_response.py → gnss_raw_if_queryhelp_response.py} +2 -2
- unifieddatalibrary/types/{gnss_rawif_tuple_params.py → gnss_raw_if_tuple_params.py} +2 -2
- unifieddatalibrary/types/{gnss_rawif_tuple_response.py → gnss_raw_if_tuple_response.py} +3 -3
- unifieddatalibrary/types/{gnss_rawif_upload_zip_params.py → gnss_raw_if_upload_zip_params.py} +2 -2
- unifieddatalibrary/types/{ion_oobservation_count_params.py → iono_observation_count_params.py} +2 -2
- unifieddatalibrary/types/{air_operations/aircraft_sortie_count_response.py → iono_observation_count_response.py} +2 -2
- unifieddatalibrary/types/{ion_oobservation_create_bulk_params.py → iono_observation_create_bulk_params.py} +2 -2
- unifieddatalibrary/types/{ion_oobservation_list_params.py → iono_observation_list_params.py} +2 -2
- unifieddatalibrary/types/{ion_oobservation_list_response.py → iono_observation_list_response.py} +2 -2
- unifieddatalibrary/types/{ion_oobservation_queryhelp_response.py → iono_observation_queryhelp_response.py} +2 -2
- unifieddatalibrary/types/{ion_oobservation_tuple_params.py → iono_observation_tuple_params.py} +2 -2
- unifieddatalibrary/types/{ion_oobservation_tuple_response.py → iono_observation_tuple_response.py} +82 -82
- unifieddatalibrary/types/{ion_oobservation_unvalidated_publish_params.py → iono_observation_unvalidated_publish_params.py} +2 -2
- unifieddatalibrary/types/logistics_remarks_ingest_param.py +25 -0
- unifieddatalibrary/types/logistics_support_create_bulk_params.py +4 -51
- unifieddatalibrary/types/logistics_support_create_params.py +4 -49
- unifieddatalibrary/types/logistics_support_unvalidated_publish_params.py +4 -51
- unifieddatalibrary/types/logistics_support_update_params.py +4 -49
- unifieddatalibrary/types/onorbitantenna_create_params.py +3 -38
- unifieddatalibrary/types/onorbitantenna_update_params.py +3 -38
- unifieddatalibrary/types/onorbitbattery_create_params.py +3 -38
- unifieddatalibrary/types/onorbitbattery_update_params.py +3 -38
- unifieddatalibrary/types/onorbitsolararray_create_params.py +3 -38
- unifieddatalibrary/types/onorbitsolararray_update_params.py +3 -38
- unifieddatalibrary/types/onorbitthruster_create_params.py +3 -41
- unifieddatalibrary/types/onorbitthruster_update_params.py +3 -41
- unifieddatalibrary/types/point_of_contact_ingest_param.py +41 -0
- unifieddatalibrary/types/route_points_ingest_param.py +82 -0
- unifieddatalibrary/types/shared/__init__.py +5 -0
- unifieddatalibrary/types/shared/antenna_ingest.py +62 -0
- unifieddatalibrary/types/shared/battery_ingest.py +62 -0
- unifieddatalibrary/types/shared/engine_ingest.py +65 -0
- unifieddatalibrary/types/shared/solar_array_ingest.py +62 -0
- unifieddatalibrary/types/shared/sub_status_ingest.py +74 -0
- unifieddatalibrary/types/shared_params/__init__.py +5 -0
- unifieddatalibrary/types/shared_params/antenna_ingest.py +45 -0
- unifieddatalibrary/types/shared_params/battery_ingest.py +45 -0
- unifieddatalibrary/types/shared_params/engine_ingest.py +48 -0
- unifieddatalibrary/types/shared_params/solar_array_ingest.py +45 -0
- unifieddatalibrary/types/shared_params/sub_status_ingest.py +57 -0
- unifieddatalibrary/types/status_create_params.py +3 -50
- unifieddatalibrary/types/status_update_params.py +3 -50
- unifieddatalibrary/types/supporting_data/__init__.py +13 -5
- unifieddatalibrary/types/supporting_data/{query_help_retrieve_response.py → dataowner_query_help_response.py} +2 -2
- unifieddatalibrary/types/supporting_data/{dataowner_type_list_params.py → dataowner_retrieve_data_owner_types_params.py} +2 -2
- unifieddatalibrary/types/supporting_data/dataowner_retrieve_data_owner_types_response.py +8 -0
- unifieddatalibrary/types/supporting_data/{provider_metadata_retrieve_params.py → dataowner_retrieve_provider_metadata_params.py} +2 -2
- unifieddatalibrary/types/supporting_data/{provider_metadata_retrieve_response.py → dataowner_retrieve_provider_metadata_response.py} +2 -2
- unifieddatalibrary/types/track_route_create_bulk_params.py +5 -267
- unifieddatalibrary/types/track_route_create_params.py +7 -122
- unifieddatalibrary/types/track_route_ingest_param.py +157 -0
- unifieddatalibrary/types/track_route_unvalidated_publish_params.py +7 -122
- unifieddatalibrary/types/track_route_update_params.py +7 -122
- unifieddatalibrary/resources/air_load_plans.py +0 -1341
- unifieddatalibrary/resources/air_operations/aircraft_sortie.py +0 -1557
- unifieddatalibrary/resources/attitudesets.py +0 -191
- unifieddatalibrary/resources/gnss_rawif.py +0 -871
- unifieddatalibrary/resources/iono_observation/__init__.py +0 -33
- unifieddatalibrary/resources/iono_observation/iono_observation.py +0 -102
- unifieddatalibrary/resources/supporting_data/dataowner_types.py +0 -186
- unifieddatalibrary/resources/supporting_data/provider_metadata.py +0 -179
- unifieddatalibrary/resources/supporting_data/query_help.py +0 -141
- unifieddatalibrary/types/air_operations/aircraft_sortie_history_count_response.py +0 -7
- unifieddatalibrary/types/supporting_data/dataowner_type_list_response.py +0 -7
- {udl_sdk-0.1.0a16.dist-info → udl_sdk-0.1.0a18.dist-info}/WHEEL +0 -0
- {udl_sdk-0.1.0a16.dist-info → udl_sdk-0.1.0a18.dist-info}/licenses/LICENSE +0 -0
- /unifieddatalibrary/resources/{report_and_activity → report_and_activities}/poi/__init__.py +0 -0
- /unifieddatalibrary/resources/{report_and_activity → report_and_activities}/poi/poi.py +0 -0
- /unifieddatalibrary/types/{iono_observation → iono_observations}/__init__.py +0 -0
- /unifieddatalibrary/types/{iono_observation → iono_observations}/history_aodr_params.py +0 -0
- /unifieddatalibrary/types/{iono_observation → iono_observations}/history_count_params.py +0 -0
- /unifieddatalibrary/types/{iono_observation → iono_observations}/history_count_response.py +0 -0
- /unifieddatalibrary/types/{iono_observation → iono_observations}/history_list_params.py +0 -0
- /unifieddatalibrary/types/{iono_observation → iono_observations}/history_list_response.py +0 -0
- /unifieddatalibrary/types/{report_and_activity → report_and_activities}/__init__.py +0 -0
- /unifieddatalibrary/types/{report_and_activity → report_and_activities}/poi/__init__.py +0 -0
- /unifieddatalibrary/types/{report_and_activity → report_and_activities}/poi/history_aodr_params.py +0 -0
- /unifieddatalibrary/types/{report_and_activity → report_and_activities}/poi/history_count_params.py +0 -0
- /unifieddatalibrary/types/{report_and_activity → report_and_activities}/poi/history_count_response.py +0 -0
- /unifieddatalibrary/types/{report_and_activity → report_and_activities}/poi/history_list_params.py +0 -0
- /unifieddatalibrary/types/{report_and_activity → report_and_activities}/poi/history_list_response.py +0 -0
- /unifieddatalibrary/types/{report_and_activity → report_and_activities}/udl_h3geo_unvalidated_publish_params.py +0 -0
- /unifieddatalibrary/types/{report_and_activity → report_and_activities}/udl_sigact_file_get_params.py +0 -0
- /unifieddatalibrary/types/{report_and_activity → report_and_activities}/udl_sigact_unvalidated_publish_params.py +0 -0
unifieddatalibrary/_client.py
CHANGED
@@ -14,6 +14,7 @@ from ._qs import Querystring
|
|
14
14
|
from ._types import (
|
15
15
|
NOT_GIVEN,
|
16
16
|
Omit,
|
17
|
+
Headers,
|
17
18
|
Timeout,
|
18
19
|
NotGiven,
|
19
20
|
Transport,
|
@@ -54,7 +55,6 @@ from .resources import (
|
|
54
55
|
substatus,
|
55
56
|
air_events,
|
56
57
|
flightplan,
|
57
|
-
gnss_rawif,
|
58
58
|
navigation,
|
59
59
|
rf_emitter,
|
60
60
|
scientific,
|
@@ -66,7 +66,6 @@ from .resources import (
|
|
66
66
|
site_remark,
|
67
67
|
solar_array,
|
68
68
|
transponder,
|
69
|
-
attitudesets,
|
70
69
|
onorbitevent,
|
71
70
|
organization,
|
72
71
|
rf_band_type,
|
@@ -76,7 +75,6 @@ from .resources import (
|
|
76
75
|
drift_history,
|
77
76
|
manifoldelset,
|
78
77
|
operatingunit,
|
79
|
-
air_load_plans,
|
80
78
|
airfield_slots,
|
81
79
|
batterydetails,
|
82
80
|
engine_details,
|
@@ -88,7 +86,6 @@ from .resources import (
|
|
88
86
|
onorbitthruster,
|
89
87
|
aircraft_sorties,
|
90
88
|
analytic_imagery,
|
91
|
-
ion_oobservation,
|
92
89
|
launch_detection,
|
93
90
|
secure_messaging,
|
94
91
|
equipment_remarks,
|
@@ -117,7 +114,7 @@ from .resources import (
|
|
117
114
|
seradata_spacecraft_details,
|
118
115
|
)
|
119
116
|
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
|
120
|
-
from ._exceptions import APIStatusError
|
117
|
+
from ._exceptions import APIStatusError
|
121
118
|
from ._base_client import (
|
122
119
|
DEFAULT_MAX_RETRIES,
|
123
120
|
SyncAPIClient,
|
@@ -176,10 +173,10 @@ from .resources.sar_observation import sar_observation
|
|
176
173
|
from .resources.supporting_data import supporting_data
|
177
174
|
from .resources.collect_requests import collect_requests
|
178
175
|
from .resources.effect_responses import effect_responses
|
179
|
-
from .resources.iono_observation import iono_observation
|
180
176
|
from .resources.aircraft_statuses import aircraft_statuses
|
181
177
|
from .resources.collect_responses import collect_responses
|
182
178
|
from .resources.gnss_observations import gnss_observations
|
179
|
+
from .resources.iono_observations import iono_observations
|
183
180
|
from .resources.logistics_support import logistics_support
|
184
181
|
from .resources.onboardnavigation import onboardnavigation
|
185
182
|
from .resources.personnelrecovery import personnelrecovery
|
@@ -188,10 +185,10 @@ from .resources.mission_assignment import mission_assignment
|
|
188
185
|
from .resources.orbitdetermination import orbitdetermination
|
189
186
|
from .resources.sensor_maintenance import sensor_maintenance
|
190
187
|
from .resources.gnss_observationset import gnss_observationset
|
191
|
-
from .resources.report_and_activity import report_and_activity
|
192
188
|
from .resources.soi_observation_set import soi_observation_set
|
193
189
|
from .resources.diplomatic_clearance import diplomatic_clearance
|
194
190
|
from .resources.onorbitthrusterstatus import onorbitthrusterstatus
|
191
|
+
from .resources.report_and_activities import report_and_activities
|
195
192
|
from .resources.space_env_observation import space_env_observation
|
196
193
|
from .resources.air_transport_missions import air_transport_missions
|
197
194
|
from .resources.global_atmospheric_model import global_atmospheric_model
|
@@ -210,7 +207,6 @@ __all__ = [
|
|
210
207
|
|
211
208
|
class Unifieddatalibrary(SyncAPIClient):
|
212
209
|
air_events: air_events.AirEventsResource
|
213
|
-
air_load_plans: air_load_plans.AirLoadPlansResource
|
214
210
|
air_operations: air_operations.AirOperationsResource
|
215
211
|
air_transport_missions: air_transport_missions.AirTransportMissionsResource
|
216
212
|
aircraft: aircraft.AircraftResource
|
@@ -229,7 +225,6 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
229
225
|
antennas: antennas.AntennasResource
|
230
226
|
attitude_data: attitude_data.AttitudeDataResource
|
231
227
|
attitude_sets: attitude_sets.AttitudeSetsResource
|
232
|
-
attitudesets: attitudesets.AttitudesetsResource
|
233
228
|
batteries: batteries.BatteriesResource
|
234
229
|
batterydetails: batterydetails.BatterydetailsResource
|
235
230
|
beam: beam.BeamResource
|
@@ -269,12 +264,10 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
269
264
|
flightplan: flightplan.FlightplanResource
|
270
265
|
geo_status: geo_status.GeoStatusResource
|
271
266
|
gnss_observationset: gnss_observationset.GnssObservationsetResource
|
272
|
-
gnss_rawif: gnss_rawif.GnssRawifResource
|
273
267
|
ground_imagery: ground_imagery.GroundImageryResource
|
274
268
|
h3_geo: h3_geo.H3GeoResource
|
275
269
|
h3_geo_hex_cell: h3_geo_hex_cell.H3GeoHexCellResource
|
276
270
|
hazard: hazard.HazardResource
|
277
|
-
ion_oobservation: ion_oobservation.IonOobservationResource
|
278
271
|
ir: ir.IrResource
|
279
272
|
isr_collections: isr_collections.IsrCollectionsResource
|
280
273
|
item: item.ItemResource
|
@@ -368,8 +361,8 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
368
361
|
weather_report: weather_report.WeatherReportResource
|
369
362
|
gnss_observations: gnss_observations.GnssObservationsResource
|
370
363
|
gnss_raw_if: gnss_raw_if.GnssRawIfResource
|
371
|
-
|
372
|
-
|
364
|
+
iono_observations: iono_observations.IonoObservationsResource
|
365
|
+
report_and_activities: report_and_activities.ReportAndActivitiesResource
|
373
366
|
secure_messaging: secure_messaging.SecureMessagingResource
|
374
367
|
scs: scs.ScsResource
|
375
368
|
scs_views: scs_views.ScsViewsResource
|
@@ -377,14 +370,16 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
377
370
|
with_streaming_response: UnifieddatalibraryWithStreamedResponse
|
378
371
|
|
379
372
|
# client options
|
380
|
-
password: str
|
381
|
-
username: str
|
373
|
+
password: str | None
|
374
|
+
username: str | None
|
375
|
+
access_token: str | None
|
382
376
|
|
383
377
|
def __init__(
|
384
378
|
self,
|
385
379
|
*,
|
386
380
|
password: str | None = None,
|
387
381
|
username: str | None = None,
|
382
|
+
access_token: str | None = None,
|
388
383
|
base_url: str | httpx.URL | None = None,
|
389
384
|
timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
|
390
385
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
@@ -409,23 +404,20 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
409
404
|
This automatically infers the following arguments from their corresponding environment variables if they are not provided:
|
410
405
|
- `password` from `UDL_AUTH_PASSWORD`
|
411
406
|
- `username` from `UDL_AUTH_USERNAME`
|
407
|
+
- `access_token` from `UDL_ACCESS_TOKEN`
|
412
408
|
"""
|
413
409
|
if password is None:
|
414
410
|
password = os.environ.get("UDL_AUTH_PASSWORD")
|
415
|
-
if password is None:
|
416
|
-
raise UnifieddatalibraryError(
|
417
|
-
"The password client option must be set either by passing password to the client or by setting the UDL_AUTH_PASSWORD environment variable"
|
418
|
-
)
|
419
411
|
self.password = password
|
420
412
|
|
421
413
|
if username is None:
|
422
414
|
username = os.environ.get("UDL_AUTH_USERNAME")
|
423
|
-
if username is None:
|
424
|
-
raise UnifieddatalibraryError(
|
425
|
-
"The username client option must be set either by passing username to the client or by setting the UDL_AUTH_USERNAME environment variable"
|
426
|
-
)
|
427
415
|
self.username = username
|
428
416
|
|
417
|
+
if access_token is None:
|
418
|
+
access_token = os.environ.get("UDL_ACCESS_TOKEN")
|
419
|
+
self.access_token = access_token
|
420
|
+
|
429
421
|
if base_url is None:
|
430
422
|
base_url = os.environ.get("UNIFIEDDATALIBRARY_BASE_URL")
|
431
423
|
self._base_url_overridden = base_url is not None
|
@@ -444,7 +436,6 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
444
436
|
)
|
445
437
|
|
446
438
|
self.air_events = air_events.AirEventsResource(self)
|
447
|
-
self.air_load_plans = air_load_plans.AirLoadPlansResource(self)
|
448
439
|
self.air_operations = air_operations.AirOperationsResource(self)
|
449
440
|
self.air_transport_missions = air_transport_missions.AirTransportMissionsResource(self)
|
450
441
|
self.aircraft = aircraft.AircraftResource(self)
|
@@ -463,7 +454,6 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
463
454
|
self.antennas = antennas.AntennasResource(self)
|
464
455
|
self.attitude_data = attitude_data.AttitudeDataResource(self)
|
465
456
|
self.attitude_sets = attitude_sets.AttitudeSetsResource(self)
|
466
|
-
self.attitudesets = attitudesets.AttitudesetsResource(self)
|
467
457
|
self.batteries = batteries.BatteriesResource(self)
|
468
458
|
self.batterydetails = batterydetails.BatterydetailsResource(self)
|
469
459
|
self.beam = beam.BeamResource(self)
|
@@ -503,12 +493,10 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
503
493
|
self.flightplan = flightplan.FlightplanResource(self)
|
504
494
|
self.geo_status = geo_status.GeoStatusResource(self)
|
505
495
|
self.gnss_observationset = gnss_observationset.GnssObservationsetResource(self)
|
506
|
-
self.gnss_rawif = gnss_rawif.GnssRawifResource(self)
|
507
496
|
self.ground_imagery = ground_imagery.GroundImageryResource(self)
|
508
497
|
self.h3_geo = h3_geo.H3GeoResource(self)
|
509
498
|
self.h3_geo_hex_cell = h3_geo_hex_cell.H3GeoHexCellResource(self)
|
510
499
|
self.hazard = hazard.HazardResource(self)
|
511
|
-
self.ion_oobservation = ion_oobservation.IonOobservationResource(self)
|
512
500
|
self.ir = ir.IrResource(self)
|
513
501
|
self.isr_collections = isr_collections.IsrCollectionsResource(self)
|
514
502
|
self.item = item.ItemResource(self)
|
@@ -602,8 +590,8 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
602
590
|
self.weather_report = weather_report.WeatherReportResource(self)
|
603
591
|
self.gnss_observations = gnss_observations.GnssObservationsResource(self)
|
604
592
|
self.gnss_raw_if = gnss_raw_if.GnssRawIfResource(self)
|
605
|
-
self.
|
606
|
-
self.
|
593
|
+
self.iono_observations = iono_observations.IonoObservationsResource(self)
|
594
|
+
self.report_and_activities = report_and_activities.ReportAndActivitiesResource(self)
|
607
595
|
self.secure_messaging = secure_messaging.SecureMessagingResource(self)
|
608
596
|
self.scs = scs.ScsResource(self)
|
609
597
|
self.scs_views = scs_views.ScsViewsResource(self)
|
@@ -618,10 +606,25 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
618
606
|
@property
|
619
607
|
@override
|
620
608
|
def auth_headers(self) -> dict[str, str]:
|
609
|
+
return {**self._basic_auth, **self._bearer_auth}
|
610
|
+
|
611
|
+
@property
|
612
|
+
def _basic_auth(self) -> dict[str, str]:
|
613
|
+
if self.username is None:
|
614
|
+
return {}
|
615
|
+
if self.password is None:
|
616
|
+
return {}
|
621
617
|
credentials = f"{self.username}:{self.password}".encode("ascii")
|
622
618
|
header = f"Basic {base64.b64encode(credentials).decode('ascii')}"
|
623
619
|
return {"Authorization": header}
|
624
620
|
|
621
|
+
@property
|
622
|
+
def _bearer_auth(self) -> dict[str, str]:
|
623
|
+
access_token = self.access_token
|
624
|
+
if access_token is None:
|
625
|
+
return {}
|
626
|
+
return {"Authorization": f"Bearer {access_token}"}
|
627
|
+
|
625
628
|
@property
|
626
629
|
@override
|
627
630
|
def default_headers(self) -> dict[str, str | Omit]:
|
@@ -631,11 +634,28 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
631
634
|
**self._custom_headers,
|
632
635
|
}
|
633
636
|
|
637
|
+
@override
|
638
|
+
def _validate_headers(self, headers: Headers, custom_headers: Headers) -> None:
|
639
|
+
if self.username and self.password and headers.get("Authorization"):
|
640
|
+
return
|
641
|
+
if isinstance(custom_headers.get("Authorization"), Omit):
|
642
|
+
return
|
643
|
+
|
644
|
+
if self.access_token and headers.get("Authorization"):
|
645
|
+
return
|
646
|
+
if isinstance(custom_headers.get("Authorization"), Omit):
|
647
|
+
return
|
648
|
+
|
649
|
+
raise TypeError(
|
650
|
+
'"Could not resolve authentication method. Expected either username, password or access_token to be set. Or for one of the `Authorization` or `Authorization` headers to be explicitly omitted"'
|
651
|
+
)
|
652
|
+
|
634
653
|
def copy(
|
635
654
|
self,
|
636
655
|
*,
|
637
656
|
password: str | None = None,
|
638
657
|
username: str | None = None,
|
658
|
+
access_token: str | None = None,
|
639
659
|
base_url: str | httpx.URL | None = None,
|
640
660
|
timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
|
641
661
|
http_client: httpx.Client | None = None,
|
@@ -671,6 +691,7 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
671
691
|
client = self.__class__(
|
672
692
|
password=password or self.password,
|
673
693
|
username=username or self.username,
|
694
|
+
access_token=access_token or self.access_token,
|
674
695
|
base_url=base_url or self.base_url,
|
675
696
|
timeout=self.timeout if isinstance(timeout, NotGiven) else timeout,
|
676
697
|
http_client=http_client,
|
@@ -722,7 +743,6 @@ class Unifieddatalibrary(SyncAPIClient):
|
|
722
743
|
|
723
744
|
class AsyncUnifieddatalibrary(AsyncAPIClient):
|
724
745
|
air_events: air_events.AsyncAirEventsResource
|
725
|
-
air_load_plans: air_load_plans.AsyncAirLoadPlansResource
|
726
746
|
air_operations: air_operations.AsyncAirOperationsResource
|
727
747
|
air_transport_missions: air_transport_missions.AsyncAirTransportMissionsResource
|
728
748
|
aircraft: aircraft.AsyncAircraftResource
|
@@ -741,7 +761,6 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
741
761
|
antennas: antennas.AsyncAntennasResource
|
742
762
|
attitude_data: attitude_data.AsyncAttitudeDataResource
|
743
763
|
attitude_sets: attitude_sets.AsyncAttitudeSetsResource
|
744
|
-
attitudesets: attitudesets.AsyncAttitudesetsResource
|
745
764
|
batteries: batteries.AsyncBatteriesResource
|
746
765
|
batterydetails: batterydetails.AsyncBatterydetailsResource
|
747
766
|
beam: beam.AsyncBeamResource
|
@@ -781,12 +800,10 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
781
800
|
flightplan: flightplan.AsyncFlightplanResource
|
782
801
|
geo_status: geo_status.AsyncGeoStatusResource
|
783
802
|
gnss_observationset: gnss_observationset.AsyncGnssObservationsetResource
|
784
|
-
gnss_rawif: gnss_rawif.AsyncGnssRawifResource
|
785
803
|
ground_imagery: ground_imagery.AsyncGroundImageryResource
|
786
804
|
h3_geo: h3_geo.AsyncH3GeoResource
|
787
805
|
h3_geo_hex_cell: h3_geo_hex_cell.AsyncH3GeoHexCellResource
|
788
806
|
hazard: hazard.AsyncHazardResource
|
789
|
-
ion_oobservation: ion_oobservation.AsyncIonOobservationResource
|
790
807
|
ir: ir.AsyncIrResource
|
791
808
|
isr_collections: isr_collections.AsyncIsrCollectionsResource
|
792
809
|
item: item.AsyncItemResource
|
@@ -880,8 +897,8 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
880
897
|
weather_report: weather_report.AsyncWeatherReportResource
|
881
898
|
gnss_observations: gnss_observations.AsyncGnssObservationsResource
|
882
899
|
gnss_raw_if: gnss_raw_if.AsyncGnssRawIfResource
|
883
|
-
|
884
|
-
|
900
|
+
iono_observations: iono_observations.AsyncIonoObservationsResource
|
901
|
+
report_and_activities: report_and_activities.AsyncReportAndActivitiesResource
|
885
902
|
secure_messaging: secure_messaging.AsyncSecureMessagingResource
|
886
903
|
scs: scs.AsyncScsResource
|
887
904
|
scs_views: scs_views.AsyncScsViewsResource
|
@@ -889,14 +906,16 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
889
906
|
with_streaming_response: AsyncUnifieddatalibraryWithStreamedResponse
|
890
907
|
|
891
908
|
# client options
|
892
|
-
password: str
|
893
|
-
username: str
|
909
|
+
password: str | None
|
910
|
+
username: str | None
|
911
|
+
access_token: str | None
|
894
912
|
|
895
913
|
def __init__(
|
896
914
|
self,
|
897
915
|
*,
|
898
916
|
password: str | None = None,
|
899
917
|
username: str | None = None,
|
918
|
+
access_token: str | None = None,
|
900
919
|
base_url: str | httpx.URL | None = None,
|
901
920
|
timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
|
902
921
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
@@ -921,23 +940,20 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
921
940
|
This automatically infers the following arguments from their corresponding environment variables if they are not provided:
|
922
941
|
- `password` from `UDL_AUTH_PASSWORD`
|
923
942
|
- `username` from `UDL_AUTH_USERNAME`
|
943
|
+
- `access_token` from `UDL_ACCESS_TOKEN`
|
924
944
|
"""
|
925
945
|
if password is None:
|
926
946
|
password = os.environ.get("UDL_AUTH_PASSWORD")
|
927
|
-
if password is None:
|
928
|
-
raise UnifieddatalibraryError(
|
929
|
-
"The password client option must be set either by passing password to the client or by setting the UDL_AUTH_PASSWORD environment variable"
|
930
|
-
)
|
931
947
|
self.password = password
|
932
948
|
|
933
949
|
if username is None:
|
934
950
|
username = os.environ.get("UDL_AUTH_USERNAME")
|
935
|
-
if username is None:
|
936
|
-
raise UnifieddatalibraryError(
|
937
|
-
"The username client option must be set either by passing username to the client or by setting the UDL_AUTH_USERNAME environment variable"
|
938
|
-
)
|
939
951
|
self.username = username
|
940
952
|
|
953
|
+
if access_token is None:
|
954
|
+
access_token = os.environ.get("UDL_ACCESS_TOKEN")
|
955
|
+
self.access_token = access_token
|
956
|
+
|
941
957
|
if base_url is None:
|
942
958
|
base_url = os.environ.get("UNIFIEDDATALIBRARY_BASE_URL")
|
943
959
|
self._base_url_overridden = base_url is not None
|
@@ -956,7 +972,6 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
956
972
|
)
|
957
973
|
|
958
974
|
self.air_events = air_events.AsyncAirEventsResource(self)
|
959
|
-
self.air_load_plans = air_load_plans.AsyncAirLoadPlansResource(self)
|
960
975
|
self.air_operations = air_operations.AsyncAirOperationsResource(self)
|
961
976
|
self.air_transport_missions = air_transport_missions.AsyncAirTransportMissionsResource(self)
|
962
977
|
self.aircraft = aircraft.AsyncAircraftResource(self)
|
@@ -975,7 +990,6 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
975
990
|
self.antennas = antennas.AsyncAntennasResource(self)
|
976
991
|
self.attitude_data = attitude_data.AsyncAttitudeDataResource(self)
|
977
992
|
self.attitude_sets = attitude_sets.AsyncAttitudeSetsResource(self)
|
978
|
-
self.attitudesets = attitudesets.AsyncAttitudesetsResource(self)
|
979
993
|
self.batteries = batteries.AsyncBatteriesResource(self)
|
980
994
|
self.batterydetails = batterydetails.AsyncBatterydetailsResource(self)
|
981
995
|
self.beam = beam.AsyncBeamResource(self)
|
@@ -1015,12 +1029,10 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
1015
1029
|
self.flightplan = flightplan.AsyncFlightplanResource(self)
|
1016
1030
|
self.geo_status = geo_status.AsyncGeoStatusResource(self)
|
1017
1031
|
self.gnss_observationset = gnss_observationset.AsyncGnssObservationsetResource(self)
|
1018
|
-
self.gnss_rawif = gnss_rawif.AsyncGnssRawifResource(self)
|
1019
1032
|
self.ground_imagery = ground_imagery.AsyncGroundImageryResource(self)
|
1020
1033
|
self.h3_geo = h3_geo.AsyncH3GeoResource(self)
|
1021
1034
|
self.h3_geo_hex_cell = h3_geo_hex_cell.AsyncH3GeoHexCellResource(self)
|
1022
1035
|
self.hazard = hazard.AsyncHazardResource(self)
|
1023
|
-
self.ion_oobservation = ion_oobservation.AsyncIonOobservationResource(self)
|
1024
1036
|
self.ir = ir.AsyncIrResource(self)
|
1025
1037
|
self.isr_collections = isr_collections.AsyncIsrCollectionsResource(self)
|
1026
1038
|
self.item = item.AsyncItemResource(self)
|
@@ -1114,8 +1126,8 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
1114
1126
|
self.weather_report = weather_report.AsyncWeatherReportResource(self)
|
1115
1127
|
self.gnss_observations = gnss_observations.AsyncGnssObservationsResource(self)
|
1116
1128
|
self.gnss_raw_if = gnss_raw_if.AsyncGnssRawIfResource(self)
|
1117
|
-
self.
|
1118
|
-
self.
|
1129
|
+
self.iono_observations = iono_observations.AsyncIonoObservationsResource(self)
|
1130
|
+
self.report_and_activities = report_and_activities.AsyncReportAndActivitiesResource(self)
|
1119
1131
|
self.secure_messaging = secure_messaging.AsyncSecureMessagingResource(self)
|
1120
1132
|
self.scs = scs.AsyncScsResource(self)
|
1121
1133
|
self.scs_views = scs_views.AsyncScsViewsResource(self)
|
@@ -1130,10 +1142,25 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
1130
1142
|
@property
|
1131
1143
|
@override
|
1132
1144
|
def auth_headers(self) -> dict[str, str]:
|
1145
|
+
return {**self._basic_auth, **self._bearer_auth}
|
1146
|
+
|
1147
|
+
@property
|
1148
|
+
def _basic_auth(self) -> dict[str, str]:
|
1149
|
+
if self.username is None:
|
1150
|
+
return {}
|
1151
|
+
if self.password is None:
|
1152
|
+
return {}
|
1133
1153
|
credentials = f"{self.username}:{self.password}".encode("ascii")
|
1134
1154
|
header = f"Basic {base64.b64encode(credentials).decode('ascii')}"
|
1135
1155
|
return {"Authorization": header}
|
1136
1156
|
|
1157
|
+
@property
|
1158
|
+
def _bearer_auth(self) -> dict[str, str]:
|
1159
|
+
access_token = self.access_token
|
1160
|
+
if access_token is None:
|
1161
|
+
return {}
|
1162
|
+
return {"Authorization": f"Bearer {access_token}"}
|
1163
|
+
|
1137
1164
|
@property
|
1138
1165
|
@override
|
1139
1166
|
def default_headers(self) -> dict[str, str | Omit]:
|
@@ -1143,11 +1170,28 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
1143
1170
|
**self._custom_headers,
|
1144
1171
|
}
|
1145
1172
|
|
1173
|
+
@override
|
1174
|
+
def _validate_headers(self, headers: Headers, custom_headers: Headers) -> None:
|
1175
|
+
if self.username and self.password and headers.get("Authorization"):
|
1176
|
+
return
|
1177
|
+
if isinstance(custom_headers.get("Authorization"), Omit):
|
1178
|
+
return
|
1179
|
+
|
1180
|
+
if self.access_token and headers.get("Authorization"):
|
1181
|
+
return
|
1182
|
+
if isinstance(custom_headers.get("Authorization"), Omit):
|
1183
|
+
return
|
1184
|
+
|
1185
|
+
raise TypeError(
|
1186
|
+
'"Could not resolve authentication method. Expected either username, password or access_token to be set. Or for one of the `Authorization` or `Authorization` headers to be explicitly omitted"'
|
1187
|
+
)
|
1188
|
+
|
1146
1189
|
def copy(
|
1147
1190
|
self,
|
1148
1191
|
*,
|
1149
1192
|
password: str | None = None,
|
1150
1193
|
username: str | None = None,
|
1194
|
+
access_token: str | None = None,
|
1151
1195
|
base_url: str | httpx.URL | None = None,
|
1152
1196
|
timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
|
1153
1197
|
http_client: httpx.AsyncClient | None = None,
|
@@ -1183,6 +1227,7 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
1183
1227
|
client = self.__class__(
|
1184
1228
|
password=password or self.password,
|
1185
1229
|
username=username or self.username,
|
1230
|
+
access_token=access_token or self.access_token,
|
1186
1231
|
base_url=base_url or self.base_url,
|
1187
1232
|
timeout=self.timeout if isinstance(timeout, NotGiven) else timeout,
|
1188
1233
|
http_client=http_client,
|
@@ -1235,7 +1280,6 @@ class AsyncUnifieddatalibrary(AsyncAPIClient):
|
|
1235
1280
|
class UnifieddatalibraryWithRawResponse:
|
1236
1281
|
def __init__(self, client: Unifieddatalibrary) -> None:
|
1237
1282
|
self.air_events = air_events.AirEventsResourceWithRawResponse(client.air_events)
|
1238
|
-
self.air_load_plans = air_load_plans.AirLoadPlansResourceWithRawResponse(client.air_load_plans)
|
1239
1283
|
self.air_operations = air_operations.AirOperationsResourceWithRawResponse(client.air_operations)
|
1240
1284
|
self.air_transport_missions = air_transport_missions.AirTransportMissionsResourceWithRawResponse(
|
1241
1285
|
client.air_transport_missions
|
@@ -1262,7 +1306,6 @@ class UnifieddatalibraryWithRawResponse:
|
|
1262
1306
|
self.antennas = antennas.AntennasResourceWithRawResponse(client.antennas)
|
1263
1307
|
self.attitude_data = attitude_data.AttitudeDataResourceWithRawResponse(client.attitude_data)
|
1264
1308
|
self.attitude_sets = attitude_sets.AttitudeSetsResourceWithRawResponse(client.attitude_sets)
|
1265
|
-
self.attitudesets = attitudesets.AttitudesetsResourceWithRawResponse(client.attitudesets)
|
1266
1309
|
self.batteries = batteries.BatteriesResourceWithRawResponse(client.batteries)
|
1267
1310
|
self.batterydetails = batterydetails.BatterydetailsResourceWithRawResponse(client.batterydetails)
|
1268
1311
|
self.beam = beam.BeamResourceWithRawResponse(client.beam)
|
@@ -1312,12 +1355,10 @@ class UnifieddatalibraryWithRawResponse:
|
|
1312
1355
|
self.gnss_observationset = gnss_observationset.GnssObservationsetResourceWithRawResponse(
|
1313
1356
|
client.gnss_observationset
|
1314
1357
|
)
|
1315
|
-
self.gnss_rawif = gnss_rawif.GnssRawifResourceWithRawResponse(client.gnss_rawif)
|
1316
1358
|
self.ground_imagery = ground_imagery.GroundImageryResourceWithRawResponse(client.ground_imagery)
|
1317
1359
|
self.h3_geo = h3_geo.H3GeoResourceWithRawResponse(client.h3_geo)
|
1318
1360
|
self.h3_geo_hex_cell = h3_geo_hex_cell.H3GeoHexCellResourceWithRawResponse(client.h3_geo_hex_cell)
|
1319
1361
|
self.hazard = hazard.HazardResourceWithRawResponse(client.hazard)
|
1320
|
-
self.ion_oobservation = ion_oobservation.IonOobservationResourceWithRawResponse(client.ion_oobservation)
|
1321
1362
|
self.ir = ir.IrResourceWithRawResponse(client.ir)
|
1322
1363
|
self.isr_collections = isr_collections.IsrCollectionsResourceWithRawResponse(client.isr_collections)
|
1323
1364
|
self.item = item.ItemResourceWithRawResponse(client.item)
|
@@ -1449,9 +1490,9 @@ class UnifieddatalibraryWithRawResponse:
|
|
1449
1490
|
self.weather_report = weather_report.WeatherReportResourceWithRawResponse(client.weather_report)
|
1450
1491
|
self.gnss_observations = gnss_observations.GnssObservationsResourceWithRawResponse(client.gnss_observations)
|
1451
1492
|
self.gnss_raw_if = gnss_raw_if.GnssRawIfResourceWithRawResponse(client.gnss_raw_if)
|
1452
|
-
self.
|
1453
|
-
self.
|
1454
|
-
client.
|
1493
|
+
self.iono_observations = iono_observations.IonoObservationsResourceWithRawResponse(client.iono_observations)
|
1494
|
+
self.report_and_activities = report_and_activities.ReportAndActivitiesResourceWithRawResponse(
|
1495
|
+
client.report_and_activities
|
1455
1496
|
)
|
1456
1497
|
self.secure_messaging = secure_messaging.SecureMessagingResourceWithRawResponse(client.secure_messaging)
|
1457
1498
|
self.scs = scs.ScsResourceWithRawResponse(client.scs)
|
@@ -1461,7 +1502,6 @@ class UnifieddatalibraryWithRawResponse:
|
|
1461
1502
|
class AsyncUnifieddatalibraryWithRawResponse:
|
1462
1503
|
def __init__(self, client: AsyncUnifieddatalibrary) -> None:
|
1463
1504
|
self.air_events = air_events.AsyncAirEventsResourceWithRawResponse(client.air_events)
|
1464
|
-
self.air_load_plans = air_load_plans.AsyncAirLoadPlansResourceWithRawResponse(client.air_load_plans)
|
1465
1505
|
self.air_operations = air_operations.AsyncAirOperationsResourceWithRawResponse(client.air_operations)
|
1466
1506
|
self.air_transport_missions = air_transport_missions.AsyncAirTransportMissionsResourceWithRawResponse(
|
1467
1507
|
client.air_transport_missions
|
@@ -1492,7 +1532,6 @@ class AsyncUnifieddatalibraryWithRawResponse:
|
|
1492
1532
|
self.antennas = antennas.AsyncAntennasResourceWithRawResponse(client.antennas)
|
1493
1533
|
self.attitude_data = attitude_data.AsyncAttitudeDataResourceWithRawResponse(client.attitude_data)
|
1494
1534
|
self.attitude_sets = attitude_sets.AsyncAttitudeSetsResourceWithRawResponse(client.attitude_sets)
|
1495
|
-
self.attitudesets = attitudesets.AsyncAttitudesetsResourceWithRawResponse(client.attitudesets)
|
1496
1535
|
self.batteries = batteries.AsyncBatteriesResourceWithRawResponse(client.batteries)
|
1497
1536
|
self.batterydetails = batterydetails.AsyncBatterydetailsResourceWithRawResponse(client.batterydetails)
|
1498
1537
|
self.beam = beam.AsyncBeamResourceWithRawResponse(client.beam)
|
@@ -1548,12 +1587,10 @@ class AsyncUnifieddatalibraryWithRawResponse:
|
|
1548
1587
|
self.gnss_observationset = gnss_observationset.AsyncGnssObservationsetResourceWithRawResponse(
|
1549
1588
|
client.gnss_observationset
|
1550
1589
|
)
|
1551
|
-
self.gnss_rawif = gnss_rawif.AsyncGnssRawifResourceWithRawResponse(client.gnss_rawif)
|
1552
1590
|
self.ground_imagery = ground_imagery.AsyncGroundImageryResourceWithRawResponse(client.ground_imagery)
|
1553
1591
|
self.h3_geo = h3_geo.AsyncH3GeoResourceWithRawResponse(client.h3_geo)
|
1554
1592
|
self.h3_geo_hex_cell = h3_geo_hex_cell.AsyncH3GeoHexCellResourceWithRawResponse(client.h3_geo_hex_cell)
|
1555
1593
|
self.hazard = hazard.AsyncHazardResourceWithRawResponse(client.hazard)
|
1556
|
-
self.ion_oobservation = ion_oobservation.AsyncIonOobservationResourceWithRawResponse(client.ion_oobservation)
|
1557
1594
|
self.ir = ir.AsyncIrResourceWithRawResponse(client.ir)
|
1558
1595
|
self.isr_collections = isr_collections.AsyncIsrCollectionsResourceWithRawResponse(client.isr_collections)
|
1559
1596
|
self.item = item.AsyncItemResourceWithRawResponse(client.item)
|
@@ -1705,9 +1742,11 @@ class AsyncUnifieddatalibraryWithRawResponse:
|
|
1705
1742
|
client.gnss_observations
|
1706
1743
|
)
|
1707
1744
|
self.gnss_raw_if = gnss_raw_if.AsyncGnssRawIfResourceWithRawResponse(client.gnss_raw_if)
|
1708
|
-
self.
|
1709
|
-
|
1710
|
-
|
1745
|
+
self.iono_observations = iono_observations.AsyncIonoObservationsResourceWithRawResponse(
|
1746
|
+
client.iono_observations
|
1747
|
+
)
|
1748
|
+
self.report_and_activities = report_and_activities.AsyncReportAndActivitiesResourceWithRawResponse(
|
1749
|
+
client.report_and_activities
|
1711
1750
|
)
|
1712
1751
|
self.secure_messaging = secure_messaging.AsyncSecureMessagingResourceWithRawResponse(client.secure_messaging)
|
1713
1752
|
self.scs = scs.AsyncScsResourceWithRawResponse(client.scs)
|
@@ -1717,7 +1756,6 @@ class AsyncUnifieddatalibraryWithRawResponse:
|
|
1717
1756
|
class UnifieddatalibraryWithStreamedResponse:
|
1718
1757
|
def __init__(self, client: Unifieddatalibrary) -> None:
|
1719
1758
|
self.air_events = air_events.AirEventsResourceWithStreamingResponse(client.air_events)
|
1720
|
-
self.air_load_plans = air_load_plans.AirLoadPlansResourceWithStreamingResponse(client.air_load_plans)
|
1721
1759
|
self.air_operations = air_operations.AirOperationsResourceWithStreamingResponse(client.air_operations)
|
1722
1760
|
self.air_transport_missions = air_transport_missions.AirTransportMissionsResourceWithStreamingResponse(
|
1723
1761
|
client.air_transport_missions
|
@@ -1748,7 +1786,6 @@ class UnifieddatalibraryWithStreamedResponse:
|
|
1748
1786
|
self.antennas = antennas.AntennasResourceWithStreamingResponse(client.antennas)
|
1749
1787
|
self.attitude_data = attitude_data.AttitudeDataResourceWithStreamingResponse(client.attitude_data)
|
1750
1788
|
self.attitude_sets = attitude_sets.AttitudeSetsResourceWithStreamingResponse(client.attitude_sets)
|
1751
|
-
self.attitudesets = attitudesets.AttitudesetsResourceWithStreamingResponse(client.attitudesets)
|
1752
1789
|
self.batteries = batteries.BatteriesResourceWithStreamingResponse(client.batteries)
|
1753
1790
|
self.batterydetails = batterydetails.BatterydetailsResourceWithStreamingResponse(client.batterydetails)
|
1754
1791
|
self.beam = beam.BeamResourceWithStreamingResponse(client.beam)
|
@@ -1804,12 +1841,10 @@ class UnifieddatalibraryWithStreamedResponse:
|
|
1804
1841
|
self.gnss_observationset = gnss_observationset.GnssObservationsetResourceWithStreamingResponse(
|
1805
1842
|
client.gnss_observationset
|
1806
1843
|
)
|
1807
|
-
self.gnss_rawif = gnss_rawif.GnssRawifResourceWithStreamingResponse(client.gnss_rawif)
|
1808
1844
|
self.ground_imagery = ground_imagery.GroundImageryResourceWithStreamingResponse(client.ground_imagery)
|
1809
1845
|
self.h3_geo = h3_geo.H3GeoResourceWithStreamingResponse(client.h3_geo)
|
1810
1846
|
self.h3_geo_hex_cell = h3_geo_hex_cell.H3GeoHexCellResourceWithStreamingResponse(client.h3_geo_hex_cell)
|
1811
1847
|
self.hazard = hazard.HazardResourceWithStreamingResponse(client.hazard)
|
1812
|
-
self.ion_oobservation = ion_oobservation.IonOobservationResourceWithStreamingResponse(client.ion_oobservation)
|
1813
1848
|
self.ir = ir.IrResourceWithStreamingResponse(client.ir)
|
1814
1849
|
self.isr_collections = isr_collections.IsrCollectionsResourceWithStreamingResponse(client.isr_collections)
|
1815
1850
|
self.item = item.ItemResourceWithStreamingResponse(client.item)
|
@@ -1961,9 +1996,11 @@ class UnifieddatalibraryWithStreamedResponse:
|
|
1961
1996
|
client.gnss_observations
|
1962
1997
|
)
|
1963
1998
|
self.gnss_raw_if = gnss_raw_if.GnssRawIfResourceWithStreamingResponse(client.gnss_raw_if)
|
1964
|
-
self.
|
1965
|
-
|
1966
|
-
|
1999
|
+
self.iono_observations = iono_observations.IonoObservationsResourceWithStreamingResponse(
|
2000
|
+
client.iono_observations
|
2001
|
+
)
|
2002
|
+
self.report_and_activities = report_and_activities.ReportAndActivitiesResourceWithStreamingResponse(
|
2003
|
+
client.report_and_activities
|
1967
2004
|
)
|
1968
2005
|
self.secure_messaging = secure_messaging.SecureMessagingResourceWithStreamingResponse(client.secure_messaging)
|
1969
2006
|
self.scs = scs.ScsResourceWithStreamingResponse(client.scs)
|
@@ -1973,7 +2010,6 @@ class UnifieddatalibraryWithStreamedResponse:
|
|
1973
2010
|
class AsyncUnifieddatalibraryWithStreamedResponse:
|
1974
2011
|
def __init__(self, client: AsyncUnifieddatalibrary) -> None:
|
1975
2012
|
self.air_events = air_events.AsyncAirEventsResourceWithStreamingResponse(client.air_events)
|
1976
|
-
self.air_load_plans = air_load_plans.AsyncAirLoadPlansResourceWithStreamingResponse(client.air_load_plans)
|
1977
2013
|
self.air_operations = air_operations.AsyncAirOperationsResourceWithStreamingResponse(client.air_operations)
|
1978
2014
|
self.air_transport_missions = air_transport_missions.AsyncAirTransportMissionsResourceWithStreamingResponse(
|
1979
2015
|
client.air_transport_missions
|
@@ -2008,7 +2044,6 @@ class AsyncUnifieddatalibraryWithStreamedResponse:
|
|
2008
2044
|
self.antennas = antennas.AsyncAntennasResourceWithStreamingResponse(client.antennas)
|
2009
2045
|
self.attitude_data = attitude_data.AsyncAttitudeDataResourceWithStreamingResponse(client.attitude_data)
|
2010
2046
|
self.attitude_sets = attitude_sets.AsyncAttitudeSetsResourceWithStreamingResponse(client.attitude_sets)
|
2011
|
-
self.attitudesets = attitudesets.AsyncAttitudesetsResourceWithStreamingResponse(client.attitudesets)
|
2012
2047
|
self.batteries = batteries.AsyncBatteriesResourceWithStreamingResponse(client.batteries)
|
2013
2048
|
self.batterydetails = batterydetails.AsyncBatterydetailsResourceWithStreamingResponse(client.batterydetails)
|
2014
2049
|
self.beam = beam.AsyncBeamResourceWithStreamingResponse(client.beam)
|
@@ -2072,14 +2107,10 @@ class AsyncUnifieddatalibraryWithStreamedResponse:
|
|
2072
2107
|
self.gnss_observationset = gnss_observationset.AsyncGnssObservationsetResourceWithStreamingResponse(
|
2073
2108
|
client.gnss_observationset
|
2074
2109
|
)
|
2075
|
-
self.gnss_rawif = gnss_rawif.AsyncGnssRawifResourceWithStreamingResponse(client.gnss_rawif)
|
2076
2110
|
self.ground_imagery = ground_imagery.AsyncGroundImageryResourceWithStreamingResponse(client.ground_imagery)
|
2077
2111
|
self.h3_geo = h3_geo.AsyncH3GeoResourceWithStreamingResponse(client.h3_geo)
|
2078
2112
|
self.h3_geo_hex_cell = h3_geo_hex_cell.AsyncH3GeoHexCellResourceWithStreamingResponse(client.h3_geo_hex_cell)
|
2079
2113
|
self.hazard = hazard.AsyncHazardResourceWithStreamingResponse(client.hazard)
|
2080
|
-
self.ion_oobservation = ion_oobservation.AsyncIonOobservationResourceWithStreamingResponse(
|
2081
|
-
client.ion_oobservation
|
2082
|
-
)
|
2083
2114
|
self.ir = ir.AsyncIrResourceWithStreamingResponse(client.ir)
|
2084
2115
|
self.isr_collections = isr_collections.AsyncIsrCollectionsResourceWithStreamingResponse(client.isr_collections)
|
2085
2116
|
self.item = item.AsyncItemResourceWithStreamingResponse(client.item)
|
@@ -2237,11 +2268,11 @@ class AsyncUnifieddatalibraryWithStreamedResponse:
|
|
2237
2268
|
client.gnss_observations
|
2238
2269
|
)
|
2239
2270
|
self.gnss_raw_if = gnss_raw_if.AsyncGnssRawIfResourceWithStreamingResponse(client.gnss_raw_if)
|
2240
|
-
self.
|
2241
|
-
client.
|
2271
|
+
self.iono_observations = iono_observations.AsyncIonoObservationsResourceWithStreamingResponse(
|
2272
|
+
client.iono_observations
|
2242
2273
|
)
|
2243
|
-
self.
|
2244
|
-
client.
|
2274
|
+
self.report_and_activities = report_and_activities.AsyncReportAndActivitiesResourceWithStreamingResponse(
|
2275
|
+
client.report_and_activities
|
2245
2276
|
)
|
2246
2277
|
self.secure_messaging = secure_messaging.AsyncSecureMessagingResourceWithStreamingResponse(
|
2247
2278
|
client.secure_messaging
|
unifieddatalibrary/_version.py
CHANGED