hyperstack 0.1.23__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hyperstack/__init__.py +420 -0
- hyperstack/api/__init__.py +48 -0
- hyperstack/api/alive_api.py +270 -0
- hyperstack/api/api_key_api.py +1161 -0
- hyperstack/api/assigning_member_role_api.py +615 -0
- hyperstack/api/auth_api.py +292 -0
- hyperstack/api/billing_api.py +5946 -0
- hyperstack/api/calculate_api.py +326 -0
- hyperstack/api/callbacks_api.py +1795 -0
- hyperstack/api/cluster_events_api.py +308 -0
- hyperstack/api/clusters_api.py +1651 -0
- hyperstack/api/compliance_api.py +1169 -0
- hyperstack/api/credit_api.py +295 -0
- hyperstack/api/customer_contract_api.py +922 -0
- hyperstack/api/dashboard_api.py +292 -0
- hyperstack/api/deployment_api.py +1122 -0
- hyperstack/api/environment_api.py +1490 -0
- hyperstack/api/firewall_attachment_api.py +343 -0
- hyperstack/api/firewalls_api.py +1819 -0
- hyperstack/api/flavor_api.py +315 -0
- hyperstack/api/floating_ip_api.py +585 -0
- hyperstack/api/gpu_api.py +292 -0
- hyperstack/api/image_api.py +1228 -0
- hyperstack/api/invite_api.py +857 -0
- hyperstack/api/keypair_api.py +1217 -0
- hyperstack/api/organization_api.py +864 -0
- hyperstack/api/payment_api.py +584 -0
- hyperstack/api/permission_api.py +292 -0
- hyperstack/api/policy_api.py +292 -0
- hyperstack/api/pricebook_api.py +293 -0
- hyperstack/api/profile_api.py +1131 -0
- hyperstack/api/rbac_role_api.py +1434 -0
- hyperstack/api/region_api.py +292 -0
- hyperstack/api/security_rules_api.py +292 -0
- hyperstack/api/snapshot_events_api.py +291 -0
- hyperstack/api/snapshots_api.py +1779 -0
- hyperstack/api/stock_api.py +292 -0
- hyperstack/api/template_api.py +1497 -0
- hyperstack/api/user_api.py +871 -0
- hyperstack/api/user_detail_choice_api.py +295 -0
- hyperstack/api/user_permission_api.py +567 -0
- hyperstack/api/virtual_machine_api.py +5289 -0
- hyperstack/api/virtual_machine_events_api.py +311 -0
- hyperstack/api/vnc_url_api.py +595 -0
- hyperstack/api/volume_api.py +1742 -0
- hyperstack/api/volume_attachment_api.py +650 -0
- hyperstack/api_client.py +797 -0
- hyperstack/api_response.py +21 -0
- hyperstack/configuration.py +488 -0
- hyperstack/exceptions.py +199 -0
- hyperstack/models/__init__.py +360 -0
- hyperstack/models/add_update_flavor_organization_payload.py +111 -0
- hyperstack/models/add_user_info_success_response_model.py +95 -0
- hyperstack/models/allocated_gpu_count_graph.py +89 -0
- hyperstack/models/api_key_fields.py +96 -0
- hyperstack/models/api_key_verify_fields.py +93 -0
- hyperstack/models/assign_rbac_role_payload.py +87 -0
- hyperstack/models/attach_callback_payload.py +87 -0
- hyperstack/models/attach_callback_response.py +91 -0
- hyperstack/models/attach_firewall_with_vm.py +87 -0
- hyperstack/models/attach_firewalls_to_vm_payload.py +87 -0
- hyperstack/models/attach_volume_fields.py +96 -0
- hyperstack/models/attach_volumes.py +99 -0
- hyperstack/models/attach_volumes_payload.py +87 -0
- hyperstack/models/auth_get_token_response_model.py +97 -0
- hyperstack/models/auth_request_login_fields.py +89 -0
- hyperstack/models/auth_request_login_response_model.py +95 -0
- hyperstack/models/auth_user_fields.py +94 -0
- hyperstack/models/auth_user_info_response_model.py +95 -0
- hyperstack/models/billing_immune_resources_response.py +95 -0
- hyperstack/models/billing_response.py +100 -0
- hyperstack/models/billingmetricesfields.py +108 -0
- hyperstack/models/billingmetricesresponse.py +99 -0
- hyperstack/models/cluster_events.py +99 -0
- hyperstack/models/cluster_events_fields.py +104 -0
- hyperstack/models/cluster_fields.py +114 -0
- hyperstack/models/cluster_list_response.py +99 -0
- hyperstack/models/cluster_response.py +95 -0
- hyperstack/models/cluster_versions.py +91 -0
- hyperstack/models/common_response_model.py +89 -0
- hyperstack/models/compliance_fields.py +93 -0
- hyperstack/models/compliance_model_fields.py +99 -0
- hyperstack/models/compliance_payload.py +97 -0
- hyperstack/models/compliance_response.py +95 -0
- hyperstack/models/container_overview_fields.py +95 -0
- hyperstack/models/contract.py +105 -0
- hyperstack/models/contract_billing_history.py +97 -0
- hyperstack/models/contract_billing_history_response_attributes.py +99 -0
- hyperstack/models/contract_billing_history_response_model.py +95 -0
- hyperstack/models/contract_change_payload.py +101 -0
- hyperstack/models/contract_discount_plan_fields.py +103 -0
- hyperstack/models/contract_eligible_instance_fields.py +99 -0
- hyperstack/models/contract_eligible_instances_response.py +101 -0
- hyperstack/models/contract_event_create_model.py +91 -0
- hyperstack/models/contract_gpu_allocation_graph_response.py +95 -0
- hyperstack/models/contract_instance_fields.py +102 -0
- hyperstack/models/contract_instances_response.py +99 -0
- hyperstack/models/contract_resource_payload.py +95 -0
- hyperstack/models/contractl_billing_history_response_metrics.py +87 -0
- hyperstack/models/create_cluster_payload.py +101 -0
- hyperstack/models/create_contract_fields.py +110 -0
- hyperstack/models/create_contract_payload.py +106 -0
- hyperstack/models/create_discount_response.py +95 -0
- hyperstack/models/create_discounts_payload.py +112 -0
- hyperstack/models/create_environment.py +90 -0
- hyperstack/models/create_firewall_payload.py +91 -0
- hyperstack/models/create_firewall_rule_payload.py +104 -0
- hyperstack/models/create_gpu.py +91 -0
- hyperstack/models/create_image.py +91 -0
- hyperstack/models/create_image_payload.py +89 -0
- hyperstack/models/create_instances_payload.py +132 -0
- hyperstack/models/create_instances_response.py +99 -0
- hyperstack/models/create_profile_payload.py +92 -0
- hyperstack/models/create_profile_response.py +95 -0
- hyperstack/models/create_security_rule_payload.py +104 -0
- hyperstack/models/create_snapshot_payload.py +93 -0
- hyperstack/models/create_snapshot_response.py +95 -0
- hyperstack/models/create_update_compliance_response.py +95 -0
- hyperstack/models/create_update_permission_payload.py +93 -0
- hyperstack/models/create_update_permission_response_model.py +95 -0
- hyperstack/models/create_update_policy_payload.py +93 -0
- hyperstack/models/create_update_policy_response_model.py +95 -0
- hyperstack/models/create_update_rbac_role_payload.py +94 -0
- hyperstack/models/create_volume_payload.py +100 -0
- hyperstack/models/creditrechargelimitfield.py +93 -0
- hyperstack/models/creditrechargelimitresponse.py +99 -0
- hyperstack/models/creditrequestresponse.py +99 -0
- hyperstack/models/creditrequests.py +96 -0
- hyperstack/models/customer_contract_detail_response_model.py +95 -0
- hyperstack/models/customer_contract_fields.py +112 -0
- hyperstack/models/customer_fields.py +89 -0
- hyperstack/models/customer_payload.py +89 -0
- hyperstack/models/dashboard_info_response.py +95 -0
- hyperstack/models/data.py +91 -0
- hyperstack/models/deployment_fields.py +98 -0
- hyperstack/models/deployment_fieldsforstartdeployments.py +100 -0
- hyperstack/models/deployments.py +99 -0
- hyperstack/models/detach_volumes.py +99 -0
- hyperstack/models/detach_volumes_payload.py +87 -0
- hyperstack/models/discount_entity_model.py +97 -0
- hyperstack/models/discount_fields.py +100 -0
- hyperstack/models/discount_plan_fields.py +108 -0
- hyperstack/models/discount_resource_fields.py +93 -0
- hyperstack/models/discount_resource_payload.py +93 -0
- hyperstack/models/editlabelofanexisting_vm_payload.py +87 -0
- hyperstack/models/environment.py +95 -0
- hyperstack/models/environment_features.py +87 -0
- hyperstack/models/environment_fields.py +100 -0
- hyperstack/models/environment_fieldsfor_volume.py +87 -0
- hyperstack/models/environments.py +105 -0
- hyperstack/models/error_response_model.py +91 -0
- hyperstack/models/exclude_billing_post_payload.py +91 -0
- hyperstack/models/exclude_billing_post_response.py +91 -0
- hyperstack/models/export_billing_data_request.py +105 -0
- hyperstack/models/export_billing_data_response.py +89 -0
- hyperstack/models/field_change.py +91 -0
- hyperstack/models/firewall_attachment_model.py +98 -0
- hyperstack/models/firewall_attachment_vm_model.py +98 -0
- hyperstack/models/firewall_detail_fields.py +122 -0
- hyperstack/models/firewall_detail_response.py +95 -0
- hyperstack/models/firewall_environment_fields.py +91 -0
- hyperstack/models/firewall_fields.py +102 -0
- hyperstack/models/firewall_response.py +95 -0
- hyperstack/models/firewall_rule.py +95 -0
- hyperstack/models/firewalls_list_response.py +105 -0
- hyperstack/models/flavor_fields.py +120 -0
- hyperstack/models/flavor_item_get_response.py +99 -0
- hyperstack/models/flavor_list_response.py +99 -0
- hyperstack/models/flavor_object_fields.py +95 -0
- hyperstack/models/flavor_payload.py +101 -0
- hyperstack/models/flavor_response.py +95 -0
- hyperstack/models/flavor_vm_fields.py +100 -0
- hyperstack/models/flavor_vms_response.py +99 -0
- hyperstack/models/future_node_model.py +106 -0
- hyperstack/models/future_node_response_model.py +97 -0
- hyperstack/models/future_node_stock_model.py +93 -0
- hyperstack/models/future_node_update_model.py +98 -0
- hyperstack/models/future_nodes_stock_model.py +95 -0
- hyperstack/models/generate_update_api_key_payload.py +89 -0
- hyperstack/models/generate_update_api_key_response_model.py +95 -0
- hyperstack/models/get_all_contract_fields.py +100 -0
- hyperstack/models/get_all_contracts_response_model.py +99 -0
- hyperstack/models/get_all_discount_for_all_organization_response.py +99 -0
- hyperstack/models/get_all_discounts_fields.py +106 -0
- hyperstack/models/get_api_keys_response_model.py +99 -0
- hyperstack/models/get_customer_contracts_list_response_model.py +101 -0
- hyperstack/models/get_discount_detail_response.py +95 -0
- hyperstack/models/get_discount_response.py +99 -0
- hyperstack/models/get_entity_discount_detail_response.py +108 -0
- hyperstack/models/get_invites_response_model.py +99 -0
- hyperstack/models/get_organization_response_model.py +95 -0
- hyperstack/models/get_permissions_response_model.py +99 -0
- hyperstack/models/get_policies_response_model.py +99 -0
- hyperstack/models/get_rbac_roles_response_model.py +99 -0
- hyperstack/models/get_token_payload.py +89 -0
- hyperstack/models/get_user_permissions_response_model.py +99 -0
- hyperstack/models/get_version_response.py +91 -0
- hyperstack/models/getcreditandthresholdinfo.py +91 -0
- hyperstack/models/getcreditandthresholdinfoinresponse.py +95 -0
- hyperstack/models/gpu.py +95 -0
- hyperstack/models/gpu_fields.py +106 -0
- hyperstack/models/gpu_list.py +99 -0
- hyperstack/models/gpu_region_fields.py +89 -0
- hyperstack/models/graph_datetime_value_model.py +89 -0
- hyperstack/models/historical_instance.py +101 -0
- hyperstack/models/historical_instances_fields.py +110 -0
- hyperstack/models/image.py +91 -0
- hyperstack/models/image_fields.py +113 -0
- hyperstack/models/image_get_response.py +101 -0
- hyperstack/models/image_logos.py +99 -0
- hyperstack/models/images.py +99 -0
- hyperstack/models/import_keypair_payload.py +92 -0
- hyperstack/models/import_keypair_response.py +95 -0
- hyperstack/models/infrahub_resource_object_response.py +119 -0
- hyperstack/models/infrahub_resource_object_response_for_customer.py +109 -0
- hyperstack/models/insert_discount_plan_fields.py +112 -0
- hyperstack/models/instance.py +95 -0
- hyperstack/models/instance_environment_fields.py +99 -0
- hyperstack/models/instance_events.py +99 -0
- hyperstack/models/instance_events_fields.py +102 -0
- hyperstack/models/instance_fields.py +156 -0
- hyperstack/models/instance_flavor_fields.py +101 -0
- hyperstack/models/instance_image_fields.py +87 -0
- hyperstack/models/instance_keypair_fields.py +87 -0
- hyperstack/models/instance_overview_fields.py +95 -0
- hyperstack/models/instance_resize_payload.py +93 -0
- hyperstack/models/instances.py +105 -0
- hyperstack/models/instances_summary_fields.py +120 -0
- hyperstack/models/internal_environment_fields.py +94 -0
- hyperstack/models/internal_instance_fields.py +156 -0
- hyperstack/models/internal_instance_flavor_fields.py +104 -0
- hyperstack/models/internal_instance_image_fields.py +95 -0
- hyperstack/models/internal_instance_keypair_fields.py +98 -0
- hyperstack/models/internal_instances_response.py +99 -0
- hyperstack/models/internal_security_rules_fields_for_instance.py +104 -0
- hyperstack/models/internal_volume_attachment_fields.py +98 -0
- hyperstack/models/internal_volume_fields.py +95 -0
- hyperstack/models/internal_volumes_response.py +99 -0
- hyperstack/models/invite_fields.py +94 -0
- hyperstack/models/invite_user_payload.py +88 -0
- hyperstack/models/invite_user_response_model.py +95 -0
- hyperstack/models/keypair_fields.py +98 -0
- hyperstack/models/keypairs.py +105 -0
- hyperstack/models/lable_resonse.py +89 -0
- hyperstack/models/lastdaycostfields.py +93 -0
- hyperstack/models/lastdaycostresponse.py +95 -0
- hyperstack/models/logo_get_response.py +91 -0
- hyperstack/models/logout_payload.py +87 -0
- hyperstack/models/metric_item_fields.py +91 -0
- hyperstack/models/metrics_fields.py +116 -0
- hyperstack/models/name_available_model.py +91 -0
- hyperstack/models/new_configurations_response.py +95 -0
- hyperstack/models/new_model_response.py +101 -0
- hyperstack/models/new_stock_response.py +99 -0
- hyperstack/models/new_stock_retrive_response.py +95 -0
- hyperstack/models/new_stock_update_response_model.py +89 -0
- hyperstack/models/node_model.py +114 -0
- hyperstack/models/node_payload_model.py +97 -0
- hyperstack/models/node_power_usage_model.py +120 -0
- hyperstack/models/node_response_model.py +97 -0
- hyperstack/models/node_stock_payload_model.py +95 -0
- hyperstack/models/node_stock_response_model.py +95 -0
- hyperstack/models/node_stocks_payload.py +93 -0
- hyperstack/models/organization_fields.py +114 -0
- hyperstack/models/organization_level_billing_history.py +99 -0
- hyperstack/models/organization_level_billing_history_resources.py +97 -0
- hyperstack/models/organization_level_billing_history_response_attributes.py +87 -0
- hyperstack/models/organization_level_billing_history_response_metrics.py +97 -0
- hyperstack/models/organization_level_billing_history_response_model.py +95 -0
- hyperstack/models/organization_object_response.py +97 -0
- hyperstack/models/organization_thresholdfields.py +95 -0
- hyperstack/models/organization_user_response_model.py +112 -0
- hyperstack/models/organizationcreditrechargelimitresponse.py +95 -0
- hyperstack/models/organizationthresholdsresponse.py +99 -0
- hyperstack/models/organizationthresholdupdateresponse.py +95 -0
- hyperstack/models/overview_info.py +103 -0
- hyperstack/models/pagination_data.py +91 -0
- hyperstack/models/payment_details_fields.py +106 -0
- hyperstack/models/payment_details_response.py +95 -0
- hyperstack/models/payment_initiate_fields.py +87 -0
- hyperstack/models/payment_initiate_payload.py +87 -0
- hyperstack/models/payment_initiate_response.py +95 -0
- hyperstack/models/permission_fields.py +98 -0
- hyperstack/models/policy_fields.py +104 -0
- hyperstack/models/policy_permission_fields.py +91 -0
- hyperstack/models/power_usage_model.py +89 -0
- hyperstack/models/pricebook_model.py +100 -0
- hyperstack/models/pricebook_resource_object_response.py +107 -0
- hyperstack/models/pricebook_resource_object_response_for_customer.py +99 -0
- hyperstack/models/profile_fields.py +96 -0
- hyperstack/models/profile_list_response.py +99 -0
- hyperstack/models/profile_object_fields.py +89 -0
- hyperstack/models/rbac_role_detail_response_model.py +95 -0
- hyperstack/models/rbac_role_detail_response_model_fixed.py +95 -0
- hyperstack/models/rbac_role_field.py +87 -0
- hyperstack/models/rbac_role_fields.py +114 -0
- hyperstack/models/refresh_token_payload.py +89 -0
- hyperstack/models/region_fields.py +91 -0
- hyperstack/models/region_payload.py +89 -0
- hyperstack/models/region_response.py +95 -0
- hyperstack/models/regions.py +99 -0
- hyperstack/models/remove_member_from_organization_response_model.py +89 -0
- hyperstack/models/remove_member_payload.py +88 -0
- hyperstack/models/request_console.py +91 -0
- hyperstack/models/resource_billing_events_history_metrics.py +95 -0
- hyperstack/models/resource_billing_events_history_response.py +99 -0
- hyperstack/models/resource_billing_response_for_customer.py +95 -0
- hyperstack/models/resource_level_billing_details_attributes.py +91 -0
- hyperstack/models/resource_level_billing_details_metrics.py +101 -0
- hyperstack/models/resource_level_billing_details_vm.py +99 -0
- hyperstack/models/resource_level_billing_details_volume.py +99 -0
- hyperstack/models/resource_level_billing_details_volume_attributes.py +95 -0
- hyperstack/models/resource_level_billing_details_volume_metrics.py +95 -0
- hyperstack/models/resource_level_billing_history.py +105 -0
- hyperstack/models/resource_level_billing_history_resources.py +97 -0
- hyperstack/models/resource_level_billing_history_response_attributes.py +93 -0
- hyperstack/models/resource_level_billing_history_response_metrics.py +91 -0
- hyperstack/models/resource_level_billing_vm_details_resources.py +97 -0
- hyperstack/models/resource_level_billing_volume_details_resources.py +97 -0
- hyperstack/models/resource_level_graph_billing_detail_volume.py +101 -0
- hyperstack/models/resource_level_graph_billing_details_attributes.py +91 -0
- hyperstack/models/resource_level_graph_billing_details_metrics.py +97 -0
- hyperstack/models/resource_level_graph_billing_details_vm.py +101 -0
- hyperstack/models/resource_level_graph_billing_vm_details_resources.py +97 -0
- hyperstack/models/resource_level_graph_billing_volume_details_resources.py +97 -0
- hyperstack/models/resource_level_vm_billing_details_response_model.py +95 -0
- hyperstack/models/resource_level_vm_billing_history_response_model.py +95 -0
- hyperstack/models/resource_level_vm_graph_billing_details_response_model.py +95 -0
- hyperstack/models/resource_level_volume_billing_details_response_model.py +95 -0
- hyperstack/models/resource_level_volume_billing_history_response_model.py +95 -0
- hyperstack/models/resource_level_volume_graph_billing_details_response_model.py +95 -0
- hyperstack/models/resource_object_response_for_customer.py +93 -0
- hyperstack/models/response_model.py +89 -0
- hyperstack/models/role_permission_fields.py +91 -0
- hyperstack/models/role_policy_fields.py +91 -0
- hyperstack/models/security_group_rule.py +95 -0
- hyperstack/models/security_group_rule_fields.py +104 -0
- hyperstack/models/security_rules_fieldsfor_instance.py +104 -0
- hyperstack/models/security_rules_protocol_fields.py +91 -0
- hyperstack/models/set_defaults_payload.py +89 -0
- hyperstack/models/single_visibility_user_response.py +91 -0
- hyperstack/models/snapshot_fields.py +105 -0
- hyperstack/models/snapshot_restore_request.py +89 -0
- hyperstack/models/snapshot_retrieve.py +95 -0
- hyperstack/models/snapshot_retrieve_fields.py +103 -0
- hyperstack/models/snapshots.py +105 -0
- hyperstack/models/start_deployment.py +95 -0
- hyperstack/models/start_deployment_payload.py +93 -0
- hyperstack/models/stock_visibility_user_list_response.py +99 -0
- hyperstack/models/stock_visibility_user_payload.py +87 -0
- hyperstack/models/sub_resource_graph_billing_details_metrics.py +152 -0
- hyperstack/models/sub_resources_costs_response_model.py +101 -0
- hyperstack/models/sub_resources_graph_billing_history_fields.py +97 -0
- hyperstack/models/sub_resources_graph_response_model.py +95 -0
- hyperstack/models/subscribeorunsubscribeupdatepayload.py +87 -0
- hyperstack/models/success_response_model.py +89 -0
- hyperstack/models/template.py +95 -0
- hyperstack/models/template_fields.py +98 -0
- hyperstack/models/templates.py +99 -0
- hyperstack/models/token_fields.py +91 -0
- hyperstack/models/update_contract_payload.py +104 -0
- hyperstack/models/update_discounts_payload.py +102 -0
- hyperstack/models/update_discounts_status_payload.py +87 -0
- hyperstack/models/update_environment.py +88 -0
- hyperstack/models/update_gpu.py +91 -0
- hyperstack/models/update_keypair_name.py +88 -0
- hyperstack/models/update_keypairnameresponse.py +95 -0
- hyperstack/models/update_organization_payload.py +88 -0
- hyperstack/models/update_organization_response_model.py +89 -0
- hyperstack/models/update_template.py +91 -0
- hyperstack/models/user_default_choice_for_user_fields.py +91 -0
- hyperstack/models/user_default_choices_for_user_response.py +99 -0
- hyperstack/models/user_permission_fields.py +91 -0
- hyperstack/models/user_transfer_payload.py +89 -0
- hyperstack/models/userinfopostpayload.py +107 -0
- hyperstack/models/users_info_fields.py +114 -0
- hyperstack/models/users_info_list_response.py +95 -0
- hyperstack/models/verify_api_key_payload.py +87 -0
- hyperstack/models/verify_api_key_response_model.py +95 -0
- hyperstack/models/virtual_machine_usage.py +93 -0
- hyperstack/models/vm_usage_request_payload.py +87 -0
- hyperstack/models/vm_usage_response.py +101 -0
- hyperstack/models/vncurl.py +95 -0
- hyperstack/models/vncurl_fields.py +89 -0
- hyperstack/models/volume.py +95 -0
- hyperstack/models/volume_attachment_fields.py +98 -0
- hyperstack/models/volume_fields.py +116 -0
- hyperstack/models/volume_fieldsfor_instance.py +97 -0
- hyperstack/models/volume_overview_fields.py +91 -0
- hyperstack/models/volume_status_change_fields.py +96 -0
- hyperstack/models/volume_types.py +91 -0
- hyperstack/models/volumes.py +99 -0
- hyperstack/models/volumes_last_status_change_response.py +99 -0
- hyperstack/models/warning_mail_log_fields.py +99 -0
- hyperstack/models/warning_mail_log_response.py +101 -0
- hyperstack/py.typed +0 -0
- hyperstack/rest.py +257 -0
- hyperstack-0.1.23.dist-info/METADATA +16 -0
- hyperstack-0.1.23.dist-info/RECORD +401 -0
- hyperstack-0.1.23.dist-info/WHEEL +5 -0
- hyperstack-0.1.23.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,857 @@
|
|
|
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 StrictInt
|
|
20
|
+
from ..models.common_response_model import CommonResponseModel
|
|
21
|
+
from ..models.get_invites_response_model import GetInvitesResponseModel
|
|
22
|
+
from ..models.invite_user_payload import InviteUserPayload
|
|
23
|
+
from ..models.invite_user_response_model import InviteUserResponseModel
|
|
24
|
+
|
|
25
|
+
from ..api_client import ApiClient, RequestSerialized
|
|
26
|
+
from ..api_response import ApiResponse
|
|
27
|
+
from ..rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class InviteApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def delete_invite(
|
|
45
|
+
self,
|
|
46
|
+
id: StrictInt,
|
|
47
|
+
_request_timeout: Union[
|
|
48
|
+
None,
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
50
|
+
Tuple[
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
53
|
+
]
|
|
54
|
+
] = None,
|
|
55
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
56
|
+
_content_type: Optional[StrictStr] = None,
|
|
57
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
59
|
+
) -> CommonResponseModel:
|
|
60
|
+
"""Delete Invite
|
|
61
|
+
|
|
62
|
+
Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/delete-invite).
|
|
63
|
+
|
|
64
|
+
:param id: (required)
|
|
65
|
+
:type id: int
|
|
66
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
67
|
+
number provided, it will be total request
|
|
68
|
+
timeout. It can also be a pair (tuple) of
|
|
69
|
+
(connection, read) timeouts.
|
|
70
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
71
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
72
|
+
request; this effectively ignores the
|
|
73
|
+
authentication in the spec for a single request.
|
|
74
|
+
:type _request_auth: dict, optional
|
|
75
|
+
:param _content_type: force content-type for the request.
|
|
76
|
+
:type _content_type: str, Optional
|
|
77
|
+
:param _headers: set to override the headers for a single
|
|
78
|
+
request; this effectively ignores the headers
|
|
79
|
+
in the spec for a single request.
|
|
80
|
+
:type _headers: dict, optional
|
|
81
|
+
:param _host_index: set to override the host_index for a single
|
|
82
|
+
request; this effectively ignores the host_index
|
|
83
|
+
in the spec for a single request.
|
|
84
|
+
:type _host_index: int, optional
|
|
85
|
+
:return: Returns the result object.
|
|
86
|
+
""" # noqa: E501
|
|
87
|
+
|
|
88
|
+
_param = self._delete_invite_serialize(
|
|
89
|
+
id=id,
|
|
90
|
+
_request_auth=_request_auth,
|
|
91
|
+
_content_type=_content_type,
|
|
92
|
+
_headers=_headers,
|
|
93
|
+
_host_index=_host_index
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
97
|
+
'200': "CommonResponseModel",
|
|
98
|
+
'400': "ErrorResponseModel",
|
|
99
|
+
'401': "ErrorResponseModel",
|
|
100
|
+
'404': "ErrorResponseModel",
|
|
101
|
+
'500': None,
|
|
102
|
+
}
|
|
103
|
+
response_data = self.api_client.call_api(
|
|
104
|
+
*_param,
|
|
105
|
+
_request_timeout=_request_timeout
|
|
106
|
+
)
|
|
107
|
+
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
|
+
def delete_invite_with_http_info(
|
|
116
|
+
self,
|
|
117
|
+
id: StrictInt,
|
|
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[CommonResponseModel]:
|
|
131
|
+
"""Delete Invite
|
|
132
|
+
|
|
133
|
+
Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/delete-invite).
|
|
134
|
+
|
|
135
|
+
:param id: (required)
|
|
136
|
+
:type id: int
|
|
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._delete_invite_serialize(
|
|
160
|
+
id=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': "CommonResponseModel",
|
|
169
|
+
'400': "ErrorResponseModel",
|
|
170
|
+
'401': "ErrorResponseModel",
|
|
171
|
+
'404': "ErrorResponseModel",
|
|
172
|
+
'500': None,
|
|
173
|
+
}
|
|
174
|
+
response_data = self.api_client.call_api(
|
|
175
|
+
*_param,
|
|
176
|
+
_request_timeout=_request_timeout
|
|
177
|
+
)
|
|
178
|
+
response_data.read()
|
|
179
|
+
return self.api_client.response_deserialize(
|
|
180
|
+
response_data=response_data,
|
|
181
|
+
response_types_map=_response_types_map,
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
@validate_call
|
|
186
|
+
def delete_invite_without_preload_content(
|
|
187
|
+
self,
|
|
188
|
+
id: StrictInt,
|
|
189
|
+
_request_timeout: Union[
|
|
190
|
+
None,
|
|
191
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
192
|
+
Tuple[
|
|
193
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
194
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
195
|
+
]
|
|
196
|
+
] = None,
|
|
197
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
198
|
+
_content_type: Optional[StrictStr] = None,
|
|
199
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
200
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
201
|
+
) -> RESTResponseType:
|
|
202
|
+
"""Delete Invite
|
|
203
|
+
|
|
204
|
+
Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/delete-invite).
|
|
205
|
+
|
|
206
|
+
:param id: (required)
|
|
207
|
+
:type id: int
|
|
208
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
209
|
+
number provided, it will be total request
|
|
210
|
+
timeout. It can also be a pair (tuple) of
|
|
211
|
+
(connection, read) timeouts.
|
|
212
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
213
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
214
|
+
request; this effectively ignores the
|
|
215
|
+
authentication in the spec for a single request.
|
|
216
|
+
:type _request_auth: dict, optional
|
|
217
|
+
:param _content_type: force content-type for the request.
|
|
218
|
+
:type _content_type: str, Optional
|
|
219
|
+
:param _headers: set to override the headers for a single
|
|
220
|
+
request; this effectively ignores the headers
|
|
221
|
+
in the spec for a single request.
|
|
222
|
+
:type _headers: dict, optional
|
|
223
|
+
:param _host_index: set to override the host_index for a single
|
|
224
|
+
request; this effectively ignores the host_index
|
|
225
|
+
in the spec for a single request.
|
|
226
|
+
:type _host_index: int, optional
|
|
227
|
+
:return: Returns the result object.
|
|
228
|
+
""" # noqa: E501
|
|
229
|
+
|
|
230
|
+
_param = self._delete_invite_serialize(
|
|
231
|
+
id=id,
|
|
232
|
+
_request_auth=_request_auth,
|
|
233
|
+
_content_type=_content_type,
|
|
234
|
+
_headers=_headers,
|
|
235
|
+
_host_index=_host_index
|
|
236
|
+
)
|
|
237
|
+
|
|
238
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
239
|
+
'200': "CommonResponseModel",
|
|
240
|
+
'400': "ErrorResponseModel",
|
|
241
|
+
'401': "ErrorResponseModel",
|
|
242
|
+
'404': "ErrorResponseModel",
|
|
243
|
+
'500': None,
|
|
244
|
+
}
|
|
245
|
+
response_data = self.api_client.call_api(
|
|
246
|
+
*_param,
|
|
247
|
+
_request_timeout=_request_timeout
|
|
248
|
+
)
|
|
249
|
+
return response_data.response
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
def _delete_invite_serialize(
|
|
253
|
+
self,
|
|
254
|
+
id,
|
|
255
|
+
_request_auth,
|
|
256
|
+
_content_type,
|
|
257
|
+
_headers,
|
|
258
|
+
_host_index,
|
|
259
|
+
) -> RequestSerialized:
|
|
260
|
+
|
|
261
|
+
_host = None
|
|
262
|
+
|
|
263
|
+
_collection_formats: Dict[str, str] = {
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
_path_params: Dict[str, str] = {}
|
|
267
|
+
_query_params: List[Tuple[str, str]] = []
|
|
268
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
269
|
+
_form_params: List[Tuple[str, str]] = []
|
|
270
|
+
_files: Dict[
|
|
271
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
272
|
+
] = {}
|
|
273
|
+
_body_params: Optional[bytes] = None
|
|
274
|
+
|
|
275
|
+
# process the path parameters
|
|
276
|
+
if id is not None:
|
|
277
|
+
_path_params['id'] = id
|
|
278
|
+
# process the query parameters
|
|
279
|
+
# process the header parameters
|
|
280
|
+
# process the form parameters
|
|
281
|
+
# process the body parameter
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
# set the HTTP header `Accept`
|
|
285
|
+
if 'Accept' not in _header_params:
|
|
286
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
287
|
+
[
|
|
288
|
+
'application/json'
|
|
289
|
+
]
|
|
290
|
+
)
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
# authentication setting
|
|
294
|
+
_auth_settings: List[str] = [
|
|
295
|
+
'apiKey',
|
|
296
|
+
'accessToken'
|
|
297
|
+
]
|
|
298
|
+
|
|
299
|
+
return self.api_client.param_serialize(
|
|
300
|
+
method='DELETE',
|
|
301
|
+
resource_path='/auth/invites/{id}',
|
|
302
|
+
path_params=_path_params,
|
|
303
|
+
query_params=_query_params,
|
|
304
|
+
header_params=_header_params,
|
|
305
|
+
body=_body_params,
|
|
306
|
+
post_params=_form_params,
|
|
307
|
+
files=_files,
|
|
308
|
+
auth_settings=_auth_settings,
|
|
309
|
+
collection_formats=_collection_formats,
|
|
310
|
+
_host=_host,
|
|
311
|
+
_request_auth=_request_auth
|
|
312
|
+
)
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
@validate_call
|
|
318
|
+
def invite_user_to_organization(
|
|
319
|
+
self,
|
|
320
|
+
payload: InviteUserPayload,
|
|
321
|
+
_request_timeout: Union[
|
|
322
|
+
None,
|
|
323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
324
|
+
Tuple[
|
|
325
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
326
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
327
|
+
]
|
|
328
|
+
] = None,
|
|
329
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
330
|
+
_content_type: Optional[StrictStr] = None,
|
|
331
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
332
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
333
|
+
) -> InviteUserResponseModel:
|
|
334
|
+
"""Invite User to Organization
|
|
335
|
+
|
|
336
|
+
Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/invite-member).
|
|
337
|
+
|
|
338
|
+
:param payload: (required)
|
|
339
|
+
:type payload: InviteUserPayload
|
|
340
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
341
|
+
number provided, it will be total request
|
|
342
|
+
timeout. It can also be a pair (tuple) of
|
|
343
|
+
(connection, read) timeouts.
|
|
344
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
345
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
346
|
+
request; this effectively ignores the
|
|
347
|
+
authentication in the spec for a single request.
|
|
348
|
+
:type _request_auth: dict, optional
|
|
349
|
+
:param _content_type: force content-type for the request.
|
|
350
|
+
:type _content_type: str, Optional
|
|
351
|
+
:param _headers: set to override the headers for a single
|
|
352
|
+
request; this effectively ignores the headers
|
|
353
|
+
in the spec for a single request.
|
|
354
|
+
:type _headers: dict, optional
|
|
355
|
+
:param _host_index: set to override the host_index for a single
|
|
356
|
+
request; this effectively ignores the host_index
|
|
357
|
+
in the spec for a single request.
|
|
358
|
+
:type _host_index: int, optional
|
|
359
|
+
:return: Returns the result object.
|
|
360
|
+
""" # noqa: E501
|
|
361
|
+
|
|
362
|
+
_param = self._invite_user_to_organization_serialize(
|
|
363
|
+
payload=payload,
|
|
364
|
+
_request_auth=_request_auth,
|
|
365
|
+
_content_type=_content_type,
|
|
366
|
+
_headers=_headers,
|
|
367
|
+
_host_index=_host_index
|
|
368
|
+
)
|
|
369
|
+
|
|
370
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
371
|
+
'201': "InviteUserResponseModel",
|
|
372
|
+
'400': "ErrorResponseModel",
|
|
373
|
+
'401': "ErrorResponseModel",
|
|
374
|
+
'409': "ErrorResponseModel",
|
|
375
|
+
'500': None,
|
|
376
|
+
}
|
|
377
|
+
response_data = self.api_client.call_api(
|
|
378
|
+
*_param,
|
|
379
|
+
_request_timeout=_request_timeout
|
|
380
|
+
)
|
|
381
|
+
response_data.read()
|
|
382
|
+
return self.api_client.response_deserialize(
|
|
383
|
+
response_data=response_data,
|
|
384
|
+
response_types_map=_response_types_map,
|
|
385
|
+
).data
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
@validate_call
|
|
389
|
+
def invite_user_to_organization_with_http_info(
|
|
390
|
+
self,
|
|
391
|
+
payload: InviteUserPayload,
|
|
392
|
+
_request_timeout: Union[
|
|
393
|
+
None,
|
|
394
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
395
|
+
Tuple[
|
|
396
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
397
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
398
|
+
]
|
|
399
|
+
] = None,
|
|
400
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
401
|
+
_content_type: Optional[StrictStr] = None,
|
|
402
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
403
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
404
|
+
) -> ApiResponse[InviteUserResponseModel]:
|
|
405
|
+
"""Invite User to Organization
|
|
406
|
+
|
|
407
|
+
Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/invite-member).
|
|
408
|
+
|
|
409
|
+
:param payload: (required)
|
|
410
|
+
:type payload: InviteUserPayload
|
|
411
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
412
|
+
number provided, it will be total request
|
|
413
|
+
timeout. It can also be a pair (tuple) of
|
|
414
|
+
(connection, read) timeouts.
|
|
415
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
416
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
417
|
+
request; this effectively ignores the
|
|
418
|
+
authentication in the spec for a single request.
|
|
419
|
+
:type _request_auth: dict, optional
|
|
420
|
+
:param _content_type: force content-type for the request.
|
|
421
|
+
:type _content_type: str, Optional
|
|
422
|
+
:param _headers: set to override the headers for a single
|
|
423
|
+
request; this effectively ignores the headers
|
|
424
|
+
in the spec for a single request.
|
|
425
|
+
:type _headers: dict, optional
|
|
426
|
+
:param _host_index: set to override the host_index for a single
|
|
427
|
+
request; this effectively ignores the host_index
|
|
428
|
+
in the spec for a single request.
|
|
429
|
+
:type _host_index: int, optional
|
|
430
|
+
:return: Returns the result object.
|
|
431
|
+
""" # noqa: E501
|
|
432
|
+
|
|
433
|
+
_param = self._invite_user_to_organization_serialize(
|
|
434
|
+
payload=payload,
|
|
435
|
+
_request_auth=_request_auth,
|
|
436
|
+
_content_type=_content_type,
|
|
437
|
+
_headers=_headers,
|
|
438
|
+
_host_index=_host_index
|
|
439
|
+
)
|
|
440
|
+
|
|
441
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
442
|
+
'201': "InviteUserResponseModel",
|
|
443
|
+
'400': "ErrorResponseModel",
|
|
444
|
+
'401': "ErrorResponseModel",
|
|
445
|
+
'409': "ErrorResponseModel",
|
|
446
|
+
'500': None,
|
|
447
|
+
}
|
|
448
|
+
response_data = self.api_client.call_api(
|
|
449
|
+
*_param,
|
|
450
|
+
_request_timeout=_request_timeout
|
|
451
|
+
)
|
|
452
|
+
response_data.read()
|
|
453
|
+
return self.api_client.response_deserialize(
|
|
454
|
+
response_data=response_data,
|
|
455
|
+
response_types_map=_response_types_map,
|
|
456
|
+
)
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
@validate_call
|
|
460
|
+
def invite_user_to_organization_without_preload_content(
|
|
461
|
+
self,
|
|
462
|
+
payload: InviteUserPayload,
|
|
463
|
+
_request_timeout: Union[
|
|
464
|
+
None,
|
|
465
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
466
|
+
Tuple[
|
|
467
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
468
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
469
|
+
]
|
|
470
|
+
] = None,
|
|
471
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
472
|
+
_content_type: Optional[StrictStr] = None,
|
|
473
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
474
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
475
|
+
) -> RESTResponseType:
|
|
476
|
+
"""Invite User to Organization
|
|
477
|
+
|
|
478
|
+
Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/invite-member).
|
|
479
|
+
|
|
480
|
+
:param payload: (required)
|
|
481
|
+
:type payload: InviteUserPayload
|
|
482
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
483
|
+
number provided, it will be total request
|
|
484
|
+
timeout. It can also be a pair (tuple) of
|
|
485
|
+
(connection, read) timeouts.
|
|
486
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
487
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
488
|
+
request; this effectively ignores the
|
|
489
|
+
authentication in the spec for a single request.
|
|
490
|
+
:type _request_auth: dict, optional
|
|
491
|
+
:param _content_type: force content-type for the request.
|
|
492
|
+
:type _content_type: str, Optional
|
|
493
|
+
:param _headers: set to override the headers for a single
|
|
494
|
+
request; this effectively ignores the headers
|
|
495
|
+
in the spec for a single request.
|
|
496
|
+
:type _headers: dict, optional
|
|
497
|
+
:param _host_index: set to override the host_index for a single
|
|
498
|
+
request; this effectively ignores the host_index
|
|
499
|
+
in the spec for a single request.
|
|
500
|
+
:type _host_index: int, optional
|
|
501
|
+
:return: Returns the result object.
|
|
502
|
+
""" # noqa: E501
|
|
503
|
+
|
|
504
|
+
_param = self._invite_user_to_organization_serialize(
|
|
505
|
+
payload=payload,
|
|
506
|
+
_request_auth=_request_auth,
|
|
507
|
+
_content_type=_content_type,
|
|
508
|
+
_headers=_headers,
|
|
509
|
+
_host_index=_host_index
|
|
510
|
+
)
|
|
511
|
+
|
|
512
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
513
|
+
'201': "InviteUserResponseModel",
|
|
514
|
+
'400': "ErrorResponseModel",
|
|
515
|
+
'401': "ErrorResponseModel",
|
|
516
|
+
'409': "ErrorResponseModel",
|
|
517
|
+
'500': None,
|
|
518
|
+
}
|
|
519
|
+
response_data = self.api_client.call_api(
|
|
520
|
+
*_param,
|
|
521
|
+
_request_timeout=_request_timeout
|
|
522
|
+
)
|
|
523
|
+
return response_data.response
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
def _invite_user_to_organization_serialize(
|
|
527
|
+
self,
|
|
528
|
+
payload,
|
|
529
|
+
_request_auth,
|
|
530
|
+
_content_type,
|
|
531
|
+
_headers,
|
|
532
|
+
_host_index,
|
|
533
|
+
) -> RequestSerialized:
|
|
534
|
+
|
|
535
|
+
_host = None
|
|
536
|
+
|
|
537
|
+
_collection_formats: Dict[str, str] = {
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
_path_params: Dict[str, str] = {}
|
|
541
|
+
_query_params: List[Tuple[str, str]] = []
|
|
542
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
543
|
+
_form_params: List[Tuple[str, str]] = []
|
|
544
|
+
_files: Dict[
|
|
545
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
546
|
+
] = {}
|
|
547
|
+
_body_params: Optional[bytes] = None
|
|
548
|
+
|
|
549
|
+
# process the path parameters
|
|
550
|
+
# process the query parameters
|
|
551
|
+
# process the header parameters
|
|
552
|
+
# process the form parameters
|
|
553
|
+
# process the body parameter
|
|
554
|
+
if payload is not None:
|
|
555
|
+
_body_params = payload
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
# set the HTTP header `Accept`
|
|
559
|
+
if 'Accept' not in _header_params:
|
|
560
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
561
|
+
[
|
|
562
|
+
'application/json'
|
|
563
|
+
]
|
|
564
|
+
)
|
|
565
|
+
|
|
566
|
+
# set the HTTP header `Content-Type`
|
|
567
|
+
if _content_type:
|
|
568
|
+
_header_params['Content-Type'] = _content_type
|
|
569
|
+
else:
|
|
570
|
+
_default_content_type = (
|
|
571
|
+
self.api_client.select_header_content_type(
|
|
572
|
+
[
|
|
573
|
+
'application/json'
|
|
574
|
+
]
|
|
575
|
+
)
|
|
576
|
+
)
|
|
577
|
+
if _default_content_type is not None:
|
|
578
|
+
_header_params['Content-Type'] = _default_content_type
|
|
579
|
+
|
|
580
|
+
# authentication setting
|
|
581
|
+
_auth_settings: List[str] = [
|
|
582
|
+
'apiKey',
|
|
583
|
+
'accessToken'
|
|
584
|
+
]
|
|
585
|
+
|
|
586
|
+
return self.api_client.param_serialize(
|
|
587
|
+
method='POST',
|
|
588
|
+
resource_path='/auth/invites',
|
|
589
|
+
path_params=_path_params,
|
|
590
|
+
query_params=_query_params,
|
|
591
|
+
header_params=_header_params,
|
|
592
|
+
body=_body_params,
|
|
593
|
+
post_params=_form_params,
|
|
594
|
+
files=_files,
|
|
595
|
+
auth_settings=_auth_settings,
|
|
596
|
+
collection_formats=_collection_formats,
|
|
597
|
+
_host=_host,
|
|
598
|
+
_request_auth=_request_auth
|
|
599
|
+
)
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
@validate_call
|
|
605
|
+
def list_invites(
|
|
606
|
+
self,
|
|
607
|
+
_request_timeout: Union[
|
|
608
|
+
None,
|
|
609
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
610
|
+
Tuple[
|
|
611
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
612
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
613
|
+
]
|
|
614
|
+
] = None,
|
|
615
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
616
|
+
_content_type: Optional[StrictStr] = None,
|
|
617
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
618
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
619
|
+
) -> GetInvitesResponseModel:
|
|
620
|
+
"""List Invites
|
|
621
|
+
|
|
622
|
+
Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/list-invites).
|
|
623
|
+
|
|
624
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
625
|
+
number provided, it will be total request
|
|
626
|
+
timeout. It can also be a pair (tuple) of
|
|
627
|
+
(connection, read) timeouts.
|
|
628
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
629
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
630
|
+
request; this effectively ignores the
|
|
631
|
+
authentication in the spec for a single request.
|
|
632
|
+
:type _request_auth: dict, optional
|
|
633
|
+
:param _content_type: force content-type for the request.
|
|
634
|
+
:type _content_type: str, Optional
|
|
635
|
+
:param _headers: set to override the headers for a single
|
|
636
|
+
request; this effectively ignores the headers
|
|
637
|
+
in the spec for a single request.
|
|
638
|
+
:type _headers: dict, optional
|
|
639
|
+
:param _host_index: set to override the host_index for a single
|
|
640
|
+
request; this effectively ignores the host_index
|
|
641
|
+
in the spec for a single request.
|
|
642
|
+
:type _host_index: int, optional
|
|
643
|
+
:return: Returns the result object.
|
|
644
|
+
""" # noqa: E501
|
|
645
|
+
|
|
646
|
+
_param = self._list_invites_serialize(
|
|
647
|
+
_request_auth=_request_auth,
|
|
648
|
+
_content_type=_content_type,
|
|
649
|
+
_headers=_headers,
|
|
650
|
+
_host_index=_host_index
|
|
651
|
+
)
|
|
652
|
+
|
|
653
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
654
|
+
'200': "GetInvitesResponseModel",
|
|
655
|
+
'400': "ErrorResponseModel",
|
|
656
|
+
'401': "ErrorResponseModel",
|
|
657
|
+
'500': None,
|
|
658
|
+
}
|
|
659
|
+
response_data = self.api_client.call_api(
|
|
660
|
+
*_param,
|
|
661
|
+
_request_timeout=_request_timeout
|
|
662
|
+
)
|
|
663
|
+
response_data.read()
|
|
664
|
+
return self.api_client.response_deserialize(
|
|
665
|
+
response_data=response_data,
|
|
666
|
+
response_types_map=_response_types_map,
|
|
667
|
+
).data
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
@validate_call
|
|
671
|
+
def list_invites_with_http_info(
|
|
672
|
+
self,
|
|
673
|
+
_request_timeout: Union[
|
|
674
|
+
None,
|
|
675
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
676
|
+
Tuple[
|
|
677
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
678
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
679
|
+
]
|
|
680
|
+
] = None,
|
|
681
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
682
|
+
_content_type: Optional[StrictStr] = None,
|
|
683
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
684
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
685
|
+
) -> ApiResponse[GetInvitesResponseModel]:
|
|
686
|
+
"""List Invites
|
|
687
|
+
|
|
688
|
+
Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/list-invites).
|
|
689
|
+
|
|
690
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
691
|
+
number provided, it will be total request
|
|
692
|
+
timeout. It can also be a pair (tuple) of
|
|
693
|
+
(connection, read) timeouts.
|
|
694
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
695
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
696
|
+
request; this effectively ignores the
|
|
697
|
+
authentication in the spec for a single request.
|
|
698
|
+
:type _request_auth: dict, optional
|
|
699
|
+
:param _content_type: force content-type for the request.
|
|
700
|
+
:type _content_type: str, Optional
|
|
701
|
+
:param _headers: set to override the headers for a single
|
|
702
|
+
request; this effectively ignores the headers
|
|
703
|
+
in the spec for a single request.
|
|
704
|
+
:type _headers: dict, optional
|
|
705
|
+
:param _host_index: set to override the host_index for a single
|
|
706
|
+
request; this effectively ignores the host_index
|
|
707
|
+
in the spec for a single request.
|
|
708
|
+
:type _host_index: int, optional
|
|
709
|
+
:return: Returns the result object.
|
|
710
|
+
""" # noqa: E501
|
|
711
|
+
|
|
712
|
+
_param = self._list_invites_serialize(
|
|
713
|
+
_request_auth=_request_auth,
|
|
714
|
+
_content_type=_content_type,
|
|
715
|
+
_headers=_headers,
|
|
716
|
+
_host_index=_host_index
|
|
717
|
+
)
|
|
718
|
+
|
|
719
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
720
|
+
'200': "GetInvitesResponseModel",
|
|
721
|
+
'400': "ErrorResponseModel",
|
|
722
|
+
'401': "ErrorResponseModel",
|
|
723
|
+
'500': None,
|
|
724
|
+
}
|
|
725
|
+
response_data = self.api_client.call_api(
|
|
726
|
+
*_param,
|
|
727
|
+
_request_timeout=_request_timeout
|
|
728
|
+
)
|
|
729
|
+
response_data.read()
|
|
730
|
+
return self.api_client.response_deserialize(
|
|
731
|
+
response_data=response_data,
|
|
732
|
+
response_types_map=_response_types_map,
|
|
733
|
+
)
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
@validate_call
|
|
737
|
+
def list_invites_without_preload_content(
|
|
738
|
+
self,
|
|
739
|
+
_request_timeout: Union[
|
|
740
|
+
None,
|
|
741
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
742
|
+
Tuple[
|
|
743
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
744
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
745
|
+
]
|
|
746
|
+
] = None,
|
|
747
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
748
|
+
_content_type: Optional[StrictStr] = None,
|
|
749
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
750
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
751
|
+
) -> RESTResponseType:
|
|
752
|
+
"""List Invites
|
|
753
|
+
|
|
754
|
+
Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/list-invites).
|
|
755
|
+
|
|
756
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
757
|
+
number provided, it will be total request
|
|
758
|
+
timeout. It can also be a pair (tuple) of
|
|
759
|
+
(connection, read) timeouts.
|
|
760
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
761
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
762
|
+
request; this effectively ignores the
|
|
763
|
+
authentication in the spec for a single request.
|
|
764
|
+
:type _request_auth: dict, optional
|
|
765
|
+
:param _content_type: force content-type for the request.
|
|
766
|
+
:type _content_type: str, Optional
|
|
767
|
+
:param _headers: set to override the headers for a single
|
|
768
|
+
request; this effectively ignores the headers
|
|
769
|
+
in the spec for a single request.
|
|
770
|
+
:type _headers: dict, optional
|
|
771
|
+
:param _host_index: set to override the host_index for a single
|
|
772
|
+
request; this effectively ignores the host_index
|
|
773
|
+
in the spec for a single request.
|
|
774
|
+
:type _host_index: int, optional
|
|
775
|
+
:return: Returns the result object.
|
|
776
|
+
""" # noqa: E501
|
|
777
|
+
|
|
778
|
+
_param = self._list_invites_serialize(
|
|
779
|
+
_request_auth=_request_auth,
|
|
780
|
+
_content_type=_content_type,
|
|
781
|
+
_headers=_headers,
|
|
782
|
+
_host_index=_host_index
|
|
783
|
+
)
|
|
784
|
+
|
|
785
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
786
|
+
'200': "GetInvitesResponseModel",
|
|
787
|
+
'400': "ErrorResponseModel",
|
|
788
|
+
'401': "ErrorResponseModel",
|
|
789
|
+
'500': None,
|
|
790
|
+
}
|
|
791
|
+
response_data = self.api_client.call_api(
|
|
792
|
+
*_param,
|
|
793
|
+
_request_timeout=_request_timeout
|
|
794
|
+
)
|
|
795
|
+
return response_data.response
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
def _list_invites_serialize(
|
|
799
|
+
self,
|
|
800
|
+
_request_auth,
|
|
801
|
+
_content_type,
|
|
802
|
+
_headers,
|
|
803
|
+
_host_index,
|
|
804
|
+
) -> RequestSerialized:
|
|
805
|
+
|
|
806
|
+
_host = None
|
|
807
|
+
|
|
808
|
+
_collection_formats: Dict[str, str] = {
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
_path_params: Dict[str, str] = {}
|
|
812
|
+
_query_params: List[Tuple[str, str]] = []
|
|
813
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
814
|
+
_form_params: List[Tuple[str, str]] = []
|
|
815
|
+
_files: Dict[
|
|
816
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
817
|
+
] = {}
|
|
818
|
+
_body_params: Optional[bytes] = None
|
|
819
|
+
|
|
820
|
+
# process the path parameters
|
|
821
|
+
# process the query parameters
|
|
822
|
+
# process the header parameters
|
|
823
|
+
# process the form parameters
|
|
824
|
+
# process the body parameter
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
# set the HTTP header `Accept`
|
|
828
|
+
if 'Accept' not in _header_params:
|
|
829
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
830
|
+
[
|
|
831
|
+
'application/json'
|
|
832
|
+
]
|
|
833
|
+
)
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
# authentication setting
|
|
837
|
+
_auth_settings: List[str] = [
|
|
838
|
+
'apiKey',
|
|
839
|
+
'accessToken'
|
|
840
|
+
]
|
|
841
|
+
|
|
842
|
+
return self.api_client.param_serialize(
|
|
843
|
+
method='GET',
|
|
844
|
+
resource_path='/auth/invites',
|
|
845
|
+
path_params=_path_params,
|
|
846
|
+
query_params=_query_params,
|
|
847
|
+
header_params=_header_params,
|
|
848
|
+
body=_body_params,
|
|
849
|
+
post_params=_form_params,
|
|
850
|
+
files=_files,
|
|
851
|
+
auth_settings=_auth_settings,
|
|
852
|
+
collection_formats=_collection_formats,
|
|
853
|
+
_host=_host,
|
|
854
|
+
_request_auth=_request_auth
|
|
855
|
+
)
|
|
856
|
+
|
|
857
|
+
|