hyperstack-async 1.55.1a0__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_async/__init__.py +434 -0
- hyperstack_async/api/__init__.py +60 -0
- hyperstack_async/api/access_keys_api.py +885 -0
- hyperstack_async/api/alive_api.py +510 -0
- hyperstack_async/api/api_key_api.py +1158 -0
- hyperstack_async/api/assigning_member_role_api.py +613 -0
- hyperstack_async/api/auth_api.py +1340 -0
- hyperstack_async/api/auto_topup_api.py +1376 -0
- hyperstack_async/api/beta_access_api.py +856 -0
- hyperstack_async/api/billing_api.py +12701 -0
- hyperstack_async/api/buckets_api.py +865 -0
- hyperstack_async/api/calculate_api.py +325 -0
- hyperstack_async/api/callbacks_api.py +1789 -0
- hyperstack_async/api/cluster_events_api.py +307 -0
- hyperstack_async/api/clusters_api.py +4884 -0
- hyperstack_async/api/compliance_api.py +1165 -0
- hyperstack_async/api/credit_api.py +297 -0
- hyperstack_async/api/customer_contract_api.py +919 -0
- hyperstack_async/api/dashboard_api.py +291 -0
- hyperstack_async/api/deployment_api.py +1118 -0
- hyperstack_async/api/email_opt_in_out_api.py +875 -0
- hyperstack_async/api/environment_api.py +2033 -0
- hyperstack_async/api/fip_exclusions_api.py +313 -0
- hyperstack_async/api/firewall_attachment_api.py +345 -0
- hyperstack_async/api/firewalls_api.py +1813 -0
- hyperstack_async/api/flavor_api.py +314 -0
- hyperstack_async/api/floating_ip_api.py +586 -0
- hyperstack_async/api/gpu_api.py +291 -0
- hyperstack_async/api/health_api.py +282 -0
- hyperstack_async/api/image_api.py +1224 -0
- hyperstack_async/api/invite_api.py +1127 -0
- hyperstack_async/api/keypair_api.py +1463 -0
- hyperstack_async/api/organization_api.py +861 -0
- hyperstack_async/api/partner_config_api.py +566 -0
- hyperstack_async/api/payment_api.py +865 -0
- hyperstack_async/api/permission_api.py +291 -0
- hyperstack_async/api/policy_api.py +291 -0
- hyperstack_async/api/pricebook_api.py +295 -0
- hyperstack_async/api/profile_api.py +1127 -0
- hyperstack_async/api/rbac_role_api.py +1429 -0
- hyperstack_async/api/region_api.py +291 -0
- hyperstack_async/api/regions_api.py +282 -0
- hyperstack_async/api/security_rules_api.py +291 -0
- hyperstack_async/api/snapshot_events_api.py +290 -0
- hyperstack_async/api/snapshots_api.py +1773 -0
- hyperstack_async/api/stock_api.py +291 -0
- hyperstack_async/api/template_api.py +1492 -0
- hyperstack_async/api/user_api.py +1130 -0
- hyperstack_async/api/user_consent_api.py +1416 -0
- hyperstack_async/api/user_consent_events_api.py +307 -0
- hyperstack_async/api/user_detail_choice_api.py +294 -0
- hyperstack_async/api/user_permission_api.py +565 -0
- hyperstack_async/api/virtual_machine_api.py +6246 -0
- hyperstack_async/api/virtual_machine_events_api.py +310 -0
- hyperstack_async/api/vnc_url_api.py +599 -0
- hyperstack_async/api/volume_api.py +2042 -0
- hyperstack_async/api/volume_attachment_api.py +950 -0
- hyperstack_async/api/vouchers_api.py +326 -0
- hyperstack_async/api_client.py +800 -0
- hyperstack_async/api_response.py +21 -0
- hyperstack_async/configuration.py +591 -0
- hyperstack_async/exceptions.py +199 -0
- hyperstack_async/models/__init__.py +362 -0
- hyperstack_async/models/access_token_field.py +100 -0
- hyperstack_async/models/add_user_info_success_response_model.py +108 -0
- hyperstack_async/models/allocated_gpu_count_graph.py +102 -0
- hyperstack_async/models/allowed_countries_response.py +102 -0
- hyperstack_async/models/api_key_fields.py +109 -0
- hyperstack_async/models/assign_rbac_role_payload.py +100 -0
- hyperstack_async/models/attach_callback_payload.py +100 -0
- hyperstack_async/models/attach_callback_response.py +104 -0
- hyperstack_async/models/attach_firewall_with_vm.py +100 -0
- hyperstack_async/models/attach_firewalls_to_vm_payload.py +100 -0
- hyperstack_async/models/attach_volume_fields.py +113 -0
- hyperstack_async/models/attach_volumes.py +112 -0
- hyperstack_async/models/attach_volumes_payload.py +102 -0
- hyperstack_async/models/attachments_fields_for_volume.py +108 -0
- hyperstack_async/models/attributes.py +110 -0
- hyperstack_async/models/auth_get_token_response_model.py +108 -0
- hyperstack_async/models/auth_user_fields.py +107 -0
- hyperstack_async/models/auth_user_info_response_model.py +108 -0
- hyperstack_async/models/auto_topup.py +108 -0
- hyperstack_async/models/auto_topup_error_response.py +104 -0
- hyperstack_async/models/auto_topup_status_schema.py +104 -0
- hyperstack_async/models/beta_access_request_fields.py +121 -0
- hyperstack_async/models/beta_access_request_payload.py +102 -0
- hyperstack_async/models/beta_access_request_response_model.py +108 -0
- hyperstack_async/models/beta_access_status_item.py +115 -0
- hyperstack_async/models/beta_access_status_response_model.py +112 -0
- hyperstack_async/models/billing_history.py +110 -0
- hyperstack_async/models/billing_history_data_synthesis_details.py +118 -0
- hyperstack_async/models/billing_history_fine_tuning.py +118 -0
- hyperstack_async/models/billing_history_image_generation_details.py +118 -0
- hyperstack_async/models/billing_history_model_evalutation_details.py +118 -0
- hyperstack_async/models/billing_history_serverless_inference.py +118 -0
- hyperstack_async/models/billing_history_serverless_inference_details.py +118 -0
- hyperstack_async/models/billing_metrices_fields.py +121 -0
- hyperstack_async/models/billing_metrices_response.py +112 -0
- hyperstack_async/models/cluster_events.py +112 -0
- hyperstack_async/models/cluster_events_fields.py +117 -0
- hyperstack_async/models/cluster_fields.py +147 -0
- hyperstack_async/models/cluster_flavor_fields.py +126 -0
- hyperstack_async/models/cluster_list_response.py +112 -0
- hyperstack_async/models/cluster_node_fields.py +125 -0
- hyperstack_async/models/cluster_node_group_fields.py +133 -0
- hyperstack_async/models/cluster_node_group_firewall_fields.py +104 -0
- hyperstack_async/models/cluster_node_groups_create_response.py +118 -0
- hyperstack_async/models/cluster_node_groups_get_response.py +108 -0
- hyperstack_async/models/cluster_node_groups_list_response.py +112 -0
- hyperstack_async/models/cluster_node_instance_fields.py +114 -0
- hyperstack_async/models/cluster_nodes_list_response.py +112 -0
- hyperstack_async/models/cluster_response.py +108 -0
- hyperstack_async/models/cluster_version.py +111 -0
- hyperstack_async/models/cluster_versions.py +112 -0
- hyperstack_async/models/colors.py +110 -0
- hyperstack_async/models/common_response_model.py +102 -0
- hyperstack_async/models/compatible_flavor.py +108 -0
- hyperstack_async/models/compliance_fields.py +106 -0
- hyperstack_async/models/compliance_model_fields.py +112 -0
- hyperstack_async/models/compliance_payload.py +110 -0
- hyperstack_async/models/compliance_response.py +108 -0
- hyperstack_async/models/consent_action_response.py +106 -0
- hyperstack_async/models/consent_block.py +112 -0
- hyperstack_async/models/consent_events_response.py +114 -0
- hyperstack_async/models/consent_template.py +110 -0
- hyperstack_async/models/consent_templates_response.py +100 -0
- hyperstack_async/models/container_overview_fields.py +108 -0
- hyperstack_async/models/contract.py +118 -0
- hyperstack_async/models/contract_discount_plan_fields.py +118 -0
- hyperstack_async/models/contract_gpu_allocation_graph_response.py +108 -0
- hyperstack_async/models/contract_instance_fields.py +121 -0
- hyperstack_async/models/contract_instances_response.py +112 -0
- hyperstack_async/models/create_auto_topup_payload.py +102 -0
- hyperstack_async/models/create_auto_topup_response.py +108 -0
- hyperstack_async/models/create_cluster_node_fields.py +115 -0
- hyperstack_async/models/create_cluster_node_group_payload.py +120 -0
- hyperstack_async/models/create_cluster_payload.py +137 -0
- hyperstack_async/models/create_environment.py +103 -0
- hyperstack_async/models/create_firewall_payload.py +104 -0
- hyperstack_async/models/create_firewall_rule_payload.py +117 -0
- hyperstack_async/models/create_image.py +104 -0
- hyperstack_async/models/create_image_payload.py +102 -0
- hyperstack_async/models/create_instances_payload.py +149 -0
- hyperstack_async/models/create_instances_response.py +112 -0
- hyperstack_async/models/create_profile_payload.py +105 -0
- hyperstack_async/models/create_profile_response.py +108 -0
- hyperstack_async/models/create_security_rule_payload.py +117 -0
- hyperstack_async/models/create_snapshot_payload.py +104 -0
- hyperstack_async/models/create_snapshot_response.py +108 -0
- hyperstack_async/models/create_update_compliance_response.py +108 -0
- hyperstack_async/models/create_update_rbac_role_payload.py +107 -0
- hyperstack_async/models/create_volume_payload.py +113 -0
- hyperstack_async/models/customer_contract_detail_response_model.py +108 -0
- hyperstack_async/models/customer_contract_fields.py +125 -0
- hyperstack_async/models/dashboard_info_response.py +108 -0
- hyperstack_async/models/data_synthesis_billing_history_details_response_schema.py +108 -0
- hyperstack_async/models/delete_cluster_nodes_fields.py +100 -0
- hyperstack_async/models/deployment_fields.py +111 -0
- hyperstack_async/models/deployment_fields_for_start_deployments.py +113 -0
- hyperstack_async/models/deployments.py +112 -0
- hyperstack_async/models/detach_volumes.py +112 -0
- hyperstack_async/models/detach_volumes_payload.py +100 -0
- hyperstack_async/models/disable_auto_topup_response.py +108 -0
- hyperstack_async/models/edit_label_of_an_existing_vm_payload.py +100 -0
- hyperstack_async/models/email_category.py +122 -0
- hyperstack_async/models/email_category_child.py +114 -0
- hyperstack_async/models/email_preferences_response.py +108 -0
- hyperstack_async/models/environment.py +108 -0
- hyperstack_async/models/environment_features.py +112 -0
- hyperstack_async/models/environment_fields.py +113 -0
- hyperstack_async/models/environment_fields_for_volume.py +104 -0
- hyperstack_async/models/environments.py +118 -0
- hyperstack_async/models/error_response_model.py +104 -0
- hyperstack_async/models/firewall_attachment_model.py +111 -0
- hyperstack_async/models/firewall_attachment_vm_model.py +111 -0
- hyperstack_async/models/firewall_detail_fields.py +135 -0
- hyperstack_async/models/firewall_detail_response.py +108 -0
- hyperstack_async/models/firewall_environment_fields.py +104 -0
- hyperstack_async/models/firewall_fields.py +115 -0
- hyperstack_async/models/firewall_response.py +108 -0
- hyperstack_async/models/firewall_rule.py +108 -0
- hyperstack_async/models/firewalls_list_response.py +118 -0
- hyperstack_async/models/flavor_fields.py +135 -0
- hyperstack_async/models/flavor_item_get_response.py +112 -0
- hyperstack_async/models/flavor_label_fields.py +102 -0
- hyperstack_async/models/flavor_list_response.py +112 -0
- hyperstack_async/models/flavor_object_fields.py +108 -0
- hyperstack_async/models/flavor_restrictions.py +112 -0
- hyperstack_async/models/generate_update_api_key_payload.py +103 -0
- hyperstack_async/models/generate_update_api_key_response_model.py +108 -0
- hyperstack_async/models/get_api_keys_response_model.py +112 -0
- hyperstack_async/models/get_auto_topup_response.py +108 -0
- hyperstack_async/models/get_credit_and_threshold_info.py +104 -0
- hyperstack_async/models/get_credit_and_threshold_info_in_response.py +108 -0
- hyperstack_async/models/get_customer_contracts_list_response_model.py +114 -0
- hyperstack_async/models/get_instance_logs_response.py +100 -0
- hyperstack_async/models/get_invites_response_model.py +112 -0
- hyperstack_async/models/get_organization_response_model.py +108 -0
- hyperstack_async/models/get_permissions_response_model.py +112 -0
- hyperstack_async/models/get_policies_response_model.py +112 -0
- hyperstack_async/models/get_rbac_roles_response_model.py +112 -0
- hyperstack_async/models/get_user_permissions_response_model.py +112 -0
- hyperstack_async/models/gpu_fields.py +119 -0
- hyperstack_async/models/gpu_list.py +112 -0
- hyperstack_async/models/gpu_region_fields.py +102 -0
- hyperstack_async/models/graph_datetime_value_model.py +102 -0
- hyperstack_async/models/image.py +104 -0
- hyperstack_async/models/image_fields.py +132 -0
- hyperstack_async/models/image_generation_billing_history_details_response_schema.py +108 -0
- hyperstack_async/models/image_get_response.py +114 -0
- hyperstack_async/models/images.py +112 -0
- hyperstack_async/models/import_keypair_payload.py +105 -0
- hyperstack_async/models/import_keypair_response.py +108 -0
- hyperstack_async/models/infrahub_resource_object_response_for_customer.py +122 -0
- hyperstack_async/models/instance.py +108 -0
- hyperstack_async/models/instance_enhanced_metrics_fields.py +100 -0
- hyperstack_async/models/instance_environment_fields.py +112 -0
- hyperstack_async/models/instance_events.py +112 -0
- hyperstack_async/models/instance_events_fields.py +115 -0
- hyperstack_async/models/instance_fields.py +185 -0
- hyperstack_async/models/instance_flavor_fields.py +126 -0
- hyperstack_async/models/instance_image_fields.py +100 -0
- hyperstack_async/models/instance_keypair_fields.py +100 -0
- hyperstack_async/models/instance_overview_fields.py +108 -0
- hyperstack_async/models/instance_resize_payload.py +106 -0
- hyperstack_async/models/instances.py +118 -0
- hyperstack_async/models/invite_fields.py +107 -0
- hyperstack_async/models/invite_user_payload.py +108 -0
- hyperstack_async/models/invite_user_response_model.py +108 -0
- hyperstack_async/models/keypair_environment_features.py +112 -0
- hyperstack_async/models/keypair_environment_fields.py +113 -0
- hyperstack_async/models/keypair_fields.py +115 -0
- hyperstack_async/models/keypairs.py +118 -0
- hyperstack_async/models/lable_resonse.py +102 -0
- hyperstack_async/models/last_day_cost_fields.py +106 -0
- hyperstack_async/models/last_day_cost_response.py +108 -0
- hyperstack_async/models/logos.py +106 -0
- hyperstack_async/models/manual_reconciliation_model.py +108 -0
- hyperstack_async/models/master_flavors_response.py +112 -0
- hyperstack_async/models/metric_item_fields.py +104 -0
- hyperstack_async/models/metrics.py +114 -0
- hyperstack_async/models/metrics_fields.py +129 -0
- hyperstack_async/models/mfa_status_fields.py +100 -0
- hyperstack_async/models/mfa_status_response.py +108 -0
- hyperstack_async/models/model_evaluation_billing_history_details_response_schema.py +108 -0
- hyperstack_async/models/name_available_model.py +104 -0
- hyperstack_async/models/new_configurations_response.py +108 -0
- hyperstack_async/models/new_model_response.py +114 -0
- hyperstack_async/models/new_stock_response.py +112 -0
- hyperstack_async/models/new_stock_retrive_response.py +108 -0
- hyperstack_async/models/object_storage_access_key_create_request.py +103 -0
- hyperstack_async/models/object_storage_access_key_create_response.py +114 -0
- hyperstack_async/models/object_storage_access_key_list_response.py +114 -0
- hyperstack_async/models/object_storage_access_key_response.py +112 -0
- hyperstack_async/models/object_storage_bucket_list_response.py +110 -0
- hyperstack_async/models/object_storage_bucket_response.py +114 -0
- hyperstack_async/models/object_storage_delete_response.py +100 -0
- hyperstack_async/models/object_storage_error_response.py +104 -0
- hyperstack_async/models/object_storage_health_response.py +100 -0
- hyperstack_async/models/object_storage_pagination_meta.py +104 -0
- hyperstack_async/models/object_storage_region_list_response.py +108 -0
- hyperstack_async/models/object_storage_region_response.py +100 -0
- hyperstack_async/models/object_storage_regions_enum.py +36 -0
- hyperstack_async/models/organization_fields.py +127 -0
- hyperstack_async/models/organization_level_billing_history.py +112 -0
- hyperstack_async/models/organization_level_billing_history_resources.py +110 -0
- hyperstack_async/models/organization_level_billing_history_response_attributes.py +100 -0
- hyperstack_async/models/organization_level_billing_history_response_metrics.py +110 -0
- hyperstack_async/models/organization_level_billing_history_response_model.py +108 -0
- hyperstack_async/models/organization_threshold_fields.py +108 -0
- hyperstack_async/models/organization_threshold_update_response.py +108 -0
- hyperstack_async/models/organization_thresholds_response.py +112 -0
- hyperstack_async/models/organization_user_response_model.py +125 -0
- hyperstack_async/models/overview_info.py +116 -0
- hyperstack_async/models/pagination.py +104 -0
- hyperstack_async/models/pagination_data.py +104 -0
- hyperstack_async/models/partner_config.py +124 -0
- hyperstack_async/models/payment_details_fields.py +131 -0
- hyperstack_async/models/payment_details_response.py +112 -0
- hyperstack_async/models/payment_initiate_fields.py +100 -0
- hyperstack_async/models/payment_initiate_payload.py +100 -0
- hyperstack_async/models/payment_initiate_response.py +108 -0
- hyperstack_async/models/permission_fields.py +111 -0
- hyperstack_async/models/policy_fields.py +117 -0
- hyperstack_async/models/policy_permission_fields.py +104 -0
- hyperstack_async/models/pricebook_model.py +113 -0
- hyperstack_async/models/pricebook_resource_object_response_for_customer.py +112 -0
- hyperstack_async/models/primary_color.py +102 -0
- hyperstack_async/models/profile_fields.py +109 -0
- hyperstack_async/models/profile_list_response.py +112 -0
- hyperstack_async/models/profile_object_fields.py +102 -0
- hyperstack_async/models/rbac_role_detail_response_model.py +108 -0
- hyperstack_async/models/rbac_role_detail_response_model_fixed.py +108 -0
- hyperstack_async/models/rbac_role_field.py +100 -0
- hyperstack_async/models/rbac_role_fields.py +127 -0
- hyperstack_async/models/record_consent_request.py +132 -0
- hyperstack_async/models/redeem_voucher_payload.py +100 -0
- hyperstack_async/models/region_fields.py +120 -0
- hyperstack_async/models/regions.py +112 -0
- hyperstack_async/models/remove_member_from_organization_response_model.py +102 -0
- hyperstack_async/models/remove_member_payload.py +101 -0
- hyperstack_async/models/request_console.py +104 -0
- hyperstack_async/models/request_instance_logs_payload.py +100 -0
- hyperstack_async/models/request_instance_logs_response.py +100 -0
- hyperstack_async/models/resource_billing_events_history_metrics.py +108 -0
- hyperstack_async/models/resource_billing_events_history_response.py +112 -0
- hyperstack_async/models/resource_billing_response_for_customer.py +108 -0
- hyperstack_async/models/resource_level_billing_bucket_details_resources.py +110 -0
- hyperstack_async/models/resource_level_billing_details_attributes.py +104 -0
- hyperstack_async/models/resource_level_billing_details_metrics.py +114 -0
- hyperstack_async/models/resource_level_billing_details_vm.py +112 -0
- hyperstack_async/models/resource_level_billing_details_volume.py +112 -0
- hyperstack_async/models/resource_level_billing_details_volume_attributes.py +108 -0
- hyperstack_async/models/resource_level_billing_details_volume_metrics.py +108 -0
- hyperstack_async/models/resource_level_billing_history.py +118 -0
- hyperstack_async/models/resource_level_billing_history_resources.py +110 -0
- hyperstack_async/models/resource_level_billing_history_resources_cluster.py +120 -0
- hyperstack_async/models/resource_level_billing_history_response_attributes.py +108 -0
- hyperstack_async/models/resource_level_billing_history_response_metrics.py +104 -0
- hyperstack_async/models/resource_level_billing_vm_details_resources.py +110 -0
- hyperstack_async/models/resource_level_billing_volume_details_resources.py +110 -0
- hyperstack_async/models/resource_level_bucket_billing_details_response_model.py +108 -0
- hyperstack_async/models/resource_level_bucket_billing_history_response_model.py +108 -0
- hyperstack_async/models/resource_level_cluster_billing_details_response_model.py +108 -0
- hyperstack_async/models/resource_level_cluster_billing_history_response_model.py +108 -0
- hyperstack_async/models/resource_level_cluster_graph_billing_details_response_model.py +108 -0
- hyperstack_async/models/resource_level_graph_billing_detail_volume.py +114 -0
- hyperstack_async/models/resource_level_graph_billing_details_attributes.py +104 -0
- hyperstack_async/models/resource_level_graph_billing_details_bucket.py +114 -0
- hyperstack_async/models/resource_level_graph_billing_details_metrics.py +110 -0
- hyperstack_async/models/resource_level_graph_billing_details_vm.py +114 -0
- hyperstack_async/models/resource_level_graph_billing_vm_details_resources.py +110 -0
- hyperstack_async/models/resource_level_graph_billing_volume_details_resources.py +110 -0
- hyperstack_async/models/resource_level_vm_billing_details_response_model.py +108 -0
- hyperstack_async/models/resource_level_vm_billing_history_response_model.py +108 -0
- hyperstack_async/models/resource_level_vm_graph_billing_details_response_model.py +108 -0
- hyperstack_async/models/resource_level_volume_billing_details_response_model.py +108 -0
- hyperstack_async/models/resource_level_volume_billing_history_response_model.py +108 -0
- hyperstack_async/models/resource_level_volume_graph_billing_details_response_model.py +108 -0
- hyperstack_async/models/resource_object_response_for_customer.py +106 -0
- hyperstack_async/models/response_model.py +102 -0
- hyperstack_async/models/role_permission_fields.py +104 -0
- hyperstack_async/models/role_policy_fields.py +104 -0
- hyperstack_async/models/secondary_color.py +102 -0
- hyperstack_async/models/security_group_rule.py +108 -0
- hyperstack_async/models/security_group_rule_fields.py +117 -0
- hyperstack_async/models/security_rules_fields_for_instance.py +117 -0
- hyperstack_async/models/security_rules_protocol_fields.py +104 -0
- hyperstack_async/models/serverless_inferenced_billing_history_details_response_schema.py +108 -0
- hyperstack_async/models/snapshot_fields.py +123 -0
- hyperstack_async/models/snapshot_restore_request.py +102 -0
- hyperstack_async/models/snapshot_retrieve.py +108 -0
- hyperstack_async/models/snapshot_retrieve_fields.py +143 -0
- hyperstack_async/models/snapshots.py +118 -0
- hyperstack_async/models/start_deployment.py +108 -0
- hyperstack_async/models/start_deployment_payload.py +106 -0
- hyperstack_async/models/sub_resource_graph_billing_details_metrics.py +165 -0
- hyperstack_async/models/sub_resources_costs_response_model.py +114 -0
- hyperstack_async/models/sub_resources_graph_billing_history_fields.py +110 -0
- hyperstack_async/models/sub_resources_graph_response_model.py +108 -0
- hyperstack_async/models/subscribe_or_unsubscribe_update_payload.py +100 -0
- hyperstack_async/models/supported_keypair_public_key_types_response.py +104 -0
- hyperstack_async/models/template.py +108 -0
- hyperstack_async/models/template_fields.py +111 -0
- hyperstack_async/models/templates.py +112 -0
- hyperstack_async/models/token_based_billing_history_response.py +108 -0
- hyperstack_async/models/update_auto_topup_payload.py +102 -0
- hyperstack_async/models/update_auto_topup_response.py +108 -0
- hyperstack_async/models/update_cluster_node_group_payload.py +105 -0
- hyperstack_async/models/update_consent_request.py +123 -0
- hyperstack_async/models/update_email_preference_input.py +100 -0
- hyperstack_async/models/update_email_preference_response.py +100 -0
- hyperstack_async/models/update_environment.py +101 -0
- hyperstack_async/models/update_keypair_name.py +101 -0
- hyperstack_async/models/update_keypair_name_response.py +108 -0
- hyperstack_async/models/update_organization_payload.py +101 -0
- hyperstack_async/models/update_organization_response_model.py +102 -0
- hyperstack_async/models/update_template.py +104 -0
- hyperstack_async/models/update_volume_attachment_payload.py +100 -0
- hyperstack_async/models/update_volume_payload.py +100 -0
- hyperstack_async/models/update_volume_response.py +110 -0
- hyperstack_async/models/uris.py +112 -0
- hyperstack_async/models/user_consent.py +116 -0
- hyperstack_async/models/user_consent_event.py +112 -0
- hyperstack_async/models/user_consents_response.py +108 -0
- hyperstack_async/models/user_default_choice_for_user_fields.py +104 -0
- hyperstack_async/models/user_default_choices_for_user_response.py +112 -0
- hyperstack_async/models/user_enhanced_metrics_payload.py +100 -0
- hyperstack_async/models/user_enhanced_metrics_response.py +110 -0
- hyperstack_async/models/user_enhanced_metrics_response_fields.py +100 -0
- hyperstack_async/models/user_info_post_payload.py +120 -0
- hyperstack_async/models/user_organizations_response.py +108 -0
- hyperstack_async/models/user_permission_fields.py +104 -0
- hyperstack_async/models/users_info_fields.py +129 -0
- hyperstack_async/models/users_info_list_response.py +108 -0
- hyperstack_async/models/vm_quota.py +112 -0
- hyperstack_async/models/vncurl.py +108 -0
- hyperstack_async/models/vncurl_fields.py +102 -0
- hyperstack_async/models/volume.py +108 -0
- hyperstack_async/models/volume_attachment_fields.py +115 -0
- hyperstack_async/models/volume_fields.py +139 -0
- hyperstack_async/models/volume_fields_for_instance.py +110 -0
- hyperstack_async/models/volume_overview_fields.py +104 -0
- hyperstack_async/models/volume_types.py +104 -0
- hyperstack_async/models/volumes.py +118 -0
- hyperstack_async/models/volumes_fields.py +137 -0
- hyperstack_async/models/voucher.py +110 -0
- hyperstack_async/models/voucher_redeem_response_schema.py +108 -0
- hyperstack_async/models/workload_billing_history_response.py +108 -0
- hyperstack_async/py.typed +0 -0
- hyperstack_async/rest.py +215 -0
- hyperstack_async-1.55.1a0.dist-info/METADATA +25 -0
- hyperstack_async-1.55.1a0.dist-info/RECORD +415 -0
- hyperstack_async-1.55.1a0.dist-info/WHEEL +5 -0
- hyperstack_async-1.55.1a0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Infrahub-API
|
|
5
|
+
|
|
6
|
+
Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import StrictStr
|
|
20
|
+
from ..models.payment_details_response import PaymentDetailsResponse
|
|
21
|
+
from ..models.payment_initiate_payload import PaymentInitiatePayload
|
|
22
|
+
from ..models.payment_initiate_response import PaymentInitiateResponse
|
|
23
|
+
|
|
24
|
+
from ..api_client import ApiClient, RequestSerialized
|
|
25
|
+
from ..api_response import ApiResponse
|
|
26
|
+
from ..rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class PaymentApi:
|
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
31
|
+
Ref: https://openapi-generator.tech
|
|
32
|
+
|
|
33
|
+
Do not edit the class manually.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, api_client=None) -> None:
|
|
37
|
+
if api_client is None:
|
|
38
|
+
api_client = ApiClient.get_default()
|
|
39
|
+
self.api_client = api_client
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@validate_call
|
|
43
|
+
async def get_payment_receipt(
|
|
44
|
+
self,
|
|
45
|
+
payment_id: StrictStr,
|
|
46
|
+
_request_timeout: Union[
|
|
47
|
+
None,
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Tuple[
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
52
|
+
]
|
|
53
|
+
] = None,
|
|
54
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_content_type: Optional[StrictStr] = None,
|
|
56
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
58
|
+
) -> None:
|
|
59
|
+
"""Retrieve Payment Receipt
|
|
60
|
+
|
|
61
|
+
Retrieve the payment receipt from Stripe for a specific payment
|
|
62
|
+
|
|
63
|
+
:param payment_id: (required)
|
|
64
|
+
:type payment_id: str
|
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
66
|
+
number provided, it will be total request
|
|
67
|
+
timeout. It can also be a pair (tuple) of
|
|
68
|
+
(connection, read) timeouts.
|
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
71
|
+
request; this effectively ignores the
|
|
72
|
+
authentication in the spec for a single request.
|
|
73
|
+
:type _request_auth: dict, optional
|
|
74
|
+
:param _content_type: force content-type for the request.
|
|
75
|
+
:type _content_type: str, Optional
|
|
76
|
+
:param _headers: set to override the headers for a single
|
|
77
|
+
request; this effectively ignores the headers
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _headers: dict, optional
|
|
80
|
+
:param _host_index: set to override the host_index for a single
|
|
81
|
+
request; this effectively ignores the host_index
|
|
82
|
+
in the spec for a single request.
|
|
83
|
+
:type _host_index: int, optional
|
|
84
|
+
:return: Returns the result object.
|
|
85
|
+
""" # noqa: E501
|
|
86
|
+
|
|
87
|
+
_param = self._get_payment_receipt_serialize(
|
|
88
|
+
payment_id=payment_id,
|
|
89
|
+
_request_auth=_request_auth,
|
|
90
|
+
_content_type=_content_type,
|
|
91
|
+
_headers=_headers,
|
|
92
|
+
_host_index=_host_index
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
96
|
+
'200': None,
|
|
97
|
+
'400': "ErrorResponseModel",
|
|
98
|
+
'401': "ErrorResponseModel",
|
|
99
|
+
'403': "ErrorResponseModel",
|
|
100
|
+
'404': "ErrorResponseModel",
|
|
101
|
+
'500': None,
|
|
102
|
+
}
|
|
103
|
+
response_data = await self.api_client.call_api(
|
|
104
|
+
*_param,
|
|
105
|
+
_request_timeout=_request_timeout
|
|
106
|
+
)
|
|
107
|
+
await response_data.read()
|
|
108
|
+
return self.api_client.response_deserialize(
|
|
109
|
+
response_data=response_data,
|
|
110
|
+
response_types_map=_response_types_map,
|
|
111
|
+
).data
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
@validate_call
|
|
115
|
+
async def get_payment_receipt_with_http_info(
|
|
116
|
+
self,
|
|
117
|
+
payment_id: StrictStr,
|
|
118
|
+
_request_timeout: Union[
|
|
119
|
+
None,
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
121
|
+
Tuple[
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
124
|
+
]
|
|
125
|
+
] = None,
|
|
126
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
127
|
+
_content_type: Optional[StrictStr] = None,
|
|
128
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
130
|
+
) -> ApiResponse[None]:
|
|
131
|
+
"""Retrieve Payment Receipt
|
|
132
|
+
|
|
133
|
+
Retrieve the payment receipt from Stripe for a specific payment
|
|
134
|
+
|
|
135
|
+
:param payment_id: (required)
|
|
136
|
+
:type payment_id: str
|
|
137
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
138
|
+
number provided, it will be total request
|
|
139
|
+
timeout. It can also be a pair (tuple) of
|
|
140
|
+
(connection, read) timeouts.
|
|
141
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
142
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
143
|
+
request; this effectively ignores the
|
|
144
|
+
authentication in the spec for a single request.
|
|
145
|
+
:type _request_auth: dict, optional
|
|
146
|
+
:param _content_type: force content-type for the request.
|
|
147
|
+
:type _content_type: str, Optional
|
|
148
|
+
:param _headers: set to override the headers for a single
|
|
149
|
+
request; this effectively ignores the headers
|
|
150
|
+
in the spec for a single request.
|
|
151
|
+
:type _headers: dict, optional
|
|
152
|
+
:param _host_index: set to override the host_index for a single
|
|
153
|
+
request; this effectively ignores the host_index
|
|
154
|
+
in the spec for a single request.
|
|
155
|
+
:type _host_index: int, optional
|
|
156
|
+
:return: Returns the result object.
|
|
157
|
+
""" # noqa: E501
|
|
158
|
+
|
|
159
|
+
_param = self._get_payment_receipt_serialize(
|
|
160
|
+
payment_id=payment_id,
|
|
161
|
+
_request_auth=_request_auth,
|
|
162
|
+
_content_type=_content_type,
|
|
163
|
+
_headers=_headers,
|
|
164
|
+
_host_index=_host_index
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
168
|
+
'200': None,
|
|
169
|
+
'400': "ErrorResponseModel",
|
|
170
|
+
'401': "ErrorResponseModel",
|
|
171
|
+
'403': "ErrorResponseModel",
|
|
172
|
+
'404': "ErrorResponseModel",
|
|
173
|
+
'500': None,
|
|
174
|
+
}
|
|
175
|
+
response_data = await self.api_client.call_api(
|
|
176
|
+
*_param,
|
|
177
|
+
_request_timeout=_request_timeout
|
|
178
|
+
)
|
|
179
|
+
await response_data.read()
|
|
180
|
+
return self.api_client.response_deserialize(
|
|
181
|
+
response_data=response_data,
|
|
182
|
+
response_types_map=_response_types_map,
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
@validate_call
|
|
187
|
+
async def get_payment_receipt_without_preload_content(
|
|
188
|
+
self,
|
|
189
|
+
payment_id: StrictStr,
|
|
190
|
+
_request_timeout: Union[
|
|
191
|
+
None,
|
|
192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
193
|
+
Tuple[
|
|
194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
196
|
+
]
|
|
197
|
+
] = None,
|
|
198
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
199
|
+
_content_type: Optional[StrictStr] = None,
|
|
200
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
201
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
202
|
+
) -> RESTResponseType:
|
|
203
|
+
"""Retrieve Payment Receipt
|
|
204
|
+
|
|
205
|
+
Retrieve the payment receipt from Stripe for a specific payment
|
|
206
|
+
|
|
207
|
+
:param payment_id: (required)
|
|
208
|
+
:type payment_id: str
|
|
209
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
210
|
+
number provided, it will be total request
|
|
211
|
+
timeout. It can also be a pair (tuple) of
|
|
212
|
+
(connection, read) timeouts.
|
|
213
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
214
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
215
|
+
request; this effectively ignores the
|
|
216
|
+
authentication in the spec for a single request.
|
|
217
|
+
:type _request_auth: dict, optional
|
|
218
|
+
:param _content_type: force content-type for the request.
|
|
219
|
+
:type _content_type: str, Optional
|
|
220
|
+
:param _headers: set to override the headers for a single
|
|
221
|
+
request; this effectively ignores the headers
|
|
222
|
+
in the spec for a single request.
|
|
223
|
+
:type _headers: dict, optional
|
|
224
|
+
:param _host_index: set to override the host_index for a single
|
|
225
|
+
request; this effectively ignores the host_index
|
|
226
|
+
in the spec for a single request.
|
|
227
|
+
:type _host_index: int, optional
|
|
228
|
+
:return: Returns the result object.
|
|
229
|
+
""" # noqa: E501
|
|
230
|
+
|
|
231
|
+
_param = self._get_payment_receipt_serialize(
|
|
232
|
+
payment_id=payment_id,
|
|
233
|
+
_request_auth=_request_auth,
|
|
234
|
+
_content_type=_content_type,
|
|
235
|
+
_headers=_headers,
|
|
236
|
+
_host_index=_host_index
|
|
237
|
+
)
|
|
238
|
+
|
|
239
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
240
|
+
'200': None,
|
|
241
|
+
'400': "ErrorResponseModel",
|
|
242
|
+
'401': "ErrorResponseModel",
|
|
243
|
+
'403': "ErrorResponseModel",
|
|
244
|
+
'404': "ErrorResponseModel",
|
|
245
|
+
'500': None,
|
|
246
|
+
}
|
|
247
|
+
response_data = await self.api_client.call_api(
|
|
248
|
+
*_param,
|
|
249
|
+
_request_timeout=_request_timeout
|
|
250
|
+
)
|
|
251
|
+
return response_data.response
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
def _get_payment_receipt_serialize(
|
|
255
|
+
self,
|
|
256
|
+
payment_id,
|
|
257
|
+
_request_auth,
|
|
258
|
+
_content_type,
|
|
259
|
+
_headers,
|
|
260
|
+
_host_index,
|
|
261
|
+
) -> RequestSerialized:
|
|
262
|
+
|
|
263
|
+
_host = None
|
|
264
|
+
|
|
265
|
+
_collection_formats: Dict[str, str] = {
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
_path_params: Dict[str, str] = {}
|
|
269
|
+
_query_params: List[Tuple[str, str]] = []
|
|
270
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
271
|
+
_form_params: List[Tuple[str, str]] = []
|
|
272
|
+
_files: Dict[
|
|
273
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
274
|
+
] = {}
|
|
275
|
+
_body_params: Optional[bytes] = None
|
|
276
|
+
|
|
277
|
+
# process the path parameters
|
|
278
|
+
if payment_id is not None:
|
|
279
|
+
_path_params['payment_id'] = payment_id
|
|
280
|
+
# process the query parameters
|
|
281
|
+
# process the header parameters
|
|
282
|
+
# process the form parameters
|
|
283
|
+
# process the body parameter
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
# set the HTTP header `Accept`
|
|
287
|
+
if 'Accept' not in _header_params:
|
|
288
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
289
|
+
[
|
|
290
|
+
'application/json'
|
|
291
|
+
]
|
|
292
|
+
)
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
# authentication setting
|
|
296
|
+
_auth_settings: List[str] = [
|
|
297
|
+
'apiKey'
|
|
298
|
+
]
|
|
299
|
+
|
|
300
|
+
return self.api_client.param_serialize(
|
|
301
|
+
method='GET',
|
|
302
|
+
resource_path='/billing/payment/receipt/{payment_id}',
|
|
303
|
+
path_params=_path_params,
|
|
304
|
+
query_params=_query_params,
|
|
305
|
+
header_params=_header_params,
|
|
306
|
+
body=_body_params,
|
|
307
|
+
post_params=_form_params,
|
|
308
|
+
files=_files,
|
|
309
|
+
auth_settings=_auth_settings,
|
|
310
|
+
collection_formats=_collection_formats,
|
|
311
|
+
_host=_host,
|
|
312
|
+
_request_auth=_request_auth
|
|
313
|
+
)
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
@validate_call
|
|
319
|
+
async def initiate_payment(
|
|
320
|
+
self,
|
|
321
|
+
payload: PaymentInitiatePayload,
|
|
322
|
+
_request_timeout: Union[
|
|
323
|
+
None,
|
|
324
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
325
|
+
Tuple[
|
|
326
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
327
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
328
|
+
]
|
|
329
|
+
] = None,
|
|
330
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
331
|
+
_content_type: Optional[StrictStr] = None,
|
|
332
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
333
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
334
|
+
) -> PaymentInitiateResponse:
|
|
335
|
+
"""POST: Initiate payment
|
|
336
|
+
|
|
337
|
+
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).
|
|
338
|
+
|
|
339
|
+
:param payload: (required)
|
|
340
|
+
:type payload: PaymentInitiatePayload
|
|
341
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
342
|
+
number provided, it will be total request
|
|
343
|
+
timeout. It can also be a pair (tuple) of
|
|
344
|
+
(connection, read) timeouts.
|
|
345
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
346
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
347
|
+
request; this effectively ignores the
|
|
348
|
+
authentication in the spec for a single request.
|
|
349
|
+
:type _request_auth: dict, optional
|
|
350
|
+
:param _content_type: force content-type for the request.
|
|
351
|
+
:type _content_type: str, Optional
|
|
352
|
+
:param _headers: set to override the headers for a single
|
|
353
|
+
request; this effectively ignores the headers
|
|
354
|
+
in the spec for a single request.
|
|
355
|
+
:type _headers: dict, optional
|
|
356
|
+
:param _host_index: set to override the host_index for a single
|
|
357
|
+
request; this effectively ignores the host_index
|
|
358
|
+
in the spec for a single request.
|
|
359
|
+
:type _host_index: int, optional
|
|
360
|
+
:return: Returns the result object.
|
|
361
|
+
""" # noqa: E501
|
|
362
|
+
|
|
363
|
+
_param = self._initiate_payment_serialize(
|
|
364
|
+
payload=payload,
|
|
365
|
+
_request_auth=_request_auth,
|
|
366
|
+
_content_type=_content_type,
|
|
367
|
+
_headers=_headers,
|
|
368
|
+
_host_index=_host_index
|
|
369
|
+
)
|
|
370
|
+
|
|
371
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
372
|
+
'200': "PaymentInitiateResponse",
|
|
373
|
+
'400': "ErrorResponseModel",
|
|
374
|
+
'401': "ErrorResponseModel",
|
|
375
|
+
'403': "ErrorResponseModel",
|
|
376
|
+
'404': "ErrorResponseModel",
|
|
377
|
+
'500': None,
|
|
378
|
+
}
|
|
379
|
+
response_data = await self.api_client.call_api(
|
|
380
|
+
*_param,
|
|
381
|
+
_request_timeout=_request_timeout
|
|
382
|
+
)
|
|
383
|
+
await response_data.read()
|
|
384
|
+
return self.api_client.response_deserialize(
|
|
385
|
+
response_data=response_data,
|
|
386
|
+
response_types_map=_response_types_map,
|
|
387
|
+
).data
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
@validate_call
|
|
391
|
+
async def initiate_payment_with_http_info(
|
|
392
|
+
self,
|
|
393
|
+
payload: PaymentInitiatePayload,
|
|
394
|
+
_request_timeout: Union[
|
|
395
|
+
None,
|
|
396
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
397
|
+
Tuple[
|
|
398
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
399
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
400
|
+
]
|
|
401
|
+
] = None,
|
|
402
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
403
|
+
_content_type: Optional[StrictStr] = None,
|
|
404
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
405
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
406
|
+
) -> ApiResponse[PaymentInitiateResponse]:
|
|
407
|
+
"""POST: Initiate payment
|
|
408
|
+
|
|
409
|
+
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).
|
|
410
|
+
|
|
411
|
+
:param payload: (required)
|
|
412
|
+
:type payload: PaymentInitiatePayload
|
|
413
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
414
|
+
number provided, it will be total request
|
|
415
|
+
timeout. It can also be a pair (tuple) of
|
|
416
|
+
(connection, read) timeouts.
|
|
417
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
418
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
419
|
+
request; this effectively ignores the
|
|
420
|
+
authentication in the spec for a single request.
|
|
421
|
+
:type _request_auth: dict, optional
|
|
422
|
+
:param _content_type: force content-type for the request.
|
|
423
|
+
:type _content_type: str, Optional
|
|
424
|
+
:param _headers: set to override the headers for a single
|
|
425
|
+
request; this effectively ignores the headers
|
|
426
|
+
in the spec for a single request.
|
|
427
|
+
:type _headers: dict, optional
|
|
428
|
+
:param _host_index: set to override the host_index for a single
|
|
429
|
+
request; this effectively ignores the host_index
|
|
430
|
+
in the spec for a single request.
|
|
431
|
+
:type _host_index: int, optional
|
|
432
|
+
:return: Returns the result object.
|
|
433
|
+
""" # noqa: E501
|
|
434
|
+
|
|
435
|
+
_param = self._initiate_payment_serialize(
|
|
436
|
+
payload=payload,
|
|
437
|
+
_request_auth=_request_auth,
|
|
438
|
+
_content_type=_content_type,
|
|
439
|
+
_headers=_headers,
|
|
440
|
+
_host_index=_host_index
|
|
441
|
+
)
|
|
442
|
+
|
|
443
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
444
|
+
'200': "PaymentInitiateResponse",
|
|
445
|
+
'400': "ErrorResponseModel",
|
|
446
|
+
'401': "ErrorResponseModel",
|
|
447
|
+
'403': "ErrorResponseModel",
|
|
448
|
+
'404': "ErrorResponseModel",
|
|
449
|
+
'500': None,
|
|
450
|
+
}
|
|
451
|
+
response_data = await self.api_client.call_api(
|
|
452
|
+
*_param,
|
|
453
|
+
_request_timeout=_request_timeout
|
|
454
|
+
)
|
|
455
|
+
await response_data.read()
|
|
456
|
+
return self.api_client.response_deserialize(
|
|
457
|
+
response_data=response_data,
|
|
458
|
+
response_types_map=_response_types_map,
|
|
459
|
+
)
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
@validate_call
|
|
463
|
+
async def initiate_payment_without_preload_content(
|
|
464
|
+
self,
|
|
465
|
+
payload: PaymentInitiatePayload,
|
|
466
|
+
_request_timeout: Union[
|
|
467
|
+
None,
|
|
468
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
469
|
+
Tuple[
|
|
470
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
471
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
472
|
+
]
|
|
473
|
+
] = None,
|
|
474
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
475
|
+
_content_type: Optional[StrictStr] = None,
|
|
476
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
477
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
478
|
+
) -> RESTResponseType:
|
|
479
|
+
"""POST: Initiate payment
|
|
480
|
+
|
|
481
|
+
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).
|
|
482
|
+
|
|
483
|
+
:param payload: (required)
|
|
484
|
+
:type payload: PaymentInitiatePayload
|
|
485
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
486
|
+
number provided, it will be total request
|
|
487
|
+
timeout. It can also be a pair (tuple) of
|
|
488
|
+
(connection, read) timeouts.
|
|
489
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
490
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
491
|
+
request; this effectively ignores the
|
|
492
|
+
authentication in the spec for a single request.
|
|
493
|
+
:type _request_auth: dict, optional
|
|
494
|
+
:param _content_type: force content-type for the request.
|
|
495
|
+
:type _content_type: str, Optional
|
|
496
|
+
:param _headers: set to override the headers for a single
|
|
497
|
+
request; this effectively ignores the headers
|
|
498
|
+
in the spec for a single request.
|
|
499
|
+
:type _headers: dict, optional
|
|
500
|
+
:param _host_index: set to override the host_index for a single
|
|
501
|
+
request; this effectively ignores the host_index
|
|
502
|
+
in the spec for a single request.
|
|
503
|
+
:type _host_index: int, optional
|
|
504
|
+
:return: Returns the result object.
|
|
505
|
+
""" # noqa: E501
|
|
506
|
+
|
|
507
|
+
_param = self._initiate_payment_serialize(
|
|
508
|
+
payload=payload,
|
|
509
|
+
_request_auth=_request_auth,
|
|
510
|
+
_content_type=_content_type,
|
|
511
|
+
_headers=_headers,
|
|
512
|
+
_host_index=_host_index
|
|
513
|
+
)
|
|
514
|
+
|
|
515
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
516
|
+
'200': "PaymentInitiateResponse",
|
|
517
|
+
'400': "ErrorResponseModel",
|
|
518
|
+
'401': "ErrorResponseModel",
|
|
519
|
+
'403': "ErrorResponseModel",
|
|
520
|
+
'404': "ErrorResponseModel",
|
|
521
|
+
'500': None,
|
|
522
|
+
}
|
|
523
|
+
response_data = await self.api_client.call_api(
|
|
524
|
+
*_param,
|
|
525
|
+
_request_timeout=_request_timeout
|
|
526
|
+
)
|
|
527
|
+
return response_data.response
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
def _initiate_payment_serialize(
|
|
531
|
+
self,
|
|
532
|
+
payload,
|
|
533
|
+
_request_auth,
|
|
534
|
+
_content_type,
|
|
535
|
+
_headers,
|
|
536
|
+
_host_index,
|
|
537
|
+
) -> RequestSerialized:
|
|
538
|
+
|
|
539
|
+
_host = None
|
|
540
|
+
|
|
541
|
+
_collection_formats: Dict[str, str] = {
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
_path_params: Dict[str, str] = {}
|
|
545
|
+
_query_params: List[Tuple[str, str]] = []
|
|
546
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
547
|
+
_form_params: List[Tuple[str, str]] = []
|
|
548
|
+
_files: Dict[
|
|
549
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
550
|
+
] = {}
|
|
551
|
+
_body_params: Optional[bytes] = None
|
|
552
|
+
|
|
553
|
+
# process the path parameters
|
|
554
|
+
# process the query parameters
|
|
555
|
+
# process the header parameters
|
|
556
|
+
# process the form parameters
|
|
557
|
+
# process the body parameter
|
|
558
|
+
if payload is not None:
|
|
559
|
+
_body_params = payload
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
# set the HTTP header `Accept`
|
|
563
|
+
if 'Accept' not in _header_params:
|
|
564
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
565
|
+
[
|
|
566
|
+
'application/json'
|
|
567
|
+
]
|
|
568
|
+
)
|
|
569
|
+
|
|
570
|
+
# set the HTTP header `Content-Type`
|
|
571
|
+
if _content_type:
|
|
572
|
+
_header_params['Content-Type'] = _content_type
|
|
573
|
+
else:
|
|
574
|
+
_default_content_type = (
|
|
575
|
+
self.api_client.select_header_content_type(
|
|
576
|
+
[
|
|
577
|
+
'application/json'
|
|
578
|
+
]
|
|
579
|
+
)
|
|
580
|
+
)
|
|
581
|
+
if _default_content_type is not None:
|
|
582
|
+
_header_params['Content-Type'] = _default_content_type
|
|
583
|
+
|
|
584
|
+
# authentication setting
|
|
585
|
+
_auth_settings: List[str] = [
|
|
586
|
+
'apiKey'
|
|
587
|
+
]
|
|
588
|
+
|
|
589
|
+
return self.api_client.param_serialize(
|
|
590
|
+
method='POST',
|
|
591
|
+
resource_path='/billing/payment/payment-initiate',
|
|
592
|
+
path_params=_path_params,
|
|
593
|
+
query_params=_query_params,
|
|
594
|
+
header_params=_header_params,
|
|
595
|
+
body=_body_params,
|
|
596
|
+
post_params=_form_params,
|
|
597
|
+
files=_files,
|
|
598
|
+
auth_settings=_auth_settings,
|
|
599
|
+
collection_formats=_collection_formats,
|
|
600
|
+
_host=_host,
|
|
601
|
+
_request_auth=_request_auth
|
|
602
|
+
)
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
@validate_call
|
|
608
|
+
async def list_payment_details(
|
|
609
|
+
self,
|
|
610
|
+
_request_timeout: Union[
|
|
611
|
+
None,
|
|
612
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
613
|
+
Tuple[
|
|
614
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
615
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
616
|
+
]
|
|
617
|
+
] = None,
|
|
618
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
619
|
+
_content_type: Optional[StrictStr] = None,
|
|
620
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
621
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
622
|
+
) -> PaymentDetailsResponse:
|
|
623
|
+
"""GET: View payment details
|
|
624
|
+
|
|
625
|
+
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/).
|
|
626
|
+
|
|
627
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
628
|
+
number provided, it will be total request
|
|
629
|
+
timeout. It can also be a pair (tuple) of
|
|
630
|
+
(connection, read) timeouts.
|
|
631
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
632
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
633
|
+
request; this effectively ignores the
|
|
634
|
+
authentication in the spec for a single request.
|
|
635
|
+
:type _request_auth: dict, optional
|
|
636
|
+
:param _content_type: force content-type for the request.
|
|
637
|
+
:type _content_type: str, Optional
|
|
638
|
+
:param _headers: set to override the headers for a single
|
|
639
|
+
request; this effectively ignores the headers
|
|
640
|
+
in the spec for a single request.
|
|
641
|
+
:type _headers: dict, optional
|
|
642
|
+
:param _host_index: set to override the host_index for a single
|
|
643
|
+
request; this effectively ignores the host_index
|
|
644
|
+
in the spec for a single request.
|
|
645
|
+
:type _host_index: int, optional
|
|
646
|
+
:return: Returns the result object.
|
|
647
|
+
""" # noqa: E501
|
|
648
|
+
|
|
649
|
+
_param = self._list_payment_details_serialize(
|
|
650
|
+
_request_auth=_request_auth,
|
|
651
|
+
_content_type=_content_type,
|
|
652
|
+
_headers=_headers,
|
|
653
|
+
_host_index=_host_index
|
|
654
|
+
)
|
|
655
|
+
|
|
656
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
657
|
+
'200': "PaymentDetailsResponse",
|
|
658
|
+
'400': "ErrorResponseModel",
|
|
659
|
+
'401': "ErrorResponseModel",
|
|
660
|
+
'403': "ErrorResponseModel",
|
|
661
|
+
'404': "ErrorResponseModel",
|
|
662
|
+
'500': None,
|
|
663
|
+
}
|
|
664
|
+
response_data = await self.api_client.call_api(
|
|
665
|
+
*_param,
|
|
666
|
+
_request_timeout=_request_timeout
|
|
667
|
+
)
|
|
668
|
+
await response_data.read()
|
|
669
|
+
return self.api_client.response_deserialize(
|
|
670
|
+
response_data=response_data,
|
|
671
|
+
response_types_map=_response_types_map,
|
|
672
|
+
).data
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
@validate_call
|
|
676
|
+
async def list_payment_details_with_http_info(
|
|
677
|
+
self,
|
|
678
|
+
_request_timeout: Union[
|
|
679
|
+
None,
|
|
680
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
681
|
+
Tuple[
|
|
682
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
683
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
684
|
+
]
|
|
685
|
+
] = None,
|
|
686
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
687
|
+
_content_type: Optional[StrictStr] = None,
|
|
688
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
689
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
690
|
+
) -> ApiResponse[PaymentDetailsResponse]:
|
|
691
|
+
"""GET: View payment details
|
|
692
|
+
|
|
693
|
+
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/).
|
|
694
|
+
|
|
695
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
696
|
+
number provided, it will be total request
|
|
697
|
+
timeout. It can also be a pair (tuple) of
|
|
698
|
+
(connection, read) timeouts.
|
|
699
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
700
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
701
|
+
request; this effectively ignores the
|
|
702
|
+
authentication in the spec for a single request.
|
|
703
|
+
:type _request_auth: dict, optional
|
|
704
|
+
:param _content_type: force content-type for the request.
|
|
705
|
+
:type _content_type: str, Optional
|
|
706
|
+
:param _headers: set to override the headers for a single
|
|
707
|
+
request; this effectively ignores the headers
|
|
708
|
+
in the spec for a single request.
|
|
709
|
+
:type _headers: dict, optional
|
|
710
|
+
:param _host_index: set to override the host_index for a single
|
|
711
|
+
request; this effectively ignores the host_index
|
|
712
|
+
in the spec for a single request.
|
|
713
|
+
:type _host_index: int, optional
|
|
714
|
+
:return: Returns the result object.
|
|
715
|
+
""" # noqa: E501
|
|
716
|
+
|
|
717
|
+
_param = self._list_payment_details_serialize(
|
|
718
|
+
_request_auth=_request_auth,
|
|
719
|
+
_content_type=_content_type,
|
|
720
|
+
_headers=_headers,
|
|
721
|
+
_host_index=_host_index
|
|
722
|
+
)
|
|
723
|
+
|
|
724
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
725
|
+
'200': "PaymentDetailsResponse",
|
|
726
|
+
'400': "ErrorResponseModel",
|
|
727
|
+
'401': "ErrorResponseModel",
|
|
728
|
+
'403': "ErrorResponseModel",
|
|
729
|
+
'404': "ErrorResponseModel",
|
|
730
|
+
'500': None,
|
|
731
|
+
}
|
|
732
|
+
response_data = await self.api_client.call_api(
|
|
733
|
+
*_param,
|
|
734
|
+
_request_timeout=_request_timeout
|
|
735
|
+
)
|
|
736
|
+
await response_data.read()
|
|
737
|
+
return self.api_client.response_deserialize(
|
|
738
|
+
response_data=response_data,
|
|
739
|
+
response_types_map=_response_types_map,
|
|
740
|
+
)
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
@validate_call
|
|
744
|
+
async def list_payment_details_without_preload_content(
|
|
745
|
+
self,
|
|
746
|
+
_request_timeout: Union[
|
|
747
|
+
None,
|
|
748
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
749
|
+
Tuple[
|
|
750
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
751
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
752
|
+
]
|
|
753
|
+
] = None,
|
|
754
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
755
|
+
_content_type: Optional[StrictStr] = None,
|
|
756
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
757
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
758
|
+
) -> RESTResponseType:
|
|
759
|
+
"""GET: View payment details
|
|
760
|
+
|
|
761
|
+
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/).
|
|
762
|
+
|
|
763
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
764
|
+
number provided, it will be total request
|
|
765
|
+
timeout. It can also be a pair (tuple) of
|
|
766
|
+
(connection, read) timeouts.
|
|
767
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
768
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
769
|
+
request; this effectively ignores the
|
|
770
|
+
authentication in the spec for a single request.
|
|
771
|
+
:type _request_auth: dict, optional
|
|
772
|
+
:param _content_type: force content-type for the request.
|
|
773
|
+
:type _content_type: str, Optional
|
|
774
|
+
:param _headers: set to override the headers for a single
|
|
775
|
+
request; this effectively ignores the headers
|
|
776
|
+
in the spec for a single request.
|
|
777
|
+
:type _headers: dict, optional
|
|
778
|
+
:param _host_index: set to override the host_index for a single
|
|
779
|
+
request; this effectively ignores the host_index
|
|
780
|
+
in the spec for a single request.
|
|
781
|
+
:type _host_index: int, optional
|
|
782
|
+
:return: Returns the result object.
|
|
783
|
+
""" # noqa: E501
|
|
784
|
+
|
|
785
|
+
_param = self._list_payment_details_serialize(
|
|
786
|
+
_request_auth=_request_auth,
|
|
787
|
+
_content_type=_content_type,
|
|
788
|
+
_headers=_headers,
|
|
789
|
+
_host_index=_host_index
|
|
790
|
+
)
|
|
791
|
+
|
|
792
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
793
|
+
'200': "PaymentDetailsResponse",
|
|
794
|
+
'400': "ErrorResponseModel",
|
|
795
|
+
'401': "ErrorResponseModel",
|
|
796
|
+
'403': "ErrorResponseModel",
|
|
797
|
+
'404': "ErrorResponseModel",
|
|
798
|
+
'500': None,
|
|
799
|
+
}
|
|
800
|
+
response_data = await self.api_client.call_api(
|
|
801
|
+
*_param,
|
|
802
|
+
_request_timeout=_request_timeout
|
|
803
|
+
)
|
|
804
|
+
return response_data.response
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
def _list_payment_details_serialize(
|
|
808
|
+
self,
|
|
809
|
+
_request_auth,
|
|
810
|
+
_content_type,
|
|
811
|
+
_headers,
|
|
812
|
+
_host_index,
|
|
813
|
+
) -> RequestSerialized:
|
|
814
|
+
|
|
815
|
+
_host = None
|
|
816
|
+
|
|
817
|
+
_collection_formats: Dict[str, str] = {
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
_path_params: Dict[str, str] = {}
|
|
821
|
+
_query_params: List[Tuple[str, str]] = []
|
|
822
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
823
|
+
_form_params: List[Tuple[str, str]] = []
|
|
824
|
+
_files: Dict[
|
|
825
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
826
|
+
] = {}
|
|
827
|
+
_body_params: Optional[bytes] = None
|
|
828
|
+
|
|
829
|
+
# process the path parameters
|
|
830
|
+
# process the query parameters
|
|
831
|
+
# process the header parameters
|
|
832
|
+
# process the form parameters
|
|
833
|
+
# process the body parameter
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
# set the HTTP header `Accept`
|
|
837
|
+
if 'Accept' not in _header_params:
|
|
838
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
839
|
+
[
|
|
840
|
+
'application/json'
|
|
841
|
+
]
|
|
842
|
+
)
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
# authentication setting
|
|
846
|
+
_auth_settings: List[str] = [
|
|
847
|
+
'apiKey'
|
|
848
|
+
]
|
|
849
|
+
|
|
850
|
+
return self.api_client.param_serialize(
|
|
851
|
+
method='GET',
|
|
852
|
+
resource_path='/billing/payment/payment-details',
|
|
853
|
+
path_params=_path_params,
|
|
854
|
+
query_params=_query_params,
|
|
855
|
+
header_params=_header_params,
|
|
856
|
+
body=_body_params,
|
|
857
|
+
post_params=_form_params,
|
|
858
|
+
files=_files,
|
|
859
|
+
auth_settings=_auth_settings,
|
|
860
|
+
collection_formats=_collection_formats,
|
|
861
|
+
_host=_host,
|
|
862
|
+
_request_auth=_request_auth
|
|
863
|
+
)
|
|
864
|
+
|
|
865
|
+
|