tango-python 0.0.1a1__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 (94) hide show
  1. tango/__init__.py +83 -0
  2. tango/_base_client.py +2045 -0
  3. tango/_client.py +544 -0
  4. tango/_compat.py +219 -0
  5. tango/_constants.py +14 -0
  6. tango/_exceptions.py +108 -0
  7. tango/_files.py +123 -0
  8. tango/_models.py +788 -0
  9. tango/_qs.py +150 -0
  10. tango/_resource.py +43 -0
  11. tango/_response.py +824 -0
  12. tango/_streaming.py +333 -0
  13. tango/_types.py +219 -0
  14. tango/_utils/__init__.py +56 -0
  15. tango/_utils/_logs.py +25 -0
  16. tango/_utils/_proxy.py +62 -0
  17. tango/_utils/_reflection.py +42 -0
  18. tango/_utils/_streams.py +12 -0
  19. tango/_utils/_sync.py +71 -0
  20. tango/_utils/_transform.py +392 -0
  21. tango/_utils/_typing.py +120 -0
  22. tango/_utils/_utils.py +414 -0
  23. tango/_version.py +4 -0
  24. tango/lib/.keep +4 -0
  25. tango/py.typed +0 -0
  26. tango/resources/__init__.py +229 -0
  27. tango/resources/agencies.py +255 -0
  28. tango/resources/assistance_listings.py +214 -0
  29. tango/resources/bulk/__init__.py +33 -0
  30. tango/resources/bulk/bulk.py +102 -0
  31. tango/resources/bulk/entities.py +152 -0
  32. tango/resources/business_types.py +218 -0
  33. tango/resources/contracts.py +381 -0
  34. tango/resources/departments.py +210 -0
  35. tango/resources/entities.py +325 -0
  36. tango/resources/idvs/__init__.py +33 -0
  37. tango/resources/idvs/awards.py +287 -0
  38. tango/resources/idvs/idvs.py +413 -0
  39. tango/resources/naics.py +317 -0
  40. tango/resources/notices.py +391 -0
  41. tango/resources/offices.py +281 -0
  42. tango/resources/opportunities.py +420 -0
  43. tango/resources/pscs.py +210 -0
  44. tango/resources/schemas.py +398 -0
  45. tango/resources/subawards.py +313 -0
  46. tango/resources/versions.py +136 -0
  47. tango/types/__init__.py +43 -0
  48. tango/types/agency.py +17 -0
  49. tango/types/agency_list_params.py +14 -0
  50. tango/types/agency_list_response.py +10 -0
  51. tango/types/assistance_listing.py +12 -0
  52. tango/types/assistance_listing_list_response.py +10 -0
  53. tango/types/assistance_listing_retrieve_response.py +26 -0
  54. tango/types/bulk/__init__.py +3 -0
  55. tango/types/business_type.py +14 -0
  56. tango/types/business_type_list_response.py +10 -0
  57. tango/types/contract_list_params.py +78 -0
  58. tango/types/contract_list_response.py +55 -0
  59. tango/types/contract_retrieve_response.py +51 -0
  60. tango/types/department.py +16 -0
  61. tango/types/department_list_response.py +10 -0
  62. tango/types/entity_list_params.py +38 -0
  63. tango/types/entity_list_response.py +37 -0
  64. tango/types/entity_retrieve_response.py +116 -0
  65. tango/types/idv.py +102 -0
  66. tango/types/idv_list_params.py +78 -0
  67. tango/types/idv_list_response.py +27 -0
  68. tango/types/idvs/__init__.py +6 -0
  69. tango/types/idvs/award_list_params.py +55 -0
  70. tango/types/idvs/award_list_response.py +55 -0
  71. tango/types/naic_list_params.py +47 -0
  72. tango/types/naic_list_response.py +10 -0
  73. tango/types/naic_retrieve_response.py +13 -0
  74. tango/types/naics_code.py +13 -0
  75. tango/types/notice_list_params.py +81 -0
  76. tango/types/notice_list_response.py +60 -0
  77. tango/types/notice_retrieve_response.py +93 -0
  78. tango/types/office.py +15 -0
  79. tango/types/office_list_params.py +18 -0
  80. tango/types/office_list_response.py +18 -0
  81. tango/types/opportunity_list_params.py +97 -0
  82. tango/types/opportunity_list_response.py +101 -0
  83. tango/types/opportunity_retrieve_response.py +123 -0
  84. tango/types/product_service_code.py +21 -0
  85. tango/types/psc_list_response.py +10 -0
  86. tango/types/schema_retrieve_params.py +113 -0
  87. tango/types/schema_retrieve_response.py +8 -0
  88. tango/types/subaward.py +172 -0
  89. tango/types/subaward_list_params.py +33 -0
  90. tango/types/subaward_list_response.py +18 -0
  91. tango_python-0.0.1a1.dist-info/METADATA +359 -0
  92. tango_python-0.0.1a1.dist-info/RECORD +94 -0
  93. tango_python-0.0.1a1.dist-info/WHEEL +4 -0
  94. tango_python-0.0.1a1.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,413 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ import httpx
