udl-sdk 0.1.0a17__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.0a17.dist-info → udl_sdk-0.1.0a18.dist-info}/METADATA +1 -1
- {udl_sdk-0.1.0a17.dist-info → udl_sdk-0.1.0a18.dist-info}/RECORD +136 -129
- unifieddatalibrary/_client.py +27 -61
- 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.0a17.dist-info → udl_sdk-0.1.0a18.dist-info}/WHEEL +0 -0
- {udl_sdk-0.1.0a17.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
@@ -1,871 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing import Union, Mapping, cast
|
6
|
-
from datetime import datetime
|
7
|
-
|
8
|
-
import httpx
|
9
|
-
|
10
|
-
from ..types import (
|
11
|
-
gnss_rawif_get_params,
|
12
|
-
gnss_rawif_list_params,
|
13
|
-
gnss_rawif_count_params,
|
14
|
-
gnss_rawif_tuple_params,
|
15
|
-
gnss_rawif_file_get_params,
|
16
|
-
gnss_rawif_upload_zip_params,
|
17
|
-
)
|
18
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, FileTypes
|
19
|
-
from .._utils import extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform
|
20
|
-
from .._compat import cached_property
|
21
|
-
from .._resource import SyncAPIResource, AsyncAPIResource
|
22
|
-
from .._response import (
|
23
|
-
BinaryAPIResponse,
|
24
|
-
AsyncBinaryAPIResponse,
|
25
|
-
StreamedBinaryAPIResponse,
|
26
|
-
AsyncStreamedBinaryAPIResponse,
|
27
|
-
to_raw_response_wrapper,
|
28
|
-
to_streamed_response_wrapper,
|
29
|
-
async_to_raw_response_wrapper,
|
30
|
-
to_custom_raw_response_wrapper,
|
31
|
-
async_to_streamed_response_wrapper,
|
32
|
-
to_custom_streamed_response_wrapper,
|
33
|
-
async_to_custom_raw_response_wrapper,
|
34
|
-
async_to_custom_streamed_response_wrapper,
|
35
|
-
)
|
36
|
-
from ..pagination import SyncOffsetPage, AsyncOffsetPage
|
37
|
-
from .._base_client import AsyncPaginator, make_request_options
|
38
|
-
from ..types.gnss_rawif_get_response import GnssRawifGetResponse
|
39
|
-
from ..types.gnss_rawif_list_response import GnssRawifListResponse
|
40
|
-
from ..types.gnss_rawif_tuple_response import GnssRawifTupleResponse
|
41
|
-
from ..types.gnss_rawif_queryhelp_response import GnssRawifQueryhelpResponse
|
42
|
-
|
43
|
-
__all__ = ["GnssRawifResource", "AsyncGnssRawifResource"]
|
44
|
-
|
45
|
-
|
46
|
-
class GnssRawifResource(SyncAPIResource):
|
47
|
-
@cached_property
|
48
|
-
def with_raw_response(self) -> GnssRawifResourceWithRawResponse:
|
49
|
-
"""
|
50
|
-
This property can be used as a prefix for any HTTP method call to return
|
51
|
-
the raw response object instead of the parsed content.
|
52
|
-
|
53
|
-
For more information, see https://www.github.com/Bluestaq/udl-python-sdk#accessing-raw-response-data-eg-headers
|
54
|
-
"""
|
55
|
-
return GnssRawifResourceWithRawResponse(self)
|
56
|
-
|
57
|
-
@cached_property
|
58
|
-
def with_streaming_response(self) -> GnssRawifResourceWithStreamingResponse:
|
59
|
-
"""
|
60
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
61
|
-
|
62
|
-
For more information, see https://www.github.com/Bluestaq/udl-python-sdk#with_streaming_response
|
63
|
-
"""
|
64
|
-
return GnssRawifResourceWithStreamingResponse(self)
|
65
|
-
|
66
|
-
def list(
|
67
|
-
self,
|
68
|
-
*,
|
69
|
-
start_time: Union[str, datetime],
|
70
|
-
first_result: int | NotGiven = NOT_GIVEN,
|
71
|
-
max_results: int | NotGiven = NOT_GIVEN,
|
72
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
73
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
74
|
-
extra_headers: Headers | None = None,
|
75
|
-
extra_query: Query | None = None,
|
76
|
-
extra_body: Body | None = None,
|
77
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
78
|
-
) -> SyncOffsetPage[GnssRawifListResponse]:
|
79
|
-
"""
|
80
|
-
Service operation to dynamically query data by a variety of query parameters not
|
81
|
-
specified in this API documentation. See the queryhelp operation
|
82
|
-
(/udl/<datatype>/queryhelp) for more details on valid/required query
|
83
|
-
parameter information.
|
84
|
-
|
85
|
-
Args:
|
86
|
-
start_time: Start time of the data contained in the associated binary file, in ISO 8601 UTC
|
87
|
-
format with microsecond precision. (YYYY-MM-DDTHH:MM:SS.ssssssZ)
|
88
|
-
|
89
|
-
extra_headers: Send extra headers
|
90
|
-
|
91
|
-
extra_query: Add additional query parameters to the request
|
92
|
-
|
93
|
-
extra_body: Add additional JSON properties to the request
|
94
|
-
|
95
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
96
|
-
"""
|
97
|
-
return self._get_api_list(
|
98
|
-
"/udl/gnssrawif",
|
99
|
-
page=SyncOffsetPage[GnssRawifListResponse],
|
100
|
-
options=make_request_options(
|
101
|
-
extra_headers=extra_headers,
|
102
|
-
extra_query=extra_query,
|
103
|
-
extra_body=extra_body,
|
104
|
-
timeout=timeout,
|
105
|
-
query=maybe_transform(
|
106
|
-
{
|
107
|
-
"start_time": start_time,
|
108
|
-
"first_result": first_result,
|
109
|
-
"max_results": max_results,
|
110
|
-
},
|
111
|
-
gnss_rawif_list_params.GnssRawifListParams,
|
112
|
-
),
|
113
|
-
),
|
114
|
-
model=GnssRawifListResponse,
|
115
|
-
)
|
116
|
-
|
117
|
-
def count(
|
118
|
-
self,
|
119
|
-
*,
|
120
|
-
start_time: Union[str, datetime],
|
121
|
-
first_result: int | NotGiven = NOT_GIVEN,
|
122
|
-
max_results: int | NotGiven = NOT_GIVEN,
|
123
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
124
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
125
|
-
extra_headers: Headers | None = None,
|
126
|
-
extra_query: Query | None = None,
|
127
|
-
extra_body: Body | None = None,
|
128
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
129
|
-
) -> str:
|
130
|
-
"""
|
131
|
-
Service operation to return the count of records satisfying the specified query
|
132
|
-
parameters. This operation is useful to determine how many records pass a
|
133
|
-
particular query criteria without retrieving large amounts of data. See the
|
134
|
-
queryhelp operation (/udl/<datatype>/queryhelp) for more details on
|
135
|
-
valid/required query parameter information.
|
136
|
-
|
137
|
-
Args:
|
138
|
-
start_time: Start time of the data contained in the associated binary file, in ISO 8601 UTC
|
139
|
-
format with microsecond precision. (YYYY-MM-DDTHH:MM:SS.ssssssZ)
|
140
|
-
|
141
|
-
extra_headers: Send extra headers
|
142
|
-
|
143
|
-
extra_query: Add additional query parameters to the request
|
144
|
-
|
145
|
-
extra_body: Add additional JSON properties to the request
|
146
|
-
|
147
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
148
|
-
"""
|
149
|
-
extra_headers = {"Accept": "text/plain", **(extra_headers or {})}
|
150
|
-
return self._get(
|
151
|
-
"/udl/gnssrawif/count",
|
152
|
-
options=make_request_options(
|
153
|
-
extra_headers=extra_headers,
|
154
|
-
extra_query=extra_query,
|
155
|
-
extra_body=extra_body,
|
156
|
-
timeout=timeout,
|
157
|
-
query=maybe_transform(
|
158
|
-
{
|
159
|
-
"start_time": start_time,
|
160
|
-
"first_result": first_result,
|
161
|
-
"max_results": max_results,
|
162
|
-
},
|
163
|
-
gnss_rawif_count_params.GnssRawifCountParams,
|
164
|
-
),
|
165
|
-
),
|
166
|
-
cast_to=str,
|
167
|
-
)
|
168
|
-
|
169
|
-
def file_get(
|
170
|
-
self,
|
171
|
-
id: str,
|
172
|
-
*,
|
173
|
-
first_result: int | NotGiven = NOT_GIVEN,
|
174
|
-
max_results: int | NotGiven = NOT_GIVEN,
|
175
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
176
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
177
|
-
extra_headers: Headers | None = None,
|
178
|
-
extra_query: Query | None = None,
|
179
|
-
extra_body: Body | None = None,
|
180
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
181
|
-
) -> BinaryAPIResponse:
|
182
|
-
"""
|
183
|
-
Service operation to get a single GNSSRAWIF hdf5 file by its unique ID passed as
|
184
|
-
a path parameter. The file is returned as an attachment Content-Disposition.
|
185
|
-
|
186
|
-
Args:
|
187
|
-
extra_headers: Send extra headers
|
188
|
-
|
189
|
-
extra_query: Add additional query parameters to the request
|
190
|
-
|
191
|
-
extra_body: Add additional JSON properties to the request
|
192
|
-
|
193
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
194
|
-
"""
|
195
|
-
if not id:
|
196
|
-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
197
|
-
extra_headers = {"Accept": "application/octet-stream", **(extra_headers or {})}
|
198
|
-
return self._get(
|
199
|
-
f"/udl/gnssrawif/getFile/{id}",
|
200
|
-
options=make_request_options(
|
201
|
-
extra_headers=extra_headers,
|
202
|
-
extra_query=extra_query,
|
203
|
-
extra_body=extra_body,
|
204
|
-
timeout=timeout,
|
205
|
-
query=maybe_transform(
|
206
|
-
{
|
207
|
-
"first_result": first_result,
|
208
|
-
"max_results": max_results,
|
209
|
-
},
|
210
|
-
gnss_rawif_file_get_params.GnssRawifFileGetParams,
|
211
|
-
),
|
212
|
-
),
|
213
|
-
cast_to=BinaryAPIResponse,
|
214
|
-
)
|
215
|
-
|
216
|
-
def get(
|
217
|
-
self,
|
218
|
-
id: str,
|
219
|
-
*,
|
220
|
-
first_result: int | NotGiven = NOT_GIVEN,
|
221
|
-
max_results: int | NotGiven = NOT_GIVEN,
|
222
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
223
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
224
|
-
extra_headers: Headers | None = None,
|
225
|
-
extra_query: Query | None = None,
|
226
|
-
extra_body: Body | None = None,
|
227
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
228
|
-
) -> GnssRawifGetResponse:
|
229
|
-
"""
|
230
|
-
Service operation to get a single GNSSRawIF by its unique ID passed as a path
|
231
|
-
parameter.
|
232
|
-
|
233
|
-
Args:
|
234
|
-
extra_headers: Send extra headers
|
235
|
-
|
236
|
-
extra_query: Add additional query parameters to the request
|
237
|
-
|
238
|
-
extra_body: Add additional JSON properties to the request
|
239
|
-
|
240
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
241
|
-
"""
|
242
|
-
if not id:
|
243
|
-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
244
|
-
return self._get(
|
245
|
-
f"/udl/gnssrawif/{id}",
|
246
|
-
options=make_request_options(
|
247
|
-
extra_headers=extra_headers,
|
248
|
-
extra_query=extra_query,
|
249
|
-
extra_body=extra_body,
|
250
|
-
timeout=timeout,
|
251
|
-
query=maybe_transform(
|
252
|
-
{
|
253
|
-
"first_result": first_result,
|
254
|
-
"max_results": max_results,
|
255
|
-
},
|
256
|
-
gnss_rawif_get_params.GnssRawifGetParams,
|
257
|
-
),
|
258
|
-
),
|
259
|
-
cast_to=GnssRawifGetResponse,
|
260
|
-
)
|
261
|
-
|
262
|
-
def queryhelp(
|
263
|
-
self,
|
264
|
-
*,
|
265
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
266
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
267
|
-
extra_headers: Headers | None = None,
|
268
|
-
extra_query: Query | None = None,
|
269
|
-
extra_body: Body | None = None,
|
270
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
271
|
-
) -> GnssRawifQueryhelpResponse:
|
272
|
-
"""
|
273
|
-
Service operation to provide detailed information on available dynamic query
|
274
|
-
parameters for a particular data type.
|
275
|
-
"""
|
276
|
-
return self._get(
|
277
|
-
"/udl/gnssrawif/queryhelp",
|
278
|
-
options=make_request_options(
|
279
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
280
|
-
),
|
281
|
-
cast_to=GnssRawifQueryhelpResponse,
|
282
|
-
)
|
283
|
-
|
284
|
-
def tuple(
|
285
|
-
self,
|
286
|
-
*,
|
287
|
-
columns: str,
|
288
|
-
start_time: Union[str, datetime],
|
289
|
-
first_result: int | NotGiven = NOT_GIVEN,
|
290
|
-
max_results: int | NotGiven = NOT_GIVEN,
|
291
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
292
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
293
|
-
extra_headers: Headers | None = None,
|
294
|
-
extra_query: Query | None = None,
|
295
|
-
extra_body: Body | None = None,
|
296
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
297
|
-
) -> GnssRawifTupleResponse:
|
298
|
-
"""
|
299
|
-
Service operation to dynamically query data and only return specified
|
300
|
-
columns/fields. Requested columns are specified by the 'columns' query parameter
|
301
|
-
and should be a comma separated list of valid fields for the specified data
|
302
|
-
type. classificationMarking is always returned. See the queryhelp operation
|
303
|
-
(/udl/<datatype>/queryhelp) for more details on valid/required query parameter
|
304
|
-
information. An example URI: /udl/elset/tuple?columns=satNo,period&epoch=>now-5
|
305
|
-
hours would return the satNo and period of elsets with an epoch greater than 5
|
306
|
-
hours ago.
|
307
|
-
|
308
|
-
Args:
|
309
|
-
columns: Comma-separated list of valid field names for this data type to be returned in
|
310
|
-
the response. Only the fields specified will be returned as well as the
|
311
|
-
classification marking of the data, if applicable. See the ‘queryhelp’ operation
|
312
|
-
for a complete list of possible fields.
|
313
|
-
|
314
|
-
start_time: Start time of the data contained in the associated binary file, in ISO 8601 UTC
|
315
|
-
format with microsecond precision. (YYYY-MM-DDTHH:MM:SS.ssssssZ)
|
316
|
-
|
317
|
-
extra_headers: Send extra headers
|
318
|
-
|
319
|
-
extra_query: Add additional query parameters to the request
|
320
|
-
|
321
|
-
extra_body: Add additional JSON properties to the request
|
322
|
-
|
323
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
324
|
-
"""
|
325
|
-
return self._get(
|
326
|
-
"/udl/gnssrawif/tuple",
|
327
|
-
options=make_request_options(
|
328
|
-
extra_headers=extra_headers,
|
329
|
-
extra_query=extra_query,
|
330
|
-
extra_body=extra_body,
|
331
|
-
timeout=timeout,
|
332
|
-
query=maybe_transform(
|
333
|
-
{
|
334
|
-
"columns": columns,
|
335
|
-
"start_time": start_time,
|
336
|
-
"first_result": first_result,
|
337
|
-
"max_results": max_results,
|
338
|
-
},
|
339
|
-
gnss_rawif_tuple_params.GnssRawifTupleParams,
|
340
|
-
),
|
341
|
-
),
|
342
|
-
cast_to=GnssRawifTupleResponse,
|
343
|
-
)
|
344
|
-
|
345
|
-
def upload_zip(
|
346
|
-
self,
|
347
|
-
*,
|
348
|
-
file: FileTypes,
|
349
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
350
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
351
|
-
extra_headers: Headers | None = None,
|
352
|
-
extra_query: Query | None = None,
|
353
|
-
extra_body: Body | None = None,
|
354
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
355
|
-
) -> None:
|
356
|
-
"""
|
357
|
-
Upload an HDF5 file with its metadata.
|
358
|
-
|
359
|
-
The request body requires a zip file containing exactly two files:\\
|
360
|
-
1\\)) A file with the `.json` file extension whose content conforms to the `GNSSRawIF_Ingest`
|
361
|
-
schema.\\
|
362
|
-
2\\)) A file with the `.hdf5` file extension.
|
363
|
-
|
364
|
-
The JSON and HDF5 files will be associated with each other via the `id` field.
|
365
|
-
Query the metadata via `GET /udl/gnssrawif` and use
|
366
|
-
`GET /udl/gnssrawif/getFile/{id}` to retrieve the HDF5 file.
|
367
|
-
|
368
|
-
This operation only accepts application/zip media. The application/json request
|
369
|
-
body is documented to provide a convenient reference to the ingest schema.
|
370
|
-
|
371
|
-
This operation is intended to be used for automated feeds into UDL. A specific
|
372
|
-
role is required to perform this service operation. Please contact the UDL team
|
373
|
-
for assistance.
|
374
|
-
|
375
|
-
Args:
|
376
|
-
file: Zip file containing files described in the specification
|
377
|
-
|
378
|
-
extra_headers: Send extra headers
|
379
|
-
|
380
|
-
extra_query: Add additional query parameters to the request
|
381
|
-
|
382
|
-
extra_body: Add additional JSON properties to the request
|
383
|
-
|
384
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
385
|
-
"""
|
386
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
387
|
-
body = deepcopy_minimal({"file": file})
|
388
|
-
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
|
389
|
-
# It should be noted that the actual Content-Type header that will be
|
390
|
-
# sent to the server will contain a `boundary` parameter, e.g.
|
391
|
-
# multipart/form-data; boundary=---abc--
|
392
|
-
extra_headers["Content-Type"] = "multipart/form-data"
|
393
|
-
return self._post(
|
394
|
-
"/filedrop/udl-gnssrawif",
|
395
|
-
body=maybe_transform(body, gnss_rawif_upload_zip_params.GnssRawifUploadZipParams),
|
396
|
-
files=files,
|
397
|
-
options=make_request_options(
|
398
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
399
|
-
),
|
400
|
-
cast_to=NoneType,
|
401
|
-
)
|
402
|
-
|
403
|
-
|
404
|
-
class AsyncGnssRawifResource(AsyncAPIResource):
|
405
|
-
@cached_property
|
406
|
-
def with_raw_response(self) -> AsyncGnssRawifResourceWithRawResponse:
|
407
|
-
"""
|
408
|
-
This property can be used as a prefix for any HTTP method call to return
|
409
|
-
the raw response object instead of the parsed content.
|
410
|
-
|
411
|
-
For more information, see https://www.github.com/Bluestaq/udl-python-sdk#accessing-raw-response-data-eg-headers
|
412
|
-
"""
|
413
|
-
return AsyncGnssRawifResourceWithRawResponse(self)
|
414
|
-
|
415
|
-
@cached_property
|
416
|
-
def with_streaming_response(self) -> AsyncGnssRawifResourceWithStreamingResponse:
|
417
|
-
"""
|
418
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
419
|
-
|
420
|
-
For more information, see https://www.github.com/Bluestaq/udl-python-sdk#with_streaming_response
|
421
|
-
"""
|
422
|
-
return AsyncGnssRawifResourceWithStreamingResponse(self)
|
423
|
-
|
424
|
-
def list(
|
425
|
-
self,
|
426
|
-
*,
|
427
|
-
start_time: Union[str, datetime],
|
428
|
-
first_result: int | NotGiven = NOT_GIVEN,
|
429
|
-
max_results: int | NotGiven = NOT_GIVEN,
|
430
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
431
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
432
|
-
extra_headers: Headers | None = None,
|
433
|
-
extra_query: Query | None = None,
|
434
|
-
extra_body: Body | None = None,
|
435
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
436
|
-
) -> AsyncPaginator[GnssRawifListResponse, AsyncOffsetPage[GnssRawifListResponse]]:
|
437
|
-
"""
|
438
|
-
Service operation to dynamically query data by a variety of query parameters not
|
439
|
-
specified in this API documentation. See the queryhelp operation
|
440
|
-
(/udl/<datatype>/queryhelp) for more details on valid/required query
|
441
|
-
parameter information.
|
442
|
-
|
443
|
-
Args:
|
444
|
-
start_time: Start time of the data contained in the associated binary file, in ISO 8601 UTC
|
445
|
-
format with microsecond precision. (YYYY-MM-DDTHH:MM:SS.ssssssZ)
|
446
|
-
|
447
|
-
extra_headers: Send extra headers
|
448
|
-
|
449
|
-
extra_query: Add additional query parameters to the request
|
450
|
-
|
451
|
-
extra_body: Add additional JSON properties to the request
|
452
|
-
|
453
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
454
|
-
"""
|
455
|
-
return self._get_api_list(
|
456
|
-
"/udl/gnssrawif",
|
457
|
-
page=AsyncOffsetPage[GnssRawifListResponse],
|
458
|
-
options=make_request_options(
|
459
|
-
extra_headers=extra_headers,
|
460
|
-
extra_query=extra_query,
|
461
|
-
extra_body=extra_body,
|
462
|
-
timeout=timeout,
|
463
|
-
query=maybe_transform(
|
464
|
-
{
|
465
|
-
"start_time": start_time,
|
466
|
-
"first_result": first_result,
|
467
|
-
"max_results": max_results,
|
468
|
-
},
|
469
|
-
gnss_rawif_list_params.GnssRawifListParams,
|
470
|
-
),
|
471
|
-
),
|
472
|
-
model=GnssRawifListResponse,
|
473
|
-
)
|
474
|
-
|
475
|
-
async def count(
|
476
|
-
self,
|
477
|
-
*,
|
478
|
-
start_time: Union[str, datetime],
|
479
|
-
first_result: int | NotGiven = NOT_GIVEN,
|
480
|
-
max_results: int | NotGiven = NOT_GIVEN,
|
481
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
482
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
483
|
-
extra_headers: Headers | None = None,
|
484
|
-
extra_query: Query | None = None,
|
485
|
-
extra_body: Body | None = None,
|
486
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
487
|
-
) -> str:
|
488
|
-
"""
|
489
|
-
Service operation to return the count of records satisfying the specified query
|
490
|
-
parameters. This operation is useful to determine how many records pass a
|
491
|
-
particular query criteria without retrieving large amounts of data. See the
|
492
|
-
queryhelp operation (/udl/<datatype>/queryhelp) for more details on
|
493
|
-
valid/required query parameter information.
|
494
|
-
|
495
|
-
Args:
|
496
|
-
start_time: Start time of the data contained in the associated binary file, in ISO 8601 UTC
|
497
|
-
format with microsecond precision. (YYYY-MM-DDTHH:MM:SS.ssssssZ)
|
498
|
-
|
499
|
-
extra_headers: Send extra headers
|
500
|
-
|
501
|
-
extra_query: Add additional query parameters to the request
|
502
|
-
|
503
|
-
extra_body: Add additional JSON properties to the request
|
504
|
-
|
505
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
506
|
-
"""
|
507
|
-
extra_headers = {"Accept": "text/plain", **(extra_headers or {})}
|
508
|
-
return await self._get(
|
509
|
-
"/udl/gnssrawif/count",
|
510
|
-
options=make_request_options(
|
511
|
-
extra_headers=extra_headers,
|
512
|
-
extra_query=extra_query,
|
513
|
-
extra_body=extra_body,
|
514
|
-
timeout=timeout,
|
515
|
-
query=await async_maybe_transform(
|
516
|
-
{
|
517
|
-
"start_time": start_time,
|
518
|
-
"first_result": first_result,
|
519
|
-
"max_results": max_results,
|
520
|
-
},
|
521
|
-
gnss_rawif_count_params.GnssRawifCountParams,
|
522
|
-
),
|
523
|
-
),
|
524
|
-
cast_to=str,
|
525
|
-
)
|
526
|
-
|
527
|
-
async def file_get(
|
528
|
-
self,
|
529
|
-
id: str,
|
530
|
-
*,
|
531
|
-
first_result: int | NotGiven = NOT_GIVEN,
|
532
|
-
max_results: int | NotGiven = NOT_GIVEN,
|
533
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
534
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
535
|
-
extra_headers: Headers | None = None,
|
536
|
-
extra_query: Query | None = None,
|
537
|
-
extra_body: Body | None = None,
|
538
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
539
|
-
) -> AsyncBinaryAPIResponse:
|
540
|
-
"""
|
541
|
-
Service operation to get a single GNSSRAWIF hdf5 file by its unique ID passed as
|
542
|
-
a path parameter. The file is returned as an attachment Content-Disposition.
|
543
|
-
|
544
|
-
Args:
|
545
|
-
extra_headers: Send extra headers
|
546
|
-
|
547
|
-
extra_query: Add additional query parameters to the request
|
548
|
-
|
549
|
-
extra_body: Add additional JSON properties to the request
|
550
|
-
|
551
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
552
|
-
"""
|
553
|
-
if not id:
|
554
|
-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
555
|
-
extra_headers = {"Accept": "application/octet-stream", **(extra_headers or {})}
|
556
|
-
return await self._get(
|
557
|
-
f"/udl/gnssrawif/getFile/{id}",
|
558
|
-
options=make_request_options(
|
559
|
-
extra_headers=extra_headers,
|
560
|
-
extra_query=extra_query,
|
561
|
-
extra_body=extra_body,
|
562
|
-
timeout=timeout,
|
563
|
-
query=await async_maybe_transform(
|
564
|
-
{
|
565
|
-
"first_result": first_result,
|
566
|
-
"max_results": max_results,
|
567
|
-
},
|
568
|
-
gnss_rawif_file_get_params.GnssRawifFileGetParams,
|
569
|
-
),
|
570
|
-
),
|
571
|
-
cast_to=AsyncBinaryAPIResponse,
|
572
|
-
)
|
573
|
-
|
574
|
-
async def get(
|
575
|
-
self,
|
576
|
-
id: str,
|
577
|
-
*,
|
578
|
-
first_result: int | NotGiven = NOT_GIVEN,
|
579
|
-
max_results: int | NotGiven = NOT_GIVEN,
|
580
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
581
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
582
|
-
extra_headers: Headers | None = None,
|
583
|
-
extra_query: Query | None = None,
|
584
|
-
extra_body: Body | None = None,
|
585
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
586
|
-
) -> GnssRawifGetResponse:
|
587
|
-
"""
|
588
|
-
Service operation to get a single GNSSRawIF by its unique ID passed as a path
|
589
|
-
parameter.
|
590
|
-
|
591
|
-
Args:
|
592
|
-
extra_headers: Send extra headers
|
593
|
-
|
594
|
-
extra_query: Add additional query parameters to the request
|
595
|
-
|
596
|
-
extra_body: Add additional JSON properties to the request
|
597
|
-
|
598
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
599
|
-
"""
|
600
|
-
if not id:
|
601
|
-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
602
|
-
return await self._get(
|
603
|
-
f"/udl/gnssrawif/{id}",
|
604
|
-
options=make_request_options(
|
605
|
-
extra_headers=extra_headers,
|
606
|
-
extra_query=extra_query,
|
607
|
-
extra_body=extra_body,
|
608
|
-
timeout=timeout,
|
609
|
-
query=await async_maybe_transform(
|
610
|
-
{
|
611
|
-
"first_result": first_result,
|
612
|
-
"max_results": max_results,
|
613
|
-
},
|
614
|
-
gnss_rawif_get_params.GnssRawifGetParams,
|
615
|
-
),
|
616
|
-
),
|
617
|
-
cast_to=GnssRawifGetResponse,
|
618
|
-
)
|
619
|
-
|
620
|
-
async def queryhelp(
|
621
|
-
self,
|
622
|
-
*,
|
623
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
624
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
625
|
-
extra_headers: Headers | None = None,
|
626
|
-
extra_query: Query | None = None,
|
627
|
-
extra_body: Body | None = None,
|
628
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
629
|
-
) -> GnssRawifQueryhelpResponse:
|
630
|
-
"""
|
631
|
-
Service operation to provide detailed information on available dynamic query
|
632
|
-
parameters for a particular data type.
|
633
|
-
"""
|
634
|
-
return await self._get(
|
635
|
-
"/udl/gnssrawif/queryhelp",
|
636
|
-
options=make_request_options(
|
637
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
638
|
-
),
|
639
|
-
cast_to=GnssRawifQueryhelpResponse,
|
640
|
-
)
|
641
|
-
|
642
|
-
async def tuple(
|
643
|
-
self,
|
644
|
-
*,
|
645
|
-
columns: str,
|
646
|
-
start_time: Union[str, datetime],
|
647
|
-
first_result: int | NotGiven = NOT_GIVEN,
|
648
|
-
max_results: int | NotGiven = NOT_GIVEN,
|
649
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
650
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
651
|
-
extra_headers: Headers | None = None,
|
652
|
-
extra_query: Query | None = None,
|
653
|
-
extra_body: Body | None = None,
|
654
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
655
|
-
) -> GnssRawifTupleResponse:
|
656
|
-
"""
|
657
|
-
Service operation to dynamically query data and only return specified
|
658
|
-
columns/fields. Requested columns are specified by the 'columns' query parameter
|
659
|
-
and should be a comma separated list of valid fields for the specified data
|
660
|
-
type. classificationMarking is always returned. See the queryhelp operation
|
661
|
-
(/udl/<datatype>/queryhelp) for more details on valid/required query parameter
|
662
|
-
information. An example URI: /udl/elset/tuple?columns=satNo,period&epoch=>now-5
|
663
|
-
hours would return the satNo and period of elsets with an epoch greater than 5
|
664
|
-
hours ago.
|
665
|
-
|
666
|
-
Args:
|
667
|
-
columns: Comma-separated list of valid field names for this data type to be returned in
|
668
|
-
the response. Only the fields specified will be returned as well as the
|
669
|
-
classification marking of the data, if applicable. See the ‘queryhelp’ operation
|
670
|
-
for a complete list of possible fields.
|
671
|
-
|
672
|
-
start_time: Start time of the data contained in the associated binary file, in ISO 8601 UTC
|
673
|
-
format with microsecond precision. (YYYY-MM-DDTHH:MM:SS.ssssssZ)
|
674
|
-
|
675
|
-
extra_headers: Send extra headers
|
676
|
-
|
677
|
-
extra_query: Add additional query parameters to the request
|
678
|
-
|
679
|
-
extra_body: Add additional JSON properties to the request
|
680
|
-
|
681
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
682
|
-
"""
|
683
|
-
return await self._get(
|
684
|
-
"/udl/gnssrawif/tuple",
|
685
|
-
options=make_request_options(
|
686
|
-
extra_headers=extra_headers,
|
687
|
-
extra_query=extra_query,
|
688
|
-
extra_body=extra_body,
|
689
|
-
timeout=timeout,
|
690
|
-
query=await async_maybe_transform(
|
691
|
-
{
|
692
|
-
"columns": columns,
|
693
|
-
"start_time": start_time,
|
694
|
-
"first_result": first_result,
|
695
|
-
"max_results": max_results,
|
696
|
-
},
|
697
|
-
gnss_rawif_tuple_params.GnssRawifTupleParams,
|
698
|
-
),
|
699
|
-
),
|
700
|
-
cast_to=GnssRawifTupleResponse,
|
701
|
-
)
|
702
|
-
|
703
|
-
async def upload_zip(
|
704
|
-
self,
|
705
|
-
*,
|
706
|
-
file: FileTypes,
|
707
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
708
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
709
|
-
extra_headers: Headers | None = None,
|
710
|
-
extra_query: Query | None = None,
|
711
|
-
extra_body: Body | None = None,
|
712
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
713
|
-
) -> None:
|
714
|
-
"""
|
715
|
-
Upload an HDF5 file with its metadata.
|
716
|
-
|
717
|
-
The request body requires a zip file containing exactly two files:\\
|
718
|
-
1\\)) A file with the `.json` file extension whose content conforms to the `GNSSRawIF_Ingest`
|
719
|
-
schema.\\
|
720
|
-
2\\)) A file with the `.hdf5` file extension.
|
721
|
-
|
722
|
-
The JSON and HDF5 files will be associated with each other via the `id` field.
|
723
|
-
Query the metadata via `GET /udl/gnssrawif` and use
|
724
|
-
`GET /udl/gnssrawif/getFile/{id}` to retrieve the HDF5 file.
|
725
|
-
|
726
|
-
This operation only accepts application/zip media. The application/json request
|
727
|
-
body is documented to provide a convenient reference to the ingest schema.
|
728
|
-
|
729
|
-
This operation is intended to be used for automated feeds into UDL. A specific
|
730
|
-
role is required to perform this service operation. Please contact the UDL team
|
731
|
-
for assistance.
|
732
|
-
|
733
|
-
Args:
|
734
|
-
file: Zip file containing files described in the specification
|
735
|
-
|
736
|
-
extra_headers: Send extra headers
|
737
|
-
|
738
|
-
extra_query: Add additional query parameters to the request
|
739
|
-
|
740
|
-
extra_body: Add additional JSON properties to the request
|
741
|
-
|
742
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
743
|
-
"""
|
744
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
745
|
-
body = deepcopy_minimal({"file": file})
|
746
|
-
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
|
747
|
-
# It should be noted that the actual Content-Type header that will be
|
748
|
-
# sent to the server will contain a `boundary` parameter, e.g.
|
749
|
-
# multipart/form-data; boundary=---abc--
|
750
|
-
extra_headers["Content-Type"] = "multipart/form-data"
|
751
|
-
return await self._post(
|
752
|
-
"/filedrop/udl-gnssrawif",
|
753
|
-
body=await async_maybe_transform(body, gnss_rawif_upload_zip_params.GnssRawifUploadZipParams),
|
754
|
-
files=files,
|
755
|
-
options=make_request_options(
|
756
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
757
|
-
),
|
758
|
-
cast_to=NoneType,
|
759
|
-
)
|
760
|
-
|
761
|
-
|
762
|
-
class GnssRawifResourceWithRawResponse:
|
763
|
-
def __init__(self, gnss_rawif: GnssRawifResource) -> None:
|
764
|
-
self._gnss_rawif = gnss_rawif
|
765
|
-
|
766
|
-
self.list = to_raw_response_wrapper(
|
767
|
-
gnss_rawif.list,
|
768
|
-
)
|
769
|
-
self.count = to_raw_response_wrapper(
|
770
|
-
gnss_rawif.count,
|
771
|
-
)
|
772
|
-
self.file_get = to_custom_raw_response_wrapper(
|
773
|
-
gnss_rawif.file_get,
|
774
|
-
BinaryAPIResponse,
|
775
|
-
)
|
776
|
-
self.get = to_raw_response_wrapper(
|
777
|
-
gnss_rawif.get,
|
778
|
-
)
|
779
|
-
self.queryhelp = to_raw_response_wrapper(
|
780
|
-
gnss_rawif.queryhelp,
|
781
|
-
)
|
782
|
-
self.tuple = to_raw_response_wrapper(
|
783
|
-
gnss_rawif.tuple,
|
784
|
-
)
|
785
|
-
self.upload_zip = to_raw_response_wrapper(
|
786
|
-
gnss_rawif.upload_zip,
|
787
|
-
)
|
788
|
-
|
789
|
-
|
790
|
-
class AsyncGnssRawifResourceWithRawResponse:
|
791
|
-
def __init__(self, gnss_rawif: AsyncGnssRawifResource) -> None:
|
792
|
-
self._gnss_rawif = gnss_rawif
|
793
|
-
|
794
|
-
self.list = async_to_raw_response_wrapper(
|
795
|
-
gnss_rawif.list,
|
796
|
-
)
|
797
|
-
self.count = async_to_raw_response_wrapper(
|
798
|
-
gnss_rawif.count,
|
799
|
-
)
|
800
|
-
self.file_get = async_to_custom_raw_response_wrapper(
|
801
|
-
gnss_rawif.file_get,
|
802
|
-
AsyncBinaryAPIResponse,
|
803
|
-
)
|
804
|
-
self.get = async_to_raw_response_wrapper(
|
805
|
-
gnss_rawif.get,
|
806
|
-
)
|
807
|
-
self.queryhelp = async_to_raw_response_wrapper(
|
808
|
-
gnss_rawif.queryhelp,
|
809
|
-
)
|
810
|
-
self.tuple = async_to_raw_response_wrapper(
|
811
|
-
gnss_rawif.tuple,
|
812
|
-
)
|
813
|
-
self.upload_zip = async_to_raw_response_wrapper(
|
814
|
-
gnss_rawif.upload_zip,
|
815
|
-
)
|
816
|
-
|
817
|
-
|
818
|
-
class GnssRawifResourceWithStreamingResponse:
|
819
|
-
def __init__(self, gnss_rawif: GnssRawifResource) -> None:
|
820
|
-
self._gnss_rawif = gnss_rawif
|
821
|
-
|
822
|
-
self.list = to_streamed_response_wrapper(
|
823
|
-
gnss_rawif.list,
|
824
|
-
)
|
825
|
-
self.count = to_streamed_response_wrapper(
|
826
|
-
gnss_rawif.count,
|
827
|
-
)
|
828
|
-
self.file_get = to_custom_streamed_response_wrapper(
|
829
|
-
gnss_rawif.file_get,
|
830
|
-
StreamedBinaryAPIResponse,
|
831
|
-
)
|
832
|
-
self.get = to_streamed_response_wrapper(
|
833
|
-
gnss_rawif.get,
|
834
|
-
)
|
835
|
-
self.queryhelp = to_streamed_response_wrapper(
|
836
|
-
gnss_rawif.queryhelp,
|
837
|
-
)
|
838
|
-
self.tuple = to_streamed_response_wrapper(
|
839
|
-
gnss_rawif.tuple,
|
840
|
-
)
|
841
|
-
self.upload_zip = to_streamed_response_wrapper(
|
842
|
-
gnss_rawif.upload_zip,
|
843
|
-
)
|
844
|
-
|
845
|
-
|
846
|
-
class AsyncGnssRawifResourceWithStreamingResponse:
|
847
|
-
def __init__(self, gnss_rawif: AsyncGnssRawifResource) -> None:
|
848
|
-
self._gnss_rawif = gnss_rawif
|
849
|
-
|
850
|
-
self.list = async_to_streamed_response_wrapper(
|
851
|
-
gnss_rawif.list,
|
852
|
-
)
|
853
|
-
self.count = async_to_streamed_response_wrapper(
|
854
|
-
gnss_rawif.count,
|
855
|
-
)
|
856
|
-
self.file_get = async_to_custom_streamed_response_wrapper(
|
857
|
-
gnss_rawif.file_get,
|
858
|
-
AsyncStreamedBinaryAPIResponse,
|
859
|
-
)
|
860
|
-
self.get = async_to_streamed_response_wrapper(
|
861
|
-
gnss_rawif.get,
|
862
|
-
)
|
863
|
-
self.queryhelp = async_to_streamed_response_wrapper(
|
864
|
-
gnss_rawif.queryhelp,
|
865
|
-
)
|
866
|
-
self.tuple = async_to_streamed_response_wrapper(
|
867
|
-
gnss_rawif.tuple,
|
868
|
-
)
|
869
|
-
self.upload_zip = async_to_streamed_response_wrapper(
|
870
|
-
gnss_rawif.upload_zip,
|
871
|
-
)
|