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.
Files changed (147) hide show
  1. {udl_sdk-0.1.0a16.dist-info → udl_sdk-0.1.0a18.dist-info}/METADATA +1 -1
  2. {udl_sdk-0.1.0a16.dist-info → udl_sdk-0.1.0a18.dist-info}/RECORD +136 -129
  3. unifieddatalibrary/_client.py +113 -82
  4. unifieddatalibrary/_version.py +1 -1
  5. unifieddatalibrary/resources/__init__.py +28 -84
  6. unifieddatalibrary/resources/air_operations/__init__.py +0 -14
  7. unifieddatalibrary/resources/air_operations/air_operations.py +0 -32
  8. unifieddatalibrary/resources/air_operations/aircraft_sorties.py +1507 -37
  9. unifieddatalibrary/resources/air_operations/crewpapers.py +4 -4
  10. unifieddatalibrary/resources/airload_plans.py +1311 -59
  11. unifieddatalibrary/resources/attitude_sets/attitude_sets.py +106 -0
  12. unifieddatalibrary/resources/conjunctions/conjunctions.py +4 -4
  13. unifieddatalibrary/resources/gnss_raw_if/gnss_raw_if.py +801 -0
  14. unifieddatalibrary/resources/iono_observations/__init__.py +33 -0
  15. unifieddatalibrary/resources/{iono_observation → iono_observations}/history.py +2 -2
  16. unifieddatalibrary/resources/{ion_oobservation.py → iono_observations/iono_observations.py} +123 -91
  17. unifieddatalibrary/resources/logistics_support/logistics_support.py +5 -4
  18. unifieddatalibrary/resources/onorbitantenna.py +5 -4
  19. unifieddatalibrary/resources/onorbitbattery.py +5 -4
  20. unifieddatalibrary/resources/onorbitsolararray.py +5 -4
  21. unifieddatalibrary/resources/onorbitthruster.py +5 -4
  22. unifieddatalibrary/resources/{report_and_activity → report_and_activities}/__init__.py +13 -13
  23. unifieddatalibrary/resources/{report_and_activity → report_and_activities}/poi/history.py +2 -2
  24. unifieddatalibrary/resources/{report_and_activity/report_and_activity.py → report_and_activities/report_and_activities.py} +35 -35
  25. unifieddatalibrary/resources/{report_and_activity → report_and_activities}/udl_h3geo.py +1 -1
  26. unifieddatalibrary/resources/{report_and_activity → report_and_activities}/udl_sigact.py +1 -1
  27. unifieddatalibrary/resources/scs/paths.py +4 -4
  28. unifieddatalibrary/resources/scs/scs.py +4 -4
  29. unifieddatalibrary/resources/scs/v2.py +4 -4
  30. unifieddatalibrary/resources/status.py +5 -4
  31. unifieddatalibrary/resources/supporting_data/__init__.py +0 -42
  32. unifieddatalibrary/resources/supporting_data/dataowner.py +257 -1
  33. unifieddatalibrary/resources/supporting_data/supporting_data.py +0 -96
  34. unifieddatalibrary/resources/track_route/track_route.py +26 -23
  35. unifieddatalibrary/types/__init__.py +40 -30
  36. unifieddatalibrary/types/air_operations/__init__.py +12 -12
  37. unifieddatalibrary/types/air_operations/{aircraft_sortie_list_params.py → aircraft_sorty_count_params.py} +2 -2
  38. unifieddatalibrary/types/air_operations/aircraft_sorty_count_response.py +7 -0
  39. unifieddatalibrary/types/air_operations/{aircraft_sortie_create_bulk_params.py → aircraft_sorty_create_bulk_params.py} +2 -2
  40. unifieddatalibrary/types/air_operations/{aircraft_sortie_create_params.py → aircraft_sorty_create_params.py} +2 -2
  41. unifieddatalibrary/types/air_operations/{aircraft_sortie_history_aodr_params.py → aircraft_sorty_history_aodr_params.py} +2 -2
  42. unifieddatalibrary/types/air_operations/{aircraft_sortie_history_count_params.py → aircraft_sorty_history_count_params.py} +2 -2
  43. unifieddatalibrary/types/{ion_oobservation_count_response.py → air_operations/aircraft_sorty_history_count_response.py} +2 -2
  44. unifieddatalibrary/types/air_operations/{aircraft_sortie_history_query_params.py → aircraft_sorty_history_query_params.py} +2 -2
  45. unifieddatalibrary/types/air_operations/{aircraft_sortie_history_query_response.py → aircraft_sorty_history_query_response.py} +2 -2
  46. unifieddatalibrary/types/air_operations/{aircraft_sortie_count_params.py → aircraft_sorty_list_params.py} +2 -2
  47. unifieddatalibrary/types/{air_load_plan_count_params.py → airload_plan_count_params.py} +2 -2
  48. unifieddatalibrary/types/{air_load_plan_count_response.py → airload_plan_count_response.py} +2 -2
  49. unifieddatalibrary/types/{air_load_plan_create_params.py → airload_plan_create_params.py} +2 -2
  50. unifieddatalibrary/types/{air_load_plan_list_params.py → airload_plan_list_params.py} +2 -2
  51. unifieddatalibrary/types/{air_load_plan_queryhelp_response.py → airload_plan_queryhelp_response.py} +2 -2
  52. unifieddatalibrary/types/{air_load_plan_retrieve_params.py → airload_plan_retrieve_params.py} +2 -2
  53. unifieddatalibrary/types/{air_load_plan_tuple_params.py → airload_plan_tuple_params.py} +2 -2
  54. unifieddatalibrary/types/{air_load_plan_tuple_response.py → airload_plan_tuple_response.py} +2 -2
  55. unifieddatalibrary/types/altitude_blocks_ingest_param.py +22 -0
  56. unifieddatalibrary/types/{attitudeset_retrieve_params.py → attitude_set_retrieve_params.py} +2 -2
  57. unifieddatalibrary/types/{gnss_rawif_count_params.py → gnss_raw_if_count_params.py} +2 -2
  58. unifieddatalibrary/types/{gnss_rawif_count_response.py → gnss_raw_if_count_response.py} +2 -2
  59. unifieddatalibrary/types/{gnss_rawif_file_get_params.py → gnss_raw_if_file_get_params.py} +2 -2
  60. unifieddatalibrary/types/{gnss_rawif_get_params.py → gnss_raw_if_get_params.py} +2 -2
  61. unifieddatalibrary/types/{gnss_rawif_get_response.py → gnss_raw_if_get_response.py} +2 -2
  62. unifieddatalibrary/types/{gnss_rawif_list_params.py → gnss_raw_if_list_params.py} +2 -2
  63. unifieddatalibrary/types/{gnss_rawif_list_response.py → gnss_raw_if_list_response.py} +2 -2
  64. unifieddatalibrary/types/{gnss_rawif_queryhelp_response.py → gnss_raw_if_queryhelp_response.py} +2 -2
  65. unifieddatalibrary/types/{gnss_rawif_tuple_params.py → gnss_raw_if_tuple_params.py} +2 -2
  66. unifieddatalibrary/types/{gnss_rawif_tuple_response.py → gnss_raw_if_tuple_response.py} +3 -3
  67. unifieddatalibrary/types/{gnss_rawif_upload_zip_params.py → gnss_raw_if_upload_zip_params.py} +2 -2
  68. unifieddatalibrary/types/{ion_oobservation_count_params.py → iono_observation_count_params.py} +2 -2
  69. unifieddatalibrary/types/{air_operations/aircraft_sortie_count_response.py → iono_observation_count_response.py} +2 -2
  70. unifieddatalibrary/types/{ion_oobservation_create_bulk_params.py → iono_observation_create_bulk_params.py} +2 -2
  71. unifieddatalibrary/types/{ion_oobservation_list_params.py → iono_observation_list_params.py} +2 -2
  72. unifieddatalibrary/types/{ion_oobservation_list_response.py → iono_observation_list_response.py} +2 -2
  73. unifieddatalibrary/types/{ion_oobservation_queryhelp_response.py → iono_observation_queryhelp_response.py} +2 -2
  74. unifieddatalibrary/types/{ion_oobservation_tuple_params.py → iono_observation_tuple_params.py} +2 -2
  75. unifieddatalibrary/types/{ion_oobservation_tuple_response.py → iono_observation_tuple_response.py} +82 -82
  76. unifieddatalibrary/types/{ion_oobservation_unvalidated_publish_params.py → iono_observation_unvalidated_publish_params.py} +2 -2
  77. unifieddatalibrary/types/logistics_remarks_ingest_param.py +25 -0
  78. unifieddatalibrary/types/logistics_support_create_bulk_params.py +4 -51
  79. unifieddatalibrary/types/logistics_support_create_params.py +4 -49
  80. unifieddatalibrary/types/logistics_support_unvalidated_publish_params.py +4 -51
  81. unifieddatalibrary/types/logistics_support_update_params.py +4 -49
  82. unifieddatalibrary/types/onorbitantenna_create_params.py +3 -38
  83. unifieddatalibrary/types/onorbitantenna_update_params.py +3 -38
  84. unifieddatalibrary/types/onorbitbattery_create_params.py +3 -38
  85. unifieddatalibrary/types/onorbitbattery_update_params.py +3 -38
  86. unifieddatalibrary/types/onorbitsolararray_create_params.py +3 -38
  87. unifieddatalibrary/types/onorbitsolararray_update_params.py +3 -38
  88. unifieddatalibrary/types/onorbitthruster_create_params.py +3 -41
  89. unifieddatalibrary/types/onorbitthruster_update_params.py +3 -41
  90. unifieddatalibrary/types/point_of_contact_ingest_param.py +41 -0
  91. unifieddatalibrary/types/route_points_ingest_param.py +82 -0
  92. unifieddatalibrary/types/shared/__init__.py +5 -0
  93. unifieddatalibrary/types/shared/antenna_ingest.py +62 -0
  94. unifieddatalibrary/types/shared/battery_ingest.py +62 -0
  95. unifieddatalibrary/types/shared/engine_ingest.py +65 -0
  96. unifieddatalibrary/types/shared/solar_array_ingest.py +62 -0
  97. unifieddatalibrary/types/shared/sub_status_ingest.py +74 -0
  98. unifieddatalibrary/types/shared_params/__init__.py +5 -0
  99. unifieddatalibrary/types/shared_params/antenna_ingest.py +45 -0
  100. unifieddatalibrary/types/shared_params/battery_ingest.py +45 -0
  101. unifieddatalibrary/types/shared_params/engine_ingest.py +48 -0
  102. unifieddatalibrary/types/shared_params/solar_array_ingest.py +45 -0
  103. unifieddatalibrary/types/shared_params/sub_status_ingest.py +57 -0
  104. unifieddatalibrary/types/status_create_params.py +3 -50
  105. unifieddatalibrary/types/status_update_params.py +3 -50
  106. unifieddatalibrary/types/supporting_data/__init__.py +13 -5
  107. unifieddatalibrary/types/supporting_data/{query_help_retrieve_response.py → dataowner_query_help_response.py} +2 -2
  108. unifieddatalibrary/types/supporting_data/{dataowner_type_list_params.py → dataowner_retrieve_data_owner_types_params.py} +2 -2
  109. unifieddatalibrary/types/supporting_data/dataowner_retrieve_data_owner_types_response.py +8 -0
  110. unifieddatalibrary/types/supporting_data/{provider_metadata_retrieve_params.py → dataowner_retrieve_provider_metadata_params.py} +2 -2
  111. unifieddatalibrary/types/supporting_data/{provider_metadata_retrieve_response.py → dataowner_retrieve_provider_metadata_response.py} +2 -2
  112. unifieddatalibrary/types/track_route_create_bulk_params.py +5 -267
  113. unifieddatalibrary/types/track_route_create_params.py +7 -122
  114. unifieddatalibrary/types/track_route_ingest_param.py +157 -0
  115. unifieddatalibrary/types/track_route_unvalidated_publish_params.py +7 -122
  116. unifieddatalibrary/types/track_route_update_params.py +7 -122
  117. unifieddatalibrary/resources/air_load_plans.py +0 -1341
  118. unifieddatalibrary/resources/air_operations/aircraft_sortie.py +0 -1557
  119. unifieddatalibrary/resources/attitudesets.py +0 -191
  120. unifieddatalibrary/resources/gnss_rawif.py +0 -871
  121. unifieddatalibrary/resources/iono_observation/__init__.py +0 -33
  122. unifieddatalibrary/resources/iono_observation/iono_observation.py +0 -102
  123. unifieddatalibrary/resources/supporting_data/dataowner_types.py +0 -186
  124. unifieddatalibrary/resources/supporting_data/provider_metadata.py +0 -179
  125. unifieddatalibrary/resources/supporting_data/query_help.py +0 -141
  126. unifieddatalibrary/types/air_operations/aircraft_sortie_history_count_response.py +0 -7
  127. unifieddatalibrary/types/supporting_data/dataowner_type_list_response.py +0 -7
  128. {udl_sdk-0.1.0a16.dist-info → udl_sdk-0.1.0a18.dist-info}/WHEEL +0 -0
  129. {udl_sdk-0.1.0a16.dist-info → udl_sdk-0.1.0a18.dist-info}/licenses/LICENSE +0 -0
  130. /unifieddatalibrary/resources/{report_and_activity → report_and_activities}/poi/__init__.py +0 -0
  131. /unifieddatalibrary/resources/{report_and_activity → report_and_activities}/poi/poi.py +0 -0
  132. /unifieddatalibrary/types/{iono_observation → iono_observations}/__init__.py +0 -0
  133. /unifieddatalibrary/types/{iono_observation → iono_observations}/history_aodr_params.py +0 -0
  134. /unifieddatalibrary/types/{iono_observation → iono_observations}/history_count_params.py +0 -0
  135. /unifieddatalibrary/types/{iono_observation → iono_observations}/history_count_response.py +0 -0
  136. /unifieddatalibrary/types/{iono_observation → iono_observations}/history_list_params.py +0 -0
  137. /unifieddatalibrary/types/{iono_observation → iono_observations}/history_list_response.py +0 -0
  138. /unifieddatalibrary/types/{report_and_activity → report_and_activities}/__init__.py +0 -0
  139. /unifieddatalibrary/types/{report_and_activity → report_and_activities}/poi/__init__.py +0 -0
  140. /unifieddatalibrary/types/{report_and_activity → report_and_activities}/poi/history_aodr_params.py +0 -0
  141. /unifieddatalibrary/types/{report_and_activity → report_and_activities}/poi/history_count_params.py +0 -0
  142. /unifieddatalibrary/types/{report_and_activity → report_and_activities}/poi/history_count_response.py +0 -0
  143. /unifieddatalibrary/types/{report_and_activity → report_and_activities}/poi/history_list_params.py +0 -0
  144. /unifieddatalibrary/types/{report_and_activity → report_and_activities}/poi/history_list_response.py +0 -0
  145. /unifieddatalibrary/types/{report_and_activity → report_and_activities}/udl_h3geo_unvalidated_publish_params.py +0 -0
  146. /unifieddatalibrary/types/{report_and_activity → report_and_activities}/udl_sigact_file_get_params.py +0 -0
  147. /unifieddatalibrary/types/{report_and_activity → report_and_activities}/udl_sigact_unvalidated_publish_params.py +0 -0
