hyperstack 1.45.2a0__py3-none-any.whl → 1.46.1a0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hyperstack/__init__.py +2 -1
- hyperstack/api/__init__.py +1 -0
- hyperstack/api/alive_api.py +10 -10
- hyperstack/api/api_key_api.py +7 -7
- hyperstack/api/auth_api.py +69 -69
- hyperstack/api/beta_access_api.py +50 -50
- hyperstack/api/billing_api.py +1659 -1659
- hyperstack/api/calculate_api.py +7 -7
- hyperstack/api/callbacks_api.py +21 -21
- hyperstack/api/cluster_events_api.py +7 -7
- hyperstack/api/clusters_api.py +445 -445
- hyperstack/api/compliance_api.py +21 -21
- hyperstack/api/credit_api.py +7 -7
- hyperstack/api/customer_contract_api.py +139 -139
- hyperstack/api/dashboard_api.py +7 -7
- hyperstack/api/deployment_api.py +7 -7
- hyperstack/api/environment_api.py +107 -107
- hyperstack/api/fip_exclusions_api.py +313 -0
- hyperstack/api/firewall_attachment_api.py +7 -7
- hyperstack/api/firewalls_api.py +145 -145
- hyperstack/api/floating_ip_api.py +14 -14
- hyperstack/api/image_api.py +14 -14
- hyperstack/api/payment_api.py +102 -102
- hyperstack/api/profile_api.py +56 -56
- hyperstack/api/snapshot_events_api.py +7 -7
- hyperstack/api/snapshots_api.py +167 -167
- hyperstack/api/stock_api.py +7 -7
- hyperstack/api/template_api.py +76 -76
- hyperstack/api/user_api.py +76 -76
- hyperstack/api/user_detail_choice_api.py +10 -10
- hyperstack/api/virtual_machine_api.py +799 -782
- hyperstack/api/virtual_machine_events_api.py +7 -7
- hyperstack/api/vnc_url_api.py +53 -53
- hyperstack/api/volume_api.py +77 -77
- hyperstack/api/volume_attachment_api.py +21 -21
- hyperstack/api_client.py +1 -1
- hyperstack/configuration.py +1 -1
- {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.1a0.dist-info}/METADATA +1 -1
- {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.1a0.dist-info}/RECORD +41 -40
- {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.1a0.dist-info}/WHEEL +0 -0
- {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.1a0.dist-info}/top_level.txt +0 -0
hyperstack/api/dashboard_api.py
CHANGED
|
@@ -37,7 +37,7 @@ class DashboardApi:
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
@validate_call
|
|
40
|
-
def
|
|
40
|
+
def get_dashboard(
|
|
41
41
|
self,
|
|
42
42
|
_request_timeout: Union[
|
|
43
43
|
None,
|
|
@@ -78,7 +78,7 @@ class DashboardApi:
|
|
|
78
78
|
:return: Returns the result object.
|
|
79
79
|
""" # noqa: E501
|
|
80
80
|
|
|
81
|
-
_param = self.
|
|
81
|
+
_param = self._get_dashboard_serialize(
|
|
82
82
|
_request_auth=_request_auth,
|
|
83
83
|
_content_type=_content_type,
|
|
84
84
|
_headers=_headers,
|
|
@@ -103,7 +103,7 @@ class DashboardApi:
|
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
@validate_call
|
|
106
|
-
def
|
|
106
|
+
def get_dashboard_with_http_info(
|
|
107
107
|
self,
|
|
108
108
|
_request_timeout: Union[
|
|
109
109
|
None,
|
|
@@ -144,7 +144,7 @@ class DashboardApi:
|
|
|
144
144
|
:return: Returns the result object.
|
|
145
145
|
""" # noqa: E501
|
|
146
146
|
|
|
147
|
-
_param = self.
|
|
147
|
+
_param = self._get_dashboard_serialize(
|
|
148
148
|
_request_auth=_request_auth,
|
|
149
149
|
_content_type=_content_type,
|
|
150
150
|
_headers=_headers,
|
|
@@ -169,7 +169,7 @@ class DashboardApi:
|
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
@validate_call
|
|
172
|
-
def
|
|
172
|
+
def get_dashboard_without_preload_content(
|
|
173
173
|
self,
|
|
174
174
|
_request_timeout: Union[
|
|
175
175
|
None,
|
|
@@ -210,7 +210,7 @@ class DashboardApi:
|
|
|
210
210
|
:return: Returns the result object.
|
|
211
211
|
""" # noqa: E501
|
|
212
212
|
|
|
213
|
-
_param = self.
|
|
213
|
+
_param = self._get_dashboard_serialize(
|
|
214
214
|
_request_auth=_request_auth,
|
|
215
215
|
_content_type=_content_type,
|
|
216
216
|
_headers=_headers,
|
|
@@ -230,7 +230,7 @@ class DashboardApi:
|
|
|
230
230
|
return response_data.response
|
|
231
231
|
|
|
232
232
|
|
|
233
|
-
def
|
|
233
|
+
def _get_dashboard_serialize(
|
|
234
234
|
self,
|
|
235
235
|
_request_auth,
|
|
236
236
|
_content_type,
|
hyperstack/api/deployment_api.py
CHANGED
|
@@ -311,7 +311,7 @@ class DeploymentApi:
|
|
|
311
311
|
|
|
312
312
|
|
|
313
313
|
@validate_call
|
|
314
|
-
def
|
|
314
|
+
def get_deployment(
|
|
315
315
|
self,
|
|
316
316
|
id: StrictInt,
|
|
317
317
|
_request_timeout: Union[
|
|
@@ -354,7 +354,7 @@ class DeploymentApi:
|
|
|
354
354
|
:return: Returns the result object.
|
|
355
355
|
""" # noqa: E501
|
|
356
356
|
|
|
357
|
-
_param = self.
|
|
357
|
+
_param = self._get_deployment_serialize(
|
|
358
358
|
id=id,
|
|
359
359
|
_request_auth=_request_auth,
|
|
360
360
|
_content_type=_content_type,
|
|
@@ -381,7 +381,7 @@ class DeploymentApi:
|
|
|
381
381
|
|
|
382
382
|
|
|
383
383
|
@validate_call
|
|
384
|
-
def
|
|
384
|
+
def get_deployment_with_http_info(
|
|
385
385
|
self,
|
|
386
386
|
id: StrictInt,
|
|
387
387
|
_request_timeout: Union[
|
|
@@ -424,7 +424,7 @@ class DeploymentApi:
|
|
|
424
424
|
:return: Returns the result object.
|
|
425
425
|
""" # noqa: E501
|
|
426
426
|
|
|
427
|
-
_param = self.
|
|
427
|
+
_param = self._get_deployment_serialize(
|
|
428
428
|
id=id,
|
|
429
429
|
_request_auth=_request_auth,
|
|
430
430
|
_content_type=_content_type,
|
|
@@ -451,7 +451,7 @@ class DeploymentApi:
|
|
|
451
451
|
|
|
452
452
|
|
|
453
453
|
@validate_call
|
|
454
|
-
def
|
|
454
|
+
def get_deployment_without_preload_content(
|
|
455
455
|
self,
|
|
456
456
|
id: StrictInt,
|
|
457
457
|
_request_timeout: Union[
|
|
@@ -494,7 +494,7 @@ class DeploymentApi:
|
|
|
494
494
|
:return: Returns the result object.
|
|
495
495
|
""" # noqa: E501
|
|
496
496
|
|
|
497
|
-
_param = self.
|
|
497
|
+
_param = self._get_deployment_serialize(
|
|
498
498
|
id=id,
|
|
499
499
|
_request_auth=_request_auth,
|
|
500
500
|
_content_type=_content_type,
|
|
@@ -516,7 +516,7 @@ class DeploymentApi:
|
|
|
516
516
|
return response_data.response
|
|
517
517
|
|
|
518
518
|
|
|
519
|
-
def
|
|
519
|
+
def _get_deployment_serialize(
|
|
520
520
|
self,
|
|
521
521
|
id,
|
|
522
522
|
_request_auth,
|
|
@@ -880,11 +880,9 @@ class EnvironmentApi:
|
|
|
880
880
|
|
|
881
881
|
|
|
882
882
|
@validate_call
|
|
883
|
-
def
|
|
883
|
+
def get_environment(
|
|
884
884
|
self,
|
|
885
|
-
|
|
886
|
-
page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
|
|
887
|
-
search: Annotated[Optional[StrictStr], Field(description="Search By ID or Name or Region")] = None,
|
|
885
|
+
id: StrictInt,
|
|
888
886
|
_request_timeout: Union[
|
|
889
887
|
None,
|
|
890
888
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -897,17 +895,13 @@ class EnvironmentApi:
|
|
|
897
895
|
_content_type: Optional[StrictStr] = None,
|
|
898
896
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
899
897
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
900
|
-
) ->
|
|
901
|
-
"""
|
|
898
|
+
) -> Environment:
|
|
899
|
+
"""Retrieve environment
|
|
902
900
|
|
|
903
|
-
|
|
901
|
+
Retrieves details about a specific environment. Provide the environment ID in the path and the new environment `name` in the request body to modify the specified environment.
|
|
904
902
|
|
|
905
|
-
:param
|
|
906
|
-
:type
|
|
907
|
-
:param page_size: Data Per Page
|
|
908
|
-
:type page_size: str
|
|
909
|
-
:param search: Search By ID or Name or Region
|
|
910
|
-
:type search: str
|
|
903
|
+
:param id: (required)
|
|
904
|
+
:type id: int
|
|
911
905
|
:param _request_timeout: timeout setting for this request. If one
|
|
912
906
|
number provided, it will be total request
|
|
913
907
|
timeout. It can also be a pair (tuple) of
|
|
@@ -930,10 +924,8 @@ class EnvironmentApi:
|
|
|
930
924
|
:return: Returns the result object.
|
|
931
925
|
""" # noqa: E501
|
|
932
926
|
|
|
933
|
-
_param = self.
|
|
934
|
-
|
|
935
|
-
page_size=page_size,
|
|
936
|
-
search=search,
|
|
927
|
+
_param = self._get_environment_serialize(
|
|
928
|
+
id=id,
|
|
937
929
|
_request_auth=_request_auth,
|
|
938
930
|
_content_type=_content_type,
|
|
939
931
|
_headers=_headers,
|
|
@@ -941,9 +933,10 @@ class EnvironmentApi:
|
|
|
941
933
|
)
|
|
942
934
|
|
|
943
935
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
944
|
-
'200': "
|
|
936
|
+
'200': "Environment",
|
|
945
937
|
'400': "ErrorResponseModel",
|
|
946
938
|
'401': "ErrorResponseModel",
|
|
939
|
+
'404': "ErrorResponseModel",
|
|
947
940
|
'500': None,
|
|
948
941
|
}
|
|
949
942
|
response_data = self.api_client.call_api(
|
|
@@ -958,11 +951,9 @@ class EnvironmentApi:
|
|
|
958
951
|
|
|
959
952
|
|
|
960
953
|
@validate_call
|
|
961
|
-
def
|
|
954
|
+
def get_environment_with_http_info(
|
|
962
955
|
self,
|
|
963
|
-
|
|
964
|
-
page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
|
|
965
|
-
search: Annotated[Optional[StrictStr], Field(description="Search By ID or Name or Region")] = None,
|
|
956
|
+
id: StrictInt,
|
|
966
957
|
_request_timeout: Union[
|
|
967
958
|
None,
|
|
968
959
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -975,17 +966,13 @@ class EnvironmentApi:
|
|
|
975
966
|
_content_type: Optional[StrictStr] = None,
|
|
976
967
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
977
968
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
978
|
-
) -> ApiResponse[
|
|
979
|
-
"""
|
|
969
|
+
) -> ApiResponse[Environment]:
|
|
970
|
+
"""Retrieve environment
|
|
980
971
|
|
|
981
|
-
|
|
972
|
+
Retrieves details about a specific environment. Provide the environment ID in the path and the new environment `name` in the request body to modify the specified environment.
|
|
982
973
|
|
|
983
|
-
:param
|
|
984
|
-
:type
|
|
985
|
-
:param page_size: Data Per Page
|
|
986
|
-
:type page_size: str
|
|
987
|
-
:param search: Search By ID or Name or Region
|
|
988
|
-
:type search: str
|
|
974
|
+
:param id: (required)
|
|
975
|
+
:type id: int
|
|
989
976
|
:param _request_timeout: timeout setting for this request. If one
|
|
990
977
|
number provided, it will be total request
|
|
991
978
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1008,10 +995,8 @@ class EnvironmentApi:
|
|
|
1008
995
|
:return: Returns the result object.
|
|
1009
996
|
""" # noqa: E501
|
|
1010
997
|
|
|
1011
|
-
_param = self.
|
|
1012
|
-
|
|
1013
|
-
page_size=page_size,
|
|
1014
|
-
search=search,
|
|
998
|
+
_param = self._get_environment_serialize(
|
|
999
|
+
id=id,
|
|
1015
1000
|
_request_auth=_request_auth,
|
|
1016
1001
|
_content_type=_content_type,
|
|
1017
1002
|
_headers=_headers,
|
|
@@ -1019,9 +1004,10 @@ class EnvironmentApi:
|
|
|
1019
1004
|
)
|
|
1020
1005
|
|
|
1021
1006
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1022
|
-
'200': "
|
|
1007
|
+
'200': "Environment",
|
|
1023
1008
|
'400': "ErrorResponseModel",
|
|
1024
1009
|
'401': "ErrorResponseModel",
|
|
1010
|
+
'404': "ErrorResponseModel",
|
|
1025
1011
|
'500': None,
|
|
1026
1012
|
}
|
|
1027
1013
|
response_data = self.api_client.call_api(
|
|
@@ -1036,11 +1022,9 @@ class EnvironmentApi:
|
|
|
1036
1022
|
|
|
1037
1023
|
|
|
1038
1024
|
@validate_call
|
|
1039
|
-
def
|
|
1025
|
+
def get_environment_without_preload_content(
|
|
1040
1026
|
self,
|
|
1041
|
-
|
|
1042
|
-
page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
|
|
1043
|
-
search: Annotated[Optional[StrictStr], Field(description="Search By ID or Name or Region")] = None,
|
|
1027
|
+
id: StrictInt,
|
|
1044
1028
|
_request_timeout: Union[
|
|
1045
1029
|
None,
|
|
1046
1030
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1054,16 +1038,12 @@ class EnvironmentApi:
|
|
|
1054
1038
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1055
1039
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1056
1040
|
) -> RESTResponseType:
|
|
1057
|
-
"""
|
|
1041
|
+
"""Retrieve environment
|
|
1058
1042
|
|
|
1059
|
-
|
|
1043
|
+
Retrieves details about a specific environment. Provide the environment ID in the path and the new environment `name` in the request body to modify the specified environment.
|
|
1060
1044
|
|
|
1061
|
-
:param
|
|
1062
|
-
:type
|
|
1063
|
-
:param page_size: Data Per Page
|
|
1064
|
-
:type page_size: str
|
|
1065
|
-
:param search: Search By ID or Name or Region
|
|
1066
|
-
:type search: str
|
|
1045
|
+
:param id: (required)
|
|
1046
|
+
:type id: int
|
|
1067
1047
|
:param _request_timeout: timeout setting for this request. If one
|
|
1068
1048
|
number provided, it will be total request
|
|
1069
1049
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1086,10 +1066,8 @@ class EnvironmentApi:
|
|
|
1086
1066
|
:return: Returns the result object.
|
|
1087
1067
|
""" # noqa: E501
|
|
1088
1068
|
|
|
1089
|
-
_param = self.
|
|
1090
|
-
|
|
1091
|
-
page_size=page_size,
|
|
1092
|
-
search=search,
|
|
1069
|
+
_param = self._get_environment_serialize(
|
|
1070
|
+
id=id,
|
|
1093
1071
|
_request_auth=_request_auth,
|
|
1094
1072
|
_content_type=_content_type,
|
|
1095
1073
|
_headers=_headers,
|
|
@@ -1097,9 +1075,10 @@ class EnvironmentApi:
|
|
|
1097
1075
|
)
|
|
1098
1076
|
|
|
1099
1077
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1100
|
-
'200': "
|
|
1078
|
+
'200': "Environment",
|
|
1101
1079
|
'400': "ErrorResponseModel",
|
|
1102
1080
|
'401': "ErrorResponseModel",
|
|
1081
|
+
'404': "ErrorResponseModel",
|
|
1103
1082
|
'500': None,
|
|
1104
1083
|
}
|
|
1105
1084
|
response_data = self.api_client.call_api(
|
|
@@ -1109,11 +1088,9 @@ class EnvironmentApi:
|
|
|
1109
1088
|
return response_data.response
|
|
1110
1089
|
|
|
1111
1090
|
|
|
1112
|
-
def
|
|
1091
|
+
def _get_environment_serialize(
|
|
1113
1092
|
self,
|
|
1114
|
-
|
|
1115
|
-
page_size,
|
|
1116
|
-
search,
|
|
1093
|
+
id,
|
|
1117
1094
|
_request_auth,
|
|
1118
1095
|
_content_type,
|
|
1119
1096
|
_headers,
|
|
@@ -1135,19 +1112,9 @@ class EnvironmentApi:
|
|
|
1135
1112
|
_body_params: Optional[bytes] = None
|
|
1136
1113
|
|
|
1137
1114
|
# process the path parameters
|
|
1115
|
+
if id is not None:
|
|
1116
|
+
_path_params['id'] = id
|
|
1138
1117
|
# process the query parameters
|
|
1139
|
-
if page is not None:
|
|
1140
|
-
|
|
1141
|
-
_query_params.append(('page', page))
|
|
1142
|
-
|
|
1143
|
-
if page_size is not None:
|
|
1144
|
-
|
|
1145
|
-
_query_params.append(('pageSize', page_size))
|
|
1146
|
-
|
|
1147
|
-
if search is not None:
|
|
1148
|
-
|
|
1149
|
-
_query_params.append(('search', search))
|
|
1150
|
-
|
|
1151
1118
|
# process the header parameters
|
|
1152
1119
|
# process the form parameters
|
|
1153
1120
|
# process the body parameter
|
|
@@ -1169,7 +1136,7 @@ class EnvironmentApi:
|
|
|
1169
1136
|
|
|
1170
1137
|
return self.api_client.param_serialize(
|
|
1171
1138
|
method='GET',
|
|
1172
|
-
resource_path='/core/environments',
|
|
1139
|
+
resource_path='/core/environments/{id}',
|
|
1173
1140
|
path_params=_path_params,
|
|
1174
1141
|
query_params=_query_params,
|
|
1175
1142
|
header_params=_header_params,
|
|
@@ -1186,9 +1153,11 @@ class EnvironmentApi:
|
|
|
1186
1153
|
|
|
1187
1154
|
|
|
1188
1155
|
@validate_call
|
|
1189
|
-
def
|
|
1156
|
+
def list_environments(
|
|
1190
1157
|
self,
|
|
1191
|
-
|
|
1158
|
+
page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
|
|
1159
|
+
page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
|
|
1160
|
+
search: Annotated[Optional[StrictStr], Field(description="Search By ID or Name or Region")] = None,
|
|
1192
1161
|
_request_timeout: Union[
|
|
1193
1162
|
None,
|
|
1194
1163
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1201,13 +1170,17 @@ class EnvironmentApi:
|
|
|
1201
1170
|
_content_type: Optional[StrictStr] = None,
|
|
1202
1171
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1203
1172
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1204
|
-
) ->
|
|
1205
|
-
"""
|
|
1173
|
+
) -> Environments:
|
|
1174
|
+
"""List environments
|
|
1206
1175
|
|
|
1207
|
-
|
|
1176
|
+
Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs...cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
|
|
1208
1177
|
|
|
1209
|
-
:param
|
|
1210
|
-
:type
|
|
1178
|
+
:param page: Page Number
|
|
1179
|
+
:type page: str
|
|
1180
|
+
:param page_size: Data Per Page
|
|
1181
|
+
:type page_size: str
|
|
1182
|
+
:param search: Search By ID or Name or Region
|
|
1183
|
+
:type search: str
|
|
1211
1184
|
:param _request_timeout: timeout setting for this request. If one
|
|
1212
1185
|
number provided, it will be total request
|
|
1213
1186
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1230,8 +1203,10 @@ class EnvironmentApi:
|
|
|
1230
1203
|
:return: Returns the result object.
|
|
1231
1204
|
""" # noqa: E501
|
|
1232
1205
|
|
|
1233
|
-
_param = self.
|
|
1234
|
-
|
|
1206
|
+
_param = self._list_environments_serialize(
|
|
1207
|
+
page=page,
|
|
1208
|
+
page_size=page_size,
|
|
1209
|
+
search=search,
|
|
1235
1210
|
_request_auth=_request_auth,
|
|
1236
1211
|
_content_type=_content_type,
|
|
1237
1212
|
_headers=_headers,
|
|
@@ -1239,10 +1214,9 @@ class EnvironmentApi:
|
|
|
1239
1214
|
)
|
|
1240
1215
|
|
|
1241
1216
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1242
|
-
'200': "
|
|
1217
|
+
'200': "Environments",
|
|
1243
1218
|
'400': "ErrorResponseModel",
|
|
1244
1219
|
'401': "ErrorResponseModel",
|
|
1245
|
-
'404': "ErrorResponseModel",
|
|
1246
1220
|
'500': None,
|
|
1247
1221
|
}
|
|
1248
1222
|
response_data = self.api_client.call_api(
|
|
@@ -1257,9 +1231,11 @@ class EnvironmentApi:
|
|
|
1257
1231
|
|
|
1258
1232
|
|
|
1259
1233
|
@validate_call
|
|
1260
|
-
def
|
|
1234
|
+
def list_environments_with_http_info(
|
|
1261
1235
|
self,
|
|
1262
|
-
|
|
1236
|
+
page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
|
|
1237
|
+
page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
|
|
1238
|
+
search: Annotated[Optional[StrictStr], Field(description="Search By ID or Name or Region")] = None,
|
|
1263
1239
|
_request_timeout: Union[
|
|
1264
1240
|
None,
|
|
1265
1241
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1272,13 +1248,17 @@ class EnvironmentApi:
|
|
|
1272
1248
|
_content_type: Optional[StrictStr] = None,
|
|
1273
1249
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1274
1250
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1275
|
-
) -> ApiResponse[
|
|
1276
|
-
"""
|
|
1251
|
+
) -> ApiResponse[Environments]:
|
|
1252
|
+
"""List environments
|
|
1277
1253
|
|
|
1278
|
-
|
|
1254
|
+
Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs...cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
|
|
1279
1255
|
|
|
1280
|
-
:param
|
|
1281
|
-
:type
|
|
1256
|
+
:param page: Page Number
|
|
1257
|
+
:type page: str
|
|
1258
|
+
:param page_size: Data Per Page
|
|
1259
|
+
:type page_size: str
|
|
1260
|
+
:param search: Search By ID or Name or Region
|
|
1261
|
+
:type search: str
|
|
1282
1262
|
:param _request_timeout: timeout setting for this request. If one
|
|
1283
1263
|
number provided, it will be total request
|
|
1284
1264
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1301,8 +1281,10 @@ class EnvironmentApi:
|
|
|
1301
1281
|
:return: Returns the result object.
|
|
1302
1282
|
""" # noqa: E501
|
|
1303
1283
|
|
|
1304
|
-
_param = self.
|
|
1305
|
-
|
|
1284
|
+
_param = self._list_environments_serialize(
|
|
1285
|
+
page=page,
|
|
1286
|
+
page_size=page_size,
|
|
1287
|
+
search=search,
|
|
1306
1288
|
_request_auth=_request_auth,
|
|
1307
1289
|
_content_type=_content_type,
|
|
1308
1290
|
_headers=_headers,
|
|
@@ -1310,10 +1292,9 @@ class EnvironmentApi:
|
|
|
1310
1292
|
)
|
|
1311
1293
|
|
|
1312
1294
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1313
|
-
'200': "
|
|
1295
|
+
'200': "Environments",
|
|
1314
1296
|
'400': "ErrorResponseModel",
|
|
1315
1297
|
'401': "ErrorResponseModel",
|
|
1316
|
-
'404': "ErrorResponseModel",
|
|
1317
1298
|
'500': None,
|
|
1318
1299
|
}
|
|
1319
1300
|
response_data = self.api_client.call_api(
|
|
@@ -1328,9 +1309,11 @@ class EnvironmentApi:
|
|
|
1328
1309
|
|
|
1329
1310
|
|
|
1330
1311
|
@validate_call
|
|
1331
|
-
def
|
|
1312
|
+
def list_environments_without_preload_content(
|
|
1332
1313
|
self,
|
|
1333
|
-
|
|
1314
|
+
page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
|
|
1315
|
+
page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
|
|
1316
|
+
search: Annotated[Optional[StrictStr], Field(description="Search By ID or Name or Region")] = None,
|
|
1334
1317
|
_request_timeout: Union[
|
|
1335
1318
|
None,
|
|
1336
1319
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1344,12 +1327,16 @@ class EnvironmentApi:
|
|
|
1344
1327
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1345
1328
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1346
1329
|
) -> RESTResponseType:
|
|
1347
|
-
"""
|
|
1330
|
+
"""List environments
|
|
1348
1331
|
|
|
1349
|
-
|
|
1332
|
+
Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs...cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
|
|
1350
1333
|
|
|
1351
|
-
:param
|
|
1352
|
-
:type
|
|
1334
|
+
:param page: Page Number
|
|
1335
|
+
:type page: str
|
|
1336
|
+
:param page_size: Data Per Page
|
|
1337
|
+
:type page_size: str
|
|
1338
|
+
:param search: Search By ID or Name or Region
|
|
1339
|
+
:type search: str
|
|
1353
1340
|
:param _request_timeout: timeout setting for this request. If one
|
|
1354
1341
|
number provided, it will be total request
|
|
1355
1342
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1372,8 +1359,10 @@ class EnvironmentApi:
|
|
|
1372
1359
|
:return: Returns the result object.
|
|
1373
1360
|
""" # noqa: E501
|
|
1374
1361
|
|
|
1375
|
-
_param = self.
|
|
1376
|
-
|
|
1362
|
+
_param = self._list_environments_serialize(
|
|
1363
|
+
page=page,
|
|
1364
|
+
page_size=page_size,
|
|
1365
|
+
search=search,
|
|
1377
1366
|
_request_auth=_request_auth,
|
|
1378
1367
|
_content_type=_content_type,
|
|
1379
1368
|
_headers=_headers,
|
|
@@ -1381,10 +1370,9 @@ class EnvironmentApi:
|
|
|
1381
1370
|
)
|
|
1382
1371
|
|
|
1383
1372
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1384
|
-
'200': "
|
|
1373
|
+
'200': "Environments",
|
|
1385
1374
|
'400': "ErrorResponseModel",
|
|
1386
1375
|
'401': "ErrorResponseModel",
|
|
1387
|
-
'404': "ErrorResponseModel",
|
|
1388
1376
|
'500': None,
|
|
1389
1377
|
}
|
|
1390
1378
|
response_data = self.api_client.call_api(
|
|
@@ -1394,9 +1382,11 @@ class EnvironmentApi:
|
|
|
1394
1382
|
return response_data.response
|
|
1395
1383
|
|
|
1396
1384
|
|
|
1397
|
-
def
|
|
1385
|
+
def _list_environments_serialize(
|
|
1398
1386
|
self,
|
|
1399
|
-
|
|
1387
|
+
page,
|
|
1388
|
+
page_size,
|
|
1389
|
+
search,
|
|
1400
1390
|
_request_auth,
|
|
1401
1391
|
_content_type,
|
|
1402
1392
|
_headers,
|
|
@@ -1418,9 +1408,19 @@ class EnvironmentApi:
|
|
|
1418
1408
|
_body_params: Optional[bytes] = None
|
|
1419
1409
|
|
|
1420
1410
|
# process the path parameters
|
|
1421
|
-
if id is not None:
|
|
1422
|
-
_path_params['id'] = id
|
|
1423
1411
|
# process the query parameters
|
|
1412
|
+
if page is not None:
|
|
1413
|
+
|
|
1414
|
+
_query_params.append(('page', page))
|
|
1415
|
+
|
|
1416
|
+
if page_size is not None:
|
|
1417
|
+
|
|
1418
|
+
_query_params.append(('pageSize', page_size))
|
|
1419
|
+
|
|
1420
|
+
if search is not None:
|
|
1421
|
+
|
|
1422
|
+
_query_params.append(('search', search))
|
|
1423
|
+
|
|
1424
1424
|
# process the header parameters
|
|
1425
1425
|
# process the form parameters
|
|
1426
1426
|
# process the body parameter
|
|
@@ -1442,7 +1442,7 @@ class EnvironmentApi:
|
|
|
1442
1442
|
|
|
1443
1443
|
return self.api_client.param_serialize(
|
|
1444
1444
|
method='GET',
|
|
1445
|
-
resource_path='/core/environments
|
|
1445
|
+
resource_path='/core/environments',
|
|
1446
1446
|
path_params=_path_params,
|
|
1447
1447
|
query_params=_query_params,
|
|
1448
1448
|
header_params=_header_params,
|