payi 0.1.0a125__py3-none-any.whl → 0.1.0a127__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/_version.py +1 -1
- payi/lib/BedrockInstrumentor.py +35 -25
- payi/lib/helpers.py +12 -0
- payi/lib/instrument.py +136 -143
- payi/resources/categories/__init__.py +0 -14
- payi/resources/categories/categories.py +0 -32
- payi/resources/categories/resources.py +4 -0
- payi/resources/ingest.py +20 -8
- payi/resources/requests/request_id/properties.py +3 -3
- payi/resources/requests/response_id/properties.py +3 -3
- payi/resources/use_cases/properties.py +3 -3
- 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_resource_response.py +31 -1
- payi/types/ingest_event_param.py +2 -2
- payi/types/ingest_units_params.py +2 -2
- 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/properties_request.py +11 -0
- payi/types/shared/xproxy_result.py +2 -0
- payi/types/use_cases/property_update_params.py +2 -2
- {payi-0.1.0a125.dist-info → payi-0.1.0a127.dist-info}/METADATA +1 -1
- {payi-0.1.0a125.dist-info → payi-0.1.0a127.dist-info}/RECORD +29 -29
- payi/resources/categories/fixed_cost_resources.py +0 -196
- payi/types/categories/fixed_cost_resource_create_params.py +0 -22
- {payi-0.1.0a125.dist-info → payi-0.1.0a127.dist-info}/WHEEL +0 -0
- {payi-0.1.0a125.dist-info → payi-0.1.0a127.dist-info}/licenses/LICENSE +0 -0
|
@@ -11,7 +11,7 @@ payi/_resource.py,sha256=j2jIkTr8OIC8sU6-05nxSaCyj4MaFlbZrwlyg4_xJos,1088
|
|
|
11
11
|
payi/_response.py,sha256=rh9oJAvCKcPwQFm4iqH_iVrmK8bNx--YP_A2a4kN1OU,28776
|
|
12
12
|
payi/_streaming.py,sha256=Z_wIyo206T6Jqh2rolFg2VXZgX24PahLmpURp0-NssU,10092
|
|
13
13
|
payi/_types.py,sha256=d6xrZDG6rG6opphTN7UVYdEOis3977LrQQgpNtklXZE,7234
|
|
14
|
-
payi/_version.py,sha256=
|
|
14
|
+
payi/_version.py,sha256=wVEPIEAd5nV4wAk7wELHnLr7Wt_AzCgJEAnfj1KywsM,166
|
|
15
15
|
payi/pagination.py,sha256=k2356QGPOUSjRF2vHpwLBdF6P-2vnQzFfRIJQAHGQ7A,1258
|
|
16
16
|
payi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
payi/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
@@ -28,59 +28,58 @@ payi/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
|
|
|
28
28
|
payi/_utils/_utils.py,sha256=0dDqauUbVZEXV0NVl7Bwu904Wwo5eyFCZpQThhFNhyA,12253
|
|
29
29
|
payi/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
30
30
|
payi/lib/AnthropicInstrumentor.py,sha256=SI6nzU-eVufHbxV5gxgrZDhx3TewRVnsvtwDuwEG6WU,16484
|
|
31
|
-
payi/lib/BedrockInstrumentor.py,sha256
|
|
31
|
+
payi/lib/BedrockInstrumentor.py,sha256=-dF3mk2nsCOrYxeV75eBORxYEJ7Nd1nIJWsy4-2LEHk,27324
|
|
32
32
|
payi/lib/GoogleGenAiInstrumentor.py,sha256=LHiEZ7G5IhCcDlpVzQlXW9Ok96MHLeq7emEhFzPBTm0,8836
|
|
33
33
|
payi/lib/OpenAIInstrumentor.py,sha256=_ULwIli11XP1yZK_pMGXuaSmHZ5pozuEt_v5DfhNuGw,22914
|
|
34
34
|
payi/lib/Stopwatch.py,sha256=7OJlxvr2Jyb6Zr1LYCYKczRB7rDVKkIR7gc4YoleNdE,764
|
|
35
35
|
payi/lib/VertexInstrumentor.py,sha256=OWuMPiW4LdLhj6DSAAy5qZiosVo8DSAuFWGxYpEucoE,7431
|
|
36
36
|
payi/lib/VertexRequest.py,sha256=42F7xCRYY6h3EMUZD1x4-_cwyAcVhnzT9M5zl4KwtE0,11801
|
|
37
|
-
payi/lib/helpers.py,sha256=
|
|
38
|
-
payi/lib/instrument.py,sha256=
|
|
37
|
+
payi/lib/helpers.py,sha256=6c0RFMS0AYVIxU6q8ak1CDwMTwldIN7N2O2XkxTO7ag,4931
|
|
38
|
+
payi/lib/instrument.py,sha256=CC3OqAEEltg2VWxcUhtXYeLivPpnyKb60fDwxj4KCsQ,76903
|
|
39
39
|
payi/lib/version_helper.py,sha256=v0lC3kuaXn6PBDolE3mkmwJiA8Ot3z4RkVR7wlBuZCs,540
|
|
40
40
|
payi/lib/data/cohere_embed_english_v3.json,sha256=YEWwjml3_i16cdsOx_7UKe6xpVFnxTEhP8T1n54R6gY,718306
|
|
41
41
|
payi/resources/__init__.py,sha256=B2bn1ZfCf6TbHlzZvy5TpFPtALnFcBRPYVKQH3S5qfQ,2457
|
|
42
|
-
payi/resources/ingest.py,sha256=
|
|
43
|
-
payi/resources/categories/__init__.py,sha256=
|
|
44
|
-
payi/resources/categories/categories.py,sha256=
|
|
45
|
-
payi/resources/categories/
|
|
46
|
-
payi/resources/categories/resources.py,sha256=qPa0DMxnKCsGVwBZkjCzT5x7j-fi3KSaDEOVjkq-a4w,19865
|
|
42
|
+
payi/resources/ingest.py,sha256=x09Tu4jj4zVYpjXv-JTA_LJGW25B8VuRnHd-ooRpQHE,21952
|
|
43
|
+
payi/resources/categories/__init__.py,sha256=w5gMiPdBSzJA_qfoVtFBElaoe8wGf_O63R7R1Spr6Gk,1093
|
|
44
|
+
payi/resources/categories/categories.py,sha256=aMSXiMWaYX4oLg1BcRGgktFbZWIkCXiFwu-u5V1Mdj4,19102
|
|
45
|
+
payi/resources/categories/resources.py,sha256=n3rAfpG7o3ripz-YC8fvQ_MXzoVERX8xEplLkHVN6V8,20021
|
|
47
46
|
payi/resources/limits/__init__.py,sha256=URXh9vglDH-dqbVGk-XcrDa8H5Bg2pgFuVQQecgEtaA,976
|
|
48
47
|
payi/resources/limits/limits.py,sha256=FxvtOKjFIrmyPLGukjhXoQ-chHWjXLed4i3WHYGPMIU,25040
|
|
49
48
|
payi/resources/limits/tags.py,sha256=M3V9IVUliD9G48dvnv8MPMDKdI2_bpW6blKSFDtlAEQ,19015
|
|
50
49
|
payi/resources/requests/__init__.py,sha256=L86SkNRyb9oySva7oQu6rMwBRUnctb4grtDSRN3T9_g,1571
|
|
51
50
|
payi/resources/requests/requests.py,sha256=Mkyy-Iv7dZ-uKLMBm4eZdwHwm4ZKdF6O7W9QY53YcTo,4972
|
|
52
51
|
payi/resources/requests/request_id/__init__.py,sha256=DMatPoq_k3AF_qutMg7_HjGfup6Z90YQarTiKuUQhZc,1544
|
|
53
|
-
payi/resources/requests/request_id/properties.py,sha256=
|
|
52
|
+
payi/resources/requests/request_id/properties.py,sha256=huUnbg4N9uF4zl6a6ay_c36fDT_02txpVIGQXJPVN54,6495
|
|
54
53
|
payi/resources/requests/request_id/request_id.py,sha256=TiZq8OvUPm8RHgOhnkt4VpUjYczi-7z4-ZT7im3nhj8,4902
|
|
55
54
|
payi/resources/requests/request_id/result.py,sha256=uKJGqBmUrfKgNDCV6NJ5K14yMBuTNAaPqYpGTbzrvJ4,5838
|
|
56
55
|
payi/resources/requests/response_id/__init__.py,sha256=Cg0v31KBriuwMO0r_4DguinMbOw80ALAYlFaMET4fdY,1557
|
|
57
|
-
payi/resources/requests/response_id/properties.py,sha256=
|
|
56
|
+
payi/resources/requests/response_id/properties.py,sha256=m8uNNCWtp2cDYxzvsBu5tNv4GabDnPJ3sVxNKbuMhYo,6994
|
|
58
57
|
payi/resources/requests/response_id/response_id.py,sha256=PR2bLNJdMlgt3qjLBtnpyXrydZVd8dFUvRLC3W5WcJk,4942
|
|
59
58
|
payi/resources/requests/response_id/result.py,sha256=lEg3ufP4xAZ6wm0bXgcOMlcu8kA08F7koEtcqYQ7lFU,6336
|
|
60
59
|
payi/resources/use_cases/__init__.py,sha256=ckXPaVoPQmGESfgQF_ySP_eGskI6T4bJjPKoEGyo2gI,2020
|
|
61
60
|
payi/resources/use_cases/kpis.py,sha256=8zVh8t0-s-FkheNtDkvRwUlor_Pu2dbzlb77nUzhE5E,11043
|
|
62
|
-
payi/resources/use_cases/properties.py,sha256=
|
|
61
|
+
payi/resources/use_cases/properties.py,sha256=r5cscOulIsJtNRomd3ILSrsq9GjpUEkeH2iXcmsjETc,6558
|
|
63
62
|
payi/resources/use_cases/use_cases.py,sha256=VKOfN53jMqYgfabFaboOGwSXE1FDIuwHlD9jJa6zRAo,15582
|
|
64
63
|
payi/resources/use_cases/definitions/__init__.py,sha256=pImtiVUbgsm6PkMJ0NPkrhQj8kEi36db-LF5rJukmMY,2020
|
|
65
64
|
payi/resources/use_cases/definitions/definitions.py,sha256=QgpsAQdf4LsJjB4sLNG9rxLD1z0ThmBoQcgJHUE6Ggw,24410
|
|
66
65
|
payi/resources/use_cases/definitions/kpis.py,sha256=Dytw3XOsmmxjp1UO6To4aiumbXBuPptENkDEDX4SGhM,22490
|
|
67
66
|
payi/resources/use_cases/definitions/limit_config.py,sha256=OTOQmTbb7YaAeDg5YOtde-aCYzbdYZgqu0GCpbk4fZA,10571
|
|
68
67
|
payi/resources/use_cases/definitions/version.py,sha256=fb4n_UJrCT_8SRlBbN9j0ymkkeOCvDS2I08KQXmWGfg,6013
|
|
69
|
-
payi/types/__init__.py,sha256=
|
|
70
|
-
payi/types/bulk_ingest_response.py,sha256=
|
|
68
|
+
payi/types/__init__.py,sha256=ec6dizDu-5dCRqVmMCo5gCtVRRXfQKkF6OSDWe8J_Ds,2529
|
|
69
|
+
payi/types/bulk_ingest_response.py,sha256=g-5AYEgEiVMRnZFR2pQt1azN8oW2Ca1V7F_iKJZazdQ,609
|
|
71
70
|
payi/types/category_delete_resource_response.py,sha256=PLz4wZA1XMpS9SUYB_j4hEw5EoZ0VVE9Ll-MQ26SAfc,339
|
|
72
71
|
payi/types/category_delete_response.py,sha256=exq8rNDGoq2-YN528V8osdcmuptJ-k63rmCvPMm6hLA,323
|
|
73
72
|
payi/types/category_list_params.py,sha256=hHe6LRxl8CGykRj4F4-eW_z5d5PxP3YzY0m7qtiM5jY,307
|
|
74
73
|
payi/types/category_list_resources_params.py,sha256=Od65gihJCHdJWti1jdjUMp5l0vOvZb1PR50v9IQ4Mkk,325
|
|
75
|
-
payi/types/category_resource_response.py,sha256=
|
|
74
|
+
payi/types/category_resource_response.py,sha256=te8e05MirXmcXmCwsT7DgP71yiKgGSDzNZWTDyQ3x9Y,1528
|
|
76
75
|
payi/types/category_response.py,sha256=dlvHaKJlcGm936aduRIMxJXHapPGo4Rfs9ObIYkP4Yc,206
|
|
77
76
|
payi/types/cost_data.py,sha256=KXGLnqOKxS0q8yT9eRhdQHyGMSAcuukCHWcWZC1A6Fk,487
|
|
78
77
|
payi/types/cost_details.py,sha256=3ldvnYILAG6Sz9wGWMs1SZvIfdGEbn5i4-CauWEXMPA,265
|
|
79
78
|
payi/types/default_response.py,sha256=o617LpRsCIZHCZxAc5nVI2JQ3HPGZo4gCDvSDkxkIJ8,270
|
|
80
79
|
payi/types/ingest_bulk_params.py,sha256=A-IRb39d2tmVzEQqrvhlF_3si-9ufHBKYLlvdXupAHU,362
|
|
81
|
-
payi/types/ingest_event_param.py,sha256=
|
|
80
|
+
payi/types/ingest_event_param.py,sha256=FV9fAfba3961CEVE4gN1zt4w2jecvl79qSDK5-FQ22s,2005
|
|
82
81
|
payi/types/ingest_response.py,sha256=JwcZ6OL793uXTuDmZAzkzhGcdtDsSXfSy_ERjzc7MZY,378
|
|
83
|
-
payi/types/ingest_units_params.py,sha256=
|
|
82
|
+
payi/types/ingest_units_params.py,sha256=IGiInZBrw7zY_K652lvZys73aIQnRu14FBDZ6ihq3bQ,2586
|
|
84
83
|
payi/types/limit_create_params.py,sha256=q6kIEcRLde0b5-tsoeaLcBNPyIAwXoVsUZnDXjEoZio,538
|
|
85
84
|
payi/types/limit_history_response.py,sha256=vJnVVa5BROfYHRPvpfymcOabjDhcJtFowQF-L-apNgw,770
|
|
86
85
|
payi/types/limit_list_params.py,sha256=OYlK0anDA5G71FfwrMDzhEX4S5AlASLRiR0tmyD9tTU,322
|
|
@@ -93,10 +92,9 @@ payi/types/request_result.py,sha256=mD0akFmhrAqCFZwo-ampDuBH7cK5Y6GOmQm7vT-WIwE,
|
|
|
93
92
|
payi/types/requests_data.py,sha256=coHpXgOIQv8oKaX354G-uYoJMzbJcjIW1oX1wuQppts,307
|
|
94
93
|
payi/types/total_cost_data.py,sha256=1xoiInVI0UaKup_8poAHNgcpK8gu09RQnMrdorQtFgQ,301
|
|
95
94
|
payi/types/use_case_instance_response.py,sha256=khdcmoU1L8djNVYLu4rSmWkaceZmGwkE9eHLedN1ePU,328
|
|
96
|
-
payi/types/categories/__init__.py,sha256=
|
|
97
|
-
payi/types/categories/fixed_cost_resource_create_params.py,sha256=heFcV8Mqw2zdxWrqOAYq7Rm3sbovcoRhnM7zhfjfxK4,608
|
|
95
|
+
payi/types/categories/__init__.py,sha256=hlu-e4w8iudVia3FayAnlNefJ3kNHFeGvpN0-_DUDrU,279
|
|
98
96
|
payi/types/categories/resource_create_params.py,sha256=HVzUWhvmUhVu9h70DmUrBPUcO-g2VUIc5cg0sxbG3fs,745
|
|
99
|
-
payi/types/categories/resource_list_params.py,sha256=
|
|
97
|
+
payi/types/categories/resource_list_params.py,sha256=Odl3nWHPyJuOhzSseypyOGZhw1T1fgnW1Fk4oyn9qkg,452
|
|
100
98
|
payi/types/limits/__init__.py,sha256=yohSla0l53OaxH9WdwaU1crY1FvzM3H6IRg20LUr-MU,722
|
|
101
99
|
payi/types/limits/limit_tags.py,sha256=O9I9IC7IkFBYRbiUWb4XXmIuXoHUlRLjW_4fbEF50Aw,346
|
|
102
100
|
payi/types/limits/tag_create_params.py,sha256=USZzGNg3hHO8itcio9nCoE3BzF5DEeE6iuq6xh6Krqc,366
|
|
@@ -109,17 +107,19 @@ payi/types/limits/tag_update_params.py,sha256=xSmnOllFClguwTQ7FzHmuJiR4y339MlgpP
|
|
|
109
107
|
payi/types/limits/tag_update_response.py,sha256=xLa4aU4eVhNmIaQTsCyEDjx1vatBACFiJCwZOWLfrig,267
|
|
110
108
|
payi/types/requests/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
111
109
|
payi/types/requests/request_id/__init__.py,sha256=mWsqHCigEDLIrgH0MlIc2KV3j1npHcb-QyGy4Tvu5p0,204
|
|
112
|
-
payi/types/requests/request_id/property_update_params.py,sha256=
|
|
110
|
+
payi/types/requests/request_id/property_update_params.py,sha256=nWa3NRZS_3xDCFHehyX9OhQ7noDRvuD_J-SYvRacUus,348
|
|
113
111
|
payi/types/requests/response_id/__init__.py,sha256=mWsqHCigEDLIrgH0MlIc2KV3j1npHcb-QyGy4Tvu5p0,204
|
|
114
|
-
payi/types/requests/response_id/property_update_params.py,sha256=
|
|
115
|
-
payi/types/shared/__init__.py,sha256=
|
|
112
|
+
payi/types/requests/response_id/property_update_params.py,sha256=_PejxT6yCTjZTQX7hxZ-jzJujWAaGO8OzdE8o8bLGoo,377
|
|
113
|
+
payi/types/shared/__init__.py,sha256=vflQVg5Wm1QtlR5V5IlywvJooncyo3EXN3J1MtJEXlY,792
|
|
114
|
+
payi/types/shared/api_error.py,sha256=LLPNrPR5HhTPg4Yvi9DGl5QV0pfn7SV8eDrDdBvWUY0,400
|
|
116
115
|
payi/types/shared/evaluation_response.py,sha256=ejEToMA57PUu1SldEtJ5z9r4fAO3U0tvdjbsyIoVX1s,214
|
|
117
116
|
payi/types/shared/ingest_units.py,sha256=lehu0ICBECr-v0tF-HB-rRh0LoKGZh2D_Z2pVxD9cqA,274
|
|
118
117
|
payi/types/shared/pay_i_common_models_budget_management_cost_details_base.py,sha256=o8Szm4uiTnyZuW7D4rM5rzAAj6iAeSOA5gVMlMYfpmc,267
|
|
119
118
|
payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py,sha256=FDFCOvxG7Dep7oELqQATc_YWrRZ-Uh9WOpL2ZKPDQ6Q,482
|
|
119
|
+
payi/types/shared/properties_request.py,sha256=EeKHCy20XThmzLozH55_WId7jFvsn8enzSjyI1sJTZw,267
|
|
120
120
|
payi/types/shared/properties_response.py,sha256=HpFNtxl_OjoMCs24xPVZLKe3FwCVcNkcRs0LsQKLrHM,259
|
|
121
121
|
payi/types/shared/xproxy_error.py,sha256=I8dsEHZF_0dM-1YvZ6_mysRJuNlWJrQIHacs9yRaZCM,274
|
|
122
|
-
payi/types/shared/xproxy_result.py,sha256=
|
|
122
|
+
payi/types/shared/xproxy_result.py,sha256=gVIHPAgcmwOYJizXHCru8LJ1yxixPv3sL9T_3-86yI4,1428
|
|
123
123
|
payi/types/shared_params/__init__.py,sha256=dRGuNTZWLagRlbQfl5tKc0JMEYNRVXUad5oyl7IFeIU,317
|
|
124
124
|
payi/types/shared_params/ingest_units.py,sha256=ueGIq14EQRGIDQlIHCCParrDxh1TZ_Hjfx2GP3_19yA,267
|
|
125
125
|
payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py,sha256=LRDd9ORvHlVpe2a_5iDPl_7-WMxeYci11tCCpZ8NgOU,539
|
|
@@ -130,7 +130,7 @@ payi/types/use_cases/definition_update_params.py,sha256=nRhHHVUvEFYr_dtAESZcyxZN
|
|
|
130
130
|
payi/types/use_cases/kpi_list_params.py,sha256=lx8rGm1Ri9Qn7EsIhwb07-HLHbV1BWc904sJkmPhodI,316
|
|
131
131
|
payi/types/use_cases/kpi_list_response.py,sha256=6REE5-V5j2dxAOX6ShDpXTGvYAT6xIl4X1WBAx0apSY,561
|
|
132
132
|
payi/types/use_cases/kpi_update_params.py,sha256=TZvwDtS5VtngTnAR0bPPVoy8UD3YxjCVl5CEthPoYqc,346
|
|
133
|
-
payi/types/use_cases/property_update_params.py,sha256=
|
|
133
|
+
payi/types/use_cases/property_update_params.py,sha256=nWa3NRZS_3xDCFHehyX9OhQ7noDRvuD_J-SYvRacUus,348
|
|
134
134
|
payi/types/use_cases/use_case_definition.py,sha256=R2DMV9t1EZ4pStQhZSul8SFCyfqqQuAUoevlkFOg2Mc,579
|
|
135
135
|
payi/types/use_cases/definitions/__init__.py,sha256=xro0oPNhbIPOYx-6fvAINvaHL0kaCUMbALzrZmLeuwA,766
|
|
136
136
|
payi/types/use_cases/definitions/kpi_create_params.py,sha256=09jkxFxXJzguEJ3MxCwaa8X5_WcsUCjnWk3al6OJ_vM,447
|
|
@@ -142,7 +142,7 @@ payi/types/use_cases/definitions/kpi_retrieve_response.py,sha256=uQXliSvS3k-yDYw
|
|
|
142
142
|
payi/types/use_cases/definitions/kpi_update_params.py,sha256=jbawdWAdMnsTWVH0qfQGb8W7_TXe3lq4zjSRu44d8p8,373
|
|
143
143
|
payi/types/use_cases/definitions/kpi_update_response.py,sha256=zLyEoT0S8d7XHsnXZYT8tM7yDw0Aze0Mk-_Z6QeMtc8,459
|
|
144
144
|
payi/types/use_cases/definitions/limit_config_create_params.py,sha256=sodtLT84tBmuO_0d-h0CZWCh4vWojJMtUbMjBmEN3IE,492
|
|
145
|
-
payi-0.1.
|
|
146
|
-
payi-0.1.
|
|
147
|
-
payi-0.1.
|
|
148
|
-
payi-0.1.
|
|
145
|
+
payi-0.1.0a127.dist-info/METADATA,sha256=xMCqsthmMBTH7KwiZhJ9mDsfLR0v5m2obxMuNWX8Oeg,16324
|
|
146
|
+
payi-0.1.0a127.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
147
|
+
payi-0.1.0a127.dist-info/licenses/LICENSE,sha256=CQt03aM-P4a3Yg5qBg3JSLVoQS3smMyvx7tYg_6V7Gk,11334
|
|
148
|
+
payi-0.1.0a127.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 Union
|
|
6
|
-
from datetime import datetime
|
|
7
|
-
|
|
8
|
-
import httpx
|
|
9
|
-
|
|
10
|
-
from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, 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.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: SequenceNotStr[str],
|
|
53
|
-
cost_per_hour: float | Omit = omit,
|
|
54
|
-
start_timestamp: Union[str, datetime, None] | 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
|
-
) -> 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: SequenceNotStr[str],
|
|
121
|
-
cost_per_hour: float | Omit = omit,
|
|
122
|
-
start_timestamp: Union[str, datetime, None] | Omit = omit,
|
|
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
|
-
)
|
|
@@ -1,22 +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 Union
|
|
6
|
-
from datetime import datetime
|
|
7
|
-
from typing_extensions import Required, Annotated, TypedDict
|
|
8
|
-
|
|
9
|
-
from ..._types import SequenceNotStr
|
|
10
|
-
from ..._utils import PropertyInfo
|
|
11
|
-
|
|
12
|
-
__all__ = ["FixedCostResourceCreateParams"]
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class FixedCostResourceCreateParams(TypedDict, total=False):
|
|
16
|
-
category: Required[str]
|
|
17
|
-
|
|
18
|
-
units: Required[SequenceNotStr[str]]
|
|
19
|
-
|
|
20
|
-
cost_per_hour: float
|
|
21
|
-
|
|
22
|
-
start_timestamp: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
File without changes
|
|
File without changes
|