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/volume_api.py
CHANGED
|
@@ -612,9 +612,9 @@ class VolumeApi:
|
|
|
612
612
|
|
|
613
613
|
|
|
614
614
|
@validate_call
|
|
615
|
-
def
|
|
615
|
+
def fetch_volume_name_availability(
|
|
616
616
|
self,
|
|
617
|
-
|
|
617
|
+
name: StrictStr,
|
|
618
618
|
_request_timeout: Union[
|
|
619
619
|
None,
|
|
620
620
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -627,13 +627,13 @@ class VolumeApi:
|
|
|
627
627
|
_content_type: Optional[StrictStr] = None,
|
|
628
628
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
629
629
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
630
|
-
) ->
|
|
631
|
-
"""Fetch
|
|
630
|
+
) -> NameAvailableModel:
|
|
631
|
+
"""Fetch volume name availability
|
|
632
632
|
|
|
633
|
-
|
|
633
|
+
Check if a Volume name is available
|
|
634
634
|
|
|
635
|
-
:param
|
|
636
|
-
:type
|
|
635
|
+
:param name: (required)
|
|
636
|
+
:type name: str
|
|
637
637
|
:param _request_timeout: timeout setting for this request. If one
|
|
638
638
|
number provided, it will be total request
|
|
639
639
|
timeout. It can also be a pair (tuple) of
|
|
@@ -656,8 +656,8 @@ class VolumeApi:
|
|
|
656
656
|
:return: Returns the result object.
|
|
657
657
|
""" # noqa: E501
|
|
658
658
|
|
|
659
|
-
_param = self.
|
|
660
|
-
|
|
659
|
+
_param = self._fetch_volume_name_availability_serialize(
|
|
660
|
+
name=name,
|
|
661
661
|
_request_auth=_request_auth,
|
|
662
662
|
_content_type=_content_type,
|
|
663
663
|
_headers=_headers,
|
|
@@ -665,11 +665,10 @@ class VolumeApi:
|
|
|
665
665
|
)
|
|
666
666
|
|
|
667
667
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
668
|
-
'200': "
|
|
668
|
+
'200': "NameAvailableModel",
|
|
669
669
|
'400': "ErrorResponseModel",
|
|
670
670
|
'401': "ErrorResponseModel",
|
|
671
|
-
'
|
|
672
|
-
'405': "ErrorResponseModel",
|
|
671
|
+
'404': "ErrorResponseModel",
|
|
673
672
|
'500': None,
|
|
674
673
|
}
|
|
675
674
|
response_data = self.api_client.call_api(
|
|
@@ -684,9 +683,9 @@ class VolumeApi:
|
|
|
684
683
|
|
|
685
684
|
|
|
686
685
|
@validate_call
|
|
687
|
-
def
|
|
686
|
+
def fetch_volume_name_availability_with_http_info(
|
|
688
687
|
self,
|
|
689
|
-
|
|
688
|
+
name: StrictStr,
|
|
690
689
|
_request_timeout: Union[
|
|
691
690
|
None,
|
|
692
691
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -699,13 +698,13 @@ class VolumeApi:
|
|
|
699
698
|
_content_type: Optional[StrictStr] = None,
|
|
700
699
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
701
700
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
702
|
-
) -> ApiResponse[
|
|
703
|
-
"""Fetch
|
|
701
|
+
) -> ApiResponse[NameAvailableModel]:
|
|
702
|
+
"""Fetch volume name availability
|
|
704
703
|
|
|
705
|
-
|
|
704
|
+
Check if a Volume name is available
|
|
706
705
|
|
|
707
|
-
:param
|
|
708
|
-
:type
|
|
706
|
+
:param name: (required)
|
|
707
|
+
:type name: str
|
|
709
708
|
:param _request_timeout: timeout setting for this request. If one
|
|
710
709
|
number provided, it will be total request
|
|
711
710
|
timeout. It can also be a pair (tuple) of
|
|
@@ -728,8 +727,8 @@ class VolumeApi:
|
|
|
728
727
|
:return: Returns the result object.
|
|
729
728
|
""" # noqa: E501
|
|
730
729
|
|
|
731
|
-
_param = self.
|
|
732
|
-
|
|
730
|
+
_param = self._fetch_volume_name_availability_serialize(
|
|
731
|
+
name=name,
|
|
733
732
|
_request_auth=_request_auth,
|
|
734
733
|
_content_type=_content_type,
|
|
735
734
|
_headers=_headers,
|
|
@@ -737,11 +736,10 @@ class VolumeApi:
|
|
|
737
736
|
)
|
|
738
737
|
|
|
739
738
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
740
|
-
'200': "
|
|
739
|
+
'200': "NameAvailableModel",
|
|
741
740
|
'400': "ErrorResponseModel",
|
|
742
741
|
'401': "ErrorResponseModel",
|
|
743
|
-
'
|
|
744
|
-
'405': "ErrorResponseModel",
|
|
742
|
+
'404': "ErrorResponseModel",
|
|
745
743
|
'500': None,
|
|
746
744
|
}
|
|
747
745
|
response_data = self.api_client.call_api(
|
|
@@ -756,9 +754,9 @@ class VolumeApi:
|
|
|
756
754
|
|
|
757
755
|
|
|
758
756
|
@validate_call
|
|
759
|
-
def
|
|
757
|
+
def fetch_volume_name_availability_without_preload_content(
|
|
760
758
|
self,
|
|
761
|
-
|
|
759
|
+
name: StrictStr,
|
|
762
760
|
_request_timeout: Union[
|
|
763
761
|
None,
|
|
764
762
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -772,12 +770,12 @@ class VolumeApi:
|
|
|
772
770
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
773
771
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
774
772
|
) -> RESTResponseType:
|
|
775
|
-
"""Fetch
|
|
773
|
+
"""Fetch volume name availability
|
|
776
774
|
|
|
777
|
-
|
|
775
|
+
Check if a Volume name is available
|
|
778
776
|
|
|
779
|
-
:param
|
|
780
|
-
:type
|
|
777
|
+
:param name: (required)
|
|
778
|
+
:type name: str
|
|
781
779
|
:param _request_timeout: timeout setting for this request. If one
|
|
782
780
|
number provided, it will be total request
|
|
783
781
|
timeout. It can also be a pair (tuple) of
|
|
@@ -800,8 +798,8 @@ class VolumeApi:
|
|
|
800
798
|
:return: Returns the result object.
|
|
801
799
|
""" # noqa: E501
|
|
802
800
|
|
|
803
|
-
_param = self.
|
|
804
|
-
|
|
801
|
+
_param = self._fetch_volume_name_availability_serialize(
|
|
802
|
+
name=name,
|
|
805
803
|
_request_auth=_request_auth,
|
|
806
804
|
_content_type=_content_type,
|
|
807
805
|
_headers=_headers,
|
|
@@ -809,11 +807,10 @@ class VolumeApi:
|
|
|
809
807
|
)
|
|
810
808
|
|
|
811
809
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
812
|
-
'200': "
|
|
810
|
+
'200': "NameAvailableModel",
|
|
813
811
|
'400': "ErrorResponseModel",
|
|
814
812
|
'401': "ErrorResponseModel",
|
|
815
|
-
'
|
|
816
|
-
'405': "ErrorResponseModel",
|
|
813
|
+
'404': "ErrorResponseModel",
|
|
817
814
|
'500': None,
|
|
818
815
|
}
|
|
819
816
|
response_data = self.api_client.call_api(
|
|
@@ -823,9 +820,9 @@ class VolumeApi:
|
|
|
823
820
|
return response_data.response
|
|
824
821
|
|
|
825
822
|
|
|
826
|
-
def
|
|
823
|
+
def _fetch_volume_name_availability_serialize(
|
|
827
824
|
self,
|
|
828
|
-
|
|
825
|
+
name,
|
|
829
826
|
_request_auth,
|
|
830
827
|
_content_type,
|
|
831
828
|
_headers,
|
|
@@ -847,8 +844,8 @@ class VolumeApi:
|
|
|
847
844
|
_body_params: Optional[bytes] = None
|
|
848
845
|
|
|
849
846
|
# process the path parameters
|
|
850
|
-
if
|
|
851
|
-
_path_params['
|
|
847
|
+
if name is not None:
|
|
848
|
+
_path_params['name'] = name
|
|
852
849
|
# process the query parameters
|
|
853
850
|
# process the header parameters
|
|
854
851
|
# process the form parameters
|
|
@@ -871,7 +868,7 @@ class VolumeApi:
|
|
|
871
868
|
|
|
872
869
|
return self.api_client.param_serialize(
|
|
873
870
|
method='GET',
|
|
874
|
-
resource_path='/core/
|
|
871
|
+
resource_path='/core/volume/name-availability/{name}',
|
|
875
872
|
path_params=_path_params,
|
|
876
873
|
query_params=_query_params,
|
|
877
874
|
header_params=_header_params,
|
|
@@ -888,9 +885,9 @@ class VolumeApi:
|
|
|
888
885
|
|
|
889
886
|
|
|
890
887
|
@validate_call
|
|
891
|
-
def
|
|
888
|
+
def get_volume(
|
|
892
889
|
self,
|
|
893
|
-
|
|
890
|
+
volume_id: StrictInt,
|
|
894
891
|
_request_timeout: Union[
|
|
895
892
|
None,
|
|
896
893
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -903,13 +900,13 @@ class VolumeApi:
|
|
|
903
900
|
_content_type: Optional[StrictStr] = None,
|
|
904
901
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
905
902
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
906
|
-
) ->
|
|
907
|
-
"""Fetch
|
|
903
|
+
) -> Volume:
|
|
904
|
+
"""Fetch Volume Details
|
|
908
905
|
|
|
909
|
-
|
|
906
|
+
Fetch volume details for specific volume. This endpoint returns id, name, volume size, volume type, status, description, image_id, os_image, created_at, updated_at etc.
|
|
910
907
|
|
|
911
|
-
:param
|
|
912
|
-
:type
|
|
908
|
+
:param volume_id: (required)
|
|
909
|
+
:type volume_id: int
|
|
913
910
|
:param _request_timeout: timeout setting for this request. If one
|
|
914
911
|
number provided, it will be total request
|
|
915
912
|
timeout. It can also be a pair (tuple) of
|
|
@@ -932,8 +929,8 @@ class VolumeApi:
|
|
|
932
929
|
:return: Returns the result object.
|
|
933
930
|
""" # noqa: E501
|
|
934
931
|
|
|
935
|
-
_param = self.
|
|
936
|
-
|
|
932
|
+
_param = self._get_volume_serialize(
|
|
933
|
+
volume_id=volume_id,
|
|
937
934
|
_request_auth=_request_auth,
|
|
938
935
|
_content_type=_content_type,
|
|
939
936
|
_headers=_headers,
|
|
@@ -941,10 +938,11 @@ class VolumeApi:
|
|
|
941
938
|
)
|
|
942
939
|
|
|
943
940
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
944
|
-
'200': "
|
|
941
|
+
'200': "Volume",
|
|
945
942
|
'400': "ErrorResponseModel",
|
|
946
943
|
'401': "ErrorResponseModel",
|
|
947
|
-
'
|
|
944
|
+
'403': "ErrorResponseModel",
|
|
945
|
+
'405': "ErrorResponseModel",
|
|
948
946
|
'500': None,
|
|
949
947
|
}
|
|
950
948
|
response_data = self.api_client.call_api(
|
|
@@ -959,9 +957,9 @@ class VolumeApi:
|
|
|
959
957
|
|
|
960
958
|
|
|
961
959
|
@validate_call
|
|
962
|
-
def
|
|
960
|
+
def get_volume_with_http_info(
|
|
963
961
|
self,
|
|
964
|
-
|
|
962
|
+
volume_id: StrictInt,
|
|
965
963
|
_request_timeout: Union[
|
|
966
964
|
None,
|
|
967
965
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -974,13 +972,13 @@ class VolumeApi:
|
|
|
974
972
|
_content_type: Optional[StrictStr] = None,
|
|
975
973
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
976
974
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
977
|
-
) -> ApiResponse[
|
|
978
|
-
"""Fetch
|
|
975
|
+
) -> ApiResponse[Volume]:
|
|
976
|
+
"""Fetch Volume Details
|
|
979
977
|
|
|
980
|
-
|
|
978
|
+
Fetch volume details for specific volume. This endpoint returns id, name, volume size, volume type, status, description, image_id, os_image, created_at, updated_at etc.
|
|
981
979
|
|
|
982
|
-
:param
|
|
983
|
-
:type
|
|
980
|
+
:param volume_id: (required)
|
|
981
|
+
:type volume_id: int
|
|
984
982
|
:param _request_timeout: timeout setting for this request. If one
|
|
985
983
|
number provided, it will be total request
|
|
986
984
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1003,8 +1001,8 @@ class VolumeApi:
|
|
|
1003
1001
|
:return: Returns the result object.
|
|
1004
1002
|
""" # noqa: E501
|
|
1005
1003
|
|
|
1006
|
-
_param = self.
|
|
1007
|
-
|
|
1004
|
+
_param = self._get_volume_serialize(
|
|
1005
|
+
volume_id=volume_id,
|
|
1008
1006
|
_request_auth=_request_auth,
|
|
1009
1007
|
_content_type=_content_type,
|
|
1010
1008
|
_headers=_headers,
|
|
@@ -1012,10 +1010,11 @@ class VolumeApi:
|
|
|
1012
1010
|
)
|
|
1013
1011
|
|
|
1014
1012
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1015
|
-
'200': "
|
|
1013
|
+
'200': "Volume",
|
|
1016
1014
|
'400': "ErrorResponseModel",
|
|
1017
1015
|
'401': "ErrorResponseModel",
|
|
1018
|
-
'
|
|
1016
|
+
'403': "ErrorResponseModel",
|
|
1017
|
+
'405': "ErrorResponseModel",
|
|
1019
1018
|
'500': None,
|
|
1020
1019
|
}
|
|
1021
1020
|
response_data = self.api_client.call_api(
|
|
@@ -1030,9 +1029,9 @@ class VolumeApi:
|
|
|
1030
1029
|
|
|
1031
1030
|
|
|
1032
1031
|
@validate_call
|
|
1033
|
-
def
|
|
1032
|
+
def get_volume_without_preload_content(
|
|
1034
1033
|
self,
|
|
1035
|
-
|
|
1034
|
+
volume_id: StrictInt,
|
|
1036
1035
|
_request_timeout: Union[
|
|
1037
1036
|
None,
|
|
1038
1037
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1046,12 +1045,12 @@ class VolumeApi:
|
|
|
1046
1045
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1047
1046
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1048
1047
|
) -> RESTResponseType:
|
|
1049
|
-
"""Fetch
|
|
1048
|
+
"""Fetch Volume Details
|
|
1050
1049
|
|
|
1051
|
-
|
|
1050
|
+
Fetch volume details for specific volume. This endpoint returns id, name, volume size, volume type, status, description, image_id, os_image, created_at, updated_at etc.
|
|
1052
1051
|
|
|
1053
|
-
:param
|
|
1054
|
-
:type
|
|
1052
|
+
:param volume_id: (required)
|
|
1053
|
+
:type volume_id: int
|
|
1055
1054
|
:param _request_timeout: timeout setting for this request. If one
|
|
1056
1055
|
number provided, it will be total request
|
|
1057
1056
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1074,8 +1073,8 @@ class VolumeApi:
|
|
|
1074
1073
|
:return: Returns the result object.
|
|
1075
1074
|
""" # noqa: E501
|
|
1076
1075
|
|
|
1077
|
-
_param = self.
|
|
1078
|
-
|
|
1076
|
+
_param = self._get_volume_serialize(
|
|
1077
|
+
volume_id=volume_id,
|
|
1079
1078
|
_request_auth=_request_auth,
|
|
1080
1079
|
_content_type=_content_type,
|
|
1081
1080
|
_headers=_headers,
|
|
@@ -1083,10 +1082,11 @@ class VolumeApi:
|
|
|
1083
1082
|
)
|
|
1084
1083
|
|
|
1085
1084
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1086
|
-
'200': "
|
|
1085
|
+
'200': "Volume",
|
|
1087
1086
|
'400': "ErrorResponseModel",
|
|
1088
1087
|
'401': "ErrorResponseModel",
|
|
1089
|
-
'
|
|
1088
|
+
'403': "ErrorResponseModel",
|
|
1089
|
+
'405': "ErrorResponseModel",
|
|
1090
1090
|
'500': None,
|
|
1091
1091
|
}
|
|
1092
1092
|
response_data = self.api_client.call_api(
|
|
@@ -1096,9 +1096,9 @@ class VolumeApi:
|
|
|
1096
1096
|
return response_data.response
|
|
1097
1097
|
|
|
1098
1098
|
|
|
1099
|
-
def
|
|
1099
|
+
def _get_volume_serialize(
|
|
1100
1100
|
self,
|
|
1101
|
-
|
|
1101
|
+
volume_id,
|
|
1102
1102
|
_request_auth,
|
|
1103
1103
|
_content_type,
|
|
1104
1104
|
_headers,
|
|
@@ -1120,8 +1120,8 @@ class VolumeApi:
|
|
|
1120
1120
|
_body_params: Optional[bytes] = None
|
|
1121
1121
|
|
|
1122
1122
|
# process the path parameters
|
|
1123
|
-
if
|
|
1124
|
-
_path_params['
|
|
1123
|
+
if volume_id is not None:
|
|
1124
|
+
_path_params['volume_id'] = volume_id
|
|
1125
1125
|
# process the query parameters
|
|
1126
1126
|
# process the header parameters
|
|
1127
1127
|
# process the form parameters
|
|
@@ -1144,7 +1144,7 @@ class VolumeApi:
|
|
|
1144
1144
|
|
|
1145
1145
|
return self.api_client.param_serialize(
|
|
1146
1146
|
method='GET',
|
|
1147
|
-
resource_path='/core/
|
|
1147
|
+
resource_path='/core/volumes/{volume_id}',
|
|
1148
1148
|
path_params=_path_params,
|
|
1149
1149
|
query_params=_query_params,
|
|
1150
1150
|
header_params=_header_params,
|
|
@@ -42,7 +42,7 @@ class VolumeAttachmentApi:
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
@validate_call
|
|
45
|
-
def
|
|
45
|
+
def attach_volumes_to_vm(
|
|
46
46
|
self,
|
|
47
47
|
vm_id: StrictInt,
|
|
48
48
|
payload: AttachVolumesPayload,
|
|
@@ -89,7 +89,7 @@ class VolumeAttachmentApi:
|
|
|
89
89
|
:return: Returns the result object.
|
|
90
90
|
""" # noqa: E501
|
|
91
91
|
|
|
92
|
-
_param = self.
|
|
92
|
+
_param = self._attach_volumes_to_vm_serialize(
|
|
93
93
|
vm_id=vm_id,
|
|
94
94
|
payload=payload,
|
|
95
95
|
_request_auth=_request_auth,
|
|
@@ -118,7 +118,7 @@ class VolumeAttachmentApi:
|
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
@validate_call
|
|
121
|
-
def
|
|
121
|
+
def attach_volumes_to_vm_with_http_info(
|
|
122
122
|
self,
|
|
123
123
|
vm_id: StrictInt,
|
|
124
124
|
payload: AttachVolumesPayload,
|
|
@@ -165,7 +165,7 @@ class VolumeAttachmentApi:
|
|
|
165
165
|
:return: Returns the result object.
|
|
166
166
|
""" # noqa: E501
|
|
167
167
|
|
|
168
|
-
_param = self.
|
|
168
|
+
_param = self._attach_volumes_to_vm_serialize(
|
|
169
169
|
vm_id=vm_id,
|
|
170
170
|
payload=payload,
|
|
171
171
|
_request_auth=_request_auth,
|
|
@@ -194,7 +194,7 @@ class VolumeAttachmentApi:
|
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
@validate_call
|
|
197
|
-
def
|
|
197
|
+
def attach_volumes_to_vm_without_preload_content(
|
|
198
198
|
self,
|
|
199
199
|
vm_id: StrictInt,
|
|
200
200
|
payload: AttachVolumesPayload,
|
|
@@ -241,7 +241,7 @@ class VolumeAttachmentApi:
|
|
|
241
241
|
:return: Returns the result object.
|
|
242
242
|
""" # noqa: E501
|
|
243
243
|
|
|
244
|
-
_param = self.
|
|
244
|
+
_param = self._attach_volumes_to_vm_serialize(
|
|
245
245
|
vm_id=vm_id,
|
|
246
246
|
payload=payload,
|
|
247
247
|
_request_auth=_request_auth,
|
|
@@ -265,7 +265,7 @@ class VolumeAttachmentApi:
|
|
|
265
265
|
return response_data.response
|
|
266
266
|
|
|
267
267
|
|
|
268
|
-
def
|
|
268
|
+
def _attach_volumes_to_vm_serialize(
|
|
269
269
|
self,
|
|
270
270
|
vm_id,
|
|
271
271
|
payload,
|
|
@@ -346,7 +346,7 @@ class VolumeAttachmentApi:
|
|
|
346
346
|
|
|
347
347
|
|
|
348
348
|
@validate_call
|
|
349
|
-
def
|
|
349
|
+
def detach_volumes_from_vm(
|
|
350
350
|
self,
|
|
351
351
|
vm_id: StrictInt,
|
|
352
352
|
payload: DetachVolumesPayload,
|
|
@@ -393,7 +393,7 @@ class VolumeAttachmentApi:
|
|
|
393
393
|
:return: Returns the result object.
|
|
394
394
|
""" # noqa: E501
|
|
395
395
|
|
|
396
|
-
_param = self.
|
|
396
|
+
_param = self._detach_volumes_from_vm_serialize(
|
|
397
397
|
vm_id=vm_id,
|
|
398
398
|
payload=payload,
|
|
399
399
|
_request_auth=_request_auth,
|
|
@@ -422,7 +422,7 @@ class VolumeAttachmentApi:
|
|
|
422
422
|
|
|
423
423
|
|
|
424
424
|
@validate_call
|
|
425
|
-
def
|
|
425
|
+
def detach_volumes_from_vm_with_http_info(
|
|
426
426
|
self,
|
|
427
427
|
vm_id: StrictInt,
|
|
428
428
|
payload: DetachVolumesPayload,
|
|
@@ -469,7 +469,7 @@ class VolumeAttachmentApi:
|
|
|
469
469
|
:return: Returns the result object.
|
|
470
470
|
""" # noqa: E501
|
|
471
471
|
|
|
472
|
-
_param = self.
|
|
472
|
+
_param = self._detach_volumes_from_vm_serialize(
|
|
473
473
|
vm_id=vm_id,
|
|
474
474
|
payload=payload,
|
|
475
475
|
_request_auth=_request_auth,
|
|
@@ -498,7 +498,7 @@ class VolumeAttachmentApi:
|
|
|
498
498
|
|
|
499
499
|
|
|
500
500
|
@validate_call
|
|
501
|
-
def
|
|
501
|
+
def detach_volumes_from_vm_without_preload_content(
|
|
502
502
|
self,
|
|
503
503
|
vm_id: StrictInt,
|
|
504
504
|
payload: DetachVolumesPayload,
|
|
@@ -545,7 +545,7 @@ class VolumeAttachmentApi:
|
|
|
545
545
|
:return: Returns the result object.
|
|
546
546
|
""" # noqa: E501
|
|
547
547
|
|
|
548
|
-
_param = self.
|
|
548
|
+
_param = self._detach_volumes_from_vm_serialize(
|
|
549
549
|
vm_id=vm_id,
|
|
550
550
|
payload=payload,
|
|
551
551
|
_request_auth=_request_auth,
|
|
@@ -569,7 +569,7 @@ class VolumeAttachmentApi:
|
|
|
569
569
|
return response_data.response
|
|
570
570
|
|
|
571
571
|
|
|
572
|
-
def
|
|
572
|
+
def _detach_volumes_from_vm_serialize(
|
|
573
573
|
self,
|
|
574
574
|
vm_id,
|
|
575
575
|
payload,
|
|
@@ -650,7 +650,7 @@ class VolumeAttachmentApi:
|
|
|
650
650
|
|
|
651
651
|
|
|
652
652
|
@validate_call
|
|
653
|
-
def
|
|
653
|
+
def update_volume_attachment(
|
|
654
654
|
self,
|
|
655
655
|
volume_attachment_id: StrictInt,
|
|
656
656
|
payload: UpdateVolumeAttachmentPayload,
|
|
@@ -696,7 +696,7 @@ class VolumeAttachmentApi:
|
|
|
696
696
|
:return: Returns the result object.
|
|
697
697
|
""" # noqa: E501
|
|
698
698
|
|
|
699
|
-
_param = self.
|
|
699
|
+
_param = self._update_volume_attachment_serialize(
|
|
700
700
|
volume_attachment_id=volume_attachment_id,
|
|
701
701
|
payload=payload,
|
|
702
702
|
_request_auth=_request_auth,
|
|
@@ -725,7 +725,7 @@ class VolumeAttachmentApi:
|
|
|
725
725
|
|
|
726
726
|
|
|
727
727
|
@validate_call
|
|
728
|
-
def
|
|
728
|
+
def update_volume_attachment_with_http_info(
|
|
729
729
|
self,
|
|
730
730
|
volume_attachment_id: StrictInt,
|
|
731
731
|
payload: UpdateVolumeAttachmentPayload,
|
|
@@ -771,7 +771,7 @@ class VolumeAttachmentApi:
|
|
|
771
771
|
:return: Returns the result object.
|
|
772
772
|
""" # noqa: E501
|
|
773
773
|
|
|
774
|
-
_param = self.
|
|
774
|
+
_param = self._update_volume_attachment_serialize(
|
|
775
775
|
volume_attachment_id=volume_attachment_id,
|
|
776
776
|
payload=payload,
|
|
777
777
|
_request_auth=_request_auth,
|
|
@@ -800,7 +800,7 @@ class VolumeAttachmentApi:
|
|
|
800
800
|
|
|
801
801
|
|
|
802
802
|
@validate_call
|
|
803
|
-
def
|
|
803
|
+
def update_volume_attachment_without_preload_content(
|
|
804
804
|
self,
|
|
805
805
|
volume_attachment_id: StrictInt,
|
|
806
806
|
payload: UpdateVolumeAttachmentPayload,
|
|
@@ -846,7 +846,7 @@ class VolumeAttachmentApi:
|
|
|
846
846
|
:return: Returns the result object.
|
|
847
847
|
""" # noqa: E501
|
|
848
848
|
|
|
849
|
-
_param = self.
|
|
849
|
+
_param = self._update_volume_attachment_serialize(
|
|
850
850
|
volume_attachment_id=volume_attachment_id,
|
|
851
851
|
payload=payload,
|
|
852
852
|
_request_auth=_request_auth,
|
|
@@ -870,7 +870,7 @@ class VolumeAttachmentApi:
|
|
|
870
870
|
return response_data.response
|
|
871
871
|
|
|
872
872
|
|
|
873
|
-
def
|
|
873
|
+
def _update_volume_attachment_serialize(
|
|
874
874
|
self,
|
|
875
875
|
volume_attachment_id,
|
|
876
876
|
payload,
|
hyperstack/api_client.py
CHANGED
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/v1.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/v1.46.1-alpha/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
hyperstack/configuration.py
CHANGED
|
@@ -524,7 +524,7 @@ conf = hyperstack.Configuration(
|
|
|
524
524
|
"OS: {env}\n"\
|
|
525
525
|
"Python Version: {pyversion}\n"\
|
|
526
526
|
"Version of the API: 1.0\n"\
|
|
527
|
-
"SDK Package Version: v1.
|
|
527
|
+
"SDK Package Version: v1.46.1-alpha".\
|
|
528
528
|
format(env=sys.platform, pyversion=sys.version)
|
|
529
529
|
|
|
530
530
|
def get_host_settings(self) -> List[HostSetting]:
|