lark-billing 0.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. lark/__init__.py +92 -0
  2. lark/_base_client.py +1995 -0
  3. lark/_client.py +459 -0
  4. lark/_compat.py +219 -0
  5. lark/_constants.py +14 -0
  6. lark/_exceptions.py +108 -0
  7. lark/_files.py +123 -0
  8. lark/_models.py +857 -0
  9. lark/_qs.py +150 -0
  10. lark/_resource.py +43 -0
  11. lark/_response.py +830 -0
  12. lark/_streaming.py +333 -0
  13. lark/_types.py +261 -0
  14. lark/_utils/__init__.py +64 -0
  15. lark/_utils/_compat.py +45 -0
  16. lark/_utils/_datetime_parse.py +136 -0
  17. lark/_utils/_logs.py +25 -0
  18. lark/_utils/_proxy.py +65 -0
  19. lark/_utils/_reflection.py +42 -0
  20. lark/_utils/_resources_proxy.py +24 -0
  21. lark/_utils/_streams.py +12 -0
  22. lark/_utils/_sync.py +58 -0
  23. lark/_utils/_transform.py +457 -0
  24. lark/_utils/_typing.py +156 -0
  25. lark/_utils/_utils.py +421 -0
  26. lark/_version.py +4 -0
  27. lark/lib/.keep +4 -0
  28. lark/py.typed +0 -0
  29. lark/resources/__init__.py +117 -0
  30. lark/resources/customer_access.py +167 -0
  31. lark/resources/customer_portal.py +187 -0
  32. lark/resources/invoices.py +191 -0
  33. lark/resources/pricing_metrics.py +499 -0
  34. lark/resources/rate_cards.py +395 -0
  35. lark/resources/subjects.py +579 -0
  36. lark/resources/subscriptions.py +647 -0
  37. lark/resources/usage_events.py +221 -0
  38. lark/types/__init__.py +53 -0
  39. lark/types/amount_input_param.py +16 -0
  40. lark/types/amount_output.py +13 -0
  41. lark/types/checkout_callback_param.py +15 -0
  42. lark/types/customer_access_retrieve_billing_state_response.py +40 -0
  43. lark/types/customer_portal_create_session_params.py +18 -0
  44. lark/types/customer_portal_create_session_response.py +18 -0
  45. lark/types/flat_price_input_param.py +17 -0
  46. lark/types/flat_price_output.py +17 -0
  47. lark/types/invoice_list_params.py +16 -0
  48. lark/types/invoice_list_response.py +49 -0
  49. lark/types/package_price_input_param.py +24 -0
  50. lark/types/package_price_output.py +24 -0
  51. lark/types/period.py +18 -0
  52. lark/types/period_param.py +21 -0
  53. lark/types/pricing_metric_create_params.py +98 -0
  54. lark/types/pricing_metric_create_summary_params.py +25 -0
  55. lark/types/pricing_metric_create_summary_response.py +36 -0
  56. lark/types/pricing_metric_list_params.py +11 -0
  57. lark/types/pricing_metric_list_response.py +14 -0
  58. lark/types/pricing_metric_resource.py +72 -0
  59. lark/types/rate_card_create_params.py +148 -0
  60. lark/types/rate_card_list_params.py +13 -0
  61. lark/types/rate_card_list_response.py +14 -0
  62. lark/types/rate_card_resource.py +141 -0
  63. lark/types/subject_create_params.py +29 -0
  64. lark/types/subject_create_response.py +34 -0
  65. lark/types/subject_list_params.py +13 -0
  66. lark/types/subject_list_response.py +14 -0
  67. lark/types/subject_resource.py +34 -0
  68. lark/types/subject_update_params.py +22 -0
  69. lark/types/subscription_cancel_params.py +16 -0
  70. lark/types/subscription_change_rate_card_params.py +29 -0
  71. lark/types/subscription_change_rate_card_response.py +55 -0
  72. lark/types/subscription_create_params.py +38 -0
  73. lark/types/subscription_create_response.py +55 -0
  74. lark/types/subscription_list_params.py +26 -0
  75. lark/types/subscription_list_response.py +14 -0
  76. lark/types/subscription_resource.py +49 -0
  77. lark/types/usage_event_create_params.py +41 -0
  78. lark_billing-0.5.0.dist-info/METADATA +431 -0
  79. lark_billing-0.5.0.dist-info/RECORD +81 -0
  80. lark_billing-0.5.0.dist-info/WHEEL +4 -0
  81. lark_billing-0.5.0.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,579 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict, Optional
