payi 0.1.0a1__py3-none-any.whl → 0.1.0a3__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.
Potentially problematic release.
This version of payi might be problematic. Click here for more details.
- payi/_client.py +8 -8
- payi/_version.py +1 -1
- payi/resources/__init__.py +14 -14
- payi/resources/budgets/budgets.py +0 -61
- payi/resources/budgets/tags.py +0 -51
- payi/resources/{ingest_requests.py → ingest.py} +42 -42
- payi/types/__init__.py +1 -1
- payi/types/budget_create_params.py +1 -5
- payi/types/budget_list_params.py +0 -2
- payi/types/budget_update_params.py +1 -5
- payi/types/budgets/tag_create_params.py +1 -5
- payi/types/budgets/tag_remove_params.py +1 -5
- payi/types/budgets/tag_update_params.py +1 -5
- payi/types/{ingest_request_create_params.py → ingest_units_params.py} +3 -3
- {payi-0.1.0a1.dist-info → payi-0.1.0a3.dist-info}/METADATA +1 -1
- {payi-0.1.0a1.dist-info → payi-0.1.0a3.dist-info}/RECORD +18 -18
- {payi-0.1.0a1.dist-info → payi-0.1.0a3.dist-info}/WHEEL +0 -0
- {payi-0.1.0a1.dist-info → payi-0.1.0a3.dist-info}/licenses/LICENSE +0 -0
payi/_client.py
CHANGED
|
@@ -47,7 +47,7 @@ __all__ = [
|
|
|
47
47
|
|
|
48
48
|
class Payi(SyncAPIClient):
|
|
49
49
|
budgets: resources.BudgetsResource
|
|
50
|
-
|
|
50
|
+
ingest: resources.IngestResource
|
|
51
51
|
with_raw_response: PayiWithRawResponse
|
|
52
52
|
with_streaming_response: PayiWithStreamedResponse
|
|
53
53
|
|
|
@@ -106,7 +106,7 @@ class Payi(SyncAPIClient):
|
|
|
106
106
|
)
|
|
107
107
|
|
|
108
108
|
self.budgets = resources.BudgetsResource(self)
|
|
109
|
-
self.
|
|
109
|
+
self.ingest = resources.IngestResource(self)
|
|
110
110
|
self.with_raw_response = PayiWithRawResponse(self)
|
|
111
111
|
self.with_streaming_response = PayiWithStreamedResponse(self)
|
|
112
112
|
|
|
@@ -217,7 +217,7 @@ class Payi(SyncAPIClient):
|
|
|
217
217
|
|
|
218
218
|
class AsyncPayi(AsyncAPIClient):
|
|
219
219
|
budgets: resources.AsyncBudgetsResource
|
|
220
|
-
|
|
220
|
+
ingest: resources.AsyncIngestResource
|
|
221
221
|
with_raw_response: AsyncPayiWithRawResponse
|
|
222
222
|
with_streaming_response: AsyncPayiWithStreamedResponse
|
|
223
223
|
|
|
@@ -276,7 +276,7 @@ class AsyncPayi(AsyncAPIClient):
|
|
|
276
276
|
)
|
|
277
277
|
|
|
278
278
|
self.budgets = resources.AsyncBudgetsResource(self)
|
|
279
|
-
self.
|
|
279
|
+
self.ingest = resources.AsyncIngestResource(self)
|
|
280
280
|
self.with_raw_response = AsyncPayiWithRawResponse(self)
|
|
281
281
|
self.with_streaming_response = AsyncPayiWithStreamedResponse(self)
|
|
282
282
|
|
|
@@ -388,25 +388,25 @@ class AsyncPayi(AsyncAPIClient):
|
|
|
388
388
|
class PayiWithRawResponse:
|
|
389
389
|
def __init__(self, client: Payi) -> None:
|
|
390
390
|
self.budgets = resources.BudgetsResourceWithRawResponse(client.budgets)
|
|
391
|
-
self.
|
|
391
|
+
self.ingest = resources.IngestResourceWithRawResponse(client.ingest)
|
|
392
392
|
|
|
393
393
|
|
|
394
394
|
class AsyncPayiWithRawResponse:
|
|
395
395
|
def __init__(self, client: AsyncPayi) -> None:
|
|
396
396
|
self.budgets = resources.AsyncBudgetsResourceWithRawResponse(client.budgets)
|
|
397
|
-
self.
|
|
397
|
+
self.ingest = resources.AsyncIngestResourceWithRawResponse(client.ingest)
|
|
398
398
|
|
|
399
399
|
|
|
400
400
|
class PayiWithStreamedResponse:
|
|
401
401
|
def __init__(self, client: Payi) -> None:
|
|
402
402
|
self.budgets = resources.BudgetsResourceWithStreamingResponse(client.budgets)
|
|
403
|
-
self.
|
|
403
|
+
self.ingest = resources.IngestResourceWithStreamingResponse(client.ingest)
|
|
404
404
|
|
|
405
405
|
|
|
406
406
|
class AsyncPayiWithStreamedResponse:
|
|
407
407
|
def __init__(self, client: AsyncPayi) -> None:
|
|
408
408
|
self.budgets = resources.AsyncBudgetsResourceWithStreamingResponse(client.budgets)
|
|
409
|
-
self.
|
|
409
|
+
self.ingest = resources.AsyncIngestResourceWithStreamingResponse(client.ingest)
|
|
410
410
|
|
|
411
411
|
|
|
412
412
|
Client = Payi
|
payi/_version.py
CHANGED
payi/resources/__init__.py
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
from .ingest import (
|
|
4
|
+
IngestResource,
|
|
5
|
+
AsyncIngestResource,
|
|
6
|
+
IngestResourceWithRawResponse,
|
|
7
|
+
AsyncIngestResourceWithRawResponse,
|
|
8
|
+
IngestResourceWithStreamingResponse,
|
|
9
|
+
AsyncIngestResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
3
11
|
from .budgets import (
|
|
4
12
|
BudgetsResource,
|
|
5
13
|
AsyncBudgetsResource,
|
|
@@ -8,14 +16,6 @@ from .budgets import (
|
|
|
8
16
|
BudgetsResourceWithStreamingResponse,
|
|
9
17
|
AsyncBudgetsResourceWithStreamingResponse,
|
|
10
18
|
)
|
|
11
|
-
from .ingest_requests import (
|
|
12
|
-
IngestRequestsResource,
|
|
13
|
-
AsyncIngestRequestsResource,
|
|
14
|
-
IngestRequestsResourceWithRawResponse,
|
|
15
|
-
AsyncIngestRequestsResourceWithRawResponse,
|
|
16
|
-
IngestRequestsResourceWithStreamingResponse,
|
|
17
|
-
AsyncIngestRequestsResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
19
|
|
|
20
20
|
__all__ = [
|
|
21
21
|
"BudgetsResource",
|
|
@@ -24,10 +24,10 @@ __all__ = [
|
|
|
24
24
|
"AsyncBudgetsResourceWithRawResponse",
|
|
25
25
|
"BudgetsResourceWithStreamingResponse",
|
|
26
26
|
"AsyncBudgetsResourceWithStreamingResponse",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
27
|
+
"IngestResource",
|
|
28
|
+
"AsyncIngestResource",
|
|
29
|
+
"IngestResourceWithRawResponse",
|
|
30
|
+
"AsyncIngestResourceWithRawResponse",
|
|
31
|
+
"IngestResourceWithStreamingResponse",
|
|
32
|
+
"AsyncIngestResourceWithStreamingResponse",
|
|
33
33
|
]
|
|
@@ -19,7 +19,6 @@ from ...types import budget_list_params, budget_create_params, budget_update_par
|
|
|
19
19
|
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
20
20
|
from ..._utils import (
|
|
21
21
|
maybe_transform,
|
|
22
|
-
strip_not_given,
|
|
23
22
|
async_maybe_transform,
|
|
24
23
|
)
|
|
25
24
|
from ..._compat import cached_property
|
|
@@ -63,7 +62,6 @@ class BudgetsResource(SyncAPIResource):
|
|
|
63
62
|
budget_response_type: Literal["Block", "Allow"] | NotGiven = NOT_GIVEN,
|
|
64
63
|
budget_tags: Optional[List[str]] | NotGiven = NOT_GIVEN,
|
|
65
64
|
budget_type: Literal["Conservative", "Liberal"] | NotGiven = NOT_GIVEN,
|
|
66
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
67
65
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
68
66
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
69
67
|
extra_headers: Headers | None = None,
|
|
@@ -83,10 +81,6 @@ class BudgetsResource(SyncAPIResource):
|
|
|
83
81
|
|
|
84
82
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
85
83
|
"""
|
|
86
|
-
extra_headers = {
|
|
87
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
88
|
-
**(extra_headers or {}),
|
|
89
|
-
}
|
|
90
84
|
return self._post(
|
|
91
85
|
"/api/v1/budgets",
|
|
92
86
|
body=maybe_transform(
|
|
@@ -110,7 +104,6 @@ class BudgetsResource(SyncAPIResource):
|
|
|
110
104
|
self,
|
|
111
105
|
budget_id: str,
|
|
112
106
|
*,
|
|
113
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
114
107
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
115
108
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
116
109
|
extra_headers: Headers | None = None,
|
|
@@ -132,10 +125,6 @@ class BudgetsResource(SyncAPIResource):
|
|
|
132
125
|
"""
|
|
133
126
|
if not budget_id:
|
|
134
127
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
135
|
-
extra_headers = {
|
|
136
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
137
|
-
**(extra_headers or {}),
|
|
138
|
-
}
|
|
139
128
|
return self._get(
|
|
140
129
|
f"/api/v1/budgets/{budget_id}",
|
|
141
130
|
options=make_request_options(
|
|
@@ -150,7 +139,6 @@ class BudgetsResource(SyncAPIResource):
|
|
|
150
139
|
*,
|
|
151
140
|
budget_name: str,
|
|
152
141
|
max: float | NotGiven = NOT_GIVEN,
|
|
153
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
154
142
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
155
143
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
156
144
|
extra_headers: Headers | None = None,
|
|
@@ -172,10 +160,6 @@ class BudgetsResource(SyncAPIResource):
|
|
|
172
160
|
"""
|
|
173
161
|
if not budget_id:
|
|
174
162
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
175
|
-
extra_headers = {
|
|
176
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
177
|
-
**(extra_headers or {}),
|
|
178
|
-
}
|
|
179
163
|
return self._put(
|
|
180
164
|
f"/api/v1/budgets/{budget_id}",
|
|
181
165
|
body=maybe_transform(
|
|
@@ -200,7 +184,6 @@ class BudgetsResource(SyncAPIResource):
|
|
|
200
184
|
sort_ascending: bool | NotGiven = NOT_GIVEN,
|
|
201
185
|
sort_by: str | NotGiven = NOT_GIVEN,
|
|
202
186
|
tags: str | NotGiven = NOT_GIVEN,
|
|
203
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
204
187
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
205
188
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
206
189
|
extra_headers: Headers | None = None,
|
|
@@ -220,10 +203,6 @@ class BudgetsResource(SyncAPIResource):
|
|
|
220
203
|
|
|
221
204
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
222
205
|
"""
|
|
223
|
-
extra_headers = {
|
|
224
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
225
|
-
**(extra_headers or {}),
|
|
226
|
-
}
|
|
227
206
|
return self._get(
|
|
228
207
|
"/api/v1/budgets",
|
|
229
208
|
options=make_request_options(
|
|
@@ -250,7 +229,6 @@ class BudgetsResource(SyncAPIResource):
|
|
|
250
229
|
self,
|
|
251
230
|
budget_id: str,
|
|
252
231
|
*,
|
|
253
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
254
232
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
255
233
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
256
234
|
extra_headers: Headers | None = None,
|
|
@@ -272,10 +250,6 @@ class BudgetsResource(SyncAPIResource):
|
|
|
272
250
|
"""
|
|
273
251
|
if not budget_id:
|
|
274
252
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
275
|
-
extra_headers = {
|
|
276
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
277
|
-
**(extra_headers or {}),
|
|
278
|
-
}
|
|
279
253
|
return self._delete(
|
|
280
254
|
f"/api/v1/budgets/{budget_id}",
|
|
281
255
|
options=make_request_options(
|
|
@@ -288,7 +262,6 @@ class BudgetsResource(SyncAPIResource):
|
|
|
288
262
|
self,
|
|
289
263
|
budget_id: str,
|
|
290
264
|
*,
|
|
291
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
292
265
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
293
266
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
294
267
|
extra_headers: Headers | None = None,
|
|
@@ -310,10 +283,6 @@ class BudgetsResource(SyncAPIResource):
|
|
|
310
283
|
"""
|
|
311
284
|
if not budget_id:
|
|
312
285
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
313
|
-
extra_headers = {
|
|
314
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
315
|
-
**(extra_headers or {}),
|
|
316
|
-
}
|
|
317
286
|
return self._post(
|
|
318
287
|
f"/api/v1/budgets/{budget_id}/reset",
|
|
319
288
|
options=make_request_options(
|
|
@@ -345,7 +314,6 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
345
314
|
budget_response_type: Literal["Block", "Allow"] | NotGiven = NOT_GIVEN,
|
|
346
315
|
budget_tags: Optional[List[str]] | NotGiven = NOT_GIVEN,
|
|
347
316
|
budget_type: Literal["Conservative", "Liberal"] | NotGiven = NOT_GIVEN,
|
|
348
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
349
317
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
350
318
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
351
319
|
extra_headers: Headers | None = None,
|
|
@@ -365,10 +333,6 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
365
333
|
|
|
366
334
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
367
335
|
"""
|
|
368
|
-
extra_headers = {
|
|
369
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
370
|
-
**(extra_headers or {}),
|
|
371
|
-
}
|
|
372
336
|
return await self._post(
|
|
373
337
|
"/api/v1/budgets",
|
|
374
338
|
body=await async_maybe_transform(
|
|
@@ -392,7 +356,6 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
392
356
|
self,
|
|
393
357
|
budget_id: str,
|
|
394
358
|
*,
|
|
395
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
396
359
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
397
360
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
398
361
|
extra_headers: Headers | None = None,
|
|
@@ -414,10 +377,6 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
414
377
|
"""
|
|
415
378
|
if not budget_id:
|
|
416
379
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
417
|
-
extra_headers = {
|
|
418
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
419
|
-
**(extra_headers or {}),
|
|
420
|
-
}
|
|
421
380
|
return await self._get(
|
|
422
381
|
f"/api/v1/budgets/{budget_id}",
|
|
423
382
|
options=make_request_options(
|
|
@@ -432,7 +391,6 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
432
391
|
*,
|
|
433
392
|
budget_name: str,
|
|
434
393
|
max: float | NotGiven = NOT_GIVEN,
|
|
435
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
436
394
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
437
395
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
438
396
|
extra_headers: Headers | None = None,
|
|
@@ -454,10 +412,6 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
454
412
|
"""
|
|
455
413
|
if not budget_id:
|
|
456
414
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
457
|
-
extra_headers = {
|
|
458
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
459
|
-
**(extra_headers or {}),
|
|
460
|
-
}
|
|
461
415
|
return await self._put(
|
|
462
416
|
f"/api/v1/budgets/{budget_id}",
|
|
463
417
|
body=await async_maybe_transform(
|
|
@@ -482,7 +436,6 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
482
436
|
sort_ascending: bool | NotGiven = NOT_GIVEN,
|
|
483
437
|
sort_by: str | NotGiven = NOT_GIVEN,
|
|
484
438
|
tags: str | NotGiven = NOT_GIVEN,
|
|
485
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
486
439
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
487
440
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
488
441
|
extra_headers: Headers | None = None,
|
|
@@ -502,10 +455,6 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
502
455
|
|
|
503
456
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
504
457
|
"""
|
|
505
|
-
extra_headers = {
|
|
506
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
507
|
-
**(extra_headers or {}),
|
|
508
|
-
}
|
|
509
458
|
return await self._get(
|
|
510
459
|
"/api/v1/budgets",
|
|
511
460
|
options=make_request_options(
|
|
@@ -532,7 +481,6 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
532
481
|
self,
|
|
533
482
|
budget_id: str,
|
|
534
483
|
*,
|
|
535
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
536
484
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
537
485
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
538
486
|
extra_headers: Headers | None = None,
|
|
@@ -554,10 +502,6 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
554
502
|
"""
|
|
555
503
|
if not budget_id:
|
|
556
504
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
557
|
-
extra_headers = {
|
|
558
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
559
|
-
**(extra_headers or {}),
|
|
560
|
-
}
|
|
561
505
|
return await self._delete(
|
|
562
506
|
f"/api/v1/budgets/{budget_id}",
|
|
563
507
|
options=make_request_options(
|
|
@@ -570,7 +514,6 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
570
514
|
self,
|
|
571
515
|
budget_id: str,
|
|
572
516
|
*,
|
|
573
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
574
517
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
575
518
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
576
519
|
extra_headers: Headers | None = None,
|
|
@@ -592,10 +535,6 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
592
535
|
"""
|
|
593
536
|
if not budget_id:
|
|
594
537
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
595
|
-
extra_headers = {
|
|
596
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
597
|
-
**(extra_headers or {}),
|
|
598
|
-
}
|
|
599
538
|
return await self._post(
|
|
600
539
|
f"/api/v1/budgets/{budget_id}/reset",
|
|
601
540
|
options=make_request_options(
|
payi/resources/budgets/tags.py
CHANGED
|
@@ -9,7 +9,6 @@ import httpx
|
|
|
9
9
|
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
10
10
|
from ..._utils import (
|
|
11
11
|
maybe_transform,
|
|
12
|
-
strip_not_given,
|
|
13
12
|
async_maybe_transform,
|
|
14
13
|
)
|
|
15
14
|
from ..._compat import cached_property
|
|
@@ -47,7 +46,6 @@ class TagsResource(SyncAPIResource):
|
|
|
47
46
|
budget_id: str,
|
|
48
47
|
*,
|
|
49
48
|
budget_tags: List[str],
|
|
50
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
51
49
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
52
50
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
53
51
|
extra_headers: Headers | None = None,
|
|
@@ -69,10 +67,6 @@ class TagsResource(SyncAPIResource):
|
|
|
69
67
|
"""
|
|
70
68
|
if not budget_id:
|
|
71
69
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
72
|
-
extra_headers = {
|
|
73
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
74
|
-
**(extra_headers or {}),
|
|
75
|
-
}
|
|
76
70
|
return self._post(
|
|
77
71
|
f"/api/v1/budgets/{budget_id}/tags",
|
|
78
72
|
body=maybe_transform({"budget_tags": budget_tags}, tag_create_params.TagCreateParams),
|
|
@@ -87,7 +81,6 @@ class TagsResource(SyncAPIResource):
|
|
|
87
81
|
budget_id: str,
|
|
88
82
|
*,
|
|
89
83
|
budget_tags: List[str],
|
|
90
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
91
84
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
92
85
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
93
86
|
extra_headers: Headers | None = None,
|
|
@@ -109,10 +102,6 @@ class TagsResource(SyncAPIResource):
|
|
|
109
102
|
"""
|
|
110
103
|
if not budget_id:
|
|
111
104
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
112
|
-
extra_headers = {
|
|
113
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
114
|
-
**(extra_headers or {}),
|
|
115
|
-
}
|
|
116
105
|
return self._put(
|
|
117
106
|
f"/api/v1/budgets/{budget_id}/tags",
|
|
118
107
|
body=maybe_transform({"budget_tags": budget_tags}, tag_update_params.TagUpdateParams),
|
|
@@ -126,7 +115,6 @@ class TagsResource(SyncAPIResource):
|
|
|
126
115
|
self,
|
|
127
116
|
budget_id: str,
|
|
128
117
|
*,
|
|
129
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
130
118
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
131
119
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
132
120
|
extra_headers: Headers | None = None,
|
|
@@ -148,10 +136,6 @@ class TagsResource(SyncAPIResource):
|
|
|
148
136
|
"""
|
|
149
137
|
if not budget_id:
|
|
150
138
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
151
|
-
extra_headers = {
|
|
152
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
153
|
-
**(extra_headers or {}),
|
|
154
|
-
}
|
|
155
139
|
return self._get(
|
|
156
140
|
f"/api/v1/budgets/{budget_id}/tags",
|
|
157
141
|
options=make_request_options(
|
|
@@ -164,7 +148,6 @@ class TagsResource(SyncAPIResource):
|
|
|
164
148
|
self,
|
|
165
149
|
budget_id: str,
|
|
166
150
|
*,
|
|
167
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
168
151
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
169
152
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
170
153
|
extra_headers: Headers | None = None,
|
|
@@ -186,10 +169,6 @@ class TagsResource(SyncAPIResource):
|
|
|
186
169
|
"""
|
|
187
170
|
if not budget_id:
|
|
188
171
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
189
|
-
extra_headers = {
|
|
190
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
191
|
-
**(extra_headers or {}),
|
|
192
|
-
}
|
|
193
172
|
return self._delete(
|
|
194
173
|
f"/api/v1/budgets/{budget_id}/tags",
|
|
195
174
|
options=make_request_options(
|
|
@@ -203,7 +182,6 @@ class TagsResource(SyncAPIResource):
|
|
|
203
182
|
budget_id: str,
|
|
204
183
|
*,
|
|
205
184
|
budget_tags: List[str],
|
|
206
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
207
185
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
208
186
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
209
187
|
extra_headers: Headers | None = None,
|
|
@@ -225,10 +203,6 @@ class TagsResource(SyncAPIResource):
|
|
|
225
203
|
"""
|
|
226
204
|
if not budget_id:
|
|
227
205
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
228
|
-
extra_headers = {
|
|
229
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
230
|
-
**(extra_headers or {}),
|
|
231
|
-
}
|
|
232
206
|
return self._patch(
|
|
233
207
|
f"/api/v1/budgets/{budget_id}/tags/remove",
|
|
234
208
|
body=maybe_transform({"budget_tags": budget_tags}, tag_remove_params.TagRemoveParams),
|
|
@@ -253,7 +227,6 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
253
227
|
budget_id: str,
|
|
254
228
|
*,
|
|
255
229
|
budget_tags: List[str],
|
|
256
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
257
230
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
258
231
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
259
232
|
extra_headers: Headers | None = None,
|
|
@@ -275,10 +248,6 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
275
248
|
"""
|
|
276
249
|
if not budget_id:
|
|
277
250
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
278
|
-
extra_headers = {
|
|
279
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
280
|
-
**(extra_headers or {}),
|
|
281
|
-
}
|
|
282
251
|
return await self._post(
|
|
283
252
|
f"/api/v1/budgets/{budget_id}/tags",
|
|
284
253
|
body=await async_maybe_transform({"budget_tags": budget_tags}, tag_create_params.TagCreateParams),
|
|
@@ -293,7 +262,6 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
293
262
|
budget_id: str,
|
|
294
263
|
*,
|
|
295
264
|
budget_tags: List[str],
|
|
296
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
297
265
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
298
266
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
299
267
|
extra_headers: Headers | None = None,
|
|
@@ -315,10 +283,6 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
315
283
|
"""
|
|
316
284
|
if not budget_id:
|
|
317
285
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
318
|
-
extra_headers = {
|
|
319
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
320
|
-
**(extra_headers or {}),
|
|
321
|
-
}
|
|
322
286
|
return await self._put(
|
|
323
287
|
f"/api/v1/budgets/{budget_id}/tags",
|
|
324
288
|
body=await async_maybe_transform({"budget_tags": budget_tags}, tag_update_params.TagUpdateParams),
|
|
@@ -332,7 +296,6 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
332
296
|
self,
|
|
333
297
|
budget_id: str,
|
|
334
298
|
*,
|
|
335
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
336
299
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
337
300
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
338
301
|
extra_headers: Headers | None = None,
|
|
@@ -354,10 +317,6 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
354
317
|
"""
|
|
355
318
|
if not budget_id:
|
|
356
319
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
357
|
-
extra_headers = {
|
|
358
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
359
|
-
**(extra_headers or {}),
|
|
360
|
-
}
|
|
361
320
|
return await self._get(
|
|
362
321
|
f"/api/v1/budgets/{budget_id}/tags",
|
|
363
322
|
options=make_request_options(
|
|
@@ -370,7 +329,6 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
370
329
|
self,
|
|
371
330
|
budget_id: str,
|
|
372
331
|
*,
|
|
373
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
374
332
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
375
333
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
376
334
|
extra_headers: Headers | None = None,
|
|
@@ -392,10 +350,6 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
392
350
|
"""
|
|
393
351
|
if not budget_id:
|
|
394
352
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
395
|
-
extra_headers = {
|
|
396
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
397
|
-
**(extra_headers or {}),
|
|
398
|
-
}
|
|
399
353
|
return await self._delete(
|
|
400
354
|
f"/api/v1/budgets/{budget_id}/tags",
|
|
401
355
|
options=make_request_options(
|
|
@@ -409,7 +363,6 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
409
363
|
budget_id: str,
|
|
410
364
|
*,
|
|
411
365
|
budget_tags: List[str],
|
|
412
|
-
x_proxy_application_key: str | NotGiven = NOT_GIVEN,
|
|
413
366
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
414
367
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
415
368
|
extra_headers: Headers | None = None,
|
|
@@ -431,10 +384,6 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
431
384
|
"""
|
|
432
385
|
if not budget_id:
|
|
433
386
|
raise ValueError(f"Expected a non-empty value for `budget_id` but received {budget_id!r}")
|
|
434
|
-
extra_headers = {
|
|
435
|
-
**strip_not_given({"xProxy-Application-Key": x_proxy_application_key}),
|
|
436
|
-
**(extra_headers or {}),
|
|
437
|
-
}
|
|
438
387
|
return await self._patch(
|
|
439
388
|
f"/api/v1/budgets/{budget_id}/tags/remove",
|
|
440
389
|
body=await async_maybe_transform({"budget_tags": budget_tags}, tag_remove_params.TagRemoveParams),
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from ..types import
|
|
7
|
+
from ..types import ingest_units_params
|
|
8
8
|
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
9
9
|
from .._utils import (
|
|
10
10
|
maybe_transform,
|
|
@@ -24,25 +24,25 @@ from .._base_client import (
|
|
|
24
24
|
)
|
|
25
25
|
from ..types.successful_proxy_result import SuccessfulProxyResult
|
|
26
26
|
|
|
27
|
-
__all__ = ["
|
|
27
|
+
__all__ = ["IngestResource", "AsyncIngestResource"]
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class IngestResource(SyncAPIResource):
|
|
31
31
|
@cached_property
|
|
32
|
-
def with_raw_response(self) ->
|
|
33
|
-
return
|
|
32
|
+
def with_raw_response(self) -> IngestResourceWithRawResponse:
|
|
33
|
+
return IngestResourceWithRawResponse(self)
|
|
34
34
|
|
|
35
35
|
@cached_property
|
|
36
|
-
def with_streaming_response(self) ->
|
|
37
|
-
return
|
|
36
|
+
def with_streaming_response(self) -> IngestResourceWithStreamingResponse:
|
|
37
|
+
return IngestResourceWithStreamingResponse(self)
|
|
38
38
|
|
|
39
|
-
def
|
|
39
|
+
def units(
|
|
40
40
|
self,
|
|
41
41
|
*,
|
|
42
42
|
category: str,
|
|
43
43
|
resource: str,
|
|
44
|
-
units:
|
|
45
|
-
|
|
44
|
+
units: ingest_units_params.Units,
|
|
45
|
+
budget_ids: str | NotGiven = NOT_GIVEN,
|
|
46
46
|
x_proxy_request_tags: str | NotGiven = NOT_GIVEN,
|
|
47
47
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
48
48
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -66,7 +66,7 @@ class IngestRequestsResource(SyncAPIResource):
|
|
|
66
66
|
extra_headers = {
|
|
67
67
|
**strip_not_given(
|
|
68
68
|
{
|
|
69
|
-
"xProxy-Budget-IDs":
|
|
69
|
+
"xProxy-Budget-IDs": budget_ids,
|
|
70
70
|
"xProxy-Request-Tags": x_proxy_request_tags,
|
|
71
71
|
}
|
|
72
72
|
),
|
|
@@ -80,7 +80,7 @@ class IngestRequestsResource(SyncAPIResource):
|
|
|
80
80
|
"resource": resource,
|
|
81
81
|
"units": units,
|
|
82
82
|
},
|
|
83
|
-
|
|
83
|
+
ingest_units_params.IngestUnitsParams,
|
|
84
84
|
),
|
|
85
85
|
options=make_request_options(
|
|
86
86
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
@@ -89,22 +89,22 @@ class IngestRequestsResource(SyncAPIResource):
|
|
|
89
89
|
)
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
class
|
|
92
|
+
class AsyncIngestResource(AsyncAPIResource):
|
|
93
93
|
@cached_property
|
|
94
|
-
def with_raw_response(self) ->
|
|
95
|
-
return
|
|
94
|
+
def with_raw_response(self) -> AsyncIngestResourceWithRawResponse:
|
|
95
|
+
return AsyncIngestResourceWithRawResponse(self)
|
|
96
96
|
|
|
97
97
|
@cached_property
|
|
98
|
-
def with_streaming_response(self) ->
|
|
99
|
-
return
|
|
98
|
+
def with_streaming_response(self) -> AsyncIngestResourceWithStreamingResponse:
|
|
99
|
+
return AsyncIngestResourceWithStreamingResponse(self)
|
|
100
100
|
|
|
101
|
-
async def
|
|
101
|
+
async def units(
|
|
102
102
|
self,
|
|
103
103
|
*,
|
|
104
104
|
category: str,
|
|
105
105
|
resource: str,
|
|
106
|
-
units:
|
|
107
|
-
|
|
106
|
+
units: ingest_units_params.Units,
|
|
107
|
+
budget_ids: str | NotGiven = NOT_GIVEN,
|
|
108
108
|
x_proxy_request_tags: str | NotGiven = NOT_GIVEN,
|
|
109
109
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
110
110
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -128,7 +128,7 @@ class AsyncIngestRequestsResource(AsyncAPIResource):
|
|
|
128
128
|
extra_headers = {
|
|
129
129
|
**strip_not_given(
|
|
130
130
|
{
|
|
131
|
-
"xProxy-Budget-IDs":
|
|
131
|
+
"xProxy-Budget-IDs": budget_ids,
|
|
132
132
|
"xProxy-Request-Tags": x_proxy_request_tags,
|
|
133
133
|
}
|
|
134
134
|
),
|
|
@@ -142,7 +142,7 @@ class AsyncIngestRequestsResource(AsyncAPIResource):
|
|
|
142
142
|
"resource": resource,
|
|
143
143
|
"units": units,
|
|
144
144
|
},
|
|
145
|
-
|
|
145
|
+
ingest_units_params.IngestUnitsParams,
|
|
146
146
|
),
|
|
147
147
|
options=make_request_options(
|
|
148
148
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
@@ -151,37 +151,37 @@ class AsyncIngestRequestsResource(AsyncAPIResource):
|
|
|
151
151
|
)
|
|
152
152
|
|
|
153
153
|
|
|
154
|
-
class
|
|
155
|
-
def __init__(self,
|
|
156
|
-
self.
|
|
154
|
+
class IngestResourceWithRawResponse:
|
|
155
|
+
def __init__(self, ingest: IngestResource) -> None:
|
|
156
|
+
self._ingest = ingest
|
|
157
157
|
|
|
158
|
-
self.
|
|
159
|
-
|
|
158
|
+
self.units = to_raw_response_wrapper(
|
|
159
|
+
ingest.units,
|
|
160
160
|
)
|
|
161
161
|
|
|
162
162
|
|
|
163
|
-
class
|
|
164
|
-
def __init__(self,
|
|
165
|
-
self.
|
|
163
|
+
class AsyncIngestResourceWithRawResponse:
|
|
164
|
+
def __init__(self, ingest: AsyncIngestResource) -> None:
|
|
165
|
+
self._ingest = ingest
|
|
166
166
|
|
|
167
|
-
self.
|
|
168
|
-
|
|
167
|
+
self.units = async_to_raw_response_wrapper(
|
|
168
|
+
ingest.units,
|
|
169
169
|
)
|
|
170
170
|
|
|
171
171
|
|
|
172
|
-
class
|
|
173
|
-
def __init__(self,
|
|
174
|
-
self.
|
|
172
|
+
class IngestResourceWithStreamingResponse:
|
|
173
|
+
def __init__(self, ingest: IngestResource) -> None:
|
|
174
|
+
self._ingest = ingest
|
|
175
175
|
|
|
176
|
-
self.
|
|
177
|
-
|
|
176
|
+
self.units = to_streamed_response_wrapper(
|
|
177
|
+
ingest.units,
|
|
178
178
|
)
|
|
179
179
|
|
|
180
180
|
|
|
181
|
-
class
|
|
182
|
-
def __init__(self,
|
|
183
|
-
self.
|
|
181
|
+
class AsyncIngestResourceWithStreamingResponse:
|
|
182
|
+
def __init__(self, ingest: AsyncIngestResource) -> None:
|
|
183
|
+
self._ingest = ingest
|
|
184
184
|
|
|
185
|
-
self.
|
|
186
|
-
|
|
185
|
+
self.units = async_to_streamed_response_wrapper(
|
|
186
|
+
ingest.units,
|
|
187
187
|
)
|
payi/types/__init__.py
CHANGED
|
@@ -6,8 +6,8 @@ from .budget_response import BudgetResponse as BudgetResponse
|
|
|
6
6
|
from .default_response import DefaultResponse as DefaultResponse
|
|
7
7
|
from .paged_budget_list import PagedBudgetList as PagedBudgetList
|
|
8
8
|
from .budget_list_params import BudgetListParams as BudgetListParams
|
|
9
|
+
from .ingest_units_params import IngestUnitsParams as IngestUnitsParams
|
|
9
10
|
from .budget_create_params import BudgetCreateParams as BudgetCreateParams
|
|
10
11
|
from .budget_update_params import BudgetUpdateParams as BudgetUpdateParams
|
|
11
12
|
from .budget_history_response import BudgetHistoryResponse as BudgetHistoryResponse
|
|
12
13
|
from .successful_proxy_result import SuccessfulProxyResult as SuccessfulProxyResult
|
|
13
|
-
from .ingest_request_create_params import IngestRequestCreateParams as IngestRequestCreateParams
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import List, Optional
|
|
6
|
-
from typing_extensions import Literal, Required,
|
|
7
|
-
|
|
8
|
-
from .._utils import PropertyInfo
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
9
7
|
|
|
10
8
|
__all__ = ["BudgetCreateParams"]
|
|
11
9
|
|
|
@@ -22,5 +20,3 @@ class BudgetCreateParams(TypedDict, total=False):
|
|
|
22
20
|
budget_tags: Optional[List[str]]
|
|
23
21
|
|
|
24
22
|
budget_type: Literal["Conservative", "Liberal"]
|
|
25
|
-
|
|
26
|
-
x_proxy_application_key: Annotated[str, PropertyInfo(alias="xProxy-Application-Key")]
|
payi/types/budget_list_params.py
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing_extensions import Required,
|
|
6
|
-
|
|
7
|
-
from .._utils import PropertyInfo
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
8
6
|
|
|
9
7
|
__all__ = ["BudgetUpdateParams"]
|
|
10
8
|
|
|
@@ -13,5 +11,3 @@ class BudgetUpdateParams(TypedDict, total=False):
|
|
|
13
11
|
budget_name: Required[str]
|
|
14
12
|
|
|
15
13
|
max: float
|
|
16
|
-
|
|
17
|
-
x_proxy_application_key: Annotated[str, PropertyInfo(alias="xProxy-Application-Key")]
|
|
@@ -3,14 +3,10 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import List
|
|
6
|
-
from typing_extensions import Required,
|
|
7
|
-
|
|
8
|
-
from ..._utils import PropertyInfo
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
9
7
|
|
|
10
8
|
__all__ = ["TagCreateParams"]
|
|
11
9
|
|
|
12
10
|
|
|
13
11
|
class TagCreateParams(TypedDict, total=False):
|
|
14
12
|
budget_tags: Required[List[str]]
|
|
15
|
-
|
|
16
|
-
x_proxy_application_key: Annotated[str, PropertyInfo(alias="xProxy-Application-Key")]
|
|
@@ -3,14 +3,10 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import List
|
|
6
|
-
from typing_extensions import Required,
|
|
7
|
-
|
|
8
|
-
from ..._utils import PropertyInfo
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
9
7
|
|
|
10
8
|
__all__ = ["TagRemoveParams"]
|
|
11
9
|
|
|
12
10
|
|
|
13
11
|
class TagRemoveParams(TypedDict, total=False):
|
|
14
12
|
budget_tags: Required[List[str]]
|
|
15
|
-
|
|
16
|
-
x_proxy_application_key: Annotated[str, PropertyInfo(alias="xProxy-Application-Key")]
|
|
@@ -3,14 +3,10 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import List
|
|
6
|
-
from typing_extensions import Required,
|
|
7
|
-
|
|
8
|
-
from ..._utils import PropertyInfo
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
9
7
|
|
|
10
8
|
__all__ = ["TagUpdateParams"]
|
|
11
9
|
|
|
12
10
|
|
|
13
11
|
class TagUpdateParams(TypedDict, total=False):
|
|
14
12
|
budget_tags: Required[List[str]]
|
|
15
|
-
|
|
16
|
-
x_proxy_application_key: Annotated[str, PropertyInfo(alias="xProxy-Application-Key")]
|
|
@@ -6,17 +6,17 @@ from typing_extensions import Required, Annotated, TypedDict
|
|
|
6
6
|
|
|
7
7
|
from .._utils import PropertyInfo
|
|
8
8
|
|
|
9
|
-
__all__ = ["
|
|
9
|
+
__all__ = ["IngestUnitsParams", "Units"]
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class IngestUnitsParams(TypedDict, total=False):
|
|
13
13
|
category: Required[str]
|
|
14
14
|
|
|
15
15
|
resource: Required[str]
|
|
16
16
|
|
|
17
17
|
units: Required[Units]
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
budget_ids: Annotated[str, PropertyInfo(alias="xProxy-Budget-IDs")]
|
|
20
20
|
|
|
21
21
|
x_proxy_request_tags: Annotated[str, PropertyInfo(alias="xProxy-Request-Tags")]
|
|
22
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
payi/__init__.py,sha256=LWpfR6WSMPTnmmx3ToqqZ0A8CNduLcuxY1SSOqhPxuk,2381
|
|
2
2
|
payi/_base_client.py,sha256=70yaoCPiDyAppE3S2nKsAfpKOztY3SEjlhJq2898umc,65090
|
|
3
|
-
payi/_client.py,sha256=
|
|
3
|
+
payi/_client.py,sha256=lQBkhIC3OQpsv84PQvVpoOPdR5QabmEPkzyn7U9O1aA,15622
|
|
4
4
|
payi/_compat.py,sha256=m0I0haqFZuVxd5m227_8nNmvA1saXyuNJ7BjidX_PTE,6389
|
|
5
5
|
payi/_constants.py,sha256=JE8kyZa2Q4NK_i4fO--8siEYTzeHnT0fYbOFDgDP4uk,464
|
|
6
6
|
payi/_exceptions.py,sha256=ItygKNrNXIVY0H6LsGVZvFuAHB3Vtm_VZXmWzCnpHy0,3216
|
|
@@ -11,7 +11,7 @@ payi/_resource.py,sha256=j2jIkTr8OIC8sU6-05nxSaCyj4MaFlbZrwlyg4_xJos,1088
|
|
|
11
11
|
payi/_response.py,sha256=W6pADUzbnMFGnVzGY4M3FkX9uvw8AFSMTPZKPgQ_TV4,28363
|
|
12
12
|
payi/_streaming.py,sha256=Z_wIyo206T6Jqh2rolFg2VXZgX24PahLmpURp0-NssU,10092
|
|
13
13
|
payi/_types.py,sha256=04q-KHD-qZ1xlfwEb_muyIHWmD-nZ-KxnRxA_QEjqNk,6125
|
|
14
|
-
payi/_version.py,sha256=
|
|
14
|
+
payi/_version.py,sha256=iY2HDZH65DZPNbSYsdb4smVcZV9Pxgk1syPMtq5aZqE,164
|
|
15
15
|
payi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
payi/_utils/__init__.py,sha256=q5QC6ZmVNli9QaCqTlp9VrbQyjIU9EzmCn044UhHSIk,1919
|
|
17
17
|
payi/_utils/_logs.py,sha256=fmnf5D9TOgkgZKfgYmSa3PiUc3SZgkchn6CzJUeo0SQ,768
|
|
@@ -23,32 +23,32 @@ payi/_utils/_transform.py,sha256=NCz3q9_O-vuj60xVe-qzhEQ8uJWlZWJTsM-GwHDccf8,129
|
|
|
23
23
|
payi/_utils/_typing.py,sha256=tFbktdpdHCQliwzGsWysgn0P5H0JRdagkZdb_LegGkY,3838
|
|
24
24
|
payi/_utils/_utils.py,sha256=FaZdW0tWil7IERdxUfKt7pVcyXL2aCnR3lo73q66qgI,11447
|
|
25
25
|
payi/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
26
|
-
payi/resources/__init__.py,sha256
|
|
27
|
-
payi/resources/
|
|
26
|
+
payi/resources/__init__.py,sha256=1p8kzMES8NNDQQoK3TEDE-8vVuQ59xxUjyyblZJBTjw,1015
|
|
27
|
+
payi/resources/ingest.py,sha256=sMI2pK--oyo0YTF4nb2_VOEsrT7ZqB_AOW6hjuKgPq0,6086
|
|
28
28
|
payi/resources/budgets/__init__.py,sha256=w1UhOdDXtUH4A91ME5Tw2nr9bRvPJyJY1YWiVVy7jj0,989
|
|
29
|
-
payi/resources/budgets/budgets.py,sha256=
|
|
30
|
-
payi/resources/budgets/tags.py,sha256=
|
|
31
|
-
payi/types/__init__.py,sha256=
|
|
32
|
-
payi/types/budget_create_params.py,sha256=
|
|
29
|
+
payi/resources/budgets/budgets.py,sha256=aMu39MrRsVTtNfYwQPMeFK329ouwnHuFXM_vK9Ewj0k,24047
|
|
30
|
+
payi/resources/budgets/tags.py,sha256=jzP0nal287bL2htY1TwDcdFRJyNMm6IdM936O1jCeMo,17850
|
|
31
|
+
payi/types/__init__.py,sha256=qMtB76eknPySrqAU23SGwJYEelZBi2PWeqQO5p4dmWo,775
|
|
32
|
+
payi/types/budget_create_params.py,sha256=dDQvPOY8lx5oGuumAYQybAx-jPTRupsipVeezBd0l7I,543
|
|
33
33
|
payi/types/budget_history_response.py,sha256=SeOabYz6xQvH4YkJSejbk_dUB49LZy7Y2MXZFPvrYMY,2702
|
|
34
|
-
payi/types/budget_list_params.py,sha256=
|
|
34
|
+
payi/types/budget_list_params.py,sha256=Win-Spveurf6WarTgCXXsP-yDIxr_HCP7oV_4JbqKOc,674
|
|
35
35
|
payi/types/budget_response.py,sha256=yXDXIrespfRuNreWdWmlCITO6VvLC4YZn0nzXw_BGzo,2072
|
|
36
|
-
payi/types/budget_update_params.py,sha256=
|
|
36
|
+
payi/types/budget_update_params.py,sha256=TTH7uu1c1zBK5zYhh2SPuRWEwr1XwDX_8bVS_GxIn9I,306
|
|
37
37
|
payi/types/default_response.py,sha256=o617LpRsCIZHCZxAc5nVI2JQ3HPGZo4gCDvSDkxkIJ8,270
|
|
38
|
-
payi/types/
|
|
38
|
+
payi/types/ingest_units_params.py,sha256=wu388NPI21P-wpI-GxMZBz8BH7RtSqg8w5uC03GaqrY,626
|
|
39
39
|
payi/types/paged_budget_list.py,sha256=HNm834IAAy3eRNz0BjZwcbD9e-I8unWWKWxiSnlijWY,2553
|
|
40
40
|
payi/types/successful_proxy_result.py,sha256=j8kQu8LAcfR3XuforqWDsYm1Bx6BQxCrezmE-3GnCWc,893
|
|
41
41
|
payi/types/budgets/__init__.py,sha256=8lpRHXZQOc9ADCphhCB0JhQAH96lBIc68LbhlJn5Kys,750
|
|
42
42
|
payi/types/budgets/budget_tags_response.py,sha256=o3zaMs9b0gJqKrWuui3ohUVsR2cwNGR0yttBclgXapo,513
|
|
43
|
-
payi/types/budgets/tag_create_params.py,sha256=
|
|
43
|
+
payi/types/budgets/tag_create_params.py,sha256=_zEYfH2uKF44WenAdedx4TB9Az6RbIoAUMwqW8SAiuc,314
|
|
44
44
|
payi/types/budgets/tag_create_response.py,sha256=2SWGig_rx8J5fEN0XUX2t6tZLnS5OQ1PcD5Bxc46rdY,244
|
|
45
45
|
payi/types/budgets/tag_delete_response.py,sha256=JuXfffM_poGX_K1lLWCkW8yUdUiod1XNc8s-iN-RYdY,244
|
|
46
46
|
payi/types/budgets/tag_list_response.py,sha256=9PUbi3clybFPD7Xo4Op6GmSjFet2gw7P2Kyx7IJg0_s,240
|
|
47
|
-
payi/types/budgets/tag_remove_params.py,sha256=
|
|
47
|
+
payi/types/budgets/tag_remove_params.py,sha256=fNiHex1U11o_B0bfJDkpGARkEf99J-bd-wbzKkZ9mVM,314
|
|
48
48
|
payi/types/budgets/tag_remove_response.py,sha256=Gc_eBGGSx6Afa51g-S5AkXqwmRcGMjshiNSBsthDZJc,244
|
|
49
|
-
payi/types/budgets/tag_update_params.py,sha256=
|
|
49
|
+
payi/types/budgets/tag_update_params.py,sha256=bWWeDqfySt7CZ6HDsZzENREOWGWGWFgnAtyleNMwUsE,314
|
|
50
50
|
payi/types/budgets/tag_update_response.py,sha256=5Q16vkLUMLkyzgCWRcz7aDVA0KTCHQd_eAKnx2-VoWQ,244
|
|
51
|
-
payi-0.1.
|
|
52
|
-
payi-0.1.
|
|
53
|
-
payi-0.1.
|
|
54
|
-
payi-0.1.
|
|
51
|
+
payi-0.1.0a3.dist-info/METADATA,sha256=B6FUR9vsGNxxR5SYLKDP7bSyxulI7X7x4nVnxH1dT6w,11872
|
|
52
|
+
payi-0.1.0a3.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
53
|
+
payi-0.1.0a3.dist-info/licenses/LICENSE,sha256=8vX1pjh3esb6D5DvXAf6NxiBcVyon8aHWNJCxmmHXeY,11334
|
|
54
|
+
payi-0.1.0a3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|