payi 0.1.0a107__py3-none-any.whl → 0.1.0a137__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.
- payi/__init__.py +3 -1
- payi/_base_client.py +12 -12
- payi/_client.py +8 -8
- payi/_compat.py +48 -48
- payi/_models.py +87 -59
- payi/_qs.py +7 -7
- payi/_streaming.py +4 -6
- payi/_types.py +53 -12
- payi/_utils/__init__.py +9 -2
- payi/_utils/_compat.py +45 -0
- payi/_utils/_datetime_parse.py +136 -0
- payi/_utils/_sync.py +3 -31
- payi/_utils/_transform.py +13 -3
- payi/_utils/_typing.py +6 -1
- payi/_utils/_utils.py +5 -6
- payi/_version.py +1 -1
- payi/lib/AnthropicInstrumentor.py +83 -57
- payi/lib/BedrockInstrumentor.py +292 -57
- payi/lib/GoogleGenAiInstrumentor.py +18 -31
- payi/lib/OpenAIInstrumentor.py +56 -72
- payi/lib/ProviderRequest.py +216 -0
- payi/lib/StreamWrappers.py +379 -0
- payi/lib/VertexInstrumentor.py +18 -37
- payi/lib/VertexRequest.py +16 -2
- payi/lib/data/cohere_embed_english_v3.json +30706 -0
- payi/lib/helpers.py +62 -5
- payi/lib/instrument.py +433 -659
- payi/resources/categories/__init__.py +0 -14
- payi/resources/categories/categories.py +25 -53
- payi/resources/categories/resources.py +27 -23
- payi/resources/ingest.py +126 -132
- payi/resources/limits/__init__.py +14 -14
- payi/resources/limits/limits.py +58 -58
- payi/resources/limits/properties.py +171 -0
- payi/resources/requests/request_id/properties.py +8 -8
- payi/resources/requests/request_id/result.py +3 -3
- payi/resources/requests/response_id/properties.py +8 -8
- payi/resources/requests/response_id/result.py +3 -3
- payi/resources/use_cases/definitions/definitions.py +27 -27
- payi/resources/use_cases/definitions/kpis.py +23 -23
- payi/resources/use_cases/definitions/limit_config.py +14 -14
- payi/resources/use_cases/definitions/version.py +3 -3
- payi/resources/use_cases/kpis.py +15 -15
- payi/resources/use_cases/properties.py +6 -6
- payi/resources/use_cases/use_cases.py +7 -7
- payi/types/__init__.py +2 -0
- payi/types/bulk_ingest_response.py +3 -20
- payi/types/categories/__init__.py +0 -1
- payi/types/categories/resource_list_params.py +5 -1
- payi/types/category_list_resources_params.py +5 -1
- payi/types/category_resource_response.py +31 -1
- payi/types/ingest_event_param.py +7 -6
- payi/types/ingest_units_params.py +5 -4
- payi/types/limit_create_params.py +3 -3
- payi/types/limit_list_response.py +1 -3
- payi/types/limit_response.py +1 -3
- payi/types/limits/__init__.py +2 -9
- payi/types/limits/{tag_remove_params.py → property_update_params.py} +4 -5
- payi/types/limits/{tag_delete_response.py → property_update_response.py} +3 -3
- payi/types/requests/request_id/property_update_params.py +2 -2
- payi/types/requests/response_id/property_update_params.py +2 -2
- payi/types/shared/__init__.py +2 -0
- payi/types/shared/api_error.py +18 -0
- payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py +3 -3
- payi/types/shared/properties_request.py +11 -0
- payi/types/shared/xproxy_result.py +2 -0
- payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py +3 -3
- payi/types/use_cases/definitions/limit_config_create_params.py +3 -3
- payi/types/use_cases/property_update_params.py +2 -2
- {payi-0.1.0a107.dist-info → payi-0.1.0a137.dist-info}/METADATA +6 -6
- {payi-0.1.0a107.dist-info → payi-0.1.0a137.dist-info}/RECORD +73 -75
- payi/resources/categories/fixed_cost_resources.py +0 -196
- payi/resources/limits/tags.py +0 -507
- payi/types/categories/fixed_cost_resource_create_params.py +0 -21
- payi/types/limits/limit_tags.py +0 -16
- payi/types/limits/tag_create_params.py +0 -13
- payi/types/limits/tag_create_response.py +0 -10
- payi/types/limits/tag_list_response.py +0 -10
- payi/types/limits/tag_remove_response.py +0 -10
- payi/types/limits/tag_update_params.py +0 -13
- payi/types/limits/tag_update_response.py +0 -10
- {payi-0.1.0a107.dist-info → payi-0.1.0a137.dist-info}/WHEEL +0 -0
- {payi-0.1.0a107.dist-info → payi-0.1.0a137.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,125 +1,123 @@
|
|
|
1
|
-
payi/__init__.py,sha256=
|
|
2
|
-
payi/_base_client.py,sha256=
|
|
3
|
-
payi/_client.py,sha256=
|
|
4
|
-
payi/_compat.py,sha256=
|
|
1
|
+
payi/__init__.py,sha256=qLRjcS5IxLxYDefxAohojNb8atDG_Egn-CRn8busn_E,2606
|
|
2
|
+
payi/_base_client.py,sha256=uhMrhR0DH7Wcp2lXODMrGFs7uKuqPpL0vTIDWGp3cXg,67045
|
|
3
|
+
payi/_client.py,sha256=pMZ2NFNw86Hqusli4QPitEHZDKGIXbGWqFIyIlzkl_Q,17184
|
|
4
|
+
payi/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
|
|
5
5
|
payi/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
|
6
6
|
payi/_exceptions.py,sha256=ItygKNrNXIVY0H6LsGVZvFuAHB3Vtm_VZXmWzCnpHy0,3216
|
|
7
7
|
payi/_files.py,sha256=KnEzGi_O756MvKyJ4fOCW_u3JhOeWPQ4RsmDvqihDQU,3545
|
|
8
|
-
payi/_models.py,sha256=
|
|
9
|
-
payi/_qs.py,sha256=
|
|
8
|
+
payi/_models.py,sha256=3D65psj_C02Mw0K2zpBWrn1khmrvtEXgTTQ6P4r3tUY,31837
|
|
9
|
+
payi/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
|
|
10
10
|
payi/_resource.py,sha256=j2jIkTr8OIC8sU6-05nxSaCyj4MaFlbZrwlyg4_xJos,1088
|
|
11
11
|
payi/_response.py,sha256=rh9oJAvCKcPwQFm4iqH_iVrmK8bNx--YP_A2a4kN1OU,28776
|
|
12
|
-
payi/_streaming.py,sha256=
|
|
13
|
-
payi/_types.py,sha256=
|
|
14
|
-
payi/_version.py,sha256=
|
|
12
|
+
payi/_streaming.py,sha256=r-qd1jFI1Df33CEelGocyNFdGg4C_NAK8TEX9GmxdOM,10141
|
|
13
|
+
payi/_types.py,sha256=d6xrZDG6rG6opphTN7UVYdEOis3977LrQQgpNtklXZE,7234
|
|
14
|
+
payi/_version.py,sha256=swly8C_ps7AJ7pn449Z0egPHwvCT9_8ri1iQKUXWRDg,166
|
|
15
15
|
payi/pagination.py,sha256=k2356QGPOUSjRF2vHpwLBdF6P-2vnQzFfRIJQAHGQ7A,1258
|
|
16
16
|
payi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
-
payi/_utils/__init__.py,sha256=
|
|
17
|
+
payi/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
18
|
+
payi/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
|
19
|
+
payi/_utils/_datetime_parse.py,sha256=bABTs0Bc6rabdFvnIwXjEhWL15TcRgWZ_6XGTqN8xUk,4204
|
|
18
20
|
payi/_utils/_logs.py,sha256=fmnf5D9TOgkgZKfgYmSa3PiUc3SZgkchn6CzJUeo0SQ,768
|
|
19
21
|
payi/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
|
|
20
22
|
payi/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
|
|
21
23
|
payi/_utils/_resources_proxy.py,sha256=qaGS6A6oxTyKN-iZ_XuAOm3Qg4q_MC5xLGLoLihgDas,579
|
|
22
24
|
payi/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
|
|
23
|
-
payi/_utils/_sync.py,sha256=
|
|
24
|
-
payi/_utils/_transform.py,sha256=
|
|
25
|
-
payi/_utils/_typing.py,sha256=
|
|
26
|
-
payi/_utils/_utils.py,sha256=
|
|
25
|
+
payi/_utils/_sync.py,sha256=HBnZkkBnzxtwOZe0212C4EyoRvxhTVtTrLFDz2_xVCg,1589
|
|
26
|
+
payi/_utils/_transform.py,sha256=NjCzmnfqYrsAikUHQig6N9QfuTVbKipuP3ur9mcNF-E,15951
|
|
27
|
+
payi/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
|
|
28
|
+
payi/_utils/_utils.py,sha256=ugfUaneOK7I8h9b3656flwf5u_kthY0gvNuqvgOLoSU,12252
|
|
27
29
|
payi/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
28
|
-
payi/lib/AnthropicInstrumentor.py,sha256=
|
|
29
|
-
payi/lib/BedrockInstrumentor.py,sha256=
|
|
30
|
-
payi/lib/GoogleGenAiInstrumentor.py,sha256=
|
|
31
|
-
payi/lib/OpenAIInstrumentor.py,sha256=
|
|
30
|
+
payi/lib/AnthropicInstrumentor.py,sha256=e8_n8QUGpeTIgZpM8ISz0A_rPk0Wd9zV-88Om878gA0,16641
|
|
31
|
+
payi/lib/BedrockInstrumentor.py,sha256=PdveOWw_EAU-dvAL-_8ZxI5M_GwOEoqpdA_-8clSnvY,29509
|
|
32
|
+
payi/lib/GoogleGenAiInstrumentor.py,sha256=XkLkNOIp1nRBA9It84ssGgumLrRvk61PX6dUdMKDTdA,8703
|
|
33
|
+
payi/lib/OpenAIInstrumentor.py,sha256=B0FIZ958aNdsAJ7407xin3av5l8dWQ-Qg5X4Gxnh6Xo,22793
|
|
34
|
+
payi/lib/ProviderRequest.py,sha256=i4pxdsRabud2M932dePKoecCH_Ql6yOpgtYOg4H0OEY,8871
|
|
32
35
|
payi/lib/Stopwatch.py,sha256=7OJlxvr2Jyb6Zr1LYCYKczRB7rDVKkIR7gc4YoleNdE,764
|
|
33
|
-
payi/lib/
|
|
34
|
-
payi/lib/
|
|
35
|
-
payi/lib/
|
|
36
|
-
payi/lib/
|
|
36
|
+
payi/lib/StreamWrappers.py,sha256=dUZuFJ_dWodLwSgeHSTN5bNTGAjy1vboUgN20QMAvWw,13967
|
|
37
|
+
payi/lib/VertexInstrumentor.py,sha256=BeyojcnXGbNFjdHoVbv9X05Pg27MvJhMmbCZJAm3UoM,7073
|
|
38
|
+
payi/lib/VertexRequest.py,sha256=98yaSvu3jt30qGOBV05rCIniOQUBY50V-dE_GKCd4F4,12287
|
|
39
|
+
payi/lib/helpers.py,sha256=K2jwUjGfX3T9XteG7zQzBRwlxZUQHQHeI47Zo59CAPo,6457
|
|
40
|
+
payi/lib/instrument.py,sha256=fANJW3D9HGpOuYIbK--LtN9Rf5Q2ZgqC4dkrqqIqE9I,66273
|
|
37
41
|
payi/lib/version_helper.py,sha256=v0lC3kuaXn6PBDolE3mkmwJiA8Ot3z4RkVR7wlBuZCs,540
|
|
42
|
+
payi/lib/data/cohere_embed_english_v3.json,sha256=YEWwjml3_i16cdsOx_7UKe6xpVFnxTEhP8T1n54R6gY,718306
|
|
38
43
|
payi/resources/__init__.py,sha256=B2bn1ZfCf6TbHlzZvy5TpFPtALnFcBRPYVKQH3S5qfQ,2457
|
|
39
|
-
payi/resources/ingest.py,sha256=
|
|
40
|
-
payi/resources/categories/__init__.py,sha256=
|
|
41
|
-
payi/resources/categories/categories.py,sha256=
|
|
42
|
-
payi/resources/categories/
|
|
43
|
-
payi/resources/
|
|
44
|
-
payi/resources/limits/
|
|
45
|
-
payi/resources/limits/
|
|
46
|
-
payi/resources/limits/tags.py,sha256=gPW2ds6Zh7-BV7_SwtbRGcMMgj94NciGzcui6FRRQ-o,18964
|
|
44
|
+
payi/resources/ingest.py,sha256=x09Tu4jj4zVYpjXv-JTA_LJGW25B8VuRnHd-ooRpQHE,21952
|
|
45
|
+
payi/resources/categories/__init__.py,sha256=w5gMiPdBSzJA_qfoVtFBElaoe8wGf_O63R7R1Spr6Gk,1093
|
|
46
|
+
payi/resources/categories/categories.py,sha256=XqEQfCqeWKKsaiXY1AuSNOFcR9TVp9T33j8lznnA_SI,19258
|
|
47
|
+
payi/resources/categories/resources.py,sha256=n3rAfpG7o3ripz-YC8fvQ_MXzoVERX8xEplLkHVN6V8,20021
|
|
48
|
+
payi/resources/limits/__init__.py,sha256=P_uFMbQ6AT1F_FI10EqrZl3n4IgSz-l3QjV4kZQqaOg,1054
|
|
49
|
+
payi/resources/limits/limits.py,sha256=C9wtYxl2te-QPIo1_bAFKcdVk3vSGhNDX0UgnnF9aZQ,25214
|
|
50
|
+
payi/resources/limits/properties.py,sha256=kmUuMZggOdM_vAN5t7kw2cWFm33hT_gJBx4LKZtvKd4,6475
|
|
47
51
|
payi/resources/requests/__init__.py,sha256=L86SkNRyb9oySva7oQu6rMwBRUnctb4grtDSRN3T9_g,1571
|
|
48
52
|
payi/resources/requests/requests.py,sha256=Mkyy-Iv7dZ-uKLMBm4eZdwHwm4ZKdF6O7W9QY53YcTo,4972
|
|
49
53
|
payi/resources/requests/request_id/__init__.py,sha256=DMatPoq_k3AF_qutMg7_HjGfup6Z90YQarTiKuUQhZc,1544
|
|
50
|
-
payi/resources/requests/request_id/properties.py,sha256=
|
|
54
|
+
payi/resources/requests/request_id/properties.py,sha256=WzhT9a-luyKWX-CPCeI66tMBMdx-nNSNpVBoHgUXlqs,6499
|
|
51
55
|
payi/resources/requests/request_id/request_id.py,sha256=TiZq8OvUPm8RHgOhnkt4VpUjYczi-7z4-ZT7im3nhj8,4902
|
|
52
|
-
payi/resources/requests/request_id/result.py,sha256=
|
|
56
|
+
payi/resources/requests/request_id/result.py,sha256=uKJGqBmUrfKgNDCV6NJ5K14yMBuTNAaPqYpGTbzrvJ4,5838
|
|
53
57
|
payi/resources/requests/response_id/__init__.py,sha256=Cg0v31KBriuwMO0r_4DguinMbOw80ALAYlFaMET4fdY,1557
|
|
54
|
-
payi/resources/requests/response_id/properties.py,sha256=
|
|
58
|
+
payi/resources/requests/response_id/properties.py,sha256=Arvtvor6HjibP7SNn-fkDaLGvH0Wn5yJcoID3Cr8yVo,6998
|
|
55
59
|
payi/resources/requests/response_id/response_id.py,sha256=PR2bLNJdMlgt3qjLBtnpyXrydZVd8dFUvRLC3W5WcJk,4942
|
|
56
|
-
payi/resources/requests/response_id/result.py,sha256=
|
|
60
|
+
payi/resources/requests/response_id/result.py,sha256=lEg3ufP4xAZ6wm0bXgcOMlcu8kA08F7koEtcqYQ7lFU,6336
|
|
57
61
|
payi/resources/use_cases/__init__.py,sha256=ckXPaVoPQmGESfgQF_ySP_eGskI6T4bJjPKoEGyo2gI,2020
|
|
58
|
-
payi/resources/use_cases/kpis.py,sha256=
|
|
59
|
-
payi/resources/use_cases/properties.py,sha256=
|
|
60
|
-
payi/resources/use_cases/use_cases.py,sha256=
|
|
62
|
+
payi/resources/use_cases/kpis.py,sha256=8zVh8t0-s-FkheNtDkvRwUlor_Pu2dbzlb77nUzhE5E,11043
|
|
63
|
+
payi/resources/use_cases/properties.py,sha256=r5cscOulIsJtNRomd3ILSrsq9GjpUEkeH2iXcmsjETc,6558
|
|
64
|
+
payi/resources/use_cases/use_cases.py,sha256=VKOfN53jMqYgfabFaboOGwSXE1FDIuwHlD9jJa6zRAo,15582
|
|
61
65
|
payi/resources/use_cases/definitions/__init__.py,sha256=pImtiVUbgsm6PkMJ0NPkrhQj8kEi36db-LF5rJukmMY,2020
|
|
62
|
-
payi/resources/use_cases/definitions/definitions.py,sha256=
|
|
63
|
-
payi/resources/use_cases/definitions/kpis.py,sha256=
|
|
64
|
-
payi/resources/use_cases/definitions/limit_config.py,sha256=
|
|
65
|
-
payi/resources/use_cases/definitions/version.py,sha256=
|
|
66
|
-
payi/types/__init__.py,sha256=
|
|
67
|
-
payi/types/bulk_ingest_response.py,sha256=
|
|
66
|
+
payi/resources/use_cases/definitions/definitions.py,sha256=QgpsAQdf4LsJjB4sLNG9rxLD1z0ThmBoQcgJHUE6Ggw,24410
|
|
67
|
+
payi/resources/use_cases/definitions/kpis.py,sha256=Dytw3XOsmmxjp1UO6To4aiumbXBuPptENkDEDX4SGhM,22490
|
|
68
|
+
payi/resources/use_cases/definitions/limit_config.py,sha256=OeKezVkfkmROvaHvvdbO-czb4Y2YS-0z9hi7nZO8oqU,10571
|
|
69
|
+
payi/resources/use_cases/definitions/version.py,sha256=fb4n_UJrCT_8SRlBbN9j0ymkkeOCvDS2I08KQXmWGfg,6013
|
|
70
|
+
payi/types/__init__.py,sha256=ec6dizDu-5dCRqVmMCo5gCtVRRXfQKkF6OSDWe8J_Ds,2529
|
|
71
|
+
payi/types/bulk_ingest_response.py,sha256=g-5AYEgEiVMRnZFR2pQt1azN8oW2Ca1V7F_iKJZazdQ,609
|
|
68
72
|
payi/types/category_delete_resource_response.py,sha256=PLz4wZA1XMpS9SUYB_j4hEw5EoZ0VVE9Ll-MQ26SAfc,339
|
|
69
73
|
payi/types/category_delete_response.py,sha256=exq8rNDGoq2-YN528V8osdcmuptJ-k63rmCvPMm6hLA,323
|
|
70
74
|
payi/types/category_list_params.py,sha256=hHe6LRxl8CGykRj4F4-eW_z5d5PxP3YzY0m7qtiM5jY,307
|
|
71
|
-
payi/types/category_list_resources_params.py,sha256=
|
|
72
|
-
payi/types/category_resource_response.py,sha256=
|
|
75
|
+
payi/types/category_list_resources_params.py,sha256=e4tifpq4eAkFJotSjqCJgMsx5lJ4F-_9ASD2L_cNUlY,430
|
|
76
|
+
payi/types/category_resource_response.py,sha256=_U_FMLOjNh99r8Sb6STXkDg2S_9Tl-0ZFdFGOKbtF3w,1528
|
|
73
77
|
payi/types/category_response.py,sha256=dlvHaKJlcGm936aduRIMxJXHapPGo4Rfs9ObIYkP4Yc,206
|
|
74
78
|
payi/types/cost_data.py,sha256=KXGLnqOKxS0q8yT9eRhdQHyGMSAcuukCHWcWZC1A6Fk,487
|
|
75
79
|
payi/types/cost_details.py,sha256=3ldvnYILAG6Sz9wGWMs1SZvIfdGEbn5i4-CauWEXMPA,265
|
|
76
80
|
payi/types/default_response.py,sha256=o617LpRsCIZHCZxAc5nVI2JQ3HPGZo4gCDvSDkxkIJ8,270
|
|
77
81
|
payi/types/ingest_bulk_params.py,sha256=A-IRb39d2tmVzEQqrvhlF_3si-9ufHBKYLlvdXupAHU,362
|
|
78
|
-
payi/types/ingest_event_param.py,sha256=
|
|
82
|
+
payi/types/ingest_event_param.py,sha256=FV9fAfba3961CEVE4gN1zt4w2jecvl79qSDK5-FQ22s,2005
|
|
79
83
|
payi/types/ingest_response.py,sha256=JwcZ6OL793uXTuDmZAzkzhGcdtDsSXfSy_ERjzc7MZY,378
|
|
80
|
-
payi/types/ingest_units_params.py,sha256=
|
|
81
|
-
payi/types/limit_create_params.py,sha256=
|
|
84
|
+
payi/types/ingest_units_params.py,sha256=IGiInZBrw7zY_K652lvZys73aIQnRu14FBDZ6ihq3bQ,2586
|
|
85
|
+
payi/types/limit_create_params.py,sha256=kBNQdG_YjK1Yj7oP6uNI8FO4pH6jOlqkXcr3q19H7TU,512
|
|
82
86
|
payi/types/limit_history_response.py,sha256=vJnVVa5BROfYHRPvpfymcOabjDhcJtFowQF-L-apNgw,770
|
|
83
87
|
payi/types/limit_list_params.py,sha256=OYlK0anDA5G71FfwrMDzhEX4S5AlASLRiR0tmyD9tTU,322
|
|
84
|
-
payi/types/limit_list_response.py,sha256=
|
|
88
|
+
payi/types/limit_list_response.py,sha256=pL7MmVifDtTh61VtD83oJue7Ntqbf7neI86MKpdipnI,572
|
|
85
89
|
payi/types/limit_reset_params.py,sha256=vgqImSM89pRYY0Z2RNrJuQ6WeDX72ZPg3GWpL9EVEKs,476
|
|
86
|
-
payi/types/limit_response.py,sha256=
|
|
90
|
+
payi/types/limit_response.py,sha256=tYrT3PrqozNxzBtfEQXwko2drr1znSXfc4KBqlNfUwA,672
|
|
87
91
|
payi/types/limit_update_params.py,sha256=crY4w75FWcEXbzysq1rPfD37qR5PTy_dwVRY4C_-T1w,331
|
|
88
92
|
payi/types/pay_i_common_models_api_router_header_info_param.py,sha256=91djoPLmoaMWTQOXv9-Ox24dWIrM2hudrRQTCqZpX4c,381
|
|
89
93
|
payi/types/request_result.py,sha256=mD0akFmhrAqCFZwo-ampDuBH7cK5Y6GOmQm7vT-WIwE,261
|
|
90
94
|
payi/types/requests_data.py,sha256=coHpXgOIQv8oKaX354G-uYoJMzbJcjIW1oX1wuQppts,307
|
|
91
95
|
payi/types/total_cost_data.py,sha256=1xoiInVI0UaKup_8poAHNgcpK8gu09RQnMrdorQtFgQ,301
|
|
92
96
|
payi/types/use_case_instance_response.py,sha256=khdcmoU1L8djNVYLu4rSmWkaceZmGwkE9eHLedN1ePU,328
|
|
93
|
-
payi/types/categories/__init__.py,sha256=
|
|
94
|
-
payi/types/categories/fixed_cost_resource_create_params.py,sha256=7aCIr-qIGTRkDtYwcnnFgt_iSOIrVbelw23rYYP1IgI,567
|
|
97
|
+
payi/types/categories/__init__.py,sha256=hlu-e4w8iudVia3FayAnlNefJ3kNHFeGvpN0-_DUDrU,279
|
|
95
98
|
payi/types/categories/resource_create_params.py,sha256=HVzUWhvmUhVu9h70DmUrBPUcO-g2VUIc5cg0sxbG3fs,745
|
|
96
|
-
payi/types/categories/resource_list_params.py,sha256=
|
|
97
|
-
payi/types/limits/__init__.py,sha256=
|
|
98
|
-
payi/types/limits/
|
|
99
|
-
payi/types/limits/
|
|
100
|
-
payi/types/limits/tag_create_response.py,sha256=ZBU5vjGQQnsz5twkAs102TwXaZgRv9Z1nmvPHVYDTAY,267
|
|
101
|
-
payi/types/limits/tag_delete_response.py,sha256=CzkcQxggdAjakAPC1JqjK2L6h6YGxwnWU3bKRjkAfeM,267
|
|
102
|
-
payi/types/limits/tag_list_response.py,sha256=64Au13HA8Woch4gAgMb-XEd7Q9InJy9xdo9xPZyGxY4,263
|
|
103
|
-
payi/types/limits/tag_remove_params.py,sha256=3uxFgAH60w5EFyhzwkKFcnyqN5_Ft9VTTrj0jRdZ2hs,342
|
|
104
|
-
payi/types/limits/tag_remove_response.py,sha256=R-e-um-W1aqq8sEmTtnPMCDLGVRUmm5pVAvLCkgDVHI,267
|
|
105
|
-
payi/types/limits/tag_update_params.py,sha256=YOA7dOzdwhapxWRa23MVG77oNUvBahXEUF4I1lQbLCU,342
|
|
106
|
-
payi/types/limits/tag_update_response.py,sha256=xLa4aU4eVhNmIaQTsCyEDjx1vatBACFiJCwZOWLfrig,267
|
|
99
|
+
payi/types/categories/resource_list_params.py,sha256=Odl3nWHPyJuOhzSseypyOGZhw1T1fgnW1Fk4oyn9qkg,452
|
|
100
|
+
payi/types/limits/__init__.py,sha256=Y0iMWCSSKyF45RTCx73nnXGJTJpM18mfBxiRgomagXw,291
|
|
101
|
+
payi/types/limits/property_update_params.py,sha256=nWa3NRZS_3xDCFHehyX9OhQ7noDRvuD_J-SYvRacUus,348
|
|
102
|
+
payi/types/limits/property_update_response.py,sha256=OBijI2R3DwujMoGtwCeph45xqFpk_iYqmP-QceSA76Q,290
|
|
107
103
|
payi/types/requests/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
108
104
|
payi/types/requests/request_id/__init__.py,sha256=mWsqHCigEDLIrgH0MlIc2KV3j1npHcb-QyGy4Tvu5p0,204
|
|
109
|
-
payi/types/requests/request_id/property_update_params.py,sha256=
|
|
105
|
+
payi/types/requests/request_id/property_update_params.py,sha256=nWa3NRZS_3xDCFHehyX9OhQ7noDRvuD_J-SYvRacUus,348
|
|
110
106
|
payi/types/requests/response_id/__init__.py,sha256=mWsqHCigEDLIrgH0MlIc2KV3j1npHcb-QyGy4Tvu5p0,204
|
|
111
|
-
payi/types/requests/response_id/property_update_params.py,sha256=
|
|
112
|
-
payi/types/shared/__init__.py,sha256=
|
|
107
|
+
payi/types/requests/response_id/property_update_params.py,sha256=_PejxT6yCTjZTQX7hxZ-jzJujWAaGO8OzdE8o8bLGoo,377
|
|
108
|
+
payi/types/shared/__init__.py,sha256=vflQVg5Wm1QtlR5V5IlywvJooncyo3EXN3J1MtJEXlY,792
|
|
109
|
+
payi/types/shared/api_error.py,sha256=LLPNrPR5HhTPg4Yvi9DGl5QV0pfn7SV8eDrDdBvWUY0,400
|
|
113
110
|
payi/types/shared/evaluation_response.py,sha256=ejEToMA57PUu1SldEtJ5z9r4fAO3U0tvdjbsyIoVX1s,214
|
|
114
111
|
payi/types/shared/ingest_units.py,sha256=lehu0ICBECr-v0tF-HB-rRh0LoKGZh2D_Z2pVxD9cqA,274
|
|
115
112
|
payi/types/shared/pay_i_common_models_budget_management_cost_details_base.py,sha256=o8Szm4uiTnyZuW7D4rM5rzAAj6iAeSOA5gVMlMYfpmc,267
|
|
116
|
-
payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py,sha256=
|
|
113
|
+
payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py,sha256=H0hxdEYrsGp9QwFutGmPIH3j9GRf_c305yMkTpokEIg,497
|
|
114
|
+
payi/types/shared/properties_request.py,sha256=EeKHCy20XThmzLozH55_WId7jFvsn8enzSjyI1sJTZw,267
|
|
117
115
|
payi/types/shared/properties_response.py,sha256=HpFNtxl_OjoMCs24xPVZLKe3FwCVcNkcRs0LsQKLrHM,259
|
|
118
116
|
payi/types/shared/xproxy_error.py,sha256=I8dsEHZF_0dM-1YvZ6_mysRJuNlWJrQIHacs9yRaZCM,274
|
|
119
|
-
payi/types/shared/xproxy_result.py,sha256=
|
|
117
|
+
payi/types/shared/xproxy_result.py,sha256=gVIHPAgcmwOYJizXHCru8LJ1yxixPv3sL9T_3-86yI4,1428
|
|
120
118
|
payi/types/shared_params/__init__.py,sha256=dRGuNTZWLagRlbQfl5tKc0JMEYNRVXUad5oyl7IFeIU,317
|
|
121
119
|
payi/types/shared_params/ingest_units.py,sha256=ueGIq14EQRGIDQlIHCCParrDxh1TZ_Hjfx2GP3_19yA,267
|
|
122
|
-
payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py,sha256=
|
|
120
|
+
payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py,sha256=ej5bUZc9GgaMHNYphOFWJN32BkG5YrcCtIb6T2EjqoQ,512
|
|
123
121
|
payi/types/use_cases/__init__.py,sha256=etITqrdbGF_cdY2CSF0xq1Be9LFdUeQtZXNg_uJEfeM,723
|
|
124
122
|
payi/types/use_cases/definition_create_params.py,sha256=8Z48UFbJq0nohT0rG64-3Js9nadWNDMoeVUTXn4PLp4,597
|
|
125
123
|
payi/types/use_cases/definition_list_params.py,sha256=8lVZQPafxHSAULib1RcjRJh82POL9zKKHMHn2r_l31I,335
|
|
@@ -127,7 +125,7 @@ payi/types/use_cases/definition_update_params.py,sha256=nRhHHVUvEFYr_dtAESZcyxZN
|
|
|
127
125
|
payi/types/use_cases/kpi_list_params.py,sha256=lx8rGm1Ri9Qn7EsIhwb07-HLHbV1BWc904sJkmPhodI,316
|
|
128
126
|
payi/types/use_cases/kpi_list_response.py,sha256=6REE5-V5j2dxAOX6ShDpXTGvYAT6xIl4X1WBAx0apSY,561
|
|
129
127
|
payi/types/use_cases/kpi_update_params.py,sha256=TZvwDtS5VtngTnAR0bPPVoy8UD3YxjCVl5CEthPoYqc,346
|
|
130
|
-
payi/types/use_cases/property_update_params.py,sha256=
|
|
128
|
+
payi/types/use_cases/property_update_params.py,sha256=nWa3NRZS_3xDCFHehyX9OhQ7noDRvuD_J-SYvRacUus,348
|
|
131
129
|
payi/types/use_cases/use_case_definition.py,sha256=R2DMV9t1EZ4pStQhZSul8SFCyfqqQuAUoevlkFOg2Mc,579
|
|
132
130
|
payi/types/use_cases/definitions/__init__.py,sha256=xro0oPNhbIPOYx-6fvAINvaHL0kaCUMbALzrZmLeuwA,766
|
|
133
131
|
payi/types/use_cases/definitions/kpi_create_params.py,sha256=09jkxFxXJzguEJ3MxCwaa8X5_WcsUCjnWk3al6OJ_vM,447
|
|
@@ -138,8 +136,8 @@ payi/types/use_cases/definitions/kpi_list_response.py,sha256=VHhwSjzyO1wsLhceL7E
|
|
|
138
136
|
payi/types/use_cases/definitions/kpi_retrieve_response.py,sha256=uQXliSvS3k-yDYwEcv6otPycNKHXLwvpkKM0W2nsXys,463
|
|
139
137
|
payi/types/use_cases/definitions/kpi_update_params.py,sha256=jbawdWAdMnsTWVH0qfQGb8W7_TXe3lq4zjSRu44d8p8,373
|
|
140
138
|
payi/types/use_cases/definitions/kpi_update_response.py,sha256=zLyEoT0S8d7XHsnXZYT8tM7yDw0Aze0Mk-_Z6QeMtc8,459
|
|
141
|
-
payi/types/use_cases/definitions/limit_config_create_params.py,sha256=
|
|
142
|
-
payi-0.1.
|
|
143
|
-
payi-0.1.
|
|
144
|
-
payi-0.1.
|
|
145
|
-
payi-0.1.
|
|
139
|
+
payi/types/use_cases/definitions/limit_config_create_params.py,sha256=Y6RR7IYiTZHYJ4y6m2TmlAe4ArtbjEl7fIrAhnCvuPI,464
|
|
140
|
+
payi-0.1.0a137.dist-info/METADATA,sha256=wUexqCpRLZW-WMpb606k3UZdfq3KUrX3xz9i0Sl4-8k,16274
|
|
141
|
+
payi-0.1.0a137.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
142
|
+
payi-0.1.0a137.dist-info/licenses/LICENSE,sha256=CQt03aM-P4a3Yg5qBg3JSLVoQS3smMyvx7tYg_6V7Gk,11334
|
|
143
|
+
payi-0.1.0a137.dist-info/RECORD,,
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import List, Union
|
|
6
|
-
from datetime import datetime
|
|
7
|
-
|
|
8
|
-
import httpx
|
|
9
|
-
|
|
10
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
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.categories import fixed_cost_resource_create_params
|
|
22
|
-
from ...types.category_resource_response import CategoryResourceResponse
|
|
23
|
-
|
|
24
|
-
__all__ = ["FixedCostResourcesResource", "AsyncFixedCostResourcesResource"]
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class FixedCostResourcesResource(SyncAPIResource):
|
|
28
|
-
@cached_property
|
|
29
|
-
def with_raw_response(self) -> FixedCostResourcesResourceWithRawResponse:
|
|
30
|
-
"""
|
|
31
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
32
|
-
the raw response object instead of the parsed content.
|
|
33
|
-
|
|
34
|
-
For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
|
|
35
|
-
"""
|
|
36
|
-
return FixedCostResourcesResourceWithRawResponse(self)
|
|
37
|
-
|
|
38
|
-
@cached_property
|
|
39
|
-
def with_streaming_response(self) -> FixedCostResourcesResourceWithStreamingResponse:
|
|
40
|
-
"""
|
|
41
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
42
|
-
|
|
43
|
-
For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
|
|
44
|
-
"""
|
|
45
|
-
return FixedCostResourcesResourceWithStreamingResponse(self)
|
|
46
|
-
|
|
47
|
-
def create(
|
|
48
|
-
self,
|
|
49
|
-
resource: str,
|
|
50
|
-
*,
|
|
51
|
-
category: str,
|
|
52
|
-
units: List[str],
|
|
53
|
-
cost_per_hour: float | NotGiven = NOT_GIVEN,
|
|
54
|
-
start_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
|
|
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
|
-
) -> CategoryResourceResponse:
|
|
62
|
-
"""
|
|
63
|
-
Create a fixed cost resource
|
|
64
|
-
|
|
65
|
-
Args:
|
|
66
|
-
extra_headers: Send extra headers
|
|
67
|
-
|
|
68
|
-
extra_query: Add additional query parameters to the request
|
|
69
|
-
|
|
70
|
-
extra_body: Add additional JSON properties to the request
|
|
71
|
-
|
|
72
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
73
|
-
"""
|
|
74
|
-
if not category:
|
|
75
|
-
raise ValueError(f"Expected a non-empty value for `category` but received {category!r}")
|
|
76
|
-
if not resource:
|
|
77
|
-
raise ValueError(f"Expected a non-empty value for `resource` but received {resource!r}")
|
|
78
|
-
return self._post(
|
|
79
|
-
f"/api/v1/categories/{category}/fixed_cost_resources/{resource}",
|
|
80
|
-
body=maybe_transform(
|
|
81
|
-
{
|
|
82
|
-
"units": units,
|
|
83
|
-
"cost_per_hour": cost_per_hour,
|
|
84
|
-
"start_timestamp": start_timestamp,
|
|
85
|
-
},
|
|
86
|
-
fixed_cost_resource_create_params.FixedCostResourceCreateParams,
|
|
87
|
-
),
|
|
88
|
-
options=make_request_options(
|
|
89
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
90
|
-
),
|
|
91
|
-
cast_to=CategoryResourceResponse,
|
|
92
|
-
)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
class AsyncFixedCostResourcesResource(AsyncAPIResource):
|
|
96
|
-
@cached_property
|
|
97
|
-
def with_raw_response(self) -> AsyncFixedCostResourcesResourceWithRawResponse:
|
|
98
|
-
"""
|
|
99
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
100
|
-
the raw response object instead of the parsed content.
|
|
101
|
-
|
|
102
|
-
For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
|
|
103
|
-
"""
|
|
104
|
-
return AsyncFixedCostResourcesResourceWithRawResponse(self)
|
|
105
|
-
|
|
106
|
-
@cached_property
|
|
107
|
-
def with_streaming_response(self) -> AsyncFixedCostResourcesResourceWithStreamingResponse:
|
|
108
|
-
"""
|
|
109
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
110
|
-
|
|
111
|
-
For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
|
|
112
|
-
"""
|
|
113
|
-
return AsyncFixedCostResourcesResourceWithStreamingResponse(self)
|
|
114
|
-
|
|
115
|
-
async def create(
|
|
116
|
-
self,
|
|
117
|
-
resource: str,
|
|
118
|
-
*,
|
|
119
|
-
category: str,
|
|
120
|
-
units: List[str],
|
|
121
|
-
cost_per_hour: float | NotGiven = NOT_GIVEN,
|
|
122
|
-
start_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
|
|
123
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
124
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
125
|
-
extra_headers: Headers | None = None,
|
|
126
|
-
extra_query: Query | None = None,
|
|
127
|
-
extra_body: Body | None = None,
|
|
128
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
129
|
-
) -> CategoryResourceResponse:
|
|
130
|
-
"""
|
|
131
|
-
Create a fixed cost resource
|
|
132
|
-
|
|
133
|
-
Args:
|
|
134
|
-
extra_headers: Send extra headers
|
|
135
|
-
|
|
136
|
-
extra_query: Add additional query parameters to the request
|
|
137
|
-
|
|
138
|
-
extra_body: Add additional JSON properties to the request
|
|
139
|
-
|
|
140
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
141
|
-
"""
|
|
142
|
-
if not category:
|
|
143
|
-
raise ValueError(f"Expected a non-empty value for `category` but received {category!r}")
|
|
144
|
-
if not resource:
|
|
145
|
-
raise ValueError(f"Expected a non-empty value for `resource` but received {resource!r}")
|
|
146
|
-
return await self._post(
|
|
147
|
-
f"/api/v1/categories/{category}/fixed_cost_resources/{resource}",
|
|
148
|
-
body=await async_maybe_transform(
|
|
149
|
-
{
|
|
150
|
-
"units": units,
|
|
151
|
-
"cost_per_hour": cost_per_hour,
|
|
152
|
-
"start_timestamp": start_timestamp,
|
|
153
|
-
},
|
|
154
|
-
fixed_cost_resource_create_params.FixedCostResourceCreateParams,
|
|
155
|
-
),
|
|
156
|
-
options=make_request_options(
|
|
157
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
158
|
-
),
|
|
159
|
-
cast_to=CategoryResourceResponse,
|
|
160
|
-
)
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
class FixedCostResourcesResourceWithRawResponse:
|
|
164
|
-
def __init__(self, fixed_cost_resources: FixedCostResourcesResource) -> None:
|
|
165
|
-
self._fixed_cost_resources = fixed_cost_resources
|
|
166
|
-
|
|
167
|
-
self.create = to_raw_response_wrapper(
|
|
168
|
-
fixed_cost_resources.create,
|
|
169
|
-
)
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
class AsyncFixedCostResourcesResourceWithRawResponse:
|
|
173
|
-
def __init__(self, fixed_cost_resources: AsyncFixedCostResourcesResource) -> None:
|
|
174
|
-
self._fixed_cost_resources = fixed_cost_resources
|
|
175
|
-
|
|
176
|
-
self.create = async_to_raw_response_wrapper(
|
|
177
|
-
fixed_cost_resources.create,
|
|
178
|
-
)
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
class FixedCostResourcesResourceWithStreamingResponse:
|
|
182
|
-
def __init__(self, fixed_cost_resources: FixedCostResourcesResource) -> None:
|
|
183
|
-
self._fixed_cost_resources = fixed_cost_resources
|
|
184
|
-
|
|
185
|
-
self.create = to_streamed_response_wrapper(
|
|
186
|
-
fixed_cost_resources.create,
|
|
187
|
-
)
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
class AsyncFixedCostResourcesResourceWithStreamingResponse:
|
|
191
|
-
def __init__(self, fixed_cost_resources: AsyncFixedCostResourcesResource) -> None:
|
|
192
|
-
self._fixed_cost_resources = fixed_cost_resources
|
|
193
|
-
|
|
194
|
-
self.create = async_to_streamed_response_wrapper(
|
|
195
|
-
fixed_cost_resources.create,
|
|
196
|
-
)
|