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,108 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from ..models.compliance_model_fields import ComplianceModelFields
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class CreateUpdateComplianceResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
CreateUpdateComplianceResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
compliance: Optional[ComplianceModelFields] = None
|
|
31
|
+
message: Optional[StrictStr] = None
|
|
32
|
+
status: Optional[StrictBool] = None
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["compliance", "message", "status"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of CreateUpdateComplianceResponse from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of compliance
|
|
78
|
+
if self.compliance:
|
|
79
|
+
_dict['compliance'] = self.compliance.to_dict()
|
|
80
|
+
# puts key-value pairs in additional_properties in the top level
|
|
81
|
+
if self.additional_properties is not None:
|
|
82
|
+
for _key, _value in self.additional_properties.items():
|
|
83
|
+
_dict[_key] = _value
|
|
84
|
+
|
|
85
|
+
return _dict
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
+
"""Create an instance of CreateUpdateComplianceResponse from a dict"""
|
|
90
|
+
if obj is None:
|
|
91
|
+
return None
|
|
92
|
+
|
|
93
|
+
if not isinstance(obj, dict):
|
|
94
|
+
return cls.model_validate(obj)
|
|
95
|
+
|
|
96
|
+
_obj = cls.model_validate({
|
|
97
|
+
"compliance": ComplianceModelFields.from_dict(obj["compliance"]) if obj.get("compliance") is not None else None,
|
|
98
|
+
"message": obj.get("message"),
|
|
99
|
+
"status": obj.get("status")
|
|
100
|
+
})
|
|
101
|
+
# store additional fields in additional_properties
|
|
102
|
+
for _key in obj.keys():
|
|
103
|
+
if _key not in cls.__properties:
|
|
104
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
105
|
+
|
|
106
|
+
return _obj
|
|
107
|
+
|
|
108
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class CreateUpdateRbacRolePayload(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
CreateUpdateRbacRolePayload
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
description: StrictStr = Field(description="Description of the role.")
|
|
31
|
+
name: Annotated[str, Field(strict=True, max_length=200)] = Field(description="Name of the RBAC role.")
|
|
32
|
+
permissions: Optional[List[StrictInt]] = None
|
|
33
|
+
policies: Optional[List[StrictInt]] = None
|
|
34
|
+
additional_properties: Dict[str, Any] = {}
|
|
35
|
+
__properties: ClassVar[List[str]] = ["description", "name", "permissions", "policies"]
|
|
36
|
+
|
|
37
|
+
model_config = ConfigDict(
|
|
38
|
+
populate_by_name=True,
|
|
39
|
+
validate_assignment=True,
|
|
40
|
+
protected_namespaces=(),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def to_str(self) -> str:
|
|
45
|
+
"""Returns the string representation of the model using alias"""
|
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
47
|
+
|
|
48
|
+
def to_json(self) -> str:
|
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
|
50
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
51
|
+
return json.dumps(self.to_dict())
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
+
"""Create an instance of CreateUpdateRbacRolePayload from a JSON string"""
|
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
|
60
|
+
|
|
61
|
+
This has the following differences from calling pydantic's
|
|
62
|
+
`self.model_dump(by_alias=True)`:
|
|
63
|
+
|
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
|
65
|
+
were set at model initialization. Other fields with value `None`
|
|
66
|
+
are ignored.
|
|
67
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
68
|
+
"""
|
|
69
|
+
excluded_fields: Set[str] = set([
|
|
70
|
+
"additional_properties",
|
|
71
|
+
])
|
|
72
|
+
|
|
73
|
+
_dict = self.model_dump(
|
|
74
|
+
by_alias=True,
|
|
75
|
+
exclude=excluded_fields,
|
|
76
|
+
exclude_none=True,
|
|
77
|
+
)
|
|
78
|
+
# puts key-value pairs in additional_properties in the top level
|
|
79
|
+
if self.additional_properties is not None:
|
|
80
|
+
for _key, _value in self.additional_properties.items():
|
|
81
|
+
_dict[_key] = _value
|
|
82
|
+
|
|
83
|
+
return _dict
|
|
84
|
+
|
|
85
|
+
@classmethod
|
|
86
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
87
|
+
"""Create an instance of CreateUpdateRbacRolePayload from a dict"""
|
|
88
|
+
if obj is None:
|
|
89
|
+
return None
|
|
90
|
+
|
|
91
|
+
if not isinstance(obj, dict):
|
|
92
|
+
return cls.model_validate(obj)
|
|
93
|
+
|
|
94
|
+
_obj = cls.model_validate({
|
|
95
|
+
"description": obj.get("description"),
|
|
96
|
+
"name": obj.get("name"),
|
|
97
|
+
"permissions": obj.get("permissions"),
|
|
98
|
+
"policies": obj.get("policies")
|
|
99
|
+
})
|
|
100
|
+
# store additional fields in additional_properties
|
|
101
|
+
for _key in obj.keys():
|
|
102
|
+
if _key not in cls.__properties:
|
|
103
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
104
|
+
|
|
105
|
+
return _obj
|
|
106
|
+
|
|
107
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class CreateVolumePayload(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
CreateVolumePayload
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
callback_url: Optional[Annotated[str, Field(strict=True, max_length=250)]] = Field(default=None, description="A URL that can be attached to the volume you are creating. This `callback_url` will post any action events that occur to your volume to the provided URL.")
|
|
31
|
+
description: Optional[StrictStr] = Field(default=None, description="A brief description or comment about the volume.")
|
|
32
|
+
environment_name: StrictStr = Field(description="The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) within which the volume is being created.")
|
|
33
|
+
image_id: Optional[StrictInt] = Field(default=None, description="The ID of the operating system image that will be associated with the volume. By providing an `image_id` in the create volume request, you will create a bootable volume.")
|
|
34
|
+
name: Annotated[str, Field(strict=True, max_length=50)] = Field(description="The name of the volume being created.")
|
|
35
|
+
size: StrictInt = Field(description="The size of the volume in GB. 1048576GB storage capacity per volume.")
|
|
36
|
+
volume_type: StrictStr = Field(description="Specifies the type of volume being created, which determines the storage technology it will use. Call the [List volume types](https://infrahub-api-doc.nexgencloud.com/#get-/core/volumes) endpoint to retrieve a list of available volume model types.")
|
|
37
|
+
additional_properties: Dict[str, Any] = {}
|
|
38
|
+
__properties: ClassVar[List[str]] = ["callback_url", "description", "environment_name", "image_id", "name", "size", "volume_type"]
|
|
39
|
+
|
|
40
|
+
model_config = ConfigDict(
|
|
41
|
+
populate_by_name=True,
|
|
42
|
+
validate_assignment=True,
|
|
43
|
+
protected_namespaces=(),
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def to_str(self) -> str:
|
|
48
|
+
"""Returns the string representation of the model using alias"""
|
|
49
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
50
|
+
|
|
51
|
+
def to_json(self) -> str:
|
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
|
53
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
54
|
+
return json.dumps(self.to_dict())
|
|
55
|
+
|
|
56
|
+
@classmethod
|
|
57
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
58
|
+
"""Create an instance of CreateVolumePayload from a JSON string"""
|
|
59
|
+
return cls.from_dict(json.loads(json_str))
|
|
60
|
+
|
|
61
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
62
|
+
"""Return the dictionary representation of the model using alias.
|
|
63
|
+
|
|
64
|
+
This has the following differences from calling pydantic's
|
|
65
|
+
`self.model_dump(by_alias=True)`:
|
|
66
|
+
|
|
67
|
+
* `None` is only added to the output dict for nullable fields that
|
|
68
|
+
were set at model initialization. Other fields with value `None`
|
|
69
|
+
are ignored.
|
|
70
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
71
|
+
"""
|
|
72
|
+
excluded_fields: Set[str] = set([
|
|
73
|
+
"additional_properties",
|
|
74
|
+
])
|
|
75
|
+
|
|
76
|
+
_dict = self.model_dump(
|
|
77
|
+
by_alias=True,
|
|
78
|
+
exclude=excluded_fields,
|
|
79
|
+
exclude_none=True,
|
|
80
|
+
)
|
|
81
|
+
# puts key-value pairs in additional_properties in the top level
|
|
82
|
+
if self.additional_properties is not None:
|
|
83
|
+
for _key, _value in self.additional_properties.items():
|
|
84
|
+
_dict[_key] = _value
|
|
85
|
+
|
|
86
|
+
return _dict
|
|
87
|
+
|
|
88
|
+
@classmethod
|
|
89
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
90
|
+
"""Create an instance of CreateVolumePayload from a dict"""
|
|
91
|
+
if obj is None:
|
|
92
|
+
return None
|
|
93
|
+
|
|
94
|
+
if not isinstance(obj, dict):
|
|
95
|
+
return cls.model_validate(obj)
|
|
96
|
+
|
|
97
|
+
_obj = cls.model_validate({
|
|
98
|
+
"callback_url": obj.get("callback_url"),
|
|
99
|
+
"description": obj.get("description"),
|
|
100
|
+
"environment_name": obj.get("environment_name"),
|
|
101
|
+
"image_id": obj.get("image_id"),
|
|
102
|
+
"name": obj.get("name"),
|
|
103
|
+
"size": obj.get("size"),
|
|
104
|
+
"volume_type": obj.get("volume_type")
|
|
105
|
+
})
|
|
106
|
+
# store additional fields in additional_properties
|
|
107
|
+
for _key in obj.keys():
|
|
108
|
+
if _key not in cls.__properties:
|
|
109
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
110
|
+
|
|
111
|
+
return _obj
|
|
112
|
+
|
|
113
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from ..models.customer_contract_fields import CustomerContractFields
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class CustomerContractDetailResponseModel(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
CustomerContractDetailResponseModel
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
contracts: Optional[CustomerContractFields] = None
|
|
31
|
+
message: Optional[StrictStr] = None
|
|
32
|
+
status: Optional[StrictBool] = None
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["contracts", "message", "status"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of CustomerContractDetailResponseModel from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of contracts
|
|
78
|
+
if self.contracts:
|
|
79
|
+
_dict['contracts'] = self.contracts.to_dict()
|
|
80
|
+
# puts key-value pairs in additional_properties in the top level
|
|
81
|
+
if self.additional_properties is not None:
|
|
82
|
+
for _key, _value in self.additional_properties.items():
|
|
83
|
+
_dict[_key] = _value
|
|
84
|
+
|
|
85
|
+
return _dict
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
+
"""Create an instance of CustomerContractDetailResponseModel from a dict"""
|
|
90
|
+
if obj is None:
|
|
91
|
+
return None
|
|
92
|
+
|
|
93
|
+
if not isinstance(obj, dict):
|
|
94
|
+
return cls.model_validate(obj)
|
|
95
|
+
|
|
96
|
+
_obj = cls.model_validate({
|
|
97
|
+
"contracts": CustomerContractFields.from_dict(obj["contracts"]) if obj.get("contracts") is not None else None,
|
|
98
|
+
"message": obj.get("message"),
|
|
99
|
+
"status": obj.get("status")
|
|
100
|
+
})
|
|
101
|
+
# store additional fields in additional_properties
|
|
102
|
+
for _key in obj.keys():
|
|
103
|
+
if _key not in cls.__properties:
|
|
104
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
105
|
+
|
|
106
|
+
return _obj
|
|
107
|
+
|
|
108
|
+
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from datetime import datetime
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from ..models.contract_discount_plan_fields import ContractDiscountPlanFields
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class CustomerContractFields(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
CustomerContractFields
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
created_at: Optional[datetime] = None
|
|
32
|
+
description: Optional[StrictStr] = None
|
|
33
|
+
discounts: Optional[List[ContractDiscountPlanFields]] = None
|
|
34
|
+
end_date: Optional[datetime] = None
|
|
35
|
+
expiration_policy: Optional[StrictInt] = None
|
|
36
|
+
id: Optional[StrictInt] = None
|
|
37
|
+
org_id: Optional[StrictInt] = None
|
|
38
|
+
start_date: Optional[datetime] = None
|
|
39
|
+
status: Optional[StrictStr] = None
|
|
40
|
+
additional_properties: Dict[str, Any] = {}
|
|
41
|
+
__properties: ClassVar[List[str]] = ["created_at", "description", "discounts", "end_date", "expiration_policy", "id", "org_id", "start_date", "status"]
|
|
42
|
+
|
|
43
|
+
model_config = ConfigDict(
|
|
44
|
+
populate_by_name=True,
|
|
45
|
+
validate_assignment=True,
|
|
46
|
+
protected_namespaces=(),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def to_str(self) -> str:
|
|
51
|
+
"""Returns the string representation of the model using alias"""
|
|
52
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
53
|
+
|
|
54
|
+
def to_json(self) -> str:
|
|
55
|
+
"""Returns the JSON representation of the model using alias"""
|
|
56
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
57
|
+
return json.dumps(self.to_dict())
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
61
|
+
"""Create an instance of CustomerContractFields from a JSON string"""
|
|
62
|
+
return cls.from_dict(json.loads(json_str))
|
|
63
|
+
|
|
64
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
65
|
+
"""Return the dictionary representation of the model using alias.
|
|
66
|
+
|
|
67
|
+
This has the following differences from calling pydantic's
|
|
68
|
+
`self.model_dump(by_alias=True)`:
|
|
69
|
+
|
|
70
|
+
* `None` is only added to the output dict for nullable fields that
|
|
71
|
+
were set at model initialization. Other fields with value `None`
|
|
72
|
+
are ignored.
|
|
73
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
74
|
+
"""
|
|
75
|
+
excluded_fields: Set[str] = set([
|
|
76
|
+
"additional_properties",
|
|
77
|
+
])
|
|
78
|
+
|
|
79
|
+
_dict = self.model_dump(
|
|
80
|
+
by_alias=True,
|
|
81
|
+
exclude=excluded_fields,
|
|
82
|
+
exclude_none=True,
|
|
83
|
+
)
|
|
84
|
+
# override the default output from pydantic by calling `to_dict()` of each item in discounts (list)
|
|
85
|
+
_items = []
|
|
86
|
+
if self.discounts:
|
|
87
|
+
for _item_discounts in self.discounts:
|
|
88
|
+
if _item_discounts:
|
|
89
|
+
_items.append(_item_discounts.to_dict())
|
|
90
|
+
_dict['discounts'] = _items
|
|
91
|
+
# puts key-value pairs in additional_properties in the top level
|
|
92
|
+
if self.additional_properties is not None:
|
|
93
|
+
for _key, _value in self.additional_properties.items():
|
|
94
|
+
_dict[_key] = _value
|
|
95
|
+
|
|
96
|
+
return _dict
|
|
97
|
+
|
|
98
|
+
@classmethod
|
|
99
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
100
|
+
"""Create an instance of CustomerContractFields from a dict"""
|
|
101
|
+
if obj is None:
|
|
102
|
+
return None
|
|
103
|
+
|
|
104
|
+
if not isinstance(obj, dict):
|
|
105
|
+
return cls.model_validate(obj)
|
|
106
|
+
|
|
107
|
+
_obj = cls.model_validate({
|
|
108
|
+
"created_at": obj.get("created_at"),
|
|
109
|
+
"description": obj.get("description"),
|
|
110
|
+
"discounts": [ContractDiscountPlanFields.from_dict(_item) for _item in obj["discounts"]] if obj.get("discounts") is not None else None,
|
|
111
|
+
"end_date": obj.get("end_date"),
|
|
112
|
+
"expiration_policy": obj.get("expiration_policy"),
|
|
113
|
+
"id": obj.get("id"),
|
|
114
|
+
"org_id": obj.get("org_id"),
|
|
115
|
+
"start_date": obj.get("start_date"),
|
|
116
|
+
"status": obj.get("status")
|
|
117
|
+
})
|
|
118
|
+
# store additional fields in additional_properties
|
|
119
|
+
for _key in obj.keys():
|
|
120
|
+
if _key not in cls.__properties:
|
|
121
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
122
|
+
|
|
123
|
+
return _obj
|
|
124
|
+
|
|
125
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from ..models.overview_info import OverviewInfo
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class DashboardInfoResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
DashboardInfoResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
message: Optional[StrictStr] = None
|
|
31
|
+
overview: Optional[OverviewInfo] = None
|
|
32
|
+
status: Optional[StrictBool] = None
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["message", "overview", "status"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of DashboardInfoResponse from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of overview
|
|
78
|
+
if self.overview:
|
|
79
|
+
_dict['overview'] = self.overview.to_dict()
|
|
80
|
+
# puts key-value pairs in additional_properties in the top level
|
|
81
|
+
if self.additional_properties is not None:
|
|
82
|
+
for _key, _value in self.additional_properties.items():
|
|
83
|
+
_dict[_key] = _value
|
|
84
|
+
|
|
85
|
+
return _dict
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
+
"""Create an instance of DashboardInfoResponse from a dict"""
|
|
90
|
+
if obj is None:
|
|
91
|
+
return None
|
|
92
|
+
|
|
93
|
+
if not isinstance(obj, dict):
|
|
94
|
+
return cls.model_validate(obj)
|
|
95
|
+
|
|
96
|
+
_obj = cls.model_validate({
|
|
97
|
+
"message": obj.get("message"),
|
|
98
|
+
"overview": OverviewInfo.from_dict(obj["overview"]) if obj.get("overview") is not None else None,
|
|
99
|
+
"status": obj.get("status")
|
|
100
|
+
})
|
|
101
|
+
# store additional fields in additional_properties
|
|
102
|
+
for _key in obj.keys():
|
|
103
|
+
if _key not in cls.__properties:
|
|
104
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
105
|
+
|
|
106
|
+
return _obj
|
|
107
|
+
|
|
108
|
+
|