6
+
7
+ import httpx
8
+
9
+ from ..types import subject_list_params, subject_create_params, subject_update_params
10
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11
+ from .._utils import maybe_transform, async_maybe_transform
12
+ from .._compat import cached_property
13
+ from .._resource import SyncAPIResource, AsyncAPIResource
14
+ from .._response import (
15
+ to_raw_response_wrapper,
16
+ to_streamed_response_wrapper,
17
+ async_to_raw_response_wrapper,
18
+ async_to_streamed_response_wrapper,
19
+ )
20
+ from .._base_client import make_request_options
21
+ from ..types.subject_resource import SubjectResource
22
+ from ..types.subject_list_response import SubjectListResponse
23
+ from ..types.subject_create_response import SubjectCreateResponse
24
+
25
+ __all__ = ["SubjectsResource", "AsyncSubjectsResource"]
26
+
27
+
28
+ class SubjectsResource(SyncAPIResource):
29
+ @cached_property
30
+ def with_raw_response(self) -> SubjectsResourceWithRawResponse:
31
+ """
32
+ This property can be used as a prefix for any HTTP method call to return
33
+ the raw response object instead of the parsed content.
34
+
35
+ For more information, see https://www.github.com/uselark/lark-billing-python#accessing-raw-response-data-eg-headers
36
+ """
37
+ return SubjectsResourceWithRawResponse(self)
38
+
39
+ @cached_property
40
+ def with_streaming_response(self) -> SubjectsResourceWithStreamingResponse:
41
+ """
42
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
43
+
44
+ For more information, see https://www.github.com/uselark/lark-billing-python#with_streaming_response
45
+ """
46
+ return SubjectsResourceWithStreamingResponse(self)
47
+
48
+ def create(
49
+ self,
50
+ *,
51
+ email: Optional[str] | Omit = omit,
52
+ external_id: Optional[str] | Omit = omit,
53
+ metadata: Dict[str, str] | Omit = omit,
54
+ name: Optional[str] | Omit = omit,
55
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
56
+ # The extra values given here take precedence over values defined on the client or passed to this method.
57
+ extra_headers: Headers | None = None,
58
+ extra_query: Query | None = None,
59
+ extra_body: Body | None = None,
60
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
61
+ ) -> SubjectCreateResponse:
62
+ """Create Subject
63
+
64
+ Args:
65
+ email: The email of the subject.
66
+
67
+ Must be a valid email address.
68
+
69
+ external_id: The ID of the subject in your system. If provided, you may use pass it to the
70
+ API in place of the subject ID. Must be unique.
71
+
72
+ metadata: Additional metadata about the subject. You may use this to store any custom data
73
+ about the subject.
74
+
75
+ name: The name of the subject. Used for display in the dashboard.
76
+
77
+ extra_headers: Send extra headers
78
+
79
+ extra_query: Add additional query parameters to the request
80
+
81
+ extra_body: Add additional JSON properties to the request
82
+
83
+ timeout: Override the client-level default timeout for this request, in seconds
84
+ """
85
+ return self._post(
86
+ "/subjects",
87
+ body=maybe_transform(
88
+ {
89
+ "email": email,
90
+ "external_id": external_id,
91
+ "metadata": metadata,
92
+ "name": name,
93
+ },
94
+ subject_create_params.SubjectCreateParams,
95
+ ),
96
+ options=make_request_options(
97
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
98
+ ),
99
+ cast_to=SubjectCreateResponse,
100
+ )
101
+
102
+ def retrieve(
103
+ self,
104
+ subject_id: str,
105
+ *,
106
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
107
+ # The extra values given here take precedence over values defined on the client or passed to this method.
108
+ extra_headers: Headers | None = None,
109
+ extra_query: Query | None = None,
110
+ extra_body: Body | None = None,
111
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
112
+ ) -> SubjectResource:
113
+ """
114
+ Get Subject
115
+
116
+ Args:
117
+ extra_headers: Send extra headers
118
+
119
+ extra_query: Add additional query parameters to the request
120
+
121
+ extra_body: Add additional JSON properties to the request
122
+
123
+ timeout: Override the client-level default timeout for this request, in seconds
124
+ """
125
+ if not subject_id:
126
+ raise ValueError(f"Expected a non-empty value for `subject_id` but received {subject_id!r}")
127
+ return self._get(
128
+ f"/subjects/{subject_id}",
129
+ options=make_request_options(
130
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
131
+ ),
132
+ cast_to=SubjectResource,
133
+ )
134
+
135
+ def update(
136
+ self,
137
+ subject_id: str,
138
+ *,
139
+ email: Optional[str],
140
+ metadata: Optional[Dict[str, str]],
141
+ name: Optional[str],
142
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
143
+ # The extra values given here take precedence over values defined on the client or passed to this method.
144
+ extra_headers: Headers | None = None,
145
+ extra_query: Query | None = None,
146
+ extra_body: Body | None = None,
147
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
148
+ ) -> SubjectResource:
149
+ """Update Subject
150
+
151
+ Args:
152
+ email: The email of the subject.
153
+
154
+ Must be a valid email address.
155
+
156
+ metadata: Additional metadata about the subject. You may use this to store any custom data
157
+ about the subject.
158
+
159
+ name: The name of the subject. Used for display in the dashboard.
160
+
161
+ extra_headers: Send extra headers
162
+
163
+ extra_query: Add additional query parameters to the request
164
+
165
+ extra_body: Add additional JSON properties to the request
166
+
167
+ timeout: Override the client-level default timeout for this request, in seconds
168
+ """
169
+ if not subject_id:
170
+ raise ValueError(f"Expected a non-empty value for `subject_id` but received {subject_id!r}")
171
+ return self._put(
172
+ f"/subjects/{subject_id}",
173
+ body=maybe_transform(
174
+ {
175
+ "email": email,
176
+ "metadata": metadata,
177
+ "name": name,
178
+ },
179
+ subject_update_params.SubjectUpdateParams,
180
+ ),
181
+ options=make_request_options(
182
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
183
+ ),
184
+ cast_to=SubjectResource,
185
+ )
186
+
187
+ def list(
188
+ self,
189
+ *,
190
+ limit: int | Omit = omit,
191
+ offset: int | Omit = omit,
192
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
193
+ # The extra values given here take precedence over values defined on the client or passed to this method.
194
+ extra_headers: Headers | None = None,
195
+ extra_query: Query | None = None,
196
+ extra_body: Body | None = None,
197
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
198
+ ) -> SubjectListResponse:
199
+ """
200
+ List Subjects
201
+
202
+ Args:
203
+ extra_headers: Send extra headers
204
+
205
+ extra_query: Add additional query parameters to the request
206
+
207
+ extra_body: Add additional JSON properties to the request
208
+
209
+ timeout: Override the client-level default timeout for this request, in seconds
210
+ """
211
+ return self._get(
212
+ "/subjects",
213
+ options=make_request_options(
214
+ extra_headers=extra_headers,
215
+ extra_query=extra_query,
216
+ extra_body=extra_body,
217
+ timeout=timeout,
218
+ query=maybe_transform(
219
+ {
220
+ "limit": limit,
221
+ "offset": offset,
222
+ },
223
+ subject_list_params.SubjectListParams,
224
+ ),
225
+ ),
226
+ cast_to=SubjectListResponse,
227
+ )
228
+
229
+ def delete(
230
+ self,
231
+ subject_id: str,
232
+ *,
233
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
234
+ # The extra values given here take precedence over values defined on the client or passed to this method.
235
+ extra_headers: Headers | None = None,
236
+ extra_query: Query | None = None,
237
+ extra_body: Body | None = None,
238
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
239
+ ) -> object:
240
+ """
241
+ Delete Subject
242
+
243
+ Args:
244
+ extra_headers: Send extra headers
245
+
246
+ extra_query: Add additional query parameters to the request
247
+
248
+ extra_body: Add additional JSON properties to the request
249
+
250
+ timeout: Override the client-level default timeout for this request, in seconds
251
+ """
252
+ if not subject_id:
253
+ raise ValueError(f"Expected a non-empty value for `subject_id` but received {subject_id!r}")
254
+ return self._delete(
255
+ f"/subjects/{subject_id}",
256
+ options=make_request_options(
257
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
258
+ ),
259
+ cast_to=object,
260
+ )
261
+
262
+
263
+ class AsyncSubjectsResource(AsyncAPIResource):
264
+ @cached_property
265
+ def with_raw_response(self) -> AsyncSubjectsResourceWithRawResponse:
266
+ """
267
+ This property can be used as a prefix for any HTTP method call to return
268
+ the raw response object instead of the parsed content.
269
+
270
+ For more information, see https://www.github.com/uselark/lark-billing-python#accessing-raw-response-data-eg-headers
271
+ """
272
+ return AsyncSubjectsResourceWithRawResponse(self)
273
+
274
+ @cached_property
275
+ def with_streaming_response(self) -> AsyncSubjectsResourceWithStreamingResponse:
276
+ """
277
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
278
+
279
+ For more information, see https://www.github.com/uselark/lark-billing-python#with_streaming_response
280
+ """
281
+ return AsyncSubjectsResourceWithStreamingResponse(self)
282
+
283
+ async def create(
284
+ self,
285
+ *,
286
+ email: Optional[str] | Omit = omit,
287
+ external_id: Optional[str] | Omit = omit,
288
+ metadata: Dict[str, str] | Omit = omit,
289
+ name: Optional[str] | Omit = omit,
290
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
291
+ # The extra values given here take precedence over values defined on the client or passed to this method.
292
+ extra_headers: Headers | None = None,
293
+ extra_query: Query | None = None,
294
+ extra_body: Body | None = None,
295
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
296
+ ) -> SubjectCreateResponse:
297
+ """Create Subject
298
+
299
+ Args:
300
+ email: The email of the subject.
301
+
302
+ Must be a valid email address.
303
+
304
+ external_id: The ID of the subject in your system. If provided, you may use pass it to the
305
+ API in place of the subject ID. Must be unique.
306
+
307
+ metadata: Additional metadata about the subject. You may use this to store any custom data
308
+ about the subject.
309
+
310
+ name: The name of the subject. Used for display in the dashboard.
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._post(
321
+ "/subjects",
322
+ body=await async_maybe_transform(
323
+ {
324
+ "email": email,
325
+ "external_id": external_id,
326
+ "metadata": metadata,
327
+ "name": name,
328
+ },
329
+ subject_create_params.SubjectCreateParams,
330
+ ),
331
+ options=make_request_options(
332
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
333
+ ),
334
+ cast_to=SubjectCreateResponse,
335
+ )
336
+
337
+ async def retrieve(
338
+ self,
339
+ subject_id: str,
340
+ *,
341
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
342
+ # The extra values given here take precedence over values defined on the client or passed to this method.
343
+ extra_headers: Headers | None = None,
344
+ extra_query: Query | None = None,
345
+ extra_body: Body | None = None,
346
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
347
+ ) -> SubjectResource:
348
+ """
349
+ Get Subject
350
+
351
+ Args:
352
+ extra_headers: Send extra headers
353
+
354
+ extra_query: Add additional query parameters to the request
355
+
356
+ extra_body: Add additional JSON properties to the request
357
+
358
+ timeout: Override the client-level default timeout for this request, in seconds
359
+ """
360
+ if not subject_id:
361
+ raise ValueError(f"Expected a non-empty value for `subject_id` but received {subject_id!r}")
362
+ return await self._get(
363
+ f"/subjects/{subject_id}",
364
+ options=make_request_options(
365
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
366
+ ),
367
+ cast_to=SubjectResource,
368
+ )
369
+
370
+ async def update(
371
+ self,
372
+ subject_id: str,
373
+ *,
374
+ email: Optional[str],
375
+ metadata: Optional[Dict[str, str]],
376
+ name: Optional[str],
377
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
378
+ # The extra values given here take precedence over values defined on the client or passed to this method.
379
+ extra_headers: Headers | None = None,
380
+ extra_query: Query | None = None,
381
+ extra_body: Body | None = None,
382
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
383
+ ) -> SubjectResource:
384
+ """Update Subject
385
+
386
+ Args:
387
+ email: The email of the subject.
388
+
389
+ Must be a valid email address.
390
+
391
+ metadata: Additional metadata about the subject. You may use this to store any custom data
392
+ about the subject.
393
+
394
+ name: The name of the subject. Used for display in the dashboard.
395
+
396
+ extra_headers: Send extra headers
397
+
398
+ extra_query: Add additional query parameters to the request
399
+
400
+ extra_body: Add additional JSON properties to the request
401
+
402
+ timeout: Override the client-level default timeout for this request, in seconds
403
+ """
404
+ if not subject_id:
405
+ raise ValueError(f"Expected a non-empty value for `subject_id` but received {subject_id!r}")
406
+ return await self._put(
407
+ f"/subjects/{subject_id}",
408
+ body=await async_maybe_transform(
409
+ {
410
+ "email": email,
411
+ "metadata": metadata,
412
+ "name": name,
413
+ },
414
+ subject_update_params.SubjectUpdateParams,
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=SubjectResource,
420
+ )
421
+
422
+ async def list(
423
+ self,
424
+ *,
425
+ limit: int | Omit = omit,
426
+ offset: int | Omit = omit,
427
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
428
+ # The extra values given here take precedence over values defined on the client or passed to this method.
429
+ extra_headers: Headers | None = None,
430
+ extra_query: Query | None = None,
431
+ extra_body: Body | None = None,
432
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
433
+ ) -> SubjectListResponse:
434
+ """
435
+ List Subjects
436
+
437
+ Args:
438
+ extra_headers: Send extra headers
439
+
440
+ extra_query: Add additional query parameters to the request
441
+
442
+ extra_body: Add additional JSON properties to the request
443
+
444
+ timeout: Override the client-level default timeout for this request, in seconds
445
+ """
446
+ return await self._get(
447
+ "/subjects",
448
+ options=make_request_options(
449
+ extra_headers=extra_headers,
450
+ extra_query=extra_query,
451
+ extra_body=extra_body,
452
+ timeout=timeout,
453
+ query=await async_maybe_transform(
454
+ {
455
+ "limit": limit,
456
+ "offset": offset,
457
+ },
458
+ subject_list_params.SubjectListParams,
459
+ ),
460
+ ),
461
+ cast_to=SubjectListResponse,
462
+ )
463
+
464
+ async def delete(
465
+ self,
466
+ subject_id: str,
467
+ *,
468
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
469
+ # The extra values given here take precedence over values defined on the client or passed to this method.
470
+ extra_headers: Headers | None = None,
471
+ extra_query: Query | None = None,
472
+ extra_body: Body | None = None,
473
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
474
+ ) -> object:
475
+ """
476
+ Delete Subject
477
+
478
+ Args:
479
+ extra_headers: Send extra headers
480
+
481
+ extra_query: Add additional query parameters to the request
482
+
483
+ extra_body: Add additional JSON properties to the request
484
+
485
+ timeout: Override the client-level default timeout for this request, in seconds
486
+ """
487
+ if not subject_id:
488
+ raise ValueError(f"Expected a non-empty value for `subject_id` but received {subject_id!r}")
489
+ return await self._delete(
490
+ f"/subjects/{subject_id}",
491
+ options=make_request_options(
492
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
493
+ ),
494
+ cast_to=object,
495
+ )
496
+
497
+
498
+ class SubjectsResourceWithRawResponse:
499
+ def __init__(self, subjects: SubjectsResource) -> None:
500
+ self._subjects = subjects
501
+
502
+ self.create = to_raw_response_wrapper(
503
+ subjects.create,
504
+ )
505
+ self.retrieve = to_raw_response_wrapper(
506
+ subjects.retrieve,
507
+ )
508
+ self.update = to_raw_response_wrapper(
509
+ subjects.update,
510
+ )
511
+ self.list = to_raw_response_wrapper(
512
+ subjects.list,
513
+ )
514
+ self.delete = to_raw_response_wrapper(
515
+ subjects.delete,
516
+ )
517
+
518
+
519
+ class AsyncSubjectsResourceWithRawResponse:
520
+ def __init__(self, subjects: AsyncSubjectsResource) -> None:
521
+ self._subjects = subjects
522
+
523
+ self.create = async_to_raw_response_wrapper(
524
+ subjects.create,
525
+ )
526
+ self.retrieve = async_to_raw_response_wrapper(
527
+ subjects.retrieve,
528
+ )
529
+ self.update = async_to_raw_response_wrapper(
530
+ subjects.update,
531
+ )
532
+ self.list = async_to_raw_response_wrapper(
533
+ subjects.list,
534
+ )
535
+ self.delete = async_to_raw_response_wrapper(
536
+ subjects.delete,
537
+ )
538
+
539
+
540
+ class SubjectsResourceWithStreamingResponse:
541
+ def __init__(self, subjects: SubjectsResource) -> None:
542
+ self._subjects = subjects
543
+
544
+ self.create = to_streamed_response_wrapper(
545
+ subjects.create,
546
+ )
547
+ self.retrieve = to_streamed_response_wrapper(
548
+ subjects.retrieve,
549
+ )
550
+ self.update = to_streamed_response_wrapper(
551
+ subjects.update,
552
+ )
553
+ self.list = to_streamed_response_wrapper(
554
+ subjects.list,
555
+ )
556
+ self.delete = to_streamed_response_wrapper(
557
+ subjects.delete,
558
+ )
559
+
560
+
561
+ class AsyncSubjectsResourceWithStreamingResponse:
562
+ def __init__(self, subjects: AsyncSubjectsResource) -> None:
563
+ self._subjects = subjects
564
+
565
+ self.create = async_to_streamed_response_wrapper(
566
+ subjects.create,
567
+ )
568
+ self.retrieve = async_to_streamed_response_wrapper(
569
+ subjects.retrieve,
570
+ )
571
+ self.update = async_to_streamed_response_wrapper(
572
+ subjects.update,
573
+ )
574
+ self.list = async_to_streamed_response_wrapper(
575
+ subjects.list,
576
+ )
577
+ self.delete = async_to_streamed_response_wrapper(
578
+ subjects.delete,
579
+ )