6
+
7
+ from .awards import (
8
+ AwardsResource,
9
+ AsyncAwardsResource,
10
+ AwardsResourceWithRawResponse,
11
+ AsyncAwardsResourceWithRawResponse,
12
+ AwardsResourceWithStreamingResponse,
13
+ AsyncAwardsResourceWithStreamingResponse,
14
+ )
15
+ from ...types import idv_list_params
16
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
17
+ from ..._utils import (
18
+ maybe_transform,
19
+ async_maybe_transform,
20
+ )
21
+ from ..._compat import cached_property
22
+ from ..._resource import SyncAPIResource, AsyncAPIResource
23
+ from ..._response import (
24
+ to_raw_response_wrapper,
25
+ to_streamed_response_wrapper,
26
+ async_to_raw_response_wrapper,
27
+ async_to_streamed_response_wrapper,
28
+ )
29
+ from ...types.idv import Idv
30
+ from ..._base_client import make_request_options
31
+ from ...types.idv_list_response import IdvListResponse
32
+
33
+ __all__ = ["IdvsResource", "AsyncIdvsResource"]
34
+
35
+
36
+ class IdvsResource(SyncAPIResource):
37
+ @cached_property
38
+ def awards(self) -> AwardsResource:
39
+ return AwardsResource(self._client)
40
+
41
+ @cached_property
42
+ def with_raw_response(self) -> IdvsResourceWithRawResponse:
43
+ """
44
+ This property can be used as a prefix for any HTTP method call to return the
45
+ the raw response object instead of the parsed content.
46
+
47
+ For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers
48
+ """
49
+ return IdvsResourceWithRawResponse(self)
50
+
51
+ @cached_property
52
+ def with_streaming_response(self) -> IdvsResourceWithStreamingResponse:
53
+ """
54
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
55
+
56
+ For more information, see https://www.github.com/makegov/tango-python#with_streaming_response
57
+ """
58
+ return IdvsResourceWithStreamingResponse(self)
59
+
60
+ def retrieve(
61
+ self,
62
+ contract_award_unique_key: str,
63
+ *,
64
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
65
+ # The extra values given here take precedence over values defined on the client or passed to this method.
66
+ extra_headers: Headers | None = None,
67
+ extra_query: Query | None = None,
68
+ extra_body: Body | None = None,
69
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
70
+ ) -> Idv:
71
+ """
72
+ API endpoint that allows IDV lookup.
73
+
74
+ Args:
75
+ extra_headers: Send extra headers
76
+
77
+ extra_query: Add additional query parameters to the request
78
+
79
+ extra_body: Add additional JSON properties to the request
80
+
81
+ timeout: Override the client-level default timeout for this request, in seconds
82
+ """
83
+ if not contract_award_unique_key:
84
+ raise ValueError(
85
+ f"Expected a non-empty value for `contract_award_unique_key` but received {contract_award_unique_key!r}"
86
+ )
87
+ return self._get(
88
+ f"/api/idvs/{contract_award_unique_key}/",
89
+ options=make_request_options(
90
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
91
+ ),
92
+ cast_to=Idv,
93
+ )
94
+
95
+ def list(
96
+ self,
97
+ *,
98
+ award_date: str | NotGiven = NOT_GIVEN,
99
+ award_date_gte: str | NotGiven = NOT_GIVEN,
100
+ award_date_lte: str | NotGiven = NOT_GIVEN,
101
+ awarding_agency: str | NotGiven = NOT_GIVEN,
102
+ fiscal_year: str | NotGiven = NOT_GIVEN,
103
+ fiscal_year_gte: str | NotGiven = NOT_GIVEN,
104
+ fiscal_year_lte: str | NotGiven = NOT_GIVEN,
105
+ funding_agency: str | NotGiven = NOT_GIVEN,
106
+ limit: int | NotGiven = NOT_GIVEN,
107
+ naics: str | NotGiven = NOT_GIVEN,
108
+ ordering: str | NotGiven = NOT_GIVEN,
109
+ page: int | NotGiven = NOT_GIVEN,
110
+ psc: str | NotGiven = NOT_GIVEN,
111
+ set_aside: str | NotGiven = NOT_GIVEN,
112
+ uei: str | NotGiven = NOT_GIVEN,
113
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
114
+ # The extra values given here take precedence over values defined on the client or passed to this method.
115
+ extra_headers: Headers | None = None,
116
+ extra_query: Query | None = None,
117
+ extra_body: Body | None = None,
118
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
119
+ ) -> IdvListResponse:
120
+ """
121
+ API endpoint that allows IDV lookup.
122
+
123
+ Args:
124
+ award_date: <details><summary>Filter by award date</summary><ul><li><span>Accepted values: <var>2024-08-01</var>, <var>2024-08</var></span></li></ul></details>
125
+
126
+ award_date_gte: <details><summary>Filter by award date</summary><ul><li><span>Accepted values: <var>2024-08-01</var></span></li></ul></details>
127
+
128
+ award_date_lte: <details><summary>Filter by award date</summary><ul><li><span>Accepted values: <var>2024-08-01</var></span></li></ul></details>
129
+
130
+ awarding_agency: <details><summary>Filter by awarding agency</summary><ul><li>Accepts any agency or department code, acronym, or (partial) name</li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
131
+
132
+ fiscal_year: <details><summary>Filter by fiscal year</summary><ul><li><span>Accepted values: <var>2024</var></span></li></ul></details>
133
+
134
+ fiscal_year_gte: <details><summary>Filter by fiscal year</summary><ul><li><span>Accepted values: <var>2024</var></span></li></ul></details>
135
+
136
+ fiscal_year_lte: <details><summary>Filter by fiscal year</summary><ul><li><span>Accepted values: <var>2024</var></span></li></ul></details>
137
+
138
+ funding_agency: <details><summary>Filter by funding agency</summary><ul><li>Accepts any agency or department code, acronym, or (partial) name</li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
139
+
140
+ limit: Number of results to return per page.
141
+
142
+ naics: <details><summary>Filter by NAICS Code</summary><ul><li><span>Accepted values: <var>541511</var>, <var>541512</var>, <var>etc.</var></span></li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
143
+
144
+ ordering: <details><summary>Order results by a field of your choice.</summary><ul><li><span>Accepted values: <var>award_date</var>, <var>obligated</var>, <var>potential_total_value</var>, <var>recipient_name</var></span></li><li>Prefix with <var>-</var> to reverse order (e.g. <var>-award_date</var>)</li></ul></details>
145
+
146
+ page: A page number within the paginated result set.
147
+
148
+ psc: <details><summary>Filter by PSC (Product Service Code)</summary><ul><li><span>Accepted values: <var>S222</var>, <var>T005</var>, <var>etc.</var></span></li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
149
+
150
+ set_aside: <details><summary>Filter by set-aside type</summary><ul><li><span>Accepted values: <var>8A</var>, <var>8AN</var>, <var>BICiv</var>, <var>EDWOSB</var>, <var>EDWOSBSS</var>, <var>HUBZONE</var>, <var>HZC</var>, <var>HZS</var>, <var>IEE</var>, <var>ISBEE</var>, <var>LAS</var>, <var>NONE</var>, <var>SB</var>, <var>SBA</var>, <var>SBP</var>, <var>SDB</var>, <var>SDVOSB</var>, <var>SDVOSBC</var>, <var>SDVOSBS</var>, <var>VOSB</var>, <var>VSA</var>, <var>VSS</var>, <var>WOSB</var>, <var>WOSBSS</var></span></li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
151
+
152
+ uei: Filter by recipient UEI (Unique Entity Identifier)
153
+
154
+ extra_headers: Send extra headers
155
+
156
+ extra_query: Add additional query parameters to the request
157
+
158
+ extra_body: Add additional JSON properties to the request
159
+
160
+ timeout: Override the client-level default timeout for this request, in seconds
161
+ """
162
+ return self._get(
163
+ "/api/idvs/",
164
+ options=make_request_options(
165
+ extra_headers=extra_headers,
166
+ extra_query=extra_query,
167
+ extra_body=extra_body,
168
+ timeout=timeout,
169
+ query=maybe_transform(
170
+ {
171
+ "award_date": award_date,
172
+ "award_date_gte": award_date_gte,
173
+ "award_date_lte": award_date_lte,
174
+ "awarding_agency": awarding_agency,
175
+ "fiscal_year": fiscal_year,
176
+ "fiscal_year_gte": fiscal_year_gte,
177
+ "fiscal_year_lte": fiscal_year_lte,
178
+ "funding_agency": funding_agency,
179
+ "limit": limit,
180
+ "naics": naics,
181
+ "ordering": ordering,
182
+ "page": page,
183
+ "psc": psc,
184
+ "set_aside": set_aside,
185
+ "uei": uei,
186
+ },
187
+ idv_list_params.IdvListParams,
188
+ ),
189
+ ),
190
+ cast_to=IdvListResponse,
191
+ )
192
+
193
+
194
+ class AsyncIdvsResource(AsyncAPIResource):
195
+ @cached_property
196
+ def awards(self) -> AsyncAwardsResource:
197
+ return AsyncAwardsResource(self._client)
198
+
199
+ @cached_property
200
+ def with_raw_response(self) -> AsyncIdvsResourceWithRawResponse:
201
+ """
202
+ This property can be used as a prefix for any HTTP method call to return the
203
+ the raw response object instead of the parsed content.
204
+
205
+ For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers
206
+ """
207
+ return AsyncIdvsResourceWithRawResponse(self)
208
+
209
+ @cached_property
210
+ def with_streaming_response(self) -> AsyncIdvsResourceWithStreamingResponse:
211
+ """
212
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
213
+
214
+ For more information, see https://www.github.com/makegov/tango-python#with_streaming_response
215
+ """
216
+ return AsyncIdvsResourceWithStreamingResponse(self)
217
+
218
+ async def retrieve(
219
+ self,
220
+ contract_award_unique_key: str,
221
+ *,
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
+ ) -> Idv:
229
+ """
230
+ API endpoint that allows IDV lookup.
231
+
232
+ Args:
233
+ extra_headers: Send extra headers
234
+
235
+ extra_query: Add additional query parameters to the request
236
+
237
+ extra_body: Add additional JSON properties to the request
238
+
239
+ timeout: Override the client-level default timeout for this request, in seconds
240
+ """
241
+ if not contract_award_unique_key:
242
+ raise ValueError(
243
+ f"Expected a non-empty value for `contract_award_unique_key` but received {contract_award_unique_key!r}"
244
+ )
245
+ return await self._get(
246
+ f"/api/idvs/{contract_award_unique_key}/",
247
+ options=make_request_options(
248
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
249
+ ),
250
+ cast_to=Idv,
251
+ )
252
+
253
+ async def list(
254
+ self,
255
+ *,
256
+ award_date: str | NotGiven = NOT_GIVEN,
257
+ award_date_gte: str | NotGiven = NOT_GIVEN,
258
+ award_date_lte: str | NotGiven = NOT_GIVEN,
259
+ awarding_agency: str | NotGiven = NOT_GIVEN,
260
+ fiscal_year: str | NotGiven = NOT_GIVEN,
261
+ fiscal_year_gte: str | NotGiven = NOT_GIVEN,
262
+ fiscal_year_lte: str | NotGiven = NOT_GIVEN,
263
+ funding_agency: str | NotGiven = NOT_GIVEN,
264
+ limit: int | NotGiven = NOT_GIVEN,
265
+ naics: str | NotGiven = NOT_GIVEN,
266
+ ordering: str | NotGiven = NOT_GIVEN,
267
+ page: int | NotGiven = NOT_GIVEN,
268
+ psc: str | NotGiven = NOT_GIVEN,
269
+ set_aside: str | NotGiven = NOT_GIVEN,
270
+ uei: str | NotGiven = NOT_GIVEN,
271
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
272
+ # The extra values given here take precedence over values defined on the client or passed to this method.
273
+ extra_headers: Headers | None = None,
274
+ extra_query: Query | None = None,
275
+ extra_body: Body | None = None,
276
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
277
+ ) -> IdvListResponse:
278
+ """
279
+ API endpoint that allows IDV lookup.
280
+
281
+ Args:
282
+ award_date: <details><summary>Filter by award date</summary><ul><li><span>Accepted values: <var>2024-08-01</var>, <var>2024-08</var></span></li></ul></details>
283
+
284
+ award_date_gte: <details><summary>Filter by award date</summary><ul><li><span>Accepted values: <var>2024-08-01</var></span></li></ul></details>
285
+
286
+ award_date_lte: <details><summary>Filter by award date</summary><ul><li><span>Accepted values: <var>2024-08-01</var></span></li></ul></details>
287
+
288
+ awarding_agency: <details><summary>Filter by awarding agency</summary><ul><li>Accepts any agency or department code, acronym, or (partial) name</li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
289
+
290
+ fiscal_year: <details><summary>Filter by fiscal year</summary><ul><li><span>Accepted values: <var>2024</var></span></li></ul></details>
291
+
292
+ fiscal_year_gte: <details><summary>Filter by fiscal year</summary><ul><li><span>Accepted values: <var>2024</var></span></li></ul></details>
293
+
294
+ fiscal_year_lte: <details><summary>Filter by fiscal year</summary><ul><li><span>Accepted values: <var>2024</var></span></li></ul></details>
295
+
296
+ funding_agency: <details><summary>Filter by funding agency</summary><ul><li>Accepts any agency or department code, acronym, or (partial) name</li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
297
+
298
+ limit: Number of results to return per page.
299
+
300
+ naics: <details><summary>Filter by NAICS Code</summary><ul><li><span>Accepted values: <var>541511</var>, <var>541512</var>, <var>etc.</var></span></li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
301
+
302
+ ordering: <details><summary>Order results by a field of your choice.</summary><ul><li><span>Accepted values: <var>award_date</var>, <var>obligated</var>, <var>potential_total_value</var>, <var>recipient_name</var></span></li><li>Prefix with <var>-</var> to reverse order (e.g. <var>-award_date</var>)</li></ul></details>
303
+
304
+ page: A page number within the paginated result set.
305
+
306
+ psc: <details><summary>Filter by PSC (Product Service Code)</summary><ul><li><span>Accepted values: <var>S222</var>, <var>T005</var>, <var>etc.</var></span></li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
307
+
308
+ set_aside: <details><summary>Filter by set-aside type</summary><ul><li><span>Accepted values: <var>8A</var>, <var>8AN</var>, <var>BICiv</var>, <var>EDWOSB</var>, <var>EDWOSBSS</var>, <var>HUBZONE</var>, <var>HZC</var>, <var>HZS</var>, <var>IEE</var>, <var>ISBEE</var>, <var>LAS</var>, <var>NONE</var>, <var>SB</var>, <var>SBA</var>, <var>SBP</var>, <var>SDB</var>, <var>SDVOSB</var>, <var>SDVOSBC</var>, <var>SDVOSBS</var>, <var>VOSB</var>, <var>VSA</var>, <var>VSS</var>, <var>WOSB</var>, <var>WOSBSS</var></span></li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
309
+
310
+ uei: Filter by recipient UEI (Unique Entity Identifier)
311
+
312
+ extra_headers: Send extra headers
313
+
314
+ extra_query: Add additional query parameters to the request
315
+
316
+ extra_body: Add additional JSON properties to the request
317
+
318
+ timeout: Override the client-level default timeout for this request, in seconds
319
+ """
320
+ return await self._get(
321
+ "/api/idvs/",
322
+ options=make_request_options(
323
+ extra_headers=extra_headers,
324
+ extra_query=extra_query,
325
+ extra_body=extra_body,
326
+ timeout=timeout,
327
+ query=await async_maybe_transform(
328
+ {
329
+ "award_date": award_date,
330
+ "award_date_gte": award_date_gte,
331
+ "award_date_lte": award_date_lte,
332
+ "awarding_agency": awarding_agency,
333
+ "fiscal_year": fiscal_year,
334
+ "fiscal_year_gte": fiscal_year_gte,
335
+ "fiscal_year_lte": fiscal_year_lte,
336
+ "funding_agency": funding_agency,
337
+ "limit": limit,
338
+ "naics": naics,
339
+ "ordering": ordering,
340
+ "page": page,
341
+ "psc": psc,
342
+ "set_aside": set_aside,
343
+ "uei": uei,
344
+ },
345
+ idv_list_params.IdvListParams,
346
+ ),
347
+ ),
348
+ cast_to=IdvListResponse,
349
+ )
350
+
351
+
352
+ class IdvsResourceWithRawResponse:
353
+ def __init__(self, idvs: IdvsResource) -> None:
354
+ self._idvs = idvs
355
+
356
+ self.retrieve = to_raw_response_wrapper(
357
+ idvs.retrieve,
358
+ )
359
+ self.list = to_raw_response_wrapper(
360
+ idvs.list,
361
+ )
362
+
363
+ @cached_property
364
+ def awards(self) -> AwardsResourceWithRawResponse:
365
+ return AwardsResourceWithRawResponse(self._idvs.awards)
366
+
367
+
368
+ class AsyncIdvsResourceWithRawResponse:
369
+ def __init__(self, idvs: AsyncIdvsResource) -> None:
370
+ self._idvs = idvs
371
+
372
+ self.retrieve = async_to_raw_response_wrapper(
373
+ idvs.retrieve,
374
+ )
375
+ self.list = async_to_raw_response_wrapper(
376
+ idvs.list,
377
+ )
378
+
379
+ @cached_property
380
+ def awards(self) -> AsyncAwardsResourceWithRawResponse:
381
+ return AsyncAwardsResourceWithRawResponse(self._idvs.awards)
382
+
383
+
384
+ class IdvsResourceWithStreamingResponse:
385
+ def __init__(self, idvs: IdvsResource) -> None:
386
+ self._idvs = idvs
387
+
388
+ self.retrieve = to_streamed_response_wrapper(
389
+ idvs.retrieve,
390
+ )
391
+ self.list = to_streamed_response_wrapper(
392
+ idvs.list,
393
+ )
394
+
395
+ @cached_property
396
+ def awards(self) -> AwardsResourceWithStreamingResponse:
397
+ return AwardsResourceWithStreamingResponse(self._idvs.awards)
398
+
399
+
400
+ class AsyncIdvsResourceWithStreamingResponse:
401
+ def __init__(self, idvs: AsyncIdvsResource) -> None:
402
+ self._idvs = idvs
403
+
404
+ self.retrieve = async_to_streamed_response_wrapper(
405
+ idvs.retrieve,
406
+ )
407
+ self.list = async_to_streamed_response_wrapper(
408
+ idvs.list,
409
+ )
410
+
411
+ @cached_property
412
+ def awards(self) -> AsyncAwardsResourceWithStreamingResponse:
413
+ return AsyncAwardsResourceWithStreamingResponse(self._idvs.awards)