hyperstack 1.25.0a0__py3-none-any.whl → 1.41.0a0__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.
- hyperstack/__init__.py +79 -131
- hyperstack/api/__init__.py +2 -0
- hyperstack/api/alive_api.py +240 -0
- hyperstack/api/api_key_api.py +16 -20
- hyperstack/api/assigning_member_role_api.py +15 -17
- hyperstack/api/auth_api.py +1050 -5
- hyperstack/api/beta_access_api.py +856 -0
- hyperstack/api/billing_api.py +6461 -673
- hyperstack/api/calculate_api.py +8 -9
- hyperstack/api/callbacks_api.py +120 -126
- hyperstack/api/cluster_events_api.py +1 -2
- hyperstack/api/clusters_api.py +2492 -146
- hyperstack/api/compliance_api.py +14 -18
- hyperstack/api/credit_api.py +17 -15
- hyperstack/api/customer_contract_api.py +30 -33
- hyperstack/api/dashboard_api.py +4 -5
- hyperstack/api/deployment_api.py +4 -8
- hyperstack/api/environment_api.py +285 -16
- hyperstack/api/firewall_attachment_api.py +11 -9
- hyperstack/api/firewalls_api.py +341 -347
- hyperstack/api/flavor_api.py +4 -5
- hyperstack/api/floating_ip_api.py +50 -49
- hyperstack/api/gpu_api.py +1 -2
- hyperstack/api/image_api.py +35 -39
- hyperstack/api/invite_api.py +288 -18
- hyperstack/api/keypair_api.py +22 -26
- hyperstack/api/organization_api.py +12 -15
- hyperstack/api/partner_config_api.py +564 -0
- hyperstack/api/payment_api.py +299 -18
- hyperstack/api/permission_api.py +4 -5
- hyperstack/api/policy_api.py +4 -5
- hyperstack/api/pricebook_api.py +14 -12
- hyperstack/api/profile_api.py +13 -17
- hyperstack/api/rbac_role_api.py +20 -25
- hyperstack/api/region_api.py +7 -8
- hyperstack/api/security_rules_api.py +1 -2
- hyperstack/api/snapshot_events_api.py +1 -2
- hyperstack/api/snapshots_api.py +166 -172
- hyperstack/api/stock_api.py +4 -5
- hyperstack/api/template_api.py +14 -19
- hyperstack/api/user_api.py +55 -49
- hyperstack/api/user_detail_choice_api.py +1 -2
- hyperstack/api/user_permission_api.py +8 -10
- hyperstack/api/virtual_machine_api.py +1529 -929
- hyperstack/api/virtual_machine_events_api.py +21 -22
- hyperstack/api/vnc_url_api.py +54 -50
- hyperstack/api/volume_api.py +340 -40
- hyperstack/api/volume_attachment_api.py +342 -42
- hyperstack/api_client.py +1 -1
- hyperstack/configuration.py +1 -11
- hyperstack/models/__init__.py +76 -130
- hyperstack/models/{environment_fieldsfor_volume.py → access_token_field.py} +7 -7
- hyperstack/models/attach_volume_fields.py +6 -2
- hyperstack/models/attach_volumes_payload.py +4 -2
- hyperstack/models/{virtual_machine_usage.py → attachments_fields_for_volume.py} +13 -11
- hyperstack/models/{flavor_vm_fields.py → attributes.py} +15 -18
- hyperstack/models/auth_get_token_response_model.py +4 -6
- hyperstack/models/{future_node_model.py → beta_access_request_fields.py} +27 -25
- hyperstack/models/{create_gpu.py → beta_access_request_payload.py} +9 -11
- hyperstack/models/{create_discount_response.py → beta_access_request_response_model.py} +11 -11
- hyperstack/models/{export_billing_data_request.py → beta_access_status_item.py} +20 -23
- hyperstack/models/{get_all_discount_for_all_organization_response.py → beta_access_status_response_model.py} +15 -15
- hyperstack/models/{exclude_billing_post_response.py → billing_history.py} +13 -11
- hyperstack/models/billing_history_data_synthesis_details.py +105 -0
- hyperstack/models/{vm_usage_response.py → billing_history_fine_tuning.py} +23 -19
- hyperstack/models/billing_history_model_evalutation_details.py +105 -0
- hyperstack/models/{get_all_discounts_fields.py → billing_history_serverless_inference.py} +23 -24
- hyperstack/models/billing_history_serverless_inference_details.py +105 -0
- hyperstack/models/{billingmetricesfields.py → billing_metrices_fields.py} +4 -4
- hyperstack/models/{billingmetricesresponse.py → billing_metrices_response.py} +7 -7
- hyperstack/models/cluster_fields.py +27 -9
- hyperstack/models/{add_update_flavor_organization_payload.py → cluster_flavor_fields.py} +28 -26
- hyperstack/models/{historical_instances_fields.py → cluster_node_fields.py} +24 -22
- hyperstack/models/{internal_instance_flavor_fields.py → cluster_node_group_fields.py} +17 -17
- hyperstack/models/{create_update_policy_response_model.py → cluster_node_groups_create_response.py} +21 -11
- hyperstack/models/{create_update_permission_response_model.py → cluster_node_groups_get_response.py} +11 -11
- hyperstack/models/{auth_request_login_response_model.py → cluster_node_groups_list_response.py} +15 -11
- hyperstack/models/{contract_eligible_instance_fields.py → cluster_node_instance_fields.py} +13 -11
- hyperstack/models/{image_logos.py → cluster_nodes_list_response.py} +14 -14
- hyperstack/models/{internal_environment_fields.py → cluster_version.py} +13 -9
- hyperstack/models/cluster_versions.py +10 -2
- hyperstack/models/{future_nodes_stock_model.py → colors.py} +17 -15
- hyperstack/models/contract_discount_plan_fields.py +3 -1
- hyperstack/models/contract_instance_fields.py +7 -1
- hyperstack/models/{future_node_response_model.py → create_cluster_node_fields.py} +23 -18
- hyperstack/models/{update_gpu.py → create_cluster_node_group_payload.py} +12 -11
- hyperstack/models/create_cluster_payload.py +31 -8
- hyperstack/models/create_environment.py +1 -1
- hyperstack/models/create_instances_payload.py +7 -7
- hyperstack/models/create_profile_payload.py +1 -1
- hyperstack/models/create_snapshot_payload.py +2 -4
- hyperstack/models/create_volume_payload.py +1 -1
- hyperstack/models/data_synthesis_billing_history_details_response_schema.py +95 -0
- hyperstack/models/{deployment_fieldsforstartdeployments.py → deployment_fields_for_start_deployments.py} +4 -4
- hyperstack/models/{editlabelofanexisting_vm_payload.py → edit_label_of_an_existing_vm_payload.py} +4 -4
- hyperstack/models/environment_features.py +14 -2
- hyperstack/models/{node_stocks_payload.py → environment_fields_for_volume.py} +10 -12
- hyperstack/models/flavor_fields.py +3 -1
- hyperstack/models/{customer_fields.py → flavor_label_fields.py} +7 -7
- hyperstack/models/{getcreditandthresholdinfo.py → get_credit_and_threshold_info.py} +4 -4
- hyperstack/models/{getcreditandthresholdinfoinresponse.py → get_credit_and_threshold_info_in_response.py} +7 -7
- hyperstack/models/{region_payload.py → get_instance_logs_response.py} +7 -9
- hyperstack/models/instance_fields.py +8 -4
- hyperstack/models/instance_flavor_fields.py +13 -1
- hyperstack/models/{flavor_response.py → keypair_environment_features.py} +20 -16
- hyperstack/models/{internal_instance_keypair_fields.py → keypair_environment_fields.py} +13 -11
- hyperstack/models/keypair_fields.py +6 -2
- hyperstack/models/{lastdaycostfields.py → last_day_cost_fields.py} +4 -4
- hyperstack/models/{lastdaycostresponse.py → last_day_cost_response.py} +7 -7
- hyperstack/models/{export_billing_data_response.py → logos.py} +13 -9
- hyperstack/models/{creditrequestresponse.py → master_flavors_response.py} +14 -14
- hyperstack/models/{customer_payload.py → mfa_status_fields.py} +8 -10
- hyperstack/models/{gpu.py → mfa_status_response.py} +11 -11
- hyperstack/models/model_evaluation_billing_history_details_response_schema.py +95 -0
- hyperstack/models/{organization_thresholdfields.py → organization_threshold_fields.py} +4 -4
- hyperstack/models/{organizationthresholdupdateresponse.py → organization_threshold_update_response.py} +7 -7
- hyperstack/models/{organizationthresholdsresponse.py → organization_thresholds_response.py} +7 -7
- hyperstack/models/{logo_get_response.py → pagination.py} +12 -12
- hyperstack/models/{billing_response.py → partner_config.py} +31 -20
- hyperstack/models/payment_details_fields.py +5 -1
- hyperstack/models/{logout_payload.py → primary_color.py} +10 -8
- hyperstack/models/region_fields.py +16 -2
- hyperstack/models/{vm_usage_request_payload.py → request_instance_logs_payload.py} +8 -8
- hyperstack/models/{stock_visibility_user_payload.py → request_instance_logs_response.py} +8 -8
- hyperstack/models/{contract_billing_history.py → resource_level_billing_bucket_details_resources.py} +10 -10
- hyperstack/models/{node_response_model.py → resource_level_billing_history_resources_cluster.py} +21 -11
- hyperstack/models/resource_level_billing_history_response_attributes.py +3 -1
- hyperstack/models/{get_all_contracts_response_model.py → resource_level_bucket_billing_details_response_model.py} +11 -15
- hyperstack/models/{contract_billing_history_response_model.py → resource_level_bucket_billing_history_response_model.py} +11 -11
- hyperstack/models/resource_level_cluster_billing_details_response_model.py +95 -0
- hyperstack/models/resource_level_cluster_billing_history_response_model.py +95 -0
- hyperstack/models/{get_discount_detail_response.py → resource_level_cluster_graph_billing_details_response_model.py} +11 -11
- hyperstack/models/{organization_object_response.py → resource_level_graph_billing_details_bucket.py} +18 -14
- hyperstack/models/{update_discounts_status_payload.py → secondary_color.py} +10 -8
- hyperstack/models/{security_rules_fieldsfor_instance.py → security_rules_fields_for_instance.py} +4 -4
- hyperstack/models/serverless_inferenced_billing_history_details_response_schema.py +95 -0
- hyperstack/models/snapshot_fields.py +6 -1
- hyperstack/models/snapshot_retrieve_fields.py +29 -2
- hyperstack/models/start_deployment.py +3 -3
- hyperstack/models/{subscribeorunsubscribeupdatepayload.py → subscribe_or_unsubscribe_update_payload.py} +4 -4
- hyperstack/models/token_based_billing_history_response.py +95 -0
- hyperstack/models/{update_keypairnameresponse.py → update_keypair_name_response.py} +4 -4
- hyperstack/models/update_volume_attachment_payload.py +87 -0
- hyperstack/models/{verify_api_key_payload.py → update_volume_payload.py} +7 -7
- hyperstack/models/{stock_visibility_user_list_response.py → update_volume_response.py} +14 -16
- hyperstack/models/{auth_request_login_fields.py → uris.py} +19 -9
- hyperstack/models/{userinfopostpayload.py → user_info_post_payload.py} +4 -4
- hyperstack/models/{node_stock_response_model.py → user_organizations_response.py} +14 -14
- hyperstack/models/users_info_fields.py +3 -1
- hyperstack/models/volume_attachment_fields.py +9 -5
- hyperstack/models/volume_fields.py +14 -4
- hyperstack/models/{volume_fieldsfor_instance.py → volume_fields_for_instance.py} +4 -4
- hyperstack/models/volumes.py +17 -11
- hyperstack/models/{instances_summary_fields.py → volumes_fields.py} +33 -29
- hyperstack/models/workload_billing_history_response.py +95 -0
- {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.0a0.dist-info}/METADATA +2 -2
- hyperstack-1.41.0a0.dist-info/RECORD +349 -0
- {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.0a0.dist-info}/WHEEL +1 -1
- hyperstack/models/api_key_verify_fields.py +0 -93
- hyperstack/models/billing_immune_resources_response.py +0 -95
- hyperstack/models/contract_billing_history_response_attributes.py +0 -99
- hyperstack/models/contract_change_payload.py +0 -101
- hyperstack/models/contract_eligible_instances_response.py +0 -101
- hyperstack/models/contract_event_create_model.py +0 -91
- hyperstack/models/contract_resource_payload.py +0 -95
- hyperstack/models/contractl_billing_history_response_metrics.py +0 -87
- hyperstack/models/create_contract_fields.py +0 -110
- hyperstack/models/create_contract_payload.py +0 -106
- hyperstack/models/create_discounts_payload.py +0 -112
- hyperstack/models/create_update_permission_payload.py +0 -93
- hyperstack/models/create_update_policy_payload.py +0 -93
- hyperstack/models/creditrechargelimitfield.py +0 -93
- hyperstack/models/creditrechargelimitresponse.py +0 -99
- hyperstack/models/creditrequests.py +0 -96
- hyperstack/models/data.py +0 -91
- hyperstack/models/discount_entity_model.py +0 -97
- hyperstack/models/discount_fields.py +0 -100
- hyperstack/models/discount_plan_fields.py +0 -108
- hyperstack/models/discount_resource_fields.py +0 -93
- hyperstack/models/discount_resource_payload.py +0 -93
- hyperstack/models/exclude_billing_post_payload.py +0 -91
- hyperstack/models/field_change.py +0 -91
- hyperstack/models/flavor_payload.py +0 -101
- hyperstack/models/flavor_vms_response.py +0 -99
- hyperstack/models/future_node_stock_model.py +0 -93
- hyperstack/models/future_node_update_model.py +0 -98
- hyperstack/models/get_all_contract_fields.py +0 -100
- hyperstack/models/get_discount_response.py +0 -99
- hyperstack/models/get_entity_discount_detail_response.py +0 -108
- hyperstack/models/get_token_payload.py +0 -89
- hyperstack/models/get_version_response.py +0 -91
- hyperstack/models/historical_instance.py +0 -101
- hyperstack/models/infrahub_resource_object_response.py +0 -119
- hyperstack/models/insert_discount_plan_fields.py +0 -112
- hyperstack/models/internal_instance_fields.py +0 -156
- hyperstack/models/internal_instance_image_fields.py +0 -95
- hyperstack/models/internal_instances_response.py +0 -99
- hyperstack/models/internal_security_rules_fields_for_instance.py +0 -104
- hyperstack/models/internal_volume_attachment_fields.py +0 -98
- hyperstack/models/internal_volume_fields.py +0 -95
- hyperstack/models/internal_volumes_response.py +0 -99
- hyperstack/models/new_stock_update_response_model.py +0 -89
- hyperstack/models/node_model.py +0 -114
- hyperstack/models/node_payload_model.py +0 -97
- hyperstack/models/node_power_usage_model.py +0 -120
- hyperstack/models/node_stock_payload_model.py +0 -95
- hyperstack/models/organizationcreditrechargelimitresponse.py +0 -95
- hyperstack/models/power_usage_model.py +0 -89
- hyperstack/models/pricebook_resource_object_response.py +0 -107
- hyperstack/models/refresh_token_payload.py +0 -89
- hyperstack/models/region_response.py +0 -95
- hyperstack/models/set_defaults_payload.py +0 -89
- hyperstack/models/single_visibility_user_response.py +0 -91
- hyperstack/models/success_response_model.py +0 -89
- hyperstack/models/token_fields.py +0 -91
- hyperstack/models/update_contract_payload.py +0 -104
- hyperstack/models/update_discounts_payload.py +0 -102
- hyperstack/models/user_transfer_payload.py +0 -89
- hyperstack/models/verify_api_key_response_model.py +0 -95
- hyperstack/models/volume_status_change_fields.py +0 -96
- hyperstack/models/volumes_last_status_change_response.py +0 -99
- hyperstack/models/warning_mail_log_fields.py +0 -99
- hyperstack/models/warning_mail_log_response.py +0 -101
- hyperstack-1.25.0a0.dist-info/RECORD +0 -401
- {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.0a0.dist-info}/top_level.txt +0 -0
hyperstack/api/payment_api.py
CHANGED
|
@@ -16,6 +16,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
+
from pydantic import StrictStr
|
|
19
20
|
from ..models.payment_details_response import PaymentDetailsResponse
|
|
20
21
|
from ..models.payment_initiate_payload import PaymentInitiatePayload
|
|
21
22
|
from ..models.payment_initiate_response import PaymentInitiateResponse
|
|
@@ -39,7 +40,7 @@ class PaymentApi:
|
|
|
39
40
|
|
|
40
41
|
|
|
41
42
|
@validate_call
|
|
42
|
-
def
|
|
43
|
+
def get_details(
|
|
43
44
|
self,
|
|
44
45
|
_request_timeout: Union[
|
|
45
46
|
None,
|
|
@@ -56,6 +57,7 @@ class PaymentApi:
|
|
|
56
57
|
) -> PaymentDetailsResponse:
|
|
57
58
|
"""GET: View payment details
|
|
58
59
|
|
|
60
|
+
Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](None/docs/api-reference/billing-resources/retrieve-payment-history/).
|
|
59
61
|
|
|
60
62
|
:param _request_timeout: timeout setting for this request. If one
|
|
61
63
|
number provided, it will be total request
|
|
@@ -79,7 +81,7 @@ class PaymentApi:
|
|
|
79
81
|
:return: Returns the result object.
|
|
80
82
|
""" # noqa: E501
|
|
81
83
|
|
|
82
|
-
_param = self.
|
|
84
|
+
_param = self._get_details_serialize(
|
|
83
85
|
_request_auth=_request_auth,
|
|
84
86
|
_content_type=_content_type,
|
|
85
87
|
_headers=_headers,
|
|
@@ -106,7 +108,7 @@ class PaymentApi:
|
|
|
106
108
|
|
|
107
109
|
|
|
108
110
|
@validate_call
|
|
109
|
-
def
|
|
111
|
+
def get_details_with_http_info(
|
|
110
112
|
self,
|
|
111
113
|
_request_timeout: Union[
|
|
112
114
|
None,
|
|
@@ -123,6 +125,7 @@ class PaymentApi:
|
|
|
123
125
|
) -> ApiResponse[PaymentDetailsResponse]:
|
|
124
126
|
"""GET: View payment details
|
|
125
127
|
|
|
128
|
+
Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](None/docs/api-reference/billing-resources/retrieve-payment-history/).
|
|
126
129
|
|
|
127
130
|
:param _request_timeout: timeout setting for this request. If one
|
|
128
131
|
number provided, it will be total request
|
|
@@ -146,7 +149,7 @@ class PaymentApi:
|
|
|
146
149
|
:return: Returns the result object.
|
|
147
150
|
""" # noqa: E501
|
|
148
151
|
|
|
149
|
-
_param = self.
|
|
152
|
+
_param = self._get_details_serialize(
|
|
150
153
|
_request_auth=_request_auth,
|
|
151
154
|
_content_type=_content_type,
|
|
152
155
|
_headers=_headers,
|
|
@@ -173,7 +176,7 @@ class PaymentApi:
|
|
|
173
176
|
|
|
174
177
|
|
|
175
178
|
@validate_call
|
|
176
|
-
def
|
|
179
|
+
def get_details_without_preload_content(
|
|
177
180
|
self,
|
|
178
181
|
_request_timeout: Union[
|
|
179
182
|
None,
|
|
@@ -190,6 +193,7 @@ class PaymentApi:
|
|
|
190
193
|
) -> RESTResponseType:
|
|
191
194
|
"""GET: View payment details
|
|
192
195
|
|
|
196
|
+
Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](None/docs/api-reference/billing-resources/retrieve-payment-history/).
|
|
193
197
|
|
|
194
198
|
:param _request_timeout: timeout setting for this request. If one
|
|
195
199
|
number provided, it will be total request
|
|
@@ -213,7 +217,7 @@ class PaymentApi:
|
|
|
213
217
|
:return: Returns the result object.
|
|
214
218
|
""" # noqa: E501
|
|
215
219
|
|
|
216
|
-
_param = self.
|
|
220
|
+
_param = self._get_details_serialize(
|
|
217
221
|
_request_auth=_request_auth,
|
|
218
222
|
_content_type=_content_type,
|
|
219
223
|
_headers=_headers,
|
|
@@ -235,7 +239,7 @@ class PaymentApi:
|
|
|
235
239
|
return response_data.response
|
|
236
240
|
|
|
237
241
|
|
|
238
|
-
def
|
|
242
|
+
def _get_details_serialize(
|
|
239
243
|
self,
|
|
240
244
|
_request_auth,
|
|
241
245
|
_content_type,
|
|
@@ -275,8 +279,7 @@ class PaymentApi:
|
|
|
275
279
|
|
|
276
280
|
# authentication setting
|
|
277
281
|
_auth_settings: List[str] = [
|
|
278
|
-
'apiKey'
|
|
279
|
-
'accessToken'
|
|
282
|
+
'apiKey'
|
|
280
283
|
]
|
|
281
284
|
|
|
282
285
|
return self.api_client.param_serialize(
|
|
@@ -298,7 +301,283 @@ class PaymentApi:
|
|
|
298
301
|
|
|
299
302
|
|
|
300
303
|
@validate_call
|
|
301
|
-
def
|
|
304
|
+
def get_payment_receipt2(
|
|
305
|
+
self,
|
|
306
|
+
payment_id: StrictStr,
|
|
307
|
+
_request_timeout: Union[
|
|
308
|
+
None,
|
|
309
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
310
|
+
Tuple[
|
|
311
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
312
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
313
|
+
]
|
|
314
|
+
] = None,
|
|
315
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
316
|
+
_content_type: Optional[StrictStr] = None,
|
|
317
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
318
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
319
|
+
) -> None:
|
|
320
|
+
"""Retrieve Payment Receipt
|
|
321
|
+
|
|
322
|
+
Retrieve the payment receipt from Stripe for a specific payment
|
|
323
|
+
|
|
324
|
+
:param payment_id: (required)
|
|
325
|
+
:type payment_id: str
|
|
326
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
327
|
+
number provided, it will be total request
|
|
328
|
+
timeout. It can also be a pair (tuple) of
|
|
329
|
+
(connection, read) timeouts.
|
|
330
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
331
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
332
|
+
request; this effectively ignores the
|
|
333
|
+
authentication in the spec for a single request.
|
|
334
|
+
:type _request_auth: dict, optional
|
|
335
|
+
:param _content_type: force content-type for the request.
|
|
336
|
+
:type _content_type: str, Optional
|
|
337
|
+
:param _headers: set to override the headers for a single
|
|
338
|
+
request; this effectively ignores the headers
|
|
339
|
+
in the spec for a single request.
|
|
340
|
+
:type _headers: dict, optional
|
|
341
|
+
:param _host_index: set to override the host_index for a single
|
|
342
|
+
request; this effectively ignores the host_index
|
|
343
|
+
in the spec for a single request.
|
|
344
|
+
:type _host_index: int, optional
|
|
345
|
+
:return: Returns the result object.
|
|
346
|
+
""" # noqa: E501
|
|
347
|
+
|
|
348
|
+
_param = self._get_payment_receipt2_serialize(
|
|
349
|
+
payment_id=payment_id,
|
|
350
|
+
_request_auth=_request_auth,
|
|
351
|
+
_content_type=_content_type,
|
|
352
|
+
_headers=_headers,
|
|
353
|
+
_host_index=_host_index
|
|
354
|
+
)
|
|
355
|
+
|
|
356
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
357
|
+
'200': None,
|
|
358
|
+
'400': "ErrorResponseModel",
|
|
359
|
+
'401': "ErrorResponseModel",
|
|
360
|
+
'403': "ErrorResponseModel",
|
|
361
|
+
'404': "ErrorResponseModel",
|
|
362
|
+
'500': None,
|
|
363
|
+
}
|
|
364
|
+
response_data = self.api_client.call_api(
|
|
365
|
+
*_param,
|
|
366
|
+
_request_timeout=_request_timeout
|
|
367
|
+
)
|
|
368
|
+
response_data.read()
|
|
369
|
+
return self.api_client.response_deserialize(
|
|
370
|
+
response_data=response_data,
|
|
371
|
+
response_types_map=_response_types_map,
|
|
372
|
+
).data
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
@validate_call
|
|
376
|
+
def get_payment_receipt2_with_http_info(
|
|
377
|
+
self,
|
|
378
|
+
payment_id: StrictStr,
|
|
379
|
+
_request_timeout: Union[
|
|
380
|
+
None,
|
|
381
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
382
|
+
Tuple[
|
|
383
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
384
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
385
|
+
]
|
|
386
|
+
] = None,
|
|
387
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
388
|
+
_content_type: Optional[StrictStr] = None,
|
|
389
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
390
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
391
|
+
) -> ApiResponse[None]:
|
|
392
|
+
"""Retrieve Payment Receipt
|
|
393
|
+
|
|
394
|
+
Retrieve the payment receipt from Stripe for a specific payment
|
|
395
|
+
|
|
396
|
+
:param payment_id: (required)
|
|
397
|
+
:type payment_id: str
|
|
398
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
399
|
+
number provided, it will be total request
|
|
400
|
+
timeout. It can also be a pair (tuple) of
|
|
401
|
+
(connection, read) timeouts.
|
|
402
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
403
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
404
|
+
request; this effectively ignores the
|
|
405
|
+
authentication in the spec for a single request.
|
|
406
|
+
:type _request_auth: dict, optional
|
|
407
|
+
:param _content_type: force content-type for the request.
|
|
408
|
+
:type _content_type: str, Optional
|
|
409
|
+
:param _headers: set to override the headers for a single
|
|
410
|
+
request; this effectively ignores the headers
|
|
411
|
+
in the spec for a single request.
|
|
412
|
+
:type _headers: dict, optional
|
|
413
|
+
:param _host_index: set to override the host_index for a single
|
|
414
|
+
request; this effectively ignores the host_index
|
|
415
|
+
in the spec for a single request.
|
|
416
|
+
:type _host_index: int, optional
|
|
417
|
+
:return: Returns the result object.
|
|
418
|
+
""" # noqa: E501
|
|
419
|
+
|
|
420
|
+
_param = self._get_payment_receipt2_serialize(
|
|
421
|
+
payment_id=payment_id,
|
|
422
|
+
_request_auth=_request_auth,
|
|
423
|
+
_content_type=_content_type,
|
|
424
|
+
_headers=_headers,
|
|
425
|
+
_host_index=_host_index
|
|
426
|
+
)
|
|
427
|
+
|
|
428
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
429
|
+
'200': None,
|
|
430
|
+
'400': "ErrorResponseModel",
|
|
431
|
+
'401': "ErrorResponseModel",
|
|
432
|
+
'403': "ErrorResponseModel",
|
|
433
|
+
'404': "ErrorResponseModel",
|
|
434
|
+
'500': None,
|
|
435
|
+
}
|
|
436
|
+
response_data = self.api_client.call_api(
|
|
437
|
+
*_param,
|
|
438
|
+
_request_timeout=_request_timeout
|
|
439
|
+
)
|
|
440
|
+
response_data.read()
|
|
441
|
+
return self.api_client.response_deserialize(
|
|
442
|
+
response_data=response_data,
|
|
443
|
+
response_types_map=_response_types_map,
|
|
444
|
+
)
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
@validate_call
|
|
448
|
+
def get_payment_receipt2_without_preload_content(
|
|
449
|
+
self,
|
|
450
|
+
payment_id: StrictStr,
|
|
451
|
+
_request_timeout: Union[
|
|
452
|
+
None,
|
|
453
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
454
|
+
Tuple[
|
|
455
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
456
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
457
|
+
]
|
|
458
|
+
] = None,
|
|
459
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
460
|
+
_content_type: Optional[StrictStr] = None,
|
|
461
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
462
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
463
|
+
) -> RESTResponseType:
|
|
464
|
+
"""Retrieve Payment Receipt
|
|
465
|
+
|
|
466
|
+
Retrieve the payment receipt from Stripe for a specific payment
|
|
467
|
+
|
|
468
|
+
:param payment_id: (required)
|
|
469
|
+
:type payment_id: str
|
|
470
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
471
|
+
number provided, it will be total request
|
|
472
|
+
timeout. It can also be a pair (tuple) of
|
|
473
|
+
(connection, read) timeouts.
|
|
474
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
475
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
476
|
+
request; this effectively ignores the
|
|
477
|
+
authentication in the spec for a single request.
|
|
478
|
+
:type _request_auth: dict, optional
|
|
479
|
+
:param _content_type: force content-type for the request.
|
|
480
|
+
:type _content_type: str, Optional
|
|
481
|
+
:param _headers: set to override the headers for a single
|
|
482
|
+
request; this effectively ignores the headers
|
|
483
|
+
in the spec for a single request.
|
|
484
|
+
:type _headers: dict, optional
|
|
485
|
+
:param _host_index: set to override the host_index for a single
|
|
486
|
+
request; this effectively ignores the host_index
|
|
487
|
+
in the spec for a single request.
|
|
488
|
+
:type _host_index: int, optional
|
|
489
|
+
:return: Returns the result object.
|
|
490
|
+
""" # noqa: E501
|
|
491
|
+
|
|
492
|
+
_param = self._get_payment_receipt2_serialize(
|
|
493
|
+
payment_id=payment_id,
|
|
494
|
+
_request_auth=_request_auth,
|
|
495
|
+
_content_type=_content_type,
|
|
496
|
+
_headers=_headers,
|
|
497
|
+
_host_index=_host_index
|
|
498
|
+
)
|
|
499
|
+
|
|
500
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
501
|
+
'200': None,
|
|
502
|
+
'400': "ErrorResponseModel",
|
|
503
|
+
'401': "ErrorResponseModel",
|
|
504
|
+
'403': "ErrorResponseModel",
|
|
505
|
+
'404': "ErrorResponseModel",
|
|
506
|
+
'500': None,
|
|
507
|
+
}
|
|
508
|
+
response_data = self.api_client.call_api(
|
|
509
|
+
*_param,
|
|
510
|
+
_request_timeout=_request_timeout
|
|
511
|
+
)
|
|
512
|
+
return response_data.response
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
def _get_payment_receipt2_serialize(
|
|
516
|
+
self,
|
|
517
|
+
payment_id,
|
|
518
|
+
_request_auth,
|
|
519
|
+
_content_type,
|
|
520
|
+
_headers,
|
|
521
|
+
_host_index,
|
|
522
|
+
) -> RequestSerialized:
|
|
523
|
+
|
|
524
|
+
_host = None
|
|
525
|
+
|
|
526
|
+
_collection_formats: Dict[str, str] = {
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
_path_params: Dict[str, str] = {}
|
|
530
|
+
_query_params: List[Tuple[str, str]] = []
|
|
531
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
532
|
+
_form_params: List[Tuple[str, str]] = []
|
|
533
|
+
_files: Dict[
|
|
534
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
535
|
+
] = {}
|
|
536
|
+
_body_params: Optional[bytes] = None
|
|
537
|
+
|
|
538
|
+
# process the path parameters
|
|
539
|
+
if payment_id is not None:
|
|
540
|
+
_path_params['payment_id'] = payment_id
|
|
541
|
+
# process the query parameters
|
|
542
|
+
# process the header parameters
|
|
543
|
+
# process the form parameters
|
|
544
|
+
# process the body parameter
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
# set the HTTP header `Accept`
|
|
548
|
+
if 'Accept' not in _header_params:
|
|
549
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
550
|
+
[
|
|
551
|
+
'application/json'
|
|
552
|
+
]
|
|
553
|
+
)
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
# authentication setting
|
|
557
|
+
_auth_settings: List[str] = [
|
|
558
|
+
'apiKey'
|
|
559
|
+
]
|
|
560
|
+
|
|
561
|
+
return self.api_client.param_serialize(
|
|
562
|
+
method='GET',
|
|
563
|
+
resource_path='/billing/payment/receipt/{payment_id}',
|
|
564
|
+
path_params=_path_params,
|
|
565
|
+
query_params=_query_params,
|
|
566
|
+
header_params=_header_params,
|
|
567
|
+
body=_body_params,
|
|
568
|
+
post_params=_form_params,
|
|
569
|
+
files=_files,
|
|
570
|
+
auth_settings=_auth_settings,
|
|
571
|
+
collection_formats=_collection_formats,
|
|
572
|
+
_host=_host,
|
|
573
|
+
_request_auth=_request_auth
|
|
574
|
+
)
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
@validate_call
|
|
580
|
+
def post_payment(
|
|
302
581
|
self,
|
|
303
582
|
payload: PaymentInitiatePayload,
|
|
304
583
|
_request_timeout: Union[
|
|
@@ -316,6 +595,7 @@ class PaymentApi:
|
|
|
316
595
|
) -> PaymentInitiateResponse:
|
|
317
596
|
"""POST: Initiate payment
|
|
318
597
|
|
|
598
|
+
Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](None/docs/api-reference/billing-resources/create-payment).
|
|
319
599
|
|
|
320
600
|
:param payload: (required)
|
|
321
601
|
:type payload: PaymentInitiatePayload
|
|
@@ -341,7 +621,7 @@ class PaymentApi:
|
|
|
341
621
|
:return: Returns the result object.
|
|
342
622
|
""" # noqa: E501
|
|
343
623
|
|
|
344
|
-
_param = self.
|
|
624
|
+
_param = self._post_payment_serialize(
|
|
345
625
|
payload=payload,
|
|
346
626
|
_request_auth=_request_auth,
|
|
347
627
|
_content_type=_content_type,
|
|
@@ -369,7 +649,7 @@ class PaymentApi:
|
|
|
369
649
|
|
|
370
650
|
|
|
371
651
|
@validate_call
|
|
372
|
-
def
|
|
652
|
+
def post_payment_with_http_info(
|
|
373
653
|
self,
|
|
374
654
|
payload: PaymentInitiatePayload,
|
|
375
655
|
_request_timeout: Union[
|
|
@@ -387,6 +667,7 @@ class PaymentApi:
|
|
|
387
667
|
) -> ApiResponse[PaymentInitiateResponse]:
|
|
388
668
|
"""POST: Initiate payment
|
|
389
669
|
|
|
670
|
+
Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](None/docs/api-reference/billing-resources/create-payment).
|
|
390
671
|
|
|
391
672
|
:param payload: (required)
|
|
392
673
|
:type payload: PaymentInitiatePayload
|
|
@@ -412,7 +693,7 @@ class PaymentApi:
|
|
|
412
693
|
:return: Returns the result object.
|
|
413
694
|
""" # noqa: E501
|
|
414
695
|
|
|
415
|
-
_param = self.
|
|
696
|
+
_param = self._post_payment_serialize(
|
|
416
697
|
payload=payload,
|
|
417
698
|
_request_auth=_request_auth,
|
|
418
699
|
_content_type=_content_type,
|
|
@@ -440,7 +721,7 @@ class PaymentApi:
|
|
|
440
721
|
|
|
441
722
|
|
|
442
723
|
@validate_call
|
|
443
|
-
def
|
|
724
|
+
def post_payment_without_preload_content(
|
|
444
725
|
self,
|
|
445
726
|
payload: PaymentInitiatePayload,
|
|
446
727
|
_request_timeout: Union[
|
|
@@ -458,6 +739,7 @@ class PaymentApi:
|
|
|
458
739
|
) -> RESTResponseType:
|
|
459
740
|
"""POST: Initiate payment
|
|
460
741
|
|
|
742
|
+
Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](None/docs/api-reference/billing-resources/create-payment).
|
|
461
743
|
|
|
462
744
|
:param payload: (required)
|
|
463
745
|
:type payload: PaymentInitiatePayload
|
|
@@ -483,7 +765,7 @@ class PaymentApi:
|
|
|
483
765
|
:return: Returns the result object.
|
|
484
766
|
""" # noqa: E501
|
|
485
767
|
|
|
486
|
-
_param = self.
|
|
768
|
+
_param = self._post_payment_serialize(
|
|
487
769
|
payload=payload,
|
|
488
770
|
_request_auth=_request_auth,
|
|
489
771
|
_content_type=_content_type,
|
|
@@ -506,7 +788,7 @@ class PaymentApi:
|
|
|
506
788
|
return response_data.response
|
|
507
789
|
|
|
508
790
|
|
|
509
|
-
def
|
|
791
|
+
def _post_payment_serialize(
|
|
510
792
|
self,
|
|
511
793
|
payload,
|
|
512
794
|
_request_auth,
|
|
@@ -562,8 +844,7 @@ class PaymentApi:
|
|
|
562
844
|
|
|
563
845
|
# authentication setting
|
|
564
846
|
_auth_settings: List[str] = [
|
|
565
|
-
'apiKey'
|
|
566
|
-
'accessToken'
|
|
847
|
+
'apiKey'
|
|
567
848
|
]
|
|
568
849
|
|
|
569
850
|
return self.api_client.param_serialize(
|
hyperstack/api/permission_api.py
CHANGED
|
@@ -54,7 +54,7 @@ class PermissionApi:
|
|
|
54
54
|
) -> GetPermissionsResponseModel:
|
|
55
55
|
"""List Permissions
|
|
56
56
|
|
|
57
|
-
Retrieves a list of permissions that users can be granted to access a particular resource action. For additional information on permissions, [click here](https://
|
|
57
|
+
Retrieves a list of permissions that users can be granted to access a particular resource action. For additional information on permissions, [click here](https://docs...cloud/docs/api-reference/auth-resources/permission/permissions).
|
|
58
58
|
|
|
59
59
|
:param _request_timeout: timeout setting for this request. If one
|
|
60
60
|
number provided, it will be total request
|
|
@@ -120,7 +120,7 @@ class PermissionApi:
|
|
|
120
120
|
) -> ApiResponse[GetPermissionsResponseModel]:
|
|
121
121
|
"""List Permissions
|
|
122
122
|
|
|
123
|
-
Retrieves a list of permissions that users can be granted to access a particular resource action. For additional information on permissions, [click here](https://
|
|
123
|
+
Retrieves a list of permissions that users can be granted to access a particular resource action. For additional information on permissions, [click here](https://docs...cloud/docs/api-reference/auth-resources/permission/permissions).
|
|
124
124
|
|
|
125
125
|
:param _request_timeout: timeout setting for this request. If one
|
|
126
126
|
number provided, it will be total request
|
|
@@ -186,7 +186,7 @@ class PermissionApi:
|
|
|
186
186
|
) -> RESTResponseType:
|
|
187
187
|
"""List Permissions
|
|
188
188
|
|
|
189
|
-
Retrieves a list of permissions that users can be granted to access a particular resource action. For additional information on permissions, [click here](https://
|
|
189
|
+
Retrieves a list of permissions that users can be granted to access a particular resource action. For additional information on permissions, [click here](https://docs...cloud/docs/api-reference/auth-resources/permission/permissions).
|
|
190
190
|
|
|
191
191
|
:param _request_timeout: timeout setting for this request. If one
|
|
192
192
|
number provided, it will be total request
|
|
@@ -270,8 +270,7 @@ class PermissionApi:
|
|
|
270
270
|
|
|
271
271
|
# authentication setting
|
|
272
272
|
_auth_settings: List[str] = [
|
|
273
|
-
'apiKey'
|
|
274
|
-
'accessToken'
|
|
273
|
+
'apiKey'
|
|
275
274
|
]
|
|
276
275
|
|
|
277
276
|
return self.api_client.param_serialize(
|
hyperstack/api/policy_api.py
CHANGED
|
@@ -54,7 +54,7 @@ class PolicyApi:
|
|
|
54
54
|
) -> GetPoliciesResponseModel:
|
|
55
55
|
"""List Policies
|
|
56
56
|
|
|
57
|
-
Retrieves a list of policies available for addition to RBAC roles. For additional information on policies, [click here](https://
|
|
57
|
+
Retrieves a list of policies available for addition to RBAC roles. For additional information on policies, [click here](https://docs...cloud/docs/api-reference/auth-resources/policies).
|
|
58
58
|
|
|
59
59
|
:param _request_timeout: timeout setting for this request. If one
|
|
60
60
|
number provided, it will be total request
|
|
@@ -120,7 +120,7 @@ class PolicyApi:
|
|
|
120
120
|
) -> ApiResponse[GetPoliciesResponseModel]:
|
|
121
121
|
"""List Policies
|
|
122
122
|
|
|
123
|
-
Retrieves a list of policies available for addition to RBAC roles. For additional information on policies, [click here](https://
|
|
123
|
+
Retrieves a list of policies available for addition to RBAC roles. For additional information on policies, [click here](https://docs...cloud/docs/api-reference/auth-resources/policies).
|
|
124
124
|
|
|
125
125
|
:param _request_timeout: timeout setting for this request. If one
|
|
126
126
|
number provided, it will be total request
|
|
@@ -186,7 +186,7 @@ class PolicyApi:
|
|
|
186
186
|
) -> RESTResponseType:
|
|
187
187
|
"""List Policies
|
|
188
188
|
|
|
189
|
-
Retrieves a list of policies available for addition to RBAC roles. For additional information on policies, [click here](https://
|
|
189
|
+
Retrieves a list of policies available for addition to RBAC roles. For additional information on policies, [click here](https://docs...cloud/docs/api-reference/auth-resources/policies).
|
|
190
190
|
|
|
191
191
|
:param _request_timeout: timeout setting for this request. If one
|
|
192
192
|
number provided, it will be total request
|
|
@@ -270,8 +270,7 @@ class PolicyApi:
|
|
|
270
270
|
|
|
271
271
|
# authentication setting
|
|
272
272
|
_auth_settings: List[str] = [
|
|
273
|
-
'apiKey'
|
|
274
|
-
'accessToken'
|
|
273
|
+
'apiKey'
|
|
275
274
|
]
|
|
276
275
|
|
|
277
276
|
return self.api_client.param_serialize(
|
hyperstack/api/pricebook_api.py
CHANGED
|
@@ -38,7 +38,7 @@ class PricebookApi:
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
@validate_call
|
|
41
|
-
def
|
|
41
|
+
def get_pricebook(
|
|
42
42
|
self,
|
|
43
43
|
_request_timeout: Union[
|
|
44
44
|
None,
|
|
@@ -53,8 +53,9 @@ class PricebookApi:
|
|
|
53
53
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
54
54
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
55
55
|
) -> List[PricebookModel]:
|
|
56
|
-
"""
|
|
56
|
+
"""get_pricebook
|
|
57
57
|
|
|
58
|
+
Retrieves the Infrahub Pricebook, detailing hourly running costs for all resources offered by Infrahub. For more information on Pricebook [**click here**](None/docs/api-reference/pricebook-resources/pricebook/).
|
|
58
59
|
|
|
59
60
|
:param _request_timeout: timeout setting for this request. If one
|
|
60
61
|
number provided, it will be total request
|
|
@@ -78,7 +79,7 @@ class PricebookApi:
|
|
|
78
79
|
:return: Returns the result object.
|
|
79
80
|
""" # noqa: E501
|
|
80
81
|
|
|
81
|
-
_param = self.
|
|
82
|
+
_param = self._get_pricebook_serialize(
|
|
82
83
|
_request_auth=_request_auth,
|
|
83
84
|
_content_type=_content_type,
|
|
84
85
|
_headers=_headers,
|
|
@@ -104,7 +105,7 @@ class PricebookApi:
|
|
|
104
105
|
|
|
105
106
|
|
|
106
107
|
@validate_call
|
|
107
|
-
def
|
|
108
|
+
def get_pricebook_with_http_info(
|
|
108
109
|
self,
|
|
109
110
|
_request_timeout: Union[
|
|
110
111
|
None,
|
|
@@ -119,8 +120,9 @@ class PricebookApi:
|
|
|
119
120
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
120
121
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
121
122
|
) -> ApiResponse[List[PricebookModel]]:
|
|
122
|
-
"""
|
|
123
|
+
"""get_pricebook
|
|
123
124
|
|
|
125
|
+
Retrieves the Infrahub Pricebook, detailing hourly running costs for all resources offered by Infrahub. For more information on Pricebook [**click here**](None/docs/api-reference/pricebook-resources/pricebook/).
|
|
124
126
|
|
|
125
127
|
:param _request_timeout: timeout setting for this request. If one
|
|
126
128
|
number provided, it will be total request
|
|
@@ -144,7 +146,7 @@ class PricebookApi:
|
|
|
144
146
|
:return: Returns the result object.
|
|
145
147
|
""" # noqa: E501
|
|
146
148
|
|
|
147
|
-
_param = self.
|
|
149
|
+
_param = self._get_pricebook_serialize(
|
|
148
150
|
_request_auth=_request_auth,
|
|
149
151
|
_content_type=_content_type,
|
|
150
152
|
_headers=_headers,
|
|
@@ -170,7 +172,7 @@ class PricebookApi:
|
|
|
170
172
|
|
|
171
173
|
|
|
172
174
|
@validate_call
|
|
173
|
-
def
|
|
175
|
+
def get_pricebook_without_preload_content(
|
|
174
176
|
self,
|
|
175
177
|
_request_timeout: Union[
|
|
176
178
|
None,
|
|
@@ -185,8 +187,9 @@ class PricebookApi:
|
|
|
185
187
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
186
188
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
187
189
|
) -> RESTResponseType:
|
|
188
|
-
"""
|
|
190
|
+
"""get_pricebook
|
|
189
191
|
|
|
192
|
+
Retrieves the Infrahub Pricebook, detailing hourly running costs for all resources offered by Infrahub. For more information on Pricebook [**click here**](None/docs/api-reference/pricebook-resources/pricebook/).
|
|
190
193
|
|
|
191
194
|
:param _request_timeout: timeout setting for this request. If one
|
|
192
195
|
number provided, it will be total request
|
|
@@ -210,7 +213,7 @@ class PricebookApi:
|
|
|
210
213
|
:return: Returns the result object.
|
|
211
214
|
""" # noqa: E501
|
|
212
215
|
|
|
213
|
-
_param = self.
|
|
216
|
+
_param = self._get_pricebook_serialize(
|
|
214
217
|
_request_auth=_request_auth,
|
|
215
218
|
_content_type=_content_type,
|
|
216
219
|
_headers=_headers,
|
|
@@ -231,7 +234,7 @@ class PricebookApi:
|
|
|
231
234
|
return response_data.response
|
|
232
235
|
|
|
233
236
|
|
|
234
|
-
def
|
|
237
|
+
def _get_pricebook_serialize(
|
|
235
238
|
self,
|
|
236
239
|
_request_auth,
|
|
237
240
|
_content_type,
|
|
@@ -271,8 +274,7 @@ class PricebookApi:
|
|
|
271
274
|
|
|
272
275
|
# authentication setting
|
|
273
276
|
_auth_settings: List[str] = [
|
|
274
|
-
'apiKey'
|
|
275
|
-
'accessToken'
|
|
277
|
+
'apiKey'
|
|
276
278
|
]
|
|
277
279
|
|
|
278
280
|
return self.api_client.param_serialize(
|