@@ -2,7 +2,9 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Iterable
5
+ from typing import Union, Iterable
6
+ from datetime import date, datetime
7
+ from typing_extensions import Literal
6
8
 
7
9
  import httpx
8
10
 
@@ -16,36 +18,1257 @@ from ..._response import (
16
18
  async_to_raw_response_wrapper,
17
19
  async_to_streamed_response_wrapper,
18
20
  )
19
- from ..._base_client import make_request_options
20
- from ...types.air_operations import aircraft_sorty_unvalidated_publish_params
21
+ from ...pagination import SyncOffsetPage, AsyncOffsetPage
22
+ from ..._base_client import AsyncPaginator, make_request_options
23
+ from ...types.air_operations import (
24
+ aircraft_sorty_list_params,
25
+ aircraft_sorty_count_params,
26
+ aircraft_sorty_create_params,
27
+ aircraft_sorty_create_bulk_params,
28
+ aircraft_sorty_history_aodr_params,
29
+ aircraft_sorty_history_count_params,
30
+ aircraft_sorty_history_query_params,
31
+ aircraft_sorty_unvalidated_publish_params,
32
+ )
33
+ from ...types.air_operations.aircraftsortie_abridged import AircraftsortieAbridged
34
+ from ...types.air_operations.aircraft_sorty_history_query_response import AircraftSortyHistoryQueryResponse
35
+
36
+ __all__ = ["AircraftSortiesResource", "AsyncAircraftSortiesResource"]
37
+
38
+
39
+ class AircraftSortiesResource(SyncAPIResource):
40
+ @cached_property
41
+ def with_raw_response(self) -> AircraftSortiesResourceWithRawResponse:
42
+ """
43
+ This property can be used as a prefix for any HTTP method call to return
44
+ the raw response object instead of the parsed content.
45
+
46
+ For more information, see https://www.github.com/Bluestaq/udl-python-sdk#accessing-raw-response-data-eg-headers
47
+ """
48
+ return AircraftSortiesResourceWithRawResponse(self)
49
+
50
+ @cached_property
51
+ def with_streaming_response(self) -> AircraftSortiesResourceWithStreamingResponse:
52
+ """
53
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
54
+
55
+ For more information, see https://www.github.com/Bluestaq/udl-python-sdk#with_streaming_response
56
+ """
57
+ return AircraftSortiesResourceWithStreamingResponse(self)
58
+
59
+ def create(
60
+ self,
61
+ *,
62
+ classification_marking: str,
63
+ data_mode: Literal["REAL", "TEST", "SIMULATED", "EXERCISE"],
64
+ planned_dep_time: Union[str, datetime],
65
+ source: str,
66
+ id: str | NotGiven = NOT_GIVEN,
67
+ actual_arr_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
68
+ actual_block_in_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
69
+ actual_block_out_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
70
+ actual_dep_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
71
+ aircraft_adsb: str | NotGiven = NOT_GIVEN,
72
+ aircraft_alt_id: str | NotGiven = NOT_GIVEN,
73
+ aircraft_event: str | NotGiven = NOT_GIVEN,
74
+ aircraft_mds: str | NotGiven = NOT_GIVEN,
75
+ aircraft_remarks: str | NotGiven = NOT_GIVEN,
76
+ alert_status: int | NotGiven = NOT_GIVEN,
77
+ alert_status_code: str | NotGiven = NOT_GIVEN,
78
+ amc_msn_num: str | NotGiven = NOT_GIVEN,
79
+ amc_msn_type: str | NotGiven = NOT_GIVEN,
80
+ arr_faa: str | NotGiven = NOT_GIVEN,
81
+ arr_iata: str | NotGiven = NOT_GIVEN,
82
+ arr_icao: str | NotGiven = NOT_GIVEN,
83
+ arr_itinerary: int | NotGiven = NOT_GIVEN,
84
+ arr_purpose_code: str | NotGiven = NOT_GIVEN,
85
+ call_sign: str | NotGiven = NOT_GIVEN,
86
+ cargo_config: str | NotGiven = NOT_GIVEN,
87
+ commander_name: str | NotGiven = NOT_GIVEN,
88
+ current_state: str | NotGiven = NOT_GIVEN,
89
+ delay_code: str | NotGiven = NOT_GIVEN,
90
+ dep_faa: str | NotGiven = NOT_GIVEN,
91
+ dep_iata: str | NotGiven = NOT_GIVEN,
92
+ dep_icao: str | NotGiven = NOT_GIVEN,
93
+ dep_itinerary: int | NotGiven = NOT_GIVEN,
94
+ dep_purpose_code: str | NotGiven = NOT_GIVEN,
95
+ dhd: Union[str, datetime] | NotGiven = NOT_GIVEN,
96
+ dhd_reason: str | NotGiven = NOT_GIVEN,
97
+ est_arr_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
98
+ est_block_in_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
99
+ est_block_out_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
100
+ est_dep_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
101
+ flight_time: float | NotGiven = NOT_GIVEN,
102
+ fm_desk_num: str | NotGiven = NOT_GIVEN,
103
+ fm_name: str | NotGiven = NOT_GIVEN,
104
+ fuel_req: float | NotGiven = NOT_GIVEN,
105
+ gnd_time: float | NotGiven = NOT_GIVEN,
106
+ id_aircraft: str | NotGiven = NOT_GIVEN,
107
+ id_mission: str | NotGiven = NOT_GIVEN,
108
+ jcs_priority: str | NotGiven = NOT_GIVEN,
109
+ leg_num: int | NotGiven = NOT_GIVEN,
110
+ line_number: int | NotGiven = NOT_GIVEN,
111
+ mission_id: str | NotGiven = NOT_GIVEN,
112
+ mission_update: Union[str, datetime] | NotGiven = NOT_GIVEN,
113
+ objective_remarks: str | NotGiven = NOT_GIVEN,
114
+ origin: str | NotGiven = NOT_GIVEN,
115
+ orig_sortie_id: str | NotGiven = NOT_GIVEN,
116
+ oxy_on_crew: float | NotGiven = NOT_GIVEN,
117
+ oxy_on_pax: float | NotGiven = NOT_GIVEN,
118
+ oxy_req_crew: float | NotGiven = NOT_GIVEN,
119
+ oxy_req_pax: float | NotGiven = NOT_GIVEN,
120
+ parking_loc: str | NotGiven = NOT_GIVEN,
121
+ passengers: int | NotGiven = NOT_GIVEN,
122
+ planned_arr_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
123
+ ppr_status: Literal["NOT REQUIRED", "REQUIRED NOT REQUESTED", "GRANTED", "PENDING"] | NotGiven = NOT_GIVEN,
124
+ primary_scl: str | NotGiven = NOT_GIVEN,
125
+ req_config: str | NotGiven = NOT_GIVEN,
126
+ result_remarks: str | NotGiven = NOT_GIVEN,
127
+ rvn_req: Literal["N", "R", "C6", "R6"] | NotGiven = NOT_GIVEN,
128
+ schedule_remarks: str | NotGiven = NOT_GIVEN,
129
+ secondary_scl: str | NotGiven = NOT_GIVEN,
130
+ soe: str | NotGiven = NOT_GIVEN,
131
+ sortie_date: Union[str, date] | NotGiven = NOT_GIVEN,
132
+ tail_number: str | NotGiven = NOT_GIVEN,
133
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
134
+ # The extra values given here take precedence over values defined on the client or passed to this method.
135
+ extra_headers: Headers | None = None,
136
+ extra_query: Query | None = None,
137
+ extra_body: Body | None = None,
138
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
139
+ ) -> None:
140
+ """
141
+ Service operation to take a single AircraftSortie as a POST body and ingest into
142
+ the database. A specific role is required to perform this service operation.
143
+ Please contact the UDL team for assistance.
144
+
145
+ Args:
146
+ classification_marking: Classification marking of the data in IC/CAPCO Portion-marked format.
147
+
148
+ data_mode:
149
+ Indicator of whether the data is EXERCISE, REAL, SIMULATED, or TEST data:
150
+
151
+ EXERCISE: Data pertaining to a government or military exercise. The data
152
+ may include both real and simulated data.
153
+
154
+ REAL: Data collected or produced that pertains to real-world objects,
155
+ events, and analysis.
156
+
157
+ SIMULATED: Synthetic data generated by a model to mimic real-world
158
+ datasets.
159
+
160
+ TEST: Specific datasets used to evaluate compliance with specifications and
161
+ requirements, and for validating technical, functional, and performance
162
+ characteristics.
163
+
164
+ planned_dep_time: The scheduled time that the Aircraft sortie is planned to depart, in ISO 8601
165
+ UTC format with millisecond precision.
166
+
167
+ source: Source of the data.
168
+
169
+ id: Unique identifier of the record, auto-generated by the system.
170
+
171
+ actual_arr_time: The actual arrival time, in ISO 8601 UTC format with millisecond precision.
172
+
173
+ actual_block_in_time: The actual time the Aircraft comes to a complete stop in its parking position,
174
+ in ISO 8601 UTC format with millisecond precision.
175
+
176
+ actual_block_out_time: The actual time the Aircraft begins to taxi from its parking position, in ISO
177
+ 8601 UTC format with millisecond precision.
178
+
179
+ actual_dep_time: The actual departure time, in ISO 8601 UTC format.
180
+
181
+ aircraft_adsb: The Automatic Dependent Surveillance-Broadcast (ADS-B) device identifier.
182
+
183
+ aircraft_alt_id: Alternate Aircraft Identifier provided by source.
184
+
185
+ aircraft_event: Aircraft event text.
186
+
187
+ aircraft_mds: The aircraft Model Design Series designation assigned to this sortie.
188
+
189
+ aircraft_remarks: Remarks concerning the aircraft.
190
+
191
+ alert_status: The amount of time allowed between launch order and takeoff, in seconds.
192
+
193
+ alert_status_code: The Alert Status code.
194
+
195
+ amc_msn_num: The Air Mobility Command (AMC) mission number of the sortie.
196
+
197
+ amc_msn_type: The type of mission (e.g. SAAM, CHNL, etc.).
198
+
199
+ arr_faa: The arrival Federal Aviation Administration (FAA) code of this sortie.
200
+
201
+ arr_iata: The arrival International Aviation Transport Association (IATA) code of this
202
+ sortie.
203
+
204
+ arr_icao: The arrival International Civil Aviation Organization (ICAO) of this sortie.
205
+
206
+ arr_itinerary: The itinerary identifier of the arrival location.
207
+
208
+ arr_purpose_code: Purpose code at the arrival location of this sortie.
209
+
210
+ call_sign: The call sign assigned to the aircraft on this sortie.
211
+
212
+ cargo_config: Description of the cargo configuration (e.g. C-1, C-2, C-3, DV-1, DV-2, AE-1,
213
+ etc.) currently on board the aircraft. Configuration meanings are determined by
214
+ the data source.
215
+
216
+ commander_name: The last name of the aircraft commander.
217
+
218
+ current_state: The current state of this sortie.
219
+
220
+ delay_code: The primary delay code.
221
+
222
+ dep_faa: The departure Federal Aviation Administration (FAA) code of this sortie.
223
+
224
+ dep_iata: The departure International Aviation Transport Association (IATA) code of this
225
+ sortie.
226
+
227
+ dep_icao: The departure International Civil Aviation Organization (ICAO) of this sortie.
228
+
229
+ dep_itinerary: The itinerary identifier of the departure location.
230
+
231
+ dep_purpose_code: Purpose code at the departure location of this sortie.
232
+
233
+ dhd: Due home date by which the aircraft must return to its home station, in ISO 8601
234
+ UTC format with millisecond precision.
235
+
236
+ dhd_reason: Reason the aircraft must return to home station by its due home date.
237
+
238
+ est_arr_time: The current estimated time that the Aircraft is planned to arrive, in ISO 8601
239
+ UTC format with millisecond precision.
240
+
241
+ est_block_in_time: The estimated time the Aircraft will come to a complete stop in its parking
242
+ position, in ISO 8601 UTC format with millisecond precision.
243
+
244
+ est_block_out_time: The estimated time the Aircraft will begin to taxi from its parking position, in
245
+ ISO 8601 UTC format with millisecond precision.
246
+
247
+ est_dep_time: The current estimated time that the Aircraft is planned to depart, in ISO 8601
248
+ UTC format with millisecond precision.
249
+
250
+ flight_time: The planned flight time for this sortie, in minutes.
251
+
252
+ fm_desk_num: Desk phone number of the flight manager assigned to the sortie. Null when no
253
+ flight manager is assigned.
254
+
255
+ fm_name: Last name of the flight manager assigned to the sortie. Null when no flight
256
+ manager is assigned.
257
+
258
+ fuel_req: Mass of fuel required for this leg of the sortie, in kilograms.
259
+
260
+ gnd_time: Scheduled ground time, in minutes.
261
+
262
+ id_aircraft: Unique identifier of the aircraft.
263
+
264
+ id_mission: The unique identifier of the mission to which this sortie is assigned.
265
+
266
+ jcs_priority: Joint Chiefs of Staff priority of this sortie.
267
+
268
+ leg_num: The leg number of this sortie.
269
+
270
+ line_number: The external system line number of this sortie.
271
+
272
+ mission_id: The mission ID according to the source system.
273
+
274
+ mission_update: Time the associated mission data was last updated in relation to the aircraft
275
+ assignment, in ISO 8601 UTC format with millisecond precision. If this time is
276
+ coming from an external system, it may not sync with the latest mission time
277
+ associated to this record.
278
+
279
+ objective_remarks: Remarks concerning the sortie objective.
280
+
281
+ origin: Originating system or organization which produced the data, if different from
282
+ the source. The origin may be different than the source if the source was a
283
+ mediating system which forwarded the data on behalf of the origin system. If
284
+ null, the source may be assumed to be the origin.
285
+
286
+ orig_sortie_id: The sortie identifier provided by the originating source.
287
+
288
+ oxy_on_crew: Liquid oxygen onboard the aircraft for the crew compartment, in liters.
289
+
290
+ oxy_on_pax: Liquid oxygen onboard the aircraft for the troop compartment, in liters.
291
+
292
+ oxy_req_crew: Liquid oxygen required on the aircraft for the crew compartment, in liters.
293
+
294
+ oxy_req_pax: Liquid oxygen required on the aircraft for the troop compartment, in liters.
295
+
296
+ parking_loc: The POI parking location.
297
+
298
+ passengers: The number of passengers tasked for this sortie.
299
+
300
+ planned_arr_time: The scheduled time that the Aircraft sortie is planned to arrive, in ISO 8601
301
+ UTC format with millisecond precision.
302
+
303
+ ppr_status: The prior permission required (PPR) status.
304
+
305
+ primary_scl: The planned primary Standard Conventional Load of the aircraft for this sortie.
306
+
307
+ req_config: Aircraft configuration required for the mission.
308
+
309
+ result_remarks: Remarks concerning the results of this sortie.
310
+
311
+ rvn_req: Type of Ravens required for this sortie (N - None, R - Raven (Security Team)
312
+ required, C6 - Consider ravens (Ground time over 6 hours), R6 - Ravens required
313
+ (Ground time over 6 hours)).
314
+
315
+ schedule_remarks: Remarks concerning the schedule.
316
+
317
+ secondary_scl: The planned secondary Standard Conventional Load of the aircraft for this
318
+ sortie.
319
+
320
+ soe: Indicates the group responsible for recording the completion time of the next
321
+ event in the sequence of events assigned to this sortie (e.g. OPS - Operations,
322
+ MX - Maintenance, TR - Transportation, etc.).
323
+
324
+ sortie_date: The scheduled UTC date for this sortie, in ISO 8601 date-only format (ex.
325
+ YYYY-MM-DD).
326
+
327
+ tail_number: The tail number of the aircraft assigned to this sortie.
328
+
329
+ extra_headers: Send extra headers
330
+
331
+ extra_query: Add additional query parameters to the request
332
+
333
+ extra_body: Add additional JSON properties to the request
334
+
335
+ timeout: Override the client-level default timeout for this request, in seconds
336
+ """
337
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
338
+ return self._post(
339
+ "/udl/aircraftsortie",
340
+ body=maybe_transform(
341
+ {
342
+ "classification_marking": classification_marking,
343
+ "data_mode": data_mode,
344
+ "planned_dep_time": planned_dep_time,
345
+ "source": source,
346
+ "id": id,
347
+ "actual_arr_time": actual_arr_time,
348
+ "actual_block_in_time": actual_block_in_time,
349
+ "actual_block_out_time": actual_block_out_time,
350
+ "actual_dep_time": actual_dep_time,
351
+ "aircraft_adsb": aircraft_adsb,
352
+ "aircraft_alt_id": aircraft_alt_id,
353
+ "aircraft_event": aircraft_event,
354
+ "aircraft_mds": aircraft_mds,
355
+ "aircraft_remarks": aircraft_remarks,
356
+ "alert_status": alert_status,
357
+ "alert_status_code": alert_status_code,
358
+ "amc_msn_num": amc_msn_num,
359
+ "amc_msn_type": amc_msn_type,
360
+ "arr_faa": arr_faa,
361
+ "arr_iata": arr_iata,
362
+ "arr_icao": arr_icao,
363
+ "arr_itinerary": arr_itinerary,
364
+ "arr_purpose_code": arr_purpose_code,
365
+ "call_sign": call_sign,
366
+ "cargo_config": cargo_config,
367
+ "commander_name": commander_name,
368
+ "current_state": current_state,
369
+ "delay_code": delay_code,
370
+ "dep_faa": dep_faa,
371
+ "dep_iata": dep_iata,
372
+ "dep_icao": dep_icao,
373
+ "dep_itinerary": dep_itinerary,
374
+ "dep_purpose_code": dep_purpose_code,
375
+ "dhd": dhd,
376
+ "dhd_reason": dhd_reason,
377
+ "est_arr_time": est_arr_time,
378
+ "est_block_in_time": est_block_in_time,
379
+ "est_block_out_time": est_block_out_time,
380
+ "est_dep_time": est_dep_time,
381
+ "flight_time": flight_time,
382
+ "fm_desk_num": fm_desk_num,
383
+ "fm_name": fm_name,
384
+ "fuel_req": fuel_req,
385
+ "gnd_time": gnd_time,
386
+ "id_aircraft": id_aircraft,
387
+ "id_mission": id_mission,
388
+ "jcs_priority": jcs_priority,
389
+ "leg_num": leg_num,
390
+ "line_number": line_number,
391
+ "mission_id": mission_id,
392
+ "mission_update": mission_update,
393
+ "objective_remarks": objective_remarks,
394
+ "origin": origin,
395
+ "orig_sortie_id": orig_sortie_id,
396
+ "oxy_on_crew": oxy_on_crew,
397
+ "oxy_on_pax": oxy_on_pax,
398
+ "oxy_req_crew": oxy_req_crew,
399
+ "oxy_req_pax": oxy_req_pax,
400
+ "parking_loc": parking_loc,
401
+ "passengers": passengers,
402
+ "planned_arr_time": planned_arr_time,
403
+ "ppr_status": ppr_status,
404
+ "primary_scl": primary_scl,
405
+ "req_config": req_config,
406
+ "result_remarks": result_remarks,
407
+ "rvn_req": rvn_req,
408
+ "schedule_remarks": schedule_remarks,
409
+ "secondary_scl": secondary_scl,
410
+ "soe": soe,
411
+ "sortie_date": sortie_date,
412
+ "tail_number": tail_number,
413
+ },
414
+ aircraft_sorty_create_params.AircraftSortyCreateParams,
415
+ ),
416
+ options=make_request_options(
417
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
418
+ ),
419
+ cast_to=NoneType,
420
+ )
421
+
422
+ def list(
423
+ self,
424
+ *,
425
+ planned_dep_time: Union[str, datetime],
426
+ first_result: int | NotGiven = NOT_GIVEN,
427
+ max_results: int | NotGiven = NOT_GIVEN,
428
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
429
+ # The extra values given here take precedence over values defined on the client or passed to this method.
430
+ extra_headers: Headers | None = None,
431
+ extra_query: Query | None = None,
432
+ extra_body: Body | None = None,
433
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
434
+ ) -> SyncOffsetPage[AircraftsortieAbridged]:
435
+ """
436
+ Service operation to dynamically query data by a variety of query parameters not
437
+ specified in this API documentation. See the queryhelp operation
438
+ (/udl/<datatype>/queryhelp) for more details on valid/required query
439
+ parameter information.
440
+
441
+ Args:
442
+ planned_dep_time: The scheduled time that the Aircraft sortie is planned to depart, in ISO 8601
443
+ UTC format with millisecond precision. (YYYY-MM-DDTHH:MM:SS.sssZ)
444
+
445
+ extra_headers: Send extra headers
446
+
447
+ extra_query: Add additional query parameters to the request
448
+
449
+ extra_body: Add additional JSON properties to the request
450
+
451
+ timeout: Override the client-level default timeout for this request, in seconds
452
+ """
453
+ return self._get_api_list(
454
+ "/udl/aircraftsortie",
455
+ page=SyncOffsetPage[AircraftsortieAbridged],
456
+ options=make_request_options(
457
+ extra_headers=extra_headers,
458
+ extra_query=extra_query,
459
+ extra_body=extra_body,
460
+ timeout=timeout,
461
+ query=maybe_transform(
462
+ {
463
+ "planned_dep_time": planned_dep_time,
464
+ "first_result": first_result,
465
+ "max_results": max_results,
466
+ },
467
+ aircraft_sorty_list_params.AircraftSortyListParams,
468
+ ),
469
+ ),
470
+ model=AircraftsortieAbridged,
471
+ )
472
+
473
+ def count(
474
+ self,
475
+ *,
476
+ planned_dep_time: Union[str, datetime],
477
+ first_result: int | NotGiven = NOT_GIVEN,
478
+ max_results: int | NotGiven = NOT_GIVEN,
479
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
480
+ # The extra values given here take precedence over values defined on the client or passed to this method.
481
+ extra_headers: Headers | None = None,
482
+ extra_query: Query | None = None,
483
+ extra_body: Body | None = None,
484
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
485
+ ) -> str:
486
+ """
487
+ Service operation to return the count of records satisfying the specified query
488
+ parameters. This operation is useful to determine how many records pass a
489
+ particular query criteria without retrieving large amounts of data. See the
490
+ queryhelp operation (/udl/<datatype>/queryhelp) for more details on
491
+ valid/required query parameter information.
492
+
493
+ Args:
494
+ planned_dep_time: The scheduled time that the Aircraft sortie is planned to depart, in ISO 8601
495
+ UTC format with millisecond precision. (YYYY-MM-DDTHH:MM:SS.sssZ)
496
+
497
+ extra_headers: Send extra headers
498
+
499
+ extra_query: Add additional query parameters to the request
500
+
501
+ extra_body: Add additional JSON properties to the request
502
+
503
+ timeout: Override the client-level default timeout for this request, in seconds
504
+ """
505
+ extra_headers = {"Accept": "text/plain", **(extra_headers or {})}
506
+ return self._get(
507
+ "/udl/aircraftsortie/count",
508
+ options=make_request_options(
509
+ extra_headers=extra_headers,
510
+ extra_query=extra_query,
511
+ extra_body=extra_body,
512
+ timeout=timeout,
513
+ query=maybe_transform(
514
+ {
515
+ "planned_dep_time": planned_dep_time,
516
+ "first_result": first_result,
517
+ "max_results": max_results,
518
+ },
519
+ aircraft_sorty_count_params.AircraftSortyCountParams,
520
+ ),
521
+ ),
522
+ cast_to=str,
523
+ )
524
+
525
+ def create_bulk(
526
+ self,
527
+ *,
528
+ body: Iterable[aircraft_sorty_create_bulk_params.Body],
529
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
530
+ # The extra values given here take precedence over values defined on the client or passed to this method.
531
+ extra_headers: Headers | None = None,
532
+ extra_query: Query | None = None,
533
+ extra_body: Body | None = None,
534
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
535
+ ) -> None:
536
+ """
537
+ Service operation intended for initial integration only, to take a list of
538
+ AircraftSorties as a POST body and ingest into the database. This operation is
539
+ not intended to be used for automated feeds into UDL. Data providers should
540
+ contact the UDL team for specific role assignments and for instructions on
541
+ setting up a permanent feed through an alternate mechanism.
542
+
543
+ Args:
544
+ extra_headers: Send extra headers
545
+
546
+ extra_query: Add additional query parameters to the request
547
+
548
+ extra_body: Add additional JSON properties to the request
549
+
550
+ timeout: Override the client-level default timeout for this request, in seconds
551
+ """
552
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
553
+ return self._post(
554
+ "/udl/aircraftsortie/createBulk",
555
+ body=maybe_transform(body, Iterable[aircraft_sorty_create_bulk_params.Body]),
556
+ options=make_request_options(
557
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
558
+ ),
559
+ cast_to=NoneType,
560
+ )
561
+
562
+ def history_aodr(
563
+ self,
564
+ *,
565
+ planned_dep_time: Union[str, datetime],
566
+ columns: str | NotGiven = NOT_GIVEN,
567
+ first_result: int | NotGiven = NOT_GIVEN,
568
+ max_results: int | NotGiven = NOT_GIVEN,
569
+ notification: str | NotGiven = NOT_GIVEN,
570
+ output_delimiter: str | NotGiven = NOT_GIVEN,
571
+ output_format: str | NotGiven = NOT_GIVEN,
572
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
573
+ # The extra values given here take precedence over values defined on the client or passed to this method.
574
+ extra_headers: Headers | None = None,
575
+ extra_query: Query | None = None,
576
+ extra_body: Body | None = None,
577
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
578
+ ) -> None:
579
+ """
580
+ Service operation to dynamically query historical data by a variety of query
581
+ parameters not specified in this API documentation, then write that data to the
582
+ Secure Content Store. See the queryhelp operation
583
+ (/udl/<datatype>/queryhelp) for more details on valid/required query
584
+ parameter information.
585
+
586
+ Args:
587
+ planned_dep_time: The scheduled time that the Aircraft sortie is planned to depart, in ISO 8601
588
+ UTC format with millisecond precision. (YYYY-MM-DDTHH:MM:SS.sssZ)
589
+
590
+ columns: optional, fields for retrieval. When omitted, ALL fields are assumed. See the
591
+ queryhelp operation (/udl/<datatype>/queryhelp) for more details on valid
592
+ query fields that can be selected.
593
+
594
+ notification: optional, notification method for the created file link. When omitted, EMAIL is
595
+ assumed. Current valid values are: EMAIL, SMS.
596
+
597
+ output_delimiter: optional, field delimiter when the created file is not JSON. Must be a single
598
+ character chosen from this set: (',', ';', ':', '|'). When omitted, "," is used.
599
+ It is strongly encouraged that your field delimiter be a character unlikely to
600
+ occur within the data.
601
+
602
+ output_format: optional, output format for the file. When omitted, JSON is assumed. Current
603
+ valid values are: JSON and CSV.
604
+
605
+ extra_headers: Send extra headers
606
+
607
+ extra_query: Add additional query parameters to the request
608
+
609
+ extra_body: Add additional JSON properties to the request
610
+
611
+ timeout: Override the client-level default timeout for this request, in seconds
612
+ """
613
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
614
+ return self._get(
615
+ "/udl/aircraftsortie/history/aodr",
616
+ options=make_request_options(
617
+ extra_headers=extra_headers,
618
+ extra_query=extra_query,
619
+ extra_body=extra_body,
620
+ timeout=timeout,
621
+ query=maybe_transform(
622
+ {
623
+ "planned_dep_time": planned_dep_time,
624
+ "columns": columns,
625
+ "first_result": first_result,
626
+ "max_results": max_results,
627
+ "notification": notification,
628
+ "output_delimiter": output_delimiter,
629
+ "output_format": output_format,
630
+ },
631
+ aircraft_sorty_history_aodr_params.AircraftSortyHistoryAodrParams,
632
+ ),
633
+ ),
634
+ cast_to=NoneType,
635
+ )
636
+
637
+ def history_count(
638
+ self,
639
+ *,
640
+ planned_dep_time: Union[str, datetime],
641
+ first_result: int | NotGiven = NOT_GIVEN,
642
+ max_results: int | NotGiven = NOT_GIVEN,
643
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
644
+ # The extra values given here take precedence over values defined on the client or passed to this method.
645
+ extra_headers: Headers | None = None,
646
+ extra_query: Query | None = None,
647
+ extra_body: Body | None = None,
648
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
649
+ ) -> str:
650
+ """
651
+ Service operation to return the count of records satisfying the specified query
652
+ parameters. This operation is useful to determine how many records pass a
653
+ particular query criteria without retrieving large amounts of data. See the
654
+ queryhelp operation (/udl/<datatype>/queryhelp) for more details on
655
+ valid/required query parameter information.
656
+
657
+ Args:
658
+ planned_dep_time: The scheduled time that the Aircraft sortie is planned to depart, in ISO 8601
659
+ UTC format with millisecond precision. (YYYY-MM-DDTHH:MM:SS.sssZ)
660
+
661
+ extra_headers: Send extra headers
662
+
663
+ extra_query: Add additional query parameters to the request
664
+
665
+ extra_body: Add additional JSON properties to the request
666
+
667
+ timeout: Override the client-level default timeout for this request, in seconds
668
+ """
669
+ extra_headers = {"Accept": "text/plain", **(extra_headers or {})}
670
+ return self._get(
671
+ "/udl/aircraftsortie/history/count",
672
+ options=make_request_options(
673
+ extra_headers=extra_headers,
674
+ extra_query=extra_query,
675
+ extra_body=extra_body,
676
+ timeout=timeout,
677
+ query=maybe_transform(
678
+ {
679
+ "planned_dep_time": planned_dep_time,
680
+ "first_result": first_result,
681
+ "max_results": max_results,
682
+ },
683
+ aircraft_sorty_history_count_params.AircraftSortyHistoryCountParams,
684
+ ),
685
+ ),
686
+ cast_to=str,
687
+ )
688
+
689
+ def history_query(
690
+ self,
691
+ *,
692
+ planned_dep_time: Union[str, datetime],
693
+ columns: str | NotGiven = NOT_GIVEN,
694
+ first_result: int | NotGiven = NOT_GIVEN,
695
+ max_results: int | NotGiven = NOT_GIVEN,
696
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
697
+ # The extra values given here take precedence over values defined on the client or passed to this method.
698
+ extra_headers: Headers | None = None,
699
+ extra_query: Query | None = None,
700
+ extra_body: Body | None = None,
701
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
702
+ ) -> AircraftSortyHistoryQueryResponse:
703
+ """
704
+ Service operation to dynamically query historical data by a variety of query
705
+ parameters not specified in this API documentation. See the queryhelp operation
706
+ (/udl/<datatype>/queryhelp) for more details on valid/required query
707
+ parameter information.
708
+
709
+ Args:
710
+ planned_dep_time: The scheduled time that the Aircraft sortie is planned to depart, in ISO 8601
711
+ UTC format with millisecond precision. (YYYY-MM-DDTHH:MM:SS.sssZ)
712
+
713
+ columns: optional, fields for retrieval. When omitted, ALL fields are assumed. See the
714
+ queryhelp operation (/udl/<datatype>/queryhelp) for more details on valid
715
+ query fields that can be selected.
716
+
717
+ extra_headers: Send extra headers
718
+
719
+ extra_query: Add additional query parameters to the request
720
+
721
+ extra_body: Add additional JSON properties to the request
722
+
723
+ timeout: Override the client-level default timeout for this request, in seconds
724
+ """
725
+ return self._get(
726
+ "/udl/aircraftsortie/history",
727
+ options=make_request_options(
728
+ extra_headers=extra_headers,
729
+ extra_query=extra_query,
730
+ extra_body=extra_body,
731
+ timeout=timeout,
732
+ query=maybe_transform(
733
+ {
734
+ "planned_dep_time": planned_dep_time,
735
+ "columns": columns,
736
+ "first_result": first_result,
737
+ "max_results": max_results,
738
+ },
739
+ aircraft_sorty_history_query_params.AircraftSortyHistoryQueryParams,
740
+ ),
741
+ ),
742
+ cast_to=AircraftSortyHistoryQueryResponse,
743
+ )
744
+
745
+ def unvalidated_publish(
746
+ self,
747
+ *,
748
+ body: Iterable[aircraft_sorty_unvalidated_publish_params.Body],
749
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
750
+ # The extra values given here take precedence over values defined on the client or passed to this method.
751
+ extra_headers: Headers | None = None,
752
+ extra_query: Query | None = None,
753
+ extra_body: Body | None = None,
754
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
755
+ ) -> None:
756
+ """
757
+ Service operation to take one or many aircraft sortie records as a POST body and
758
+ ingest into the database. This operation is intended to be used for automated
759
+ feeds into UDL. A specific role is required to perform this service operation.
760
+ Please contact the UDL team for assistance.
761
+
762
+ Args:
763
+ extra_headers: Send extra headers
764
+
765
+ extra_query: Add additional query parameters to the request
766
+
767
+ extra_body: Add additional JSON properties to the request
768
+
769
+ timeout: Override the client-level default timeout for this request, in seconds
770
+ """
771
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
772
+ return self._post(
773
+ "/filedrop/udl-aircraftsortie",
774
+ body=maybe_transform(body, Iterable[aircraft_sorty_unvalidated_publish_params.Body]),
775
+ options=make_request_options(
776
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
777
+ ),
778
+ cast_to=NoneType,
779
+ )
780
+
781
+
782
+ class AsyncAircraftSortiesResource(AsyncAPIResource):
783
+ @cached_property
784
+ def with_raw_response(self) -> AsyncAircraftSortiesResourceWithRawResponse:
785
+ """
786
+ This property can be used as a prefix for any HTTP method call to return
787
+ the raw response object instead of the parsed content.
788
+
789
+ For more information, see https://www.github.com/Bluestaq/udl-python-sdk#accessing-raw-response-data-eg-headers
790
+ """
791
+ return AsyncAircraftSortiesResourceWithRawResponse(self)
792
+
793
+ @cached_property
794
+ def with_streaming_response(self) -> AsyncAircraftSortiesResourceWithStreamingResponse:
795
+ """
796
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
797
+
798
+ For more information, see https://www.github.com/Bluestaq/udl-python-sdk#with_streaming_response
799
+ """
800
+ return AsyncAircraftSortiesResourceWithStreamingResponse(self)
801
+
802
+ async def create(
803
+ self,
804
+ *,
805
+ classification_marking: str,
806
+ data_mode: Literal["REAL", "TEST", "SIMULATED", "EXERCISE"],
807
+ planned_dep_time: Union[str, datetime],
808
+ source: str,
809
+ id: str | NotGiven = NOT_GIVEN,
810
+ actual_arr_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
811
+ actual_block_in_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
812
+ actual_block_out_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
813
+ actual_dep_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
814
+ aircraft_adsb: str | NotGiven = NOT_GIVEN,
815
+ aircraft_alt_id: str | NotGiven = NOT_GIVEN,
816
+ aircraft_event: str | NotGiven = NOT_GIVEN,
817
+ aircraft_mds: str | NotGiven = NOT_GIVEN,
818
+ aircraft_remarks: str | NotGiven = NOT_GIVEN,
819
+ alert_status: int | NotGiven = NOT_GIVEN,
820
+ alert_status_code: str | NotGiven = NOT_GIVEN,
821
+ amc_msn_num: str | NotGiven = NOT_GIVEN,
822
+ amc_msn_type: str | NotGiven = NOT_GIVEN,
823
+ arr_faa: str | NotGiven = NOT_GIVEN,
824
+ arr_iata: str | NotGiven = NOT_GIVEN,
825
+ arr_icao: str | NotGiven = NOT_GIVEN,
826
+ arr_itinerary: int | NotGiven = NOT_GIVEN,
827
+ arr_purpose_code: str | NotGiven = NOT_GIVEN,
828
+ call_sign: str | NotGiven = NOT_GIVEN,
829
+ cargo_config: str | NotGiven = NOT_GIVEN,
830
+ commander_name: str | NotGiven = NOT_GIVEN,
831
+ current_state: str | NotGiven = NOT_GIVEN,
832
+ delay_code: str | NotGiven = NOT_GIVEN,
833
+ dep_faa: str | NotGiven = NOT_GIVEN,
834
+ dep_iata: str | NotGiven = NOT_GIVEN,
835
+ dep_icao: str | NotGiven = NOT_GIVEN,
836
+ dep_itinerary: int | NotGiven = NOT_GIVEN,
837
+ dep_purpose_code: str | NotGiven = NOT_GIVEN,
838
+ dhd: Union[str, datetime] | NotGiven = NOT_GIVEN,
839
+ dhd_reason: str | NotGiven = NOT_GIVEN,
840
+ est_arr_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
841
+ est_block_in_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
842
+ est_block_out_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
843
+ est_dep_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
844
+ flight_time: float | NotGiven = NOT_GIVEN,
845
+ fm_desk_num: str | NotGiven = NOT_GIVEN,
846
+ fm_name: str | NotGiven = NOT_GIVEN,
847
+ fuel_req: float | NotGiven = NOT_GIVEN,
848
+ gnd_time: float | NotGiven = NOT_GIVEN,
849
+ id_aircraft: str | NotGiven = NOT_GIVEN,
850
+ id_mission: str | NotGiven = NOT_GIVEN,
851
+ jcs_priority: str | NotGiven = NOT_GIVEN,
852
+ leg_num: int | NotGiven = NOT_GIVEN,
853
+ line_number: int | NotGiven = NOT_GIVEN,
854
+ mission_id: str | NotGiven = NOT_GIVEN,
855
+ mission_update: Union[str, datetime] | NotGiven = NOT_GIVEN,
856
+ objective_remarks: str | NotGiven = NOT_GIVEN,
857
+ origin: str | NotGiven = NOT_GIVEN,
858
+ orig_sortie_id: str | NotGiven = NOT_GIVEN,
859
+ oxy_on_crew: float | NotGiven = NOT_GIVEN,
860
+ oxy_on_pax: float | NotGiven = NOT_GIVEN,
861
+ oxy_req_crew: float | NotGiven = NOT_GIVEN,
862
+ oxy_req_pax: float | NotGiven = NOT_GIVEN,
863
+ parking_loc: str | NotGiven = NOT_GIVEN,
864
+ passengers: int | NotGiven = NOT_GIVEN,
865
+ planned_arr_time: Union[str, datetime] | NotGiven = NOT_GIVEN,
866
+ ppr_status: Literal["NOT REQUIRED", "REQUIRED NOT REQUESTED", "GRANTED", "PENDING"] | NotGiven = NOT_GIVEN,
867
+ primary_scl: str | NotGiven = NOT_GIVEN,
868
+ req_config: str | NotGiven = NOT_GIVEN,
869
+ result_remarks: str | NotGiven = NOT_GIVEN,
870
+ rvn_req: Literal["N", "R", "C6", "R6"] | NotGiven = NOT_GIVEN,
871
+ schedule_remarks: str | NotGiven = NOT_GIVEN,
872
+ secondary_scl: str | NotGiven = NOT_GIVEN,
873
+ soe: str | NotGiven = NOT_GIVEN,
874
+ sortie_date: Union[str, date] | NotGiven = NOT_GIVEN,
875
+ tail_number: str | NotGiven = NOT_GIVEN,
876
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
877
+ # The extra values given here take precedence over values defined on the client or passed to this method.
878
+ extra_headers: Headers | None = None,
879
+ extra_query: Query | None = None,
880
+ extra_body: Body | None = None,
881
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
882
+ ) -> None:
883
+ """
884
+ Service operation to take a single AircraftSortie as a POST body and ingest into
885
+ the database. A specific role is required to perform this service operation.
886
+ Please contact the UDL team for assistance.
887
+
888
+ Args:
889
+ classification_marking: Classification marking of the data in IC/CAPCO Portion-marked format.
890
+
891
+ data_mode:
892
+ Indicator of whether the data is EXERCISE, REAL, SIMULATED, or TEST data:
893
+
894
+ EXERCISE: Data pertaining to a government or military exercise. The data
895
+ may include both real and simulated data.
896
+
897
+ REAL: Data collected or produced that pertains to real-world objects,
898
+ events, and analysis.
899
+
900
+ SIMULATED: Synthetic data generated by a model to mimic real-world
901
+ datasets.
902
+
903
+ TEST: Specific datasets used to evaluate compliance with specifications and
904
+ requirements, and for validating technical, functional, and performance
905
+ characteristics.
906
+
907
+ planned_dep_time: The scheduled time that the Aircraft sortie is planned to depart, in ISO 8601
908
+ UTC format with millisecond precision.
909
+
910
+ source: Source of the data.
21
911
 
22
- __all__ = ["AircraftSortiesResource", "AsyncAircraftSortiesResource"]
912
+ id: Unique identifier of the record, auto-generated by the system.
23
913
 
914
+ actual_arr_time: The actual arrival time, in ISO 8601 UTC format with millisecond precision.
24
915
 
25
- class AircraftSortiesResource(SyncAPIResource):
26
- @cached_property
27
- def with_raw_response(self) -> AircraftSortiesResourceWithRawResponse:
916
+ actual_block_in_time: The actual time the Aircraft comes to a complete stop in its parking position,
917
+ in ISO 8601 UTC format with millisecond precision.
918
+
919
+ actual_block_out_time: The actual time the Aircraft begins to taxi from its parking position, in ISO
920
+ 8601 UTC format with millisecond precision.
921
+
922
+ actual_dep_time: The actual departure time, in ISO 8601 UTC format.
923
+
924
+ aircraft_adsb: The Automatic Dependent Surveillance-Broadcast (ADS-B) device identifier.
925
+
926
+ aircraft_alt_id: Alternate Aircraft Identifier provided by source.
927
+
928
+ aircraft_event: Aircraft event text.
929
+
930
+ aircraft_mds: The aircraft Model Design Series designation assigned to this sortie.
931
+
932
+ aircraft_remarks: Remarks concerning the aircraft.
933
+
934
+ alert_status: The amount of time allowed between launch order and takeoff, in seconds.
935
+
936
+ alert_status_code: The Alert Status code.
937
+
938
+ amc_msn_num: The Air Mobility Command (AMC) mission number of the sortie.
939
+
940
+ amc_msn_type: The type of mission (e.g. SAAM, CHNL, etc.).
941
+
942
+ arr_faa: The arrival Federal Aviation Administration (FAA) code of this sortie.
943
+
944
+ arr_iata: The arrival International Aviation Transport Association (IATA) code of this
945
+ sortie.
946
+
947
+ arr_icao: The arrival International Civil Aviation Organization (ICAO) of this sortie.
948
+
949
+ arr_itinerary: The itinerary identifier of the arrival location.
950
+
951
+ arr_purpose_code: Purpose code at the arrival location of this sortie.
952
+
953
+ call_sign: The call sign assigned to the aircraft on this sortie.
954
+
955
+ cargo_config: Description of the cargo configuration (e.g. C-1, C-2, C-3, DV-1, DV-2, AE-1,
956
+ etc.) currently on board the aircraft. Configuration meanings are determined by
957
+ the data source.
958
+
959
+ commander_name: The last name of the aircraft commander.
960
+
961
+ current_state: The current state of this sortie.
962
+
963
+ delay_code: The primary delay code.
964
+
965
+ dep_faa: The departure Federal Aviation Administration (FAA) code of this sortie.
966
+
967
+ dep_iata: The departure International Aviation Transport Association (IATA) code of this
968
+ sortie.
969
+
970
+ dep_icao: The departure International Civil Aviation Organization (ICAO) of this sortie.
971
+
972
+ dep_itinerary: The itinerary identifier of the departure location.
973
+
974
+ dep_purpose_code: Purpose code at the departure location of this sortie.
975
+
976
+ dhd: Due home date by which the aircraft must return to its home station, in ISO 8601
977
+ UTC format with millisecond precision.
978
+
979
+ dhd_reason: Reason the aircraft must return to home station by its due home date.
980
+
981
+ est_arr_time: The current estimated time that the Aircraft is planned to arrive, in ISO 8601
982
+ UTC format with millisecond precision.
983
+
984
+ est_block_in_time: The estimated time the Aircraft will come to a complete stop in its parking
985
+ position, in ISO 8601 UTC format with millisecond precision.
986
+
987
+ est_block_out_time: The estimated time the Aircraft will begin to taxi from its parking position, in
988
+ ISO 8601 UTC format with millisecond precision.
989
+
990
+ est_dep_time: The current estimated time that the Aircraft is planned to depart, in ISO 8601
991
+ UTC format with millisecond precision.
992
+
993
+ flight_time: The planned flight time for this sortie, in minutes.
994
+
995
+ fm_desk_num: Desk phone number of the flight manager assigned to the sortie. Null when no
996
+ flight manager is assigned.
997
+
998
+ fm_name: Last name of the flight manager assigned to the sortie. Null when no flight
999
+ manager is assigned.
1000
+
1001
+ fuel_req: Mass of fuel required for this leg of the sortie, in kilograms.
1002
+
1003
+ gnd_time: Scheduled ground time, in minutes.
1004
+
1005
+ id_aircraft: Unique identifier of the aircraft.
1006
+
1007
+ id_mission: The unique identifier of the mission to which this sortie is assigned.
1008
+
1009
+ jcs_priority: Joint Chiefs of Staff priority of this sortie.
1010
+
1011
+ leg_num: The leg number of this sortie.
1012
+
1013
+ line_number: The external system line number of this sortie.
1014
+
1015
+ mission_id: The mission ID according to the source system.
1016
+
1017
+ mission_update: Time the associated mission data was last updated in relation to the aircraft
1018
+ assignment, in ISO 8601 UTC format with millisecond precision. If this time is
1019
+ coming from an external system, it may not sync with the latest mission time
1020
+ associated to this record.
1021
+
1022
+ objective_remarks: Remarks concerning the sortie objective.
1023
+
1024
+ origin: Originating system or organization which produced the data, if different from
1025
+ the source. The origin may be different than the source if the source was a
1026
+ mediating system which forwarded the data on behalf of the origin system. If
1027
+ null, the source may be assumed to be the origin.
1028
+
1029
+ orig_sortie_id: The sortie identifier provided by the originating source.
1030
+
1031
+ oxy_on_crew: Liquid oxygen onboard the aircraft for the crew compartment, in liters.
1032
+
1033
+ oxy_on_pax: Liquid oxygen onboard the aircraft for the troop compartment, in liters.
1034
+
1035
+ oxy_req_crew: Liquid oxygen required on the aircraft for the crew compartment, in liters.
1036
+
1037
+ oxy_req_pax: Liquid oxygen required on the aircraft for the troop compartment, in liters.
1038
+
1039
+ parking_loc: The POI parking location.
1040
+
1041
+ passengers: The number of passengers tasked for this sortie.
1042
+
1043
+ planned_arr_time: The scheduled time that the Aircraft sortie is planned to arrive, in ISO 8601
1044
+ UTC format with millisecond precision.
1045
+
1046
+ ppr_status: The prior permission required (PPR) status.
1047
+
1048
+ primary_scl: The planned primary Standard Conventional Load of the aircraft for this sortie.
1049
+
1050
+ req_config: Aircraft configuration required for the mission.
1051
+
1052
+ result_remarks: Remarks concerning the results of this sortie.
1053
+
1054
+ rvn_req: Type of Ravens required for this sortie (N - None, R - Raven (Security Team)
1055
+ required, C6 - Consider ravens (Ground time over 6 hours), R6 - Ravens required
1056
+ (Ground time over 6 hours)).
1057
+
1058
+ schedule_remarks: Remarks concerning the schedule.
1059
+
1060
+ secondary_scl: The planned secondary Standard Conventional Load of the aircraft for this
1061
+ sortie.
1062
+
1063
+ soe: Indicates the group responsible for recording the completion time of the next
1064
+ event in the sequence of events assigned to this sortie (e.g. OPS - Operations,
1065
+ MX - Maintenance, TR - Transportation, etc.).
1066
+
1067
+ sortie_date: The scheduled UTC date for this sortie, in ISO 8601 date-only format (ex.
1068
+ YYYY-MM-DD).
1069
+
1070
+ tail_number: The tail number of the aircraft assigned to this sortie.
1071
+
1072
+ extra_headers: Send extra headers
1073
+
1074
+ extra_query: Add additional query parameters to the request
1075
+
1076
+ extra_body: Add additional JSON properties to the request
1077
+
1078
+ timeout: Override the client-level default timeout for this request, in seconds
28
1079
  """
29
- This property can be used as a prefix for any HTTP method call to return
30
- the raw response object instead of the parsed content.
1080
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
1081
+ return await self._post(
1082
+ "/udl/aircraftsortie",
1083
+ body=await async_maybe_transform(
1084
+ {
1085
+ "classification_marking": classification_marking,
1086
+ "data_mode": data_mode,
1087
+ "planned_dep_time": planned_dep_time,
1088
+ "source": source,
1089
+ "id": id,
1090
+ "actual_arr_time": actual_arr_time,
1091
+ "actual_block_in_time": actual_block_in_time,
1092
+ "actual_block_out_time": actual_block_out_time,
1093
+ "actual_dep_time": actual_dep_time,
1094
+ "aircraft_adsb": aircraft_adsb,
1095
+ "aircraft_alt_id": aircraft_alt_id,
1096
+ "aircraft_event": aircraft_event,
1097
+ "aircraft_mds": aircraft_mds,
1098
+ "aircraft_remarks": aircraft_remarks,
1099
+ "alert_status": alert_status,
1100
+ "alert_status_code": alert_status_code,
1101
+ "amc_msn_num": amc_msn_num,
1102
+ "amc_msn_type": amc_msn_type,
1103
+ "arr_faa": arr_faa,
1104
+ "arr_iata": arr_iata,
1105
+ "arr_icao": arr_icao,
1106
+ "arr_itinerary": arr_itinerary,
1107
+ "arr_purpose_code": arr_purpose_code,
1108
+ "call_sign": call_sign,
1109
+ "cargo_config": cargo_config,
1110
+ "commander_name": commander_name,
1111
+ "current_state": current_state,
1112
+ "delay_code": delay_code,
1113
+ "dep_faa": dep_faa,
1114
+ "dep_iata": dep_iata,
1115
+ "dep_icao": dep_icao,
1116
+ "dep_itinerary": dep_itinerary,
1117
+ "dep_purpose_code": dep_purpose_code,
1118
+ "dhd": dhd,
1119
+ "dhd_reason": dhd_reason,
1120
+ "est_arr_time": est_arr_time,
1121
+ "est_block_in_time": est_block_in_time,
1122
+ "est_block_out_time": est_block_out_time,
1123
+ "est_dep_time": est_dep_time,
1124
+ "flight_time": flight_time,
1125
+ "fm_desk_num": fm_desk_num,
1126
+ "fm_name": fm_name,
1127
+ "fuel_req": fuel_req,
1128
+ "gnd_time": gnd_time,
1129
+ "id_aircraft": id_aircraft,
1130
+ "id_mission": id_mission,
1131
+ "jcs_priority": jcs_priority,
1132
+ "leg_num": leg_num,
1133
+ "line_number": line_number,
1134
+ "mission_id": mission_id,
1135
+ "mission_update": mission_update,
1136
+ "objective_remarks": objective_remarks,
1137
+ "origin": origin,
1138
+ "orig_sortie_id": orig_sortie_id,
1139
+ "oxy_on_crew": oxy_on_crew,
1140
+ "oxy_on_pax": oxy_on_pax,
1141
+ "oxy_req_crew": oxy_req_crew,
1142
+ "oxy_req_pax": oxy_req_pax,
1143
+ "parking_loc": parking_loc,
1144
+ "passengers": passengers,
1145
+ "planned_arr_time": planned_arr_time,
1146
+ "ppr_status": ppr_status,
1147
+ "primary_scl": primary_scl,
1148
+ "req_config": req_config,
1149
+ "result_remarks": result_remarks,
1150
+ "rvn_req": rvn_req,
1151
+ "schedule_remarks": schedule_remarks,
1152
+ "secondary_scl": secondary_scl,
1153
+ "soe": soe,
1154
+ "sortie_date": sortie_date,
1155
+ "tail_number": tail_number,
1156
+ },
1157
+ aircraft_sorty_create_params.AircraftSortyCreateParams,
1158
+ ),
1159
+ options=make_request_options(
1160
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
1161
+ ),
1162
+ cast_to=NoneType,
1163
+ )
31
1164
 
32
- For more information, see https://www.github.com/Bluestaq/udl-python-sdk#accessing-raw-response-data-eg-headers
1165
+ def list(
1166
+ self,
1167
+ *,
1168
+ planned_dep_time: Union[str, datetime],
1169
+ first_result: int | NotGiven = NOT_GIVEN,
1170
+ max_results: int | NotGiven = NOT_GIVEN,
1171
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1172
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1173
+ extra_headers: Headers | None = None,
1174
+ extra_query: Query | None = None,
1175
+ extra_body: Body | None = None,
1176
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1177
+ ) -> AsyncPaginator[AircraftsortieAbridged, AsyncOffsetPage[AircraftsortieAbridged]]:
33
1178
  """
34
- return AircraftSortiesResourceWithRawResponse(self)
1179
+ Service operation to dynamically query data by a variety of query parameters not
1180
+ specified in this API documentation. See the queryhelp operation
1181
+ (/udl/<datatype>/queryhelp) for more details on valid/required query
1182
+ parameter information.
35
1183
 
36
- @cached_property
37
- def with_streaming_response(self) -> AircraftSortiesResourceWithStreamingResponse:
1184
+ Args:
1185
+ planned_dep_time: The scheduled time that the Aircraft sortie is planned to depart, in ISO 8601
1186
+ UTC format with millisecond precision. (YYYY-MM-DDTHH:MM:SS.sssZ)
1187
+
1188
+ extra_headers: Send extra headers
1189
+
1190
+ extra_query: Add additional query parameters to the request
1191
+
1192
+ extra_body: Add additional JSON properties to the request
1193
+
1194
+ timeout: Override the client-level default timeout for this request, in seconds
38
1195
  """
39
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
1196
+ return self._get_api_list(
1197
+ "/udl/aircraftsortie",
1198
+ page=AsyncOffsetPage[AircraftsortieAbridged],
1199
+ options=make_request_options(
1200
+ extra_headers=extra_headers,
1201
+ extra_query=extra_query,
1202
+ extra_body=extra_body,
1203
+ timeout=timeout,
1204
+ query=maybe_transform(
1205
+ {
1206
+ "planned_dep_time": planned_dep_time,
1207
+ "first_result": first_result,
1208
+ "max_results": max_results,
1209
+ },
1210
+ aircraft_sorty_list_params.AircraftSortyListParams,
1211
+ ),
1212
+ ),
1213
+ model=AircraftsortieAbridged,
1214
+ )
40
1215
 
41
- For more information, see https://www.github.com/Bluestaq/udl-python-sdk#with_streaming_response
1216
+ async def count(
1217
+ self,
1218
+ *,
1219
+ planned_dep_time: Union[str, datetime],
1220
+ first_result: int | NotGiven = NOT_GIVEN,
1221
+ max_results: int | NotGiven = NOT_GIVEN,
1222
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1223
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1224
+ extra_headers: Headers | None = None,
1225
+ extra_query: Query | None = None,
1226
+ extra_body: Body | None = None,
1227
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1228
+ ) -> str:
42
1229
  """
43
- return AircraftSortiesResourceWithStreamingResponse(self)
1230
+ Service operation to return the count of records satisfying the specified query
1231
+ parameters. This operation is useful to determine how many records pass a
1232
+ particular query criteria without retrieving large amounts of data. See the
1233
+ queryhelp operation (/udl/<datatype>/queryhelp) for more details on
1234
+ valid/required query parameter information.
44
1235
 
45
- def unvalidated_publish(
1236
+ Args:
1237
+ planned_dep_time: The scheduled time that the Aircraft sortie is planned to depart, in ISO 8601
1238
+ UTC format with millisecond precision. (YYYY-MM-DDTHH:MM:SS.sssZ)
1239
+
1240
+ extra_headers: Send extra headers
1241
+
1242
+ extra_query: Add additional query parameters to the request
1243
+
1244
+ extra_body: Add additional JSON properties to the request
1245
+
1246
+ timeout: Override the client-level default timeout for this request, in seconds
1247
+ """
1248
+ extra_headers = {"Accept": "text/plain", **(extra_headers or {})}
1249
+ return await self._get(
1250
+ "/udl/aircraftsortie/count",
1251
+ options=make_request_options(
1252
+ extra_headers=extra_headers,
1253
+ extra_query=extra_query,
1254
+ extra_body=extra_body,
1255
+ timeout=timeout,
1256
+ query=await async_maybe_transform(
1257
+ {
1258
+ "planned_dep_time": planned_dep_time,
1259
+ "first_result": first_result,
1260
+ "max_results": max_results,
1261
+ },
1262
+ aircraft_sorty_count_params.AircraftSortyCountParams,
1263
+ ),
1264
+ ),
1265
+ cast_to=str,
1266
+ )
1267
+
1268
+ async def create_bulk(
46
1269
  self,
47
1270
  *,
48
- body: Iterable[aircraft_sorty_unvalidated_publish_params.Body],
1271
+ body: Iterable[aircraft_sorty_create_bulk_params.Body],
49
1272
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
50
1273
  # The extra values given here take precedence over values defined on the client or passed to this method.
51
1274
  extra_headers: Headers | None = None,
@@ -54,10 +1277,11 @@ class AircraftSortiesResource(SyncAPIResource):
54
1277
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
55
1278
  ) -> None:
56
1279
  """
57
- Service operation to take one or many aircraft sortie records as a POST body and
58
- ingest into the database. This operation is intended to be used for automated
59
- feeds into UDL. A specific role is required to perform this service operation.
60
- Please contact the UDL team for assistance.
1280
+ Service operation intended for initial integration only, to take a list of
1281
+ AircraftSorties as a POST body and ingest into the database. This operation is
1282
+ not intended to be used for automated feeds into UDL. Data providers should
1283
+ contact the UDL team for specific role assignments and for instructions on
1284
+ setting up a permanent feed through an alternate mechanism.
61
1285
 
62
1286
  Args:
63
1287
  extra_headers: Send extra headers
@@ -69,35 +1293,197 @@ class AircraftSortiesResource(SyncAPIResource):
69
1293
  timeout: Override the client-level default timeout for this request, in seconds
70
1294
  """
71
1295
  extra_headers = {"Accept": "*/*", **(extra_headers or {})}
72
- return self._post(
73
- "/filedrop/udl-aircraftsortie",
74
- body=maybe_transform(body, Iterable[aircraft_sorty_unvalidated_publish_params.Body]),
1296
+ return await self._post(
1297
+ "/udl/aircraftsortie/createBulk",
1298
+ body=await async_maybe_transform(body, Iterable[aircraft_sorty_create_bulk_params.Body]),
75
1299
  options=make_request_options(
76
1300
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
77
1301
  ),
78
1302
  cast_to=NoneType,
79
1303
  )
80
1304
 
1305
+ async def history_aodr(
1306
+ self,
1307
+ *,
1308
+ planned_dep_time: Union[str, datetime],
1309
+ columns: str | NotGiven = NOT_GIVEN,
1310
+ first_result: int | NotGiven = NOT_GIVEN,
1311
+ max_results: int | NotGiven = NOT_GIVEN,
1312
+ notification: str | NotGiven = NOT_GIVEN,
1313
+ output_delimiter: str | NotGiven = NOT_GIVEN,
1314
+ output_format: str | NotGiven = NOT_GIVEN,
1315
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1316
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1317
+ extra_headers: Headers | None = None,
1318
+ extra_query: Query | None = None,
1319
+ extra_body: Body | None = None,
1320
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1321
+ ) -> None:
1322
+ """
1323
+ Service operation to dynamically query historical data by a variety of query
1324
+ parameters not specified in this API documentation, then write that data to the
1325
+ Secure Content Store. See the queryhelp operation
1326
+ (/udl/<datatype>/queryhelp) for more details on valid/required query
1327
+ parameter information.
1328
+
1329
+ Args:
1330
+ planned_dep_time: The scheduled time that the Aircraft sortie is planned to depart, in ISO 8601
1331
+ UTC format with millisecond precision. (YYYY-MM-DDTHH:MM:SS.sssZ)
81
1332
 
82
- class AsyncAircraftSortiesResource(AsyncAPIResource):
83
- @cached_property
84
- def with_raw_response(self) -> AsyncAircraftSortiesResourceWithRawResponse:
1333
+ columns: optional, fields for retrieval. When omitted, ALL fields are assumed. See the
1334
+ queryhelp operation (/udl/<datatype>/queryhelp) for more details on valid
1335
+ query fields that can be selected.
1336
+
1337
+ notification: optional, notification method for the created file link. When omitted, EMAIL is
1338
+ assumed. Current valid values are: EMAIL, SMS.
1339
+
1340
+ output_delimiter: optional, field delimiter when the created file is not JSON. Must be a single
1341
+ character chosen from this set: (',', ';', ':', '|'). When omitted, "," is used.
1342
+ It is strongly encouraged that your field delimiter be a character unlikely to
1343
+ occur within the data.
1344
+
1345
+ output_format: optional, output format for the file. When omitted, JSON is assumed. Current
1346
+ valid values are: JSON and CSV.
1347
+
1348
+ extra_headers: Send extra headers
1349
+
1350
+ extra_query: Add additional query parameters to the request
1351
+
1352
+ extra_body: Add additional JSON properties to the request
1353
+
1354
+ timeout: Override the client-level default timeout for this request, in seconds
85
1355
  """
86
- This property can be used as a prefix for any HTTP method call to return
87
- the raw response object instead of the parsed content.
1356
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
1357
+ return await self._get(
1358
+ "/udl/aircraftsortie/history/aodr",
1359
+ options=make_request_options(
1360
+ extra_headers=extra_headers,
1361
+ extra_query=extra_query,
1362
+ extra_body=extra_body,
1363
+ timeout=timeout,
1364
+ query=await async_maybe_transform(
1365
+ {
1366
+ "planned_dep_time": planned_dep_time,
1367
+ "columns": columns,
1368
+ "first_result": first_result,
1369
+ "max_results": max_results,
1370
+ "notification": notification,
1371
+ "output_delimiter": output_delimiter,
1372
+ "output_format": output_format,
1373
+ },
1374
+ aircraft_sorty_history_aodr_params.AircraftSortyHistoryAodrParams,
1375
+ ),
1376
+ ),
1377
+ cast_to=NoneType,
1378
+ )
88
1379
 
89
- For more information, see https://www.github.com/Bluestaq/udl-python-sdk#accessing-raw-response-data-eg-headers
1380
+ async def history_count(
1381
+ self,
1382
+ *,
1383
+ planned_dep_time: Union[str, datetime],
1384
+ first_result: int | NotGiven = NOT_GIVEN,
1385
+ max_results: int | NotGiven = NOT_GIVEN,
1386
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1387
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1388
+ extra_headers: Headers | None = None,
1389
+ extra_query: Query | None = None,
1390
+ extra_body: Body | None = None,
1391
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1392
+ ) -> str:
90
1393
  """
91
- return AsyncAircraftSortiesResourceWithRawResponse(self)
1394
+ Service operation to return the count of records satisfying the specified query
1395
+ parameters. This operation is useful to determine how many records pass a
1396
+ particular query criteria without retrieving large amounts of data. See the
1397
+ queryhelp operation (/udl/<datatype>/queryhelp) for more details on
1398
+ valid/required query parameter information.
92
1399
 
93
- @cached_property
94
- def with_streaming_response(self) -> AsyncAircraftSortiesResourceWithStreamingResponse:
1400
+ Args:
1401
+ planned_dep_time: The scheduled time that the Aircraft sortie is planned to depart, in ISO 8601
1402
+ UTC format with millisecond precision. (YYYY-MM-DDTHH:MM:SS.sssZ)
1403
+
1404
+ extra_headers: Send extra headers
1405
+
1406
+ extra_query: Add additional query parameters to the request
1407
+
1408
+ extra_body: Add additional JSON properties to the request
1409
+
1410
+ timeout: Override the client-level default timeout for this request, in seconds
95
1411
  """
96
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
1412
+ extra_headers = {"Accept": "text/plain", **(extra_headers or {})}
1413
+ return await self._get(
1414
+ "/udl/aircraftsortie/history/count",
1415
+ options=make_request_options(
1416
+ extra_headers=extra_headers,
1417
+ extra_query=extra_query,
1418
+ extra_body=extra_body,
1419
+ timeout=timeout,
1420
+ query=await async_maybe_transform(
1421
+ {
1422
+ "planned_dep_time": planned_dep_time,
1423
+ "first_result": first_result,
1424
+ "max_results": max_results,
1425
+ },
1426
+ aircraft_sorty_history_count_params.AircraftSortyHistoryCountParams,
1427
+ ),
1428
+ ),
1429
+ cast_to=str,
1430
+ )
97
1431
 
98
- For more information, see https://www.github.com/Bluestaq/udl-python-sdk#with_streaming_response
1432
+ async def history_query(
1433
+ self,
1434
+ *,
1435
+ planned_dep_time: Union[str, datetime],
1436
+ columns: str | NotGiven = NOT_GIVEN,
1437
+ first_result: int | NotGiven = NOT_GIVEN,
1438
+ max_results: int | NotGiven = NOT_GIVEN,
1439
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1440
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1441
+ extra_headers: Headers | None = None,
1442
+ extra_query: Query | None = None,
1443
+ extra_body: Body | None = None,
1444
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1445
+ ) -> AircraftSortyHistoryQueryResponse:
99
1446
  """
100
- return AsyncAircraftSortiesResourceWithStreamingResponse(self)
1447
+ Service operation to dynamically query historical data by a variety of query
1448
+ parameters not specified in this API documentation. See the queryhelp operation
1449
+ (/udl/<datatype>/queryhelp) for more details on valid/required query
1450
+ parameter information.
1451
+
1452
+ Args:
1453
+ planned_dep_time: The scheduled time that the Aircraft sortie is planned to depart, in ISO 8601
1454
+ UTC format with millisecond precision. (YYYY-MM-DDTHH:MM:SS.sssZ)
1455
+
1456
+ columns: optional, fields for retrieval. When omitted, ALL fields are assumed. See the
1457
+ queryhelp operation (/udl/<datatype>/queryhelp) for more details on valid
1458
+ query fields that can be selected.
1459
+
1460
+ extra_headers: Send extra headers
1461
+
1462
+ extra_query: Add additional query parameters to the request
1463
+
1464
+ extra_body: Add additional JSON properties to the request
1465
+
1466
+ timeout: Override the client-level default timeout for this request, in seconds
1467
+ """
1468
+ return await self._get(
1469
+ "/udl/aircraftsortie/history",
1470
+ options=make_request_options(
1471
+ extra_headers=extra_headers,
1472
+ extra_query=extra_query,
1473
+ extra_body=extra_body,
1474
+ timeout=timeout,
1475
+ query=await async_maybe_transform(
1476
+ {
1477
+ "planned_dep_time": planned_dep_time,
1478
+ "columns": columns,
1479
+ "first_result": first_result,
1480
+ "max_results": max_results,
1481
+ },
1482
+ aircraft_sorty_history_query_params.AircraftSortyHistoryQueryParams,
1483
+ ),
1484
+ ),
1485
+ cast_to=AircraftSortyHistoryQueryResponse,
1486
+ )
101
1487
 
102
1488
  async def unvalidated_publish(
103
1489
  self,
@@ -140,6 +1526,27 @@ class AircraftSortiesResourceWithRawResponse:
140
1526
  def __init__(self, aircraft_sorties: AircraftSortiesResource) -> None:
141
1527
  self._aircraft_sorties = aircraft_sorties
142
1528
 
1529
+ self.create = to_raw_response_wrapper(
1530
+ aircraft_sorties.create,
1531
+ )
1532
+ self.list = to_raw_response_wrapper(
1533
+ aircraft_sorties.list,
1534
+ )
1535
+ self.count = to_raw_response_wrapper(
1536
+ aircraft_sorties.count,
1537
+ )
1538
+ self.create_bulk = to_raw_response_wrapper(
1539
+ aircraft_sorties.create_bulk,
1540
+ )
1541
+ self.history_aodr = to_raw_response_wrapper(
1542
+ aircraft_sorties.history_aodr,
1543
+ )
1544
+ self.history_count = to_raw_response_wrapper(
1545
+ aircraft_sorties.history_count,
1546
+ )
1547
+ self.history_query = to_raw_response_wrapper(
1548
+ aircraft_sorties.history_query,
1549
+ )
143
1550
  self.unvalidated_publish = to_raw_response_wrapper(
144
1551
  aircraft_sorties.unvalidated_publish,
145
1552
  )
@@ -149,6 +1556,27 @@ class AsyncAircraftSortiesResourceWithRawResponse:
149
1556
  def __init__(self, aircraft_sorties: AsyncAircraftSortiesResource) -> None:
150
1557
  self._aircraft_sorties = aircraft_sorties
151
1558
 
1559
+ self.create = async_to_raw_response_wrapper(
1560
+ aircraft_sorties.create,
1561
+ )
1562
+ self.list = async_to_raw_response_wrapper(
1563
+ aircraft_sorties.list,
1564
+ )
1565
+ self.count = async_to_raw_response_wrapper(
1566
+ aircraft_sorties.count,
1567
+ )
1568
+ self.create_bulk = async_to_raw_response_wrapper(
1569
+ aircraft_sorties.create_bulk,
1570
+ )
1571
+ self.history_aodr = async_to_raw_response_wrapper(
1572
+ aircraft_sorties.history_aodr,
1573
+ )
1574
+ self.history_count = async_to_raw_response_wrapper(
1575
+ aircraft_sorties.history_count,
1576
+ )
1577
+ self.history_query = async_to_raw_response_wrapper(
1578
+ aircraft_sorties.history_query,
1579
+ )
152
1580
  self.unvalidated_publish = async_to_raw_response_wrapper(
153
1581
  aircraft_sorties.unvalidated_publish,
154
1582
  )
@@ -158,6 +1586,27 @@ class AircraftSortiesResourceWithStreamingResponse:
158
1586
  def __init__(self, aircraft_sorties: AircraftSortiesResource) -> None:
159
1587
  self._aircraft_sorties = aircraft_sorties
160
1588
 
1589
+ self.create = to_streamed_response_wrapper(
1590
+ aircraft_sorties.create,
1591
+ )
1592
+ self.list = to_streamed_response_wrapper(
1593
+ aircraft_sorties.list,
1594
+ )
1595
+ self.count = to_streamed_response_wrapper(
1596
+ aircraft_sorties.count,
1597
+ )
1598
+ self.create_bulk = to_streamed_response_wrapper(
1599
+ aircraft_sorties.create_bulk,
1600
+ )
1601
+ self.history_aodr = to_streamed_response_wrapper(
1602
+ aircraft_sorties.history_aodr,
1603
+ )
1604
+ self.history_count = to_streamed_response_wrapper(
1605
+ aircraft_sorties.history_count,
1606
+ )
1607
+ self.history_query = to_streamed_response_wrapper(
1608
+ aircraft_sorties.history_query,
1609
+ )
161
1610
  self.unvalidated_publish = to_streamed_response_wrapper(
162
1611
  aircraft_sorties.unvalidated_publish,
163
1612
  )
@@ -167,6 +1616,27 @@ class AsyncAircraftSortiesResourceWithStreamingResponse:
167
1616
  def __init__(self, aircraft_sorties: AsyncAircraftSortiesResource) -> None:
168
1617
  self._aircraft_sorties = aircraft_sorties
169
1618
 
1619
+ self.create = async_to_streamed_response_wrapper(
1620
+ aircraft_sorties.create,
1621
+ )
1622
+ self.list = async_to_streamed_response_wrapper(
1623
+ aircraft_sorties.list,
1624
+ )
1625
+ self.count = async_to_streamed_response_wrapper(
1626
+ aircraft_sorties.count,
1627
+ )
1628
+ self.create_bulk = async_to_streamed_response_wrapper(
1629
+ aircraft_sorties.create_bulk,
1630
+ )
1631
+ self.history_aodr = async_to_streamed_response_wrapper(
1632
+ aircraft_sorties.history_aodr,
1633
+ )
1634
+ self.history_count = async_to_streamed_response_wrapper(
1635
+ aircraft_sorties.history_count,
1636
+ )
1637
+ self.history_query = async_to_streamed_response_wrapper(
1638
+ aircraft_sorties.history_query,
1639
+ )
170
1640
  self.unvalidated_publish = async_to_streamed_response_wrapper(
171
1641
  aircraft_sorties.unvalidated_publish,
172
1642
  )