hyperstack 0.1.23__py3-none-any.whl → 1.41.0a0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hyperstack/__init__.py +79 -131
- hyperstack/api/__init__.py +2 -0
- hyperstack/api/alive_api.py +240 -0
- hyperstack/api/api_key_api.py +16 -20
- hyperstack/api/assigning_member_role_api.py +15 -17
- hyperstack/api/auth_api.py +1050 -5
- hyperstack/api/beta_access_api.py +856 -0
- hyperstack/api/billing_api.py +6461 -673
- hyperstack/api/calculate_api.py +8 -9
- hyperstack/api/callbacks_api.py +120 -126
- hyperstack/api/cluster_events_api.py +1 -2
- hyperstack/api/clusters_api.py +2492 -146
- hyperstack/api/compliance_api.py +14 -18
- hyperstack/api/credit_api.py +17 -15
- hyperstack/api/customer_contract_api.py +30 -33
- hyperstack/api/dashboard_api.py +4 -5
- hyperstack/api/deployment_api.py +4 -8
- hyperstack/api/environment_api.py +285 -16
- hyperstack/api/firewall_attachment_api.py +11 -9
- hyperstack/api/firewalls_api.py +341 -347
- hyperstack/api/flavor_api.py +4 -5
- hyperstack/api/floating_ip_api.py +50 -49
- hyperstack/api/gpu_api.py +1 -2
- hyperstack/api/image_api.py +35 -39
- hyperstack/api/invite_api.py +288 -18
- hyperstack/api/keypair_api.py +22 -26
- hyperstack/api/organization_api.py +12 -15
- hyperstack/api/partner_config_api.py +564 -0
- hyperstack/api/payment_api.py +299 -18
- hyperstack/api/permission_api.py +4 -5
- hyperstack/api/policy_api.py +4 -5
- hyperstack/api/pricebook_api.py +14 -12
- hyperstack/api/profile_api.py +13 -17
- hyperstack/api/rbac_role_api.py +20 -25
- hyperstack/api/region_api.py +7 -8
- hyperstack/api/security_rules_api.py +1 -2
- hyperstack/api/snapshot_events_api.py +1 -2
- hyperstack/api/snapshots_api.py +166 -172
- hyperstack/api/stock_api.py +4 -5
- hyperstack/api/template_api.py +14 -19
- hyperstack/api/user_api.py +55 -49
- hyperstack/api/user_detail_choice_api.py +1 -2
- hyperstack/api/user_permission_api.py +8 -10
- hyperstack/api/virtual_machine_api.py +1529 -929
- hyperstack/api/virtual_machine_events_api.py +21 -22
- hyperstack/api/vnc_url_api.py +54 -50
- hyperstack/api/volume_api.py +340 -40
- hyperstack/api/volume_attachment_api.py +342 -42
- hyperstack/api_client.py +1 -1
- hyperstack/configuration.py +154 -47
- hyperstack/models/__init__.py +76 -130
- hyperstack/models/{environment_fieldsfor_volume.py → access_token_field.py} +7 -7
- hyperstack/models/attach_volume_fields.py +6 -2
- hyperstack/models/attach_volumes_payload.py +4 -2
- hyperstack/models/{virtual_machine_usage.py → attachments_fields_for_volume.py} +13 -11
- hyperstack/models/{flavor_vm_fields.py → attributes.py} +15 -18
- hyperstack/models/auth_get_token_response_model.py +4 -6
- hyperstack/models/{future_node_model.py → beta_access_request_fields.py} +27 -25
- hyperstack/models/{create_gpu.py → beta_access_request_payload.py} +9 -11
- hyperstack/models/{create_discount_response.py → beta_access_request_response_model.py} +11 -11
- hyperstack/models/{export_billing_data_request.py → beta_access_status_item.py} +20 -23
- hyperstack/models/{get_all_discount_for_all_organization_response.py → beta_access_status_response_model.py} +15 -15
- hyperstack/models/{exclude_billing_post_response.py → billing_history.py} +13 -11
- hyperstack/models/billing_history_data_synthesis_details.py +105 -0
- hyperstack/models/{vm_usage_response.py → billing_history_fine_tuning.py} +23 -19
- hyperstack/models/billing_history_model_evalutation_details.py +105 -0
- hyperstack/models/{get_all_discounts_fields.py → billing_history_serverless_inference.py} +23 -24
- hyperstack/models/billing_history_serverless_inference_details.py +105 -0
- hyperstack/models/{billingmetricesfields.py → billing_metrices_fields.py} +4 -4
- hyperstack/models/{billingmetricesresponse.py → billing_metrices_response.py} +7 -7
- hyperstack/models/cluster_fields.py +27 -9
- hyperstack/models/{add_update_flavor_organization_payload.py → cluster_flavor_fields.py} +28 -26
- hyperstack/models/{historical_instances_fields.py → cluster_node_fields.py} +24 -22
- hyperstack/models/{internal_instance_flavor_fields.py → cluster_node_group_fields.py} +17 -17
- hyperstack/models/{create_update_policy_response_model.py → cluster_node_groups_create_response.py} +21 -11
- hyperstack/models/{create_update_permission_response_model.py → cluster_node_groups_get_response.py} +11 -11
- hyperstack/models/{auth_request_login_response_model.py → cluster_node_groups_list_response.py} +15 -11
- hyperstack/models/{contract_eligible_instance_fields.py → cluster_node_instance_fields.py} +13 -11
- hyperstack/models/{image_logos.py → cluster_nodes_list_response.py} +14 -14
- hyperstack/models/{internal_environment_fields.py → cluster_version.py} +13 -9
- hyperstack/models/cluster_versions.py +10 -2
- hyperstack/models/{future_nodes_stock_model.py → colors.py} +17 -15
- hyperstack/models/contract_discount_plan_fields.py +3 -1
- hyperstack/models/contract_instance_fields.py +7 -1
- hyperstack/models/{future_node_response_model.py → create_cluster_node_fields.py} +23 -18
- hyperstack/models/{update_gpu.py → create_cluster_node_group_payload.py} +12 -11
- hyperstack/models/create_cluster_payload.py +31 -8
- hyperstack/models/create_environment.py +1 -1
- hyperstack/models/create_instances_payload.py +10 -8
- hyperstack/models/create_profile_payload.py +1 -1
- hyperstack/models/create_snapshot_payload.py +2 -4
- hyperstack/models/create_volume_payload.py +1 -1
- hyperstack/models/data_synthesis_billing_history_details_response_schema.py +95 -0
- hyperstack/models/{deployment_fieldsforstartdeployments.py → deployment_fields_for_start_deployments.py} +4 -4
- hyperstack/models/{editlabelofanexisting_vm_payload.py → edit_label_of_an_existing_vm_payload.py} +4 -4
- hyperstack/models/environment_features.py +14 -2
- hyperstack/models/{node_stocks_payload.py → environment_fields_for_volume.py} +10 -12
- hyperstack/models/flavor_fields.py +3 -1
- hyperstack/models/{customer_fields.py → flavor_label_fields.py} +7 -7
- hyperstack/models/{getcreditandthresholdinfo.py → get_credit_and_threshold_info.py} +4 -4
- hyperstack/models/{getcreditandthresholdinfoinresponse.py → get_credit_and_threshold_info_in_response.py} +7 -7
- hyperstack/models/{region_payload.py → get_instance_logs_response.py} +7 -9
- hyperstack/models/instance_fields.py +14 -4
- hyperstack/models/instance_flavor_fields.py +13 -1
- hyperstack/models/{flavor_response.py → keypair_environment_features.py} +20 -16
- hyperstack/models/{internal_instance_keypair_fields.py → keypair_environment_fields.py} +13 -11
- hyperstack/models/keypair_fields.py +6 -2
- hyperstack/models/{lastdaycostfields.py → last_day_cost_fields.py} +4 -4
- hyperstack/models/{lastdaycostresponse.py → last_day_cost_response.py} +7 -7
- hyperstack/models/{export_billing_data_response.py → logos.py} +13 -9
- hyperstack/models/{creditrequestresponse.py → master_flavors_response.py} +14 -14
- hyperstack/models/{customer_payload.py → mfa_status_fields.py} +8 -10
- hyperstack/models/{gpu.py → mfa_status_response.py} +11 -11
- hyperstack/models/model_evaluation_billing_history_details_response_schema.py +95 -0
- hyperstack/models/{organization_thresholdfields.py → organization_threshold_fields.py} +4 -4
- hyperstack/models/{organizationthresholdupdateresponse.py → organization_threshold_update_response.py} +7 -7
- hyperstack/models/{organizationthresholdsresponse.py → organization_thresholds_response.py} +7 -7
- hyperstack/models/{logo_get_response.py → pagination.py} +12 -12
- hyperstack/models/{billing_response.py → partner_config.py} +31 -20
- hyperstack/models/payment_details_fields.py +5 -1
- hyperstack/models/{logout_payload.py → primary_color.py} +10 -8
- hyperstack/models/region_fields.py +16 -2
- hyperstack/models/{vm_usage_request_payload.py → request_instance_logs_payload.py} +8 -8
- hyperstack/models/{stock_visibility_user_payload.py → request_instance_logs_response.py} +8 -8
- hyperstack/models/{contract_billing_history.py → resource_level_billing_bucket_details_resources.py} +10 -10
- hyperstack/models/{node_response_model.py → resource_level_billing_history_resources_cluster.py} +21 -11
- hyperstack/models/resource_level_billing_history_response_attributes.py +3 -1
- hyperstack/models/{get_all_contracts_response_model.py → resource_level_bucket_billing_details_response_model.py} +11 -15
- hyperstack/models/{contract_billing_history_response_model.py → resource_level_bucket_billing_history_response_model.py} +11 -11
- hyperstack/models/resource_level_cluster_billing_details_response_model.py +95 -0
- hyperstack/models/resource_level_cluster_billing_history_response_model.py +95 -0
- hyperstack/models/{get_discount_detail_response.py → resource_level_cluster_graph_billing_details_response_model.py} +11 -11
- hyperstack/models/{organization_object_response.py → resource_level_graph_billing_details_bucket.py} +18 -14
- hyperstack/models/{update_discounts_status_payload.py → secondary_color.py} +10 -8
- hyperstack/models/{security_rules_fieldsfor_instance.py → security_rules_fields_for_instance.py} +4 -4
- hyperstack/models/serverless_inferenced_billing_history_details_response_schema.py +95 -0
- hyperstack/models/snapshot_fields.py +6 -1
- hyperstack/models/snapshot_retrieve_fields.py +29 -2
- hyperstack/models/start_deployment.py +3 -3
- hyperstack/models/{subscribeorunsubscribeupdatepayload.py → subscribe_or_unsubscribe_update_payload.py} +4 -4
- hyperstack/models/token_based_billing_history_response.py +95 -0
- hyperstack/models/{update_keypairnameresponse.py → update_keypair_name_response.py} +4 -4
- hyperstack/models/update_volume_attachment_payload.py +87 -0
- hyperstack/models/{verify_api_key_payload.py → update_volume_payload.py} +7 -7
- hyperstack/models/{stock_visibility_user_list_response.py → update_volume_response.py} +14 -16
- hyperstack/models/{auth_request_login_fields.py → uris.py} +19 -9
- hyperstack/models/{userinfopostpayload.py → user_info_post_payload.py} +4 -4
- hyperstack/models/{node_stock_response_model.py → user_organizations_response.py} +14 -14
- hyperstack/models/users_info_fields.py +3 -1
- hyperstack/models/volume_attachment_fields.py +9 -5
- hyperstack/models/volume_fields.py +14 -4
- hyperstack/models/{volume_fieldsfor_instance.py → volume_fields_for_instance.py} +4 -4
- hyperstack/models/volumes.py +17 -11
- hyperstack/models/{instances_summary_fields.py → volumes_fields.py} +33 -29
- hyperstack/models/workload_billing_history_response.py +95 -0
- {hyperstack-0.1.23.dist-info → hyperstack-1.41.0a0.dist-info}/METADATA +9 -2
- hyperstack-1.41.0a0.dist-info/RECORD +349 -0
- {hyperstack-0.1.23.dist-info → hyperstack-1.41.0a0.dist-info}/WHEEL +1 -1
- hyperstack/models/api_key_verify_fields.py +0 -93
- hyperstack/models/billing_immune_resources_response.py +0 -95
- hyperstack/models/contract_billing_history_response_attributes.py +0 -99
- hyperstack/models/contract_change_payload.py +0 -101
- hyperstack/models/contract_eligible_instances_response.py +0 -101
- hyperstack/models/contract_event_create_model.py +0 -91
- hyperstack/models/contract_resource_payload.py +0 -95
- hyperstack/models/contractl_billing_history_response_metrics.py +0 -87
- hyperstack/models/create_contract_fields.py +0 -110
- hyperstack/models/create_contract_payload.py +0 -106
- hyperstack/models/create_discounts_payload.py +0 -112
- hyperstack/models/create_update_permission_payload.py +0 -93
- hyperstack/models/create_update_policy_payload.py +0 -93
- hyperstack/models/creditrechargelimitfield.py +0 -93
- hyperstack/models/creditrechargelimitresponse.py +0 -99
- hyperstack/models/creditrequests.py +0 -96
- hyperstack/models/data.py +0 -91
- hyperstack/models/discount_entity_model.py +0 -97
- hyperstack/models/discount_fields.py +0 -100
- hyperstack/models/discount_plan_fields.py +0 -108
- hyperstack/models/discount_resource_fields.py +0 -93
- hyperstack/models/discount_resource_payload.py +0 -93
- hyperstack/models/exclude_billing_post_payload.py +0 -91
- hyperstack/models/field_change.py +0 -91
- hyperstack/models/flavor_payload.py +0 -101
- hyperstack/models/flavor_vms_response.py +0 -99
- hyperstack/models/future_node_stock_model.py +0 -93
- hyperstack/models/future_node_update_model.py +0 -98
- hyperstack/models/get_all_contract_fields.py +0 -100
- hyperstack/models/get_discount_response.py +0 -99
- hyperstack/models/get_entity_discount_detail_response.py +0 -108
- hyperstack/models/get_token_payload.py +0 -89
- hyperstack/models/get_version_response.py +0 -91
- hyperstack/models/historical_instance.py +0 -101
- hyperstack/models/infrahub_resource_object_response.py +0 -119
- hyperstack/models/insert_discount_plan_fields.py +0 -112
- hyperstack/models/internal_instance_fields.py +0 -156
- hyperstack/models/internal_instance_image_fields.py +0 -95
- hyperstack/models/internal_instances_response.py +0 -99
- hyperstack/models/internal_security_rules_fields_for_instance.py +0 -104
- hyperstack/models/internal_volume_attachment_fields.py +0 -98
- hyperstack/models/internal_volume_fields.py +0 -95
- hyperstack/models/internal_volumes_response.py +0 -99
- hyperstack/models/new_stock_update_response_model.py +0 -89
- hyperstack/models/node_model.py +0 -114
- hyperstack/models/node_payload_model.py +0 -97
- hyperstack/models/node_power_usage_model.py +0 -120
- hyperstack/models/node_stock_payload_model.py +0 -95
- hyperstack/models/organizationcreditrechargelimitresponse.py +0 -95
- hyperstack/models/power_usage_model.py +0 -89
- hyperstack/models/pricebook_resource_object_response.py +0 -107
- hyperstack/models/refresh_token_payload.py +0 -89
- hyperstack/models/region_response.py +0 -95
- hyperstack/models/set_defaults_payload.py +0 -89
- hyperstack/models/single_visibility_user_response.py +0 -91
- hyperstack/models/success_response_model.py +0 -89
- hyperstack/models/token_fields.py +0 -91
- hyperstack/models/update_contract_payload.py +0 -104
- hyperstack/models/update_discounts_payload.py +0 -102
- hyperstack/models/user_transfer_payload.py +0 -89
- hyperstack/models/verify_api_key_response_model.py +0 -95
- hyperstack/models/volume_status_change_fields.py +0 -96
- hyperstack/models/volumes_last_status_change_response.py +0 -99
- hyperstack/models/warning_mail_log_fields.py +0 -99
- hyperstack/models/warning_mail_log_response.py +0 -101
- hyperstack-0.1.23.dist-info/RECORD +0 -401
- {hyperstack-0.1.23.dist-info → hyperstack-1.41.0a0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,856 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Infrahub-API
|
|
5
|
+
|
|
6
|
+
Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import StrictStr
|
|
20
|
+
from ..models.beta_access_request_payload import BetaAccessRequestPayload
|
|
21
|
+
from ..models.beta_access_request_response_model import BetaAccessRequestResponseModel
|
|
22
|
+
from ..models.beta_access_status_response_model import BetaAccessStatusResponseModel
|
|
23
|
+
|
|
24
|
+
from ..api_client import ApiClient, RequestSerialized
|
|
25
|
+
from ..api_response import ApiResponse
|
|
26
|
+
from ..rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class BetaAccessApi:
|
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
31
|
+
Ref: https://openapi-generator.tech
|
|
32
|
+
|
|
33
|
+
Do not edit the class manually.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, api_client=None) -> None:
|
|
37
|
+
if api_client is None:
|
|
38
|
+
api_client = ApiClient.get_default()
|
|
39
|
+
self.api_client = api_client
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@validate_call
|
|
43
|
+
def create_a_beta_access_request(
|
|
44
|
+
self,
|
|
45
|
+
payload: BetaAccessRequestPayload,
|
|
46
|
+
_request_timeout: Union[
|
|
47
|
+
None,
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Tuple[
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
52
|
+
]
|
|
53
|
+
] = None,
|
|
54
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_content_type: Optional[StrictStr] = None,
|
|
56
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
58
|
+
) -> BetaAccessRequestResponseModel:
|
|
59
|
+
"""Create a new beta access request
|
|
60
|
+
|
|
61
|
+
Creates a new beta access request for the current user
|
|
62
|
+
|
|
63
|
+
:param payload: (required)
|
|
64
|
+
:type payload: BetaAccessRequestPayload
|
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
66
|
+
number provided, it will be total request
|
|
67
|
+
timeout. It can also be a pair (tuple) of
|
|
68
|
+
(connection, read) timeouts.
|
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
71
|
+
request; this effectively ignores the
|
|
72
|
+
authentication in the spec for a single request.
|
|
73
|
+
:type _request_auth: dict, optional
|
|
74
|
+
:param _content_type: force content-type for the request.
|
|
75
|
+
:type _content_type: str, Optional
|
|
76
|
+
:param _headers: set to override the headers for a single
|
|
77
|
+
request; this effectively ignores the headers
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _headers: dict, optional
|
|
80
|
+
:param _host_index: set to override the host_index for a single
|
|
81
|
+
request; this effectively ignores the host_index
|
|
82
|
+
in the spec for a single request.
|
|
83
|
+
:type _host_index: int, optional
|
|
84
|
+
:return: Returns the result object.
|
|
85
|
+
""" # noqa: E501
|
|
86
|
+
|
|
87
|
+
_param = self._create_a_beta_access_request_serialize(
|
|
88
|
+
payload=payload,
|
|
89
|
+
_request_auth=_request_auth,
|
|
90
|
+
_content_type=_content_type,
|
|
91
|
+
_headers=_headers,
|
|
92
|
+
_host_index=_host_index
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
96
|
+
'201': "BetaAccessRequestResponseModel",
|
|
97
|
+
'400': "ErrorResponseModel",
|
|
98
|
+
'401': "ErrorResponseModel",
|
|
99
|
+
'404': "ErrorResponseModel",
|
|
100
|
+
'500': None,
|
|
101
|
+
}
|
|
102
|
+
response_data = self.api_client.call_api(
|
|
103
|
+
*_param,
|
|
104
|
+
_request_timeout=_request_timeout
|
|
105
|
+
)
|
|
106
|
+
response_data.read()
|
|
107
|
+
return self.api_client.response_deserialize(
|
|
108
|
+
response_data=response_data,
|
|
109
|
+
response_types_map=_response_types_map,
|
|
110
|
+
).data
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
@validate_call
|
|
114
|
+
def create_a_beta_access_request_with_http_info(
|
|
115
|
+
self,
|
|
116
|
+
payload: BetaAccessRequestPayload,
|
|
117
|
+
_request_timeout: Union[
|
|
118
|
+
None,
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Tuple[
|
|
121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
123
|
+
]
|
|
124
|
+
] = None,
|
|
125
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_content_type: Optional[StrictStr] = None,
|
|
127
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
128
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
129
|
+
) -> ApiResponse[BetaAccessRequestResponseModel]:
|
|
130
|
+
"""Create a new beta access request
|
|
131
|
+
|
|
132
|
+
Creates a new beta access request for the current user
|
|
133
|
+
|
|
134
|
+
:param payload: (required)
|
|
135
|
+
:type payload: BetaAccessRequestPayload
|
|
136
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
137
|
+
number provided, it will be total request
|
|
138
|
+
timeout. It can also be a pair (tuple) of
|
|
139
|
+
(connection, read) timeouts.
|
|
140
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
141
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
142
|
+
request; this effectively ignores the
|
|
143
|
+
authentication in the spec for a single request.
|
|
144
|
+
:type _request_auth: dict, optional
|
|
145
|
+
:param _content_type: force content-type for the request.
|
|
146
|
+
:type _content_type: str, Optional
|
|
147
|
+
:param _headers: set to override the headers for a single
|
|
148
|
+
request; this effectively ignores the headers
|
|
149
|
+
in the spec for a single request.
|
|
150
|
+
:type _headers: dict, optional
|
|
151
|
+
:param _host_index: set to override the host_index for a single
|
|
152
|
+
request; this effectively ignores the host_index
|
|
153
|
+
in the spec for a single request.
|
|
154
|
+
:type _host_index: int, optional
|
|
155
|
+
:return: Returns the result object.
|
|
156
|
+
""" # noqa: E501
|
|
157
|
+
|
|
158
|
+
_param = self._create_a_beta_access_request_serialize(
|
|
159
|
+
payload=payload,
|
|
160
|
+
_request_auth=_request_auth,
|
|
161
|
+
_content_type=_content_type,
|
|
162
|
+
_headers=_headers,
|
|
163
|
+
_host_index=_host_index
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
167
|
+
'201': "BetaAccessRequestResponseModel",
|
|
168
|
+
'400': "ErrorResponseModel",
|
|
169
|
+
'401': "ErrorResponseModel",
|
|
170
|
+
'404': "ErrorResponseModel",
|
|
171
|
+
'500': None,
|
|
172
|
+
}
|
|
173
|
+
response_data = self.api_client.call_api(
|
|
174
|
+
*_param,
|
|
175
|
+
_request_timeout=_request_timeout
|
|
176
|
+
)
|
|
177
|
+
response_data.read()
|
|
178
|
+
return self.api_client.response_deserialize(
|
|
179
|
+
response_data=response_data,
|
|
180
|
+
response_types_map=_response_types_map,
|
|
181
|
+
)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
@validate_call
|
|
185
|
+
def create_a_beta_access_request_without_preload_content(
|
|
186
|
+
self,
|
|
187
|
+
payload: BetaAccessRequestPayload,
|
|
188
|
+
_request_timeout: Union[
|
|
189
|
+
None,
|
|
190
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
191
|
+
Tuple[
|
|
192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
193
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
194
|
+
]
|
|
195
|
+
] = None,
|
|
196
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
197
|
+
_content_type: Optional[StrictStr] = None,
|
|
198
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
199
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
200
|
+
) -> RESTResponseType:
|
|
201
|
+
"""Create a new beta access request
|
|
202
|
+
|
|
203
|
+
Creates a new beta access request for the current user
|
|
204
|
+
|
|
205
|
+
:param payload: (required)
|
|
206
|
+
:type payload: BetaAccessRequestPayload
|
|
207
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
208
|
+
number provided, it will be total request
|
|
209
|
+
timeout. It can also be a pair (tuple) of
|
|
210
|
+
(connection, read) timeouts.
|
|
211
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
212
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
213
|
+
request; this effectively ignores the
|
|
214
|
+
authentication in the spec for a single request.
|
|
215
|
+
:type _request_auth: dict, optional
|
|
216
|
+
:param _content_type: force content-type for the request.
|
|
217
|
+
:type _content_type: str, Optional
|
|
218
|
+
:param _headers: set to override the headers for a single
|
|
219
|
+
request; this effectively ignores the headers
|
|
220
|
+
in the spec for a single request.
|
|
221
|
+
:type _headers: dict, optional
|
|
222
|
+
:param _host_index: set to override the host_index for a single
|
|
223
|
+
request; this effectively ignores the host_index
|
|
224
|
+
in the spec for a single request.
|
|
225
|
+
:type _host_index: int, optional
|
|
226
|
+
:return: Returns the result object.
|
|
227
|
+
""" # noqa: E501
|
|
228
|
+
|
|
229
|
+
_param = self._create_a_beta_access_request_serialize(
|
|
230
|
+
payload=payload,
|
|
231
|
+
_request_auth=_request_auth,
|
|
232
|
+
_content_type=_content_type,
|
|
233
|
+
_headers=_headers,
|
|
234
|
+
_host_index=_host_index
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
238
|
+
'201': "BetaAccessRequestResponseModel",
|
|
239
|
+
'400': "ErrorResponseModel",
|
|
240
|
+
'401': "ErrorResponseModel",
|
|
241
|
+
'404': "ErrorResponseModel",
|
|
242
|
+
'500': None,
|
|
243
|
+
}
|
|
244
|
+
response_data = self.api_client.call_api(
|
|
245
|
+
*_param,
|
|
246
|
+
_request_timeout=_request_timeout
|
|
247
|
+
)
|
|
248
|
+
return response_data.response
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
def _create_a_beta_access_request_serialize(
|
|
252
|
+
self,
|
|
253
|
+
payload,
|
|
254
|
+
_request_auth,
|
|
255
|
+
_content_type,
|
|
256
|
+
_headers,
|
|
257
|
+
_host_index,
|
|
258
|
+
) -> RequestSerialized:
|
|
259
|
+
|
|
260
|
+
_host = None
|
|
261
|
+
|
|
262
|
+
_collection_formats: Dict[str, str] = {
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
_path_params: Dict[str, str] = {}
|
|
266
|
+
_query_params: List[Tuple[str, str]] = []
|
|
267
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
268
|
+
_form_params: List[Tuple[str, str]] = []
|
|
269
|
+
_files: Dict[
|
|
270
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
271
|
+
] = {}
|
|
272
|
+
_body_params: Optional[bytes] = None
|
|
273
|
+
|
|
274
|
+
# process the path parameters
|
|
275
|
+
# process the query parameters
|
|
276
|
+
# process the header parameters
|
|
277
|
+
# process the form parameters
|
|
278
|
+
# process the body parameter
|
|
279
|
+
if payload is not None:
|
|
280
|
+
_body_params = payload
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
# set the HTTP header `Accept`
|
|
284
|
+
if 'Accept' not in _header_params:
|
|
285
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
286
|
+
[
|
|
287
|
+
'application/json'
|
|
288
|
+
]
|
|
289
|
+
)
|
|
290
|
+
|
|
291
|
+
# set the HTTP header `Content-Type`
|
|
292
|
+
if _content_type:
|
|
293
|
+
_header_params['Content-Type'] = _content_type
|
|
294
|
+
else:
|
|
295
|
+
_default_content_type = (
|
|
296
|
+
self.api_client.select_header_content_type(
|
|
297
|
+
[
|
|
298
|
+
'application/json'
|
|
299
|
+
]
|
|
300
|
+
)
|
|
301
|
+
)
|
|
302
|
+
if _default_content_type is not None:
|
|
303
|
+
_header_params['Content-Type'] = _default_content_type
|
|
304
|
+
|
|
305
|
+
# authentication setting
|
|
306
|
+
_auth_settings: List[str] = [
|
|
307
|
+
'apiKey'
|
|
308
|
+
]
|
|
309
|
+
|
|
310
|
+
return self.api_client.param_serialize(
|
|
311
|
+
method='POST',
|
|
312
|
+
resource_path='/auth/beta-access/requests',
|
|
313
|
+
path_params=_path_params,
|
|
314
|
+
query_params=_query_params,
|
|
315
|
+
header_params=_header_params,
|
|
316
|
+
body=_body_params,
|
|
317
|
+
post_params=_form_params,
|
|
318
|
+
files=_files,
|
|
319
|
+
auth_settings=_auth_settings,
|
|
320
|
+
collection_formats=_collection_formats,
|
|
321
|
+
_host=_host,
|
|
322
|
+
_request_auth=_request_auth
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
@validate_call
|
|
329
|
+
def get_beta_access_status(
|
|
330
|
+
self,
|
|
331
|
+
_request_timeout: Union[
|
|
332
|
+
None,
|
|
333
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
334
|
+
Tuple[
|
|
335
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
336
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
337
|
+
]
|
|
338
|
+
] = None,
|
|
339
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
340
|
+
_content_type: Optional[StrictStr] = None,
|
|
341
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
342
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
343
|
+
) -> BetaAccessStatusResponseModel:
|
|
344
|
+
"""Check the status of all beta access requests
|
|
345
|
+
|
|
346
|
+
Check the status of all beta access requests.
|
|
347
|
+
|
|
348
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
349
|
+
number provided, it will be total request
|
|
350
|
+
timeout. It can also be a pair (tuple) of
|
|
351
|
+
(connection, read) timeouts.
|
|
352
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
353
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
354
|
+
request; this effectively ignores the
|
|
355
|
+
authentication in the spec for a single request.
|
|
356
|
+
:type _request_auth: dict, optional
|
|
357
|
+
:param _content_type: force content-type for the request.
|
|
358
|
+
:type _content_type: str, Optional
|
|
359
|
+
:param _headers: set to override the headers for a single
|
|
360
|
+
request; this effectively ignores the headers
|
|
361
|
+
in the spec for a single request.
|
|
362
|
+
:type _headers: dict, optional
|
|
363
|
+
:param _host_index: set to override the host_index for a single
|
|
364
|
+
request; this effectively ignores the host_index
|
|
365
|
+
in the spec for a single request.
|
|
366
|
+
:type _host_index: int, optional
|
|
367
|
+
:return: Returns the result object.
|
|
368
|
+
""" # noqa: E501
|
|
369
|
+
|
|
370
|
+
_param = self._get_beta_access_status_serialize(
|
|
371
|
+
_request_auth=_request_auth,
|
|
372
|
+
_content_type=_content_type,
|
|
373
|
+
_headers=_headers,
|
|
374
|
+
_host_index=_host_index
|
|
375
|
+
)
|
|
376
|
+
|
|
377
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
378
|
+
'200': "BetaAccessStatusResponseModel",
|
|
379
|
+
'400': "ErrorResponseModel",
|
|
380
|
+
'401': "ErrorResponseModel",
|
|
381
|
+
'404': "ErrorResponseModel",
|
|
382
|
+
'500': None,
|
|
383
|
+
}
|
|
384
|
+
response_data = self.api_client.call_api(
|
|
385
|
+
*_param,
|
|
386
|
+
_request_timeout=_request_timeout
|
|
387
|
+
)
|
|
388
|
+
response_data.read()
|
|
389
|
+
return self.api_client.response_deserialize(
|
|
390
|
+
response_data=response_data,
|
|
391
|
+
response_types_map=_response_types_map,
|
|
392
|
+
).data
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
@validate_call
|
|
396
|
+
def get_beta_access_status_with_http_info(
|
|
397
|
+
self,
|
|
398
|
+
_request_timeout: Union[
|
|
399
|
+
None,
|
|
400
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
401
|
+
Tuple[
|
|
402
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
403
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
404
|
+
]
|
|
405
|
+
] = None,
|
|
406
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
407
|
+
_content_type: Optional[StrictStr] = None,
|
|
408
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
409
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
410
|
+
) -> ApiResponse[BetaAccessStatusResponseModel]:
|
|
411
|
+
"""Check the status of all beta access requests
|
|
412
|
+
|
|
413
|
+
Check the status of all beta access requests.
|
|
414
|
+
|
|
415
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
416
|
+
number provided, it will be total request
|
|
417
|
+
timeout. It can also be a pair (tuple) of
|
|
418
|
+
(connection, read) timeouts.
|
|
419
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
420
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
421
|
+
request; this effectively ignores the
|
|
422
|
+
authentication in the spec for a single request.
|
|
423
|
+
:type _request_auth: dict, optional
|
|
424
|
+
:param _content_type: force content-type for the request.
|
|
425
|
+
:type _content_type: str, Optional
|
|
426
|
+
:param _headers: set to override the headers for a single
|
|
427
|
+
request; this effectively ignores the headers
|
|
428
|
+
in the spec for a single request.
|
|
429
|
+
:type _headers: dict, optional
|
|
430
|
+
:param _host_index: set to override the host_index for a single
|
|
431
|
+
request; this effectively ignores the host_index
|
|
432
|
+
in the spec for a single request.
|
|
433
|
+
:type _host_index: int, optional
|
|
434
|
+
:return: Returns the result object.
|
|
435
|
+
""" # noqa: E501
|
|
436
|
+
|
|
437
|
+
_param = self._get_beta_access_status_serialize(
|
|
438
|
+
_request_auth=_request_auth,
|
|
439
|
+
_content_type=_content_type,
|
|
440
|
+
_headers=_headers,
|
|
441
|
+
_host_index=_host_index
|
|
442
|
+
)
|
|
443
|
+
|
|
444
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
445
|
+
'200': "BetaAccessStatusResponseModel",
|
|
446
|
+
'400': "ErrorResponseModel",
|
|
447
|
+
'401': "ErrorResponseModel",
|
|
448
|
+
'404': "ErrorResponseModel",
|
|
449
|
+
'500': None,
|
|
450
|
+
}
|
|
451
|
+
response_data = self.api_client.call_api(
|
|
452
|
+
*_param,
|
|
453
|
+
_request_timeout=_request_timeout
|
|
454
|
+
)
|
|
455
|
+
response_data.read()
|
|
456
|
+
return self.api_client.response_deserialize(
|
|
457
|
+
response_data=response_data,
|
|
458
|
+
response_types_map=_response_types_map,
|
|
459
|
+
)
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
@validate_call
|
|
463
|
+
def get_beta_access_status_without_preload_content(
|
|
464
|
+
self,
|
|
465
|
+
_request_timeout: Union[
|
|
466
|
+
None,
|
|
467
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
468
|
+
Tuple[
|
|
469
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
470
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
471
|
+
]
|
|
472
|
+
] = None,
|
|
473
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
474
|
+
_content_type: Optional[StrictStr] = None,
|
|
475
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
476
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
477
|
+
) -> RESTResponseType:
|
|
478
|
+
"""Check the status of all beta access requests
|
|
479
|
+
|
|
480
|
+
Check the status of all beta access requests.
|
|
481
|
+
|
|
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._get_beta_access_status_serialize(
|
|
505
|
+
_request_auth=_request_auth,
|
|
506
|
+
_content_type=_content_type,
|
|
507
|
+
_headers=_headers,
|
|
508
|
+
_host_index=_host_index
|
|
509
|
+
)
|
|
510
|
+
|
|
511
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
512
|
+
'200': "BetaAccessStatusResponseModel",
|
|
513
|
+
'400': "ErrorResponseModel",
|
|
514
|
+
'401': "ErrorResponseModel",
|
|
515
|
+
'404': "ErrorResponseModel",
|
|
516
|
+
'500': None,
|
|
517
|
+
}
|
|
518
|
+
response_data = self.api_client.call_api(
|
|
519
|
+
*_param,
|
|
520
|
+
_request_timeout=_request_timeout
|
|
521
|
+
)
|
|
522
|
+
return response_data.response
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
def _get_beta_access_status_serialize(
|
|
526
|
+
self,
|
|
527
|
+
_request_auth,
|
|
528
|
+
_content_type,
|
|
529
|
+
_headers,
|
|
530
|
+
_host_index,
|
|
531
|
+
) -> RequestSerialized:
|
|
532
|
+
|
|
533
|
+
_host = None
|
|
534
|
+
|
|
535
|
+
_collection_formats: Dict[str, str] = {
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
_path_params: Dict[str, str] = {}
|
|
539
|
+
_query_params: List[Tuple[str, str]] = []
|
|
540
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
541
|
+
_form_params: List[Tuple[str, str]] = []
|
|
542
|
+
_files: Dict[
|
|
543
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
544
|
+
] = {}
|
|
545
|
+
_body_params: Optional[bytes] = None
|
|
546
|
+
|
|
547
|
+
# process the path parameters
|
|
548
|
+
# process the query parameters
|
|
549
|
+
# process the header parameters
|
|
550
|
+
# process the form parameters
|
|
551
|
+
# process the body parameter
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
# set the HTTP header `Accept`
|
|
555
|
+
if 'Accept' not in _header_params:
|
|
556
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
557
|
+
[
|
|
558
|
+
'application/json'
|
|
559
|
+
]
|
|
560
|
+
)
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
# authentication setting
|
|
564
|
+
_auth_settings: List[str] = [
|
|
565
|
+
'apiKey'
|
|
566
|
+
]
|
|
567
|
+
|
|
568
|
+
return self.api_client.param_serialize(
|
|
569
|
+
method='GET',
|
|
570
|
+
resource_path='/auth/beta-access/requests',
|
|
571
|
+
path_params=_path_params,
|
|
572
|
+
query_params=_query_params,
|
|
573
|
+
header_params=_header_params,
|
|
574
|
+
body=_body_params,
|
|
575
|
+
post_params=_form_params,
|
|
576
|
+
files=_files,
|
|
577
|
+
auth_settings=_auth_settings,
|
|
578
|
+
collection_formats=_collection_formats,
|
|
579
|
+
_host=_host,
|
|
580
|
+
_request_auth=_request_auth
|
|
581
|
+
)
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
@validate_call
|
|
587
|
+
def get_beta_access_status2(
|
|
588
|
+
self,
|
|
589
|
+
program: StrictStr,
|
|
590
|
+
_request_timeout: Union[
|
|
591
|
+
None,
|
|
592
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
593
|
+
Tuple[
|
|
594
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
595
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
596
|
+
]
|
|
597
|
+
] = None,
|
|
598
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
599
|
+
_content_type: Optional[StrictStr] = None,
|
|
600
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
601
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
602
|
+
) -> BetaAccessStatusResponseModel:
|
|
603
|
+
"""Check the status of beta access requests
|
|
604
|
+
|
|
605
|
+
Check the status of a particular beta access requests.
|
|
606
|
+
|
|
607
|
+
:param program: (required)
|
|
608
|
+
:type program: str
|
|
609
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
610
|
+
number provided, it will be total request
|
|
611
|
+
timeout. It can also be a pair (tuple) of
|
|
612
|
+
(connection, read) timeouts.
|
|
613
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
614
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
615
|
+
request; this effectively ignores the
|
|
616
|
+
authentication in the spec for a single request.
|
|
617
|
+
:type _request_auth: dict, optional
|
|
618
|
+
:param _content_type: force content-type for the request.
|
|
619
|
+
:type _content_type: str, Optional
|
|
620
|
+
:param _headers: set to override the headers for a single
|
|
621
|
+
request; this effectively ignores the headers
|
|
622
|
+
in the spec for a single request.
|
|
623
|
+
:type _headers: dict, optional
|
|
624
|
+
:param _host_index: set to override the host_index for a single
|
|
625
|
+
request; this effectively ignores the host_index
|
|
626
|
+
in the spec for a single request.
|
|
627
|
+
:type _host_index: int, optional
|
|
628
|
+
:return: Returns the result object.
|
|
629
|
+
""" # noqa: E501
|
|
630
|
+
|
|
631
|
+
_param = self._get_beta_access_status2_serialize(
|
|
632
|
+
program=program,
|
|
633
|
+
_request_auth=_request_auth,
|
|
634
|
+
_content_type=_content_type,
|
|
635
|
+
_headers=_headers,
|
|
636
|
+
_host_index=_host_index
|
|
637
|
+
)
|
|
638
|
+
|
|
639
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
640
|
+
'200': "BetaAccessStatusResponseModel",
|
|
641
|
+
'400': "ErrorResponseModel",
|
|
642
|
+
'401': "ErrorResponseModel",
|
|
643
|
+
'404': "ErrorResponseModel",
|
|
644
|
+
'500': None,
|
|
645
|
+
}
|
|
646
|
+
response_data = self.api_client.call_api(
|
|
647
|
+
*_param,
|
|
648
|
+
_request_timeout=_request_timeout
|
|
649
|
+
)
|
|
650
|
+
response_data.read()
|
|
651
|
+
return self.api_client.response_deserialize(
|
|
652
|
+
response_data=response_data,
|
|
653
|
+
response_types_map=_response_types_map,
|
|
654
|
+
).data
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
@validate_call
|
|
658
|
+
def get_beta_access_status2_with_http_info(
|
|
659
|
+
self,
|
|
660
|
+
program: StrictStr,
|
|
661
|
+
_request_timeout: Union[
|
|
662
|
+
None,
|
|
663
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
664
|
+
Tuple[
|
|
665
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
666
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
667
|
+
]
|
|
668
|
+
] = None,
|
|
669
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
670
|
+
_content_type: Optional[StrictStr] = None,
|
|
671
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
672
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
673
|
+
) -> ApiResponse[BetaAccessStatusResponseModel]:
|
|
674
|
+
"""Check the status of beta access requests
|
|
675
|
+
|
|
676
|
+
Check the status of a particular beta access requests.
|
|
677
|
+
|
|
678
|
+
:param program: (required)
|
|
679
|
+
:type program: str
|
|
680
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
681
|
+
number provided, it will be total request
|
|
682
|
+
timeout. It can also be a pair (tuple) of
|
|
683
|
+
(connection, read) timeouts.
|
|
684
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
685
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
686
|
+
request; this effectively ignores the
|
|
687
|
+
authentication in the spec for a single request.
|
|
688
|
+
:type _request_auth: dict, optional
|
|
689
|
+
:param _content_type: force content-type for the request.
|
|
690
|
+
:type _content_type: str, Optional
|
|
691
|
+
:param _headers: set to override the headers for a single
|
|
692
|
+
request; this effectively ignores the headers
|
|
693
|
+
in the spec for a single request.
|
|
694
|
+
:type _headers: dict, optional
|
|
695
|
+
:param _host_index: set to override the host_index for a single
|
|
696
|
+
request; this effectively ignores the host_index
|
|
697
|
+
in the spec for a single request.
|
|
698
|
+
:type _host_index: int, optional
|
|
699
|
+
:return: Returns the result object.
|
|
700
|
+
""" # noqa: E501
|
|
701
|
+
|
|
702
|
+
_param = self._get_beta_access_status2_serialize(
|
|
703
|
+
program=program,
|
|
704
|
+
_request_auth=_request_auth,
|
|
705
|
+
_content_type=_content_type,
|
|
706
|
+
_headers=_headers,
|
|
707
|
+
_host_index=_host_index
|
|
708
|
+
)
|
|
709
|
+
|
|
710
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
711
|
+
'200': "BetaAccessStatusResponseModel",
|
|
712
|
+
'400': "ErrorResponseModel",
|
|
713
|
+
'401': "ErrorResponseModel",
|
|
714
|
+
'404': "ErrorResponseModel",
|
|
715
|
+
'500': None,
|
|
716
|
+
}
|
|
717
|
+
response_data = self.api_client.call_api(
|
|
718
|
+
*_param,
|
|
719
|
+
_request_timeout=_request_timeout
|
|
720
|
+
)
|
|
721
|
+
response_data.read()
|
|
722
|
+
return self.api_client.response_deserialize(
|
|
723
|
+
response_data=response_data,
|
|
724
|
+
response_types_map=_response_types_map,
|
|
725
|
+
)
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
@validate_call
|
|
729
|
+
def get_beta_access_status2_without_preload_content(
|
|
730
|
+
self,
|
|
731
|
+
program: StrictStr,
|
|
732
|
+
_request_timeout: Union[
|
|
733
|
+
None,
|
|
734
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
735
|
+
Tuple[
|
|
736
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
737
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
738
|
+
]
|
|
739
|
+
] = None,
|
|
740
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
741
|
+
_content_type: Optional[StrictStr] = None,
|
|
742
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
743
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
744
|
+
) -> RESTResponseType:
|
|
745
|
+
"""Check the status of beta access requests
|
|
746
|
+
|
|
747
|
+
Check the status of a particular beta access requests.
|
|
748
|
+
|
|
749
|
+
:param program: (required)
|
|
750
|
+
:type program: str
|
|
751
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
752
|
+
number provided, it will be total request
|
|
753
|
+
timeout. It can also be a pair (tuple) of
|
|
754
|
+
(connection, read) timeouts.
|
|
755
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
756
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
757
|
+
request; this effectively ignores the
|
|
758
|
+
authentication in the spec for a single request.
|
|
759
|
+
:type _request_auth: dict, optional
|
|
760
|
+
:param _content_type: force content-type for the request.
|
|
761
|
+
:type _content_type: str, Optional
|
|
762
|
+
:param _headers: set to override the headers for a single
|
|
763
|
+
request; this effectively ignores the headers
|
|
764
|
+
in the spec for a single request.
|
|
765
|
+
:type _headers: dict, optional
|
|
766
|
+
:param _host_index: set to override the host_index for a single
|
|
767
|
+
request; this effectively ignores the host_index
|
|
768
|
+
in the spec for a single request.
|
|
769
|
+
:type _host_index: int, optional
|
|
770
|
+
:return: Returns the result object.
|
|
771
|
+
""" # noqa: E501
|
|
772
|
+
|
|
773
|
+
_param = self._get_beta_access_status2_serialize(
|
|
774
|
+
program=program,
|
|
775
|
+
_request_auth=_request_auth,
|
|
776
|
+
_content_type=_content_type,
|
|
777
|
+
_headers=_headers,
|
|
778
|
+
_host_index=_host_index
|
|
779
|
+
)
|
|
780
|
+
|
|
781
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
782
|
+
'200': "BetaAccessStatusResponseModel",
|
|
783
|
+
'400': "ErrorResponseModel",
|
|
784
|
+
'401': "ErrorResponseModel",
|
|
785
|
+
'404': "ErrorResponseModel",
|
|
786
|
+
'500': None,
|
|
787
|
+
}
|
|
788
|
+
response_data = self.api_client.call_api(
|
|
789
|
+
*_param,
|
|
790
|
+
_request_timeout=_request_timeout
|
|
791
|
+
)
|
|
792
|
+
return response_data.response
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
def _get_beta_access_status2_serialize(
|
|
796
|
+
self,
|
|
797
|
+
program,
|
|
798
|
+
_request_auth,
|
|
799
|
+
_content_type,
|
|
800
|
+
_headers,
|
|
801
|
+
_host_index,
|
|
802
|
+
) -> RequestSerialized:
|
|
803
|
+
|
|
804
|
+
_host = None
|
|
805
|
+
|
|
806
|
+
_collection_formats: Dict[str, str] = {
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
_path_params: Dict[str, str] = {}
|
|
810
|
+
_query_params: List[Tuple[str, str]] = []
|
|
811
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
812
|
+
_form_params: List[Tuple[str, str]] = []
|
|
813
|
+
_files: Dict[
|
|
814
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
815
|
+
] = {}
|
|
816
|
+
_body_params: Optional[bytes] = None
|
|
817
|
+
|
|
818
|
+
# process the path parameters
|
|
819
|
+
if program is not None:
|
|
820
|
+
_path_params['program'] = program
|
|
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
|
+
]
|
|
840
|
+
|
|
841
|
+
return self.api_client.param_serialize(
|
|
842
|
+
method='GET',
|
|
843
|
+
resource_path='/auth/beta-access/requests/{program}',
|
|
844
|
+
path_params=_path_params,
|
|
845
|
+
query_params=_query_params,
|
|
846
|
+
header_params=_header_params,
|
|
847
|
+
body=_body_params,
|
|
848
|
+
post_params=_form_params,
|
|
849
|
+
files=_files,
|
|
850
|
+
auth_settings=_auth_settings,
|
|
851
|
+
collection_formats=_collection_formats,
|
|
852
|
+
_host=_host,
|
|
853
|
+
_request_auth=_request_auth
|
|
854
|
+
)
|
|
855
|
+
|
|
856
|
+
|