hyperstack 1.45.2a0__py3-none-any.whl → 1.46.2a0__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.
Files changed (41) hide show
  1. hyperstack/__init__.py +2 -1
  2. hyperstack/api/__init__.py +1 -0
  3. hyperstack/api/alive_api.py +10 -10
  4. hyperstack/api/api_key_api.py +7 -7
  5. hyperstack/api/beta_access_api.py +50 -50
  6. hyperstack/api/billing_api.py +1659 -1659
  7. hyperstack/api/calculate_api.py +7 -7
  8. hyperstack/api/callbacks_api.py +21 -21
  9. hyperstack/api/cluster_events_api.py +7 -7
  10. hyperstack/api/clusters_api.py +445 -445
  11. hyperstack/api/compliance_api.py +21 -21
  12. hyperstack/api/credit_api.py +7 -7
  13. hyperstack/api/customer_contract_api.py +139 -139
  14. hyperstack/api/dashboard_api.py +7 -7
  15. hyperstack/api/deployment_api.py +7 -7
  16. hyperstack/api/environment_api.py +107 -107
  17. hyperstack/api/fip_exclusions_api.py +313 -0
  18. hyperstack/api/firewall_attachment_api.py +7 -7
  19. hyperstack/api/firewalls_api.py +145 -145
  20. hyperstack/api/floating_ip_api.py +14 -14
  21. hyperstack/api/image_api.py +14 -14
  22. hyperstack/api/payment_api.py +102 -102
  23. hyperstack/api/profile_api.py +56 -56
  24. hyperstack/api/snapshot_events_api.py +7 -7
  25. hyperstack/api/snapshots_api.py +167 -167
  26. hyperstack/api/stock_api.py +7 -7
  27. hyperstack/api/template_api.py +76 -76
  28. hyperstack/api/user_api.py +76 -76
  29. hyperstack/api/user_detail_choice_api.py +10 -10
  30. hyperstack/api/virtual_machine_api.py +799 -782
  31. hyperstack/api/virtual_machine_events_api.py +7 -7
  32. hyperstack/api/vnc_url_api.py +53 -53
  33. hyperstack/api/volume_api.py +77 -77
  34. hyperstack/api/volume_attachment_api.py +21 -21
  35. hyperstack/api_client.py +1 -1
  36. hyperstack/configuration.py +1 -1
  37. hyperstack/models/generate_update_api_key_payload.py +3 -2
  38. {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.2a0.dist-info}/METADATA +1 -1
  39. {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.2a0.dist-info}/RECORD +41 -40
  40. {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.2a0.dist-info}/WHEEL +0 -0
  41. {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.2a0.dist-info}/top_level.txt +0 -0
@@ -600,8 +600,9 @@ class ProfileApi:
600
600
 
601
601
 
602
602
  @validate_call
603
- def list_profiles(
603
+ def get_profile(
604
604
  self,
605
+ id: StrictInt,
605
606
  _request_timeout: Union[
606
607
  None,
607
608
  Annotated[StrictFloat, Field(gt=0)],
@@ -614,11 +615,13 @@ class ProfileApi:
614
615
  _content_type: Optional[StrictStr] = None,
615
616
  _headers: Optional[Dict[StrictStr, Any]] = None,
616
617
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
617
- ) -> ProfileListResponse:
618
- """List profiles
618
+ ) -> CreateProfileResponse:
619
+ """Retrieve profile details
619
620
 
620
- Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles,[**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles#load-a-provisioning-profile).
621
+ Retrieves details for an existing provisioning profile by supplying the profile ID in the request path. For more information about profiles, [**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles).
621
622
 
623
+ :param id: (required)
624
+ :type id: int
622
625
  :param _request_timeout: timeout setting for this request. If one
623
626
  number provided, it will be total request
624
627
  timeout. It can also be a pair (tuple) of
@@ -641,7 +644,8 @@ class ProfileApi:
641
644
  :return: Returns the result object.
642
645
  """ # noqa: E501
643
646
 
644
- _param = self._list_profiles_serialize(
647
+ _param = self._get_profile_serialize(
648
+ id=id,
645
649
  _request_auth=_request_auth,
646
650
  _content_type=_content_type,
647
651
  _headers=_headers,
@@ -649,9 +653,10 @@ class ProfileApi:
649
653
  )
650
654
 
651
655
  _response_types_map: Dict[str, Optional[str]] = {
652
- '200': "ProfileListResponse",
656
+ '200': "CreateProfileResponse",
653
657
  '400': "ErrorResponseModel",
654
658
  '401': "ErrorResponseModel",
659
+ '404': "ErrorResponseModel",
655
660
  '500': None,
656
661
  }
657
662
  response_data = self.api_client.call_api(
@@ -666,8 +671,9 @@ class ProfileApi:
666
671
 
667
672
 
668
673
  @validate_call
669
- def list_profiles_with_http_info(
674
+ def get_profile_with_http_info(
670
675
  self,
676
+ id: StrictInt,
671
677
  _request_timeout: Union[
672
678
  None,
673
679
  Annotated[StrictFloat, Field(gt=0)],
@@ -680,11 +686,13 @@ class ProfileApi:
680
686
  _content_type: Optional[StrictStr] = None,
681
687
  _headers: Optional[Dict[StrictStr, Any]] = None,
682
688
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
683
- ) -> ApiResponse[ProfileListResponse]:
684
- """List profiles
689
+ ) -> ApiResponse[CreateProfileResponse]:
690
+ """Retrieve profile details
685
691
 
686
- Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles,[**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles#load-a-provisioning-profile).
692
+ Retrieves details for an existing provisioning profile by supplying the profile ID in the request path. For more information about profiles, [**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles).
687
693
 
694
+ :param id: (required)
695
+ :type id: int
688
696
  :param _request_timeout: timeout setting for this request. If one
689
697
  number provided, it will be total request
690
698
  timeout. It can also be a pair (tuple) of
@@ -707,7 +715,8 @@ class ProfileApi:
707
715
  :return: Returns the result object.
708
716
  """ # noqa: E501
709
717
 
710
- _param = self._list_profiles_serialize(
718
+ _param = self._get_profile_serialize(
719
+ id=id,
711
720
  _request_auth=_request_auth,
712
721
  _content_type=_content_type,
713
722
  _headers=_headers,
@@ -715,9 +724,10 @@ class ProfileApi:
715
724
  )
716
725
 
717
726
  _response_types_map: Dict[str, Optional[str]] = {
718
- '200': "ProfileListResponse",
727
+ '200': "CreateProfileResponse",
719
728
  '400': "ErrorResponseModel",
720
729
  '401': "ErrorResponseModel",
730
+ '404': "ErrorResponseModel",
721
731
  '500': None,
722
732
  }
723
733
  response_data = self.api_client.call_api(
@@ -732,8 +742,9 @@ class ProfileApi:
732
742
 
733
743
 
734
744
  @validate_call
735
- def list_profiles_without_preload_content(
745
+ def get_profile_without_preload_content(
736
746
  self,
747
+ id: StrictInt,
737
748
  _request_timeout: Union[
738
749
  None,
739
750
  Annotated[StrictFloat, Field(gt=0)],
@@ -747,10 +758,12 @@ class ProfileApi:
747
758
  _headers: Optional[Dict[StrictStr, Any]] = None,
748
759
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
749
760
  ) -> RESTResponseType:
750
- """List profiles
761
+ """Retrieve profile details
751
762
 
752
- Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles,[**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles#load-a-provisioning-profile).
763
+ Retrieves details for an existing provisioning profile by supplying the profile ID in the request path. For more information about profiles, [**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles).
753
764
 
765
+ :param id: (required)
766
+ :type id: int
754
767
  :param _request_timeout: timeout setting for this request. If one
755
768
  number provided, it will be total request
756
769
  timeout. It can also be a pair (tuple) of
@@ -773,7 +786,8 @@ class ProfileApi:
773
786
  :return: Returns the result object.
774
787
  """ # noqa: E501
775
788
 
776
- _param = self._list_profiles_serialize(
789
+ _param = self._get_profile_serialize(
790
+ id=id,
777
791
  _request_auth=_request_auth,
778
792
  _content_type=_content_type,
779
793
  _headers=_headers,
@@ -781,9 +795,10 @@ class ProfileApi:
781
795
  )
782
796
 
783
797
  _response_types_map: Dict[str, Optional[str]] = {
784
- '200': "ProfileListResponse",
798
+ '200': "CreateProfileResponse",
785
799
  '400': "ErrorResponseModel",
786
800
  '401': "ErrorResponseModel",
801
+ '404': "ErrorResponseModel",
787
802
  '500': None,
788
803
  }
789
804
  response_data = self.api_client.call_api(
@@ -793,8 +808,9 @@ class ProfileApi:
793
808
  return response_data.response
794
809
 
795
810
 
796
- def _list_profiles_serialize(
811
+ def _get_profile_serialize(
797
812
  self,
813
+ id,
798
814
  _request_auth,
799
815
  _content_type,
800
816
  _headers,
@@ -816,6 +832,8 @@ class ProfileApi:
816
832
  _body_params: Optional[bytes] = None
817
833
 
818
834
  # process the path parameters
835
+ if id is not None:
836
+ _path_params['id'] = id
819
837
  # process the query parameters
820
838
  # process the header parameters
821
839
  # process the form parameters
@@ -838,7 +856,7 @@ class ProfileApi:
838
856
 
839
857
  return self.api_client.param_serialize(
840
858
  method='GET',
841
- resource_path='/core/profiles',
859
+ resource_path='/core/profiles/{id}',
842
860
  path_params=_path_params,
843
861
  query_params=_query_params,
844
862
  header_params=_header_params,
@@ -855,9 +873,8 @@ class ProfileApi:
855
873
 
856
874
 
857
875
  @validate_call
858
- def retrieve_profile_details(
876
+ def list_profiles(
859
877
  self,
860
- id: StrictInt,
861
878
  _request_timeout: Union[
862
879
  None,
863
880
  Annotated[StrictFloat, Field(gt=0)],
@@ -870,13 +887,11 @@ class ProfileApi:
870
887
  _content_type: Optional[StrictStr] = None,
871
888
  _headers: Optional[Dict[StrictStr, Any]] = None,
872
889
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
873
- ) -> CreateProfileResponse:
874
- """Retrieve profile details
890
+ ) -> ProfileListResponse:
891
+ """List profiles
875
892
 
876
- Retrieves details for an existing provisioning profile by supplying the profile ID in the request path. For more information about profiles, [**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles).
893
+ Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles,[**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles#load-a-provisioning-profile).
877
894
 
878
- :param id: (required)
879
- :type id: int
880
895
  :param _request_timeout: timeout setting for this request. If one
881
896
  number provided, it will be total request
882
897
  timeout. It can also be a pair (tuple) of
@@ -899,8 +914,7 @@ class ProfileApi:
899
914
  :return: Returns the result object.
900
915
  """ # noqa: E501
901
916
 
902
- _param = self._retrieve_profile_details_serialize(
903
- id=id,
917
+ _param = self._list_profiles_serialize(
904
918
  _request_auth=_request_auth,
905
919
  _content_type=_content_type,
906
920
  _headers=_headers,
@@ -908,10 +922,9 @@ class ProfileApi:
908
922
  )
909
923
 
910
924
  _response_types_map: Dict[str, Optional[str]] = {
911
- '200': "CreateProfileResponse",
925
+ '200': "ProfileListResponse",
912
926
  '400': "ErrorResponseModel",
913
927
  '401': "ErrorResponseModel",
914
- '404': "ErrorResponseModel",
915
928
  '500': None,
916
929
  }
917
930
  response_data = self.api_client.call_api(
@@ -926,9 +939,8 @@ class ProfileApi:
926
939
 
927
940
 
928
941
  @validate_call
929
- def retrieve_profile_details_with_http_info(
942
+ def list_profiles_with_http_info(
930
943
  self,
931
- id: StrictInt,
932
944
  _request_timeout: Union[
933
945
  None,
934
946
  Annotated[StrictFloat, Field(gt=0)],
@@ -941,13 +953,11 @@ class ProfileApi:
941
953
  _content_type: Optional[StrictStr] = None,
942
954
  _headers: Optional[Dict[StrictStr, Any]] = None,
943
955
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
944
- ) -> ApiResponse[CreateProfileResponse]:
945
- """Retrieve profile details
956
+ ) -> ApiResponse[ProfileListResponse]:
957
+ """List profiles
946
958
 
947
- Retrieves details for an existing provisioning profile by supplying the profile ID in the request path. For more information about profiles, [**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles).
959
+ Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles,[**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles#load-a-provisioning-profile).
948
960
 
949
- :param id: (required)
950
- :type id: int
951
961
  :param _request_timeout: timeout setting for this request. If one
952
962
  number provided, it will be total request
953
963
  timeout. It can also be a pair (tuple) of
@@ -970,8 +980,7 @@ class ProfileApi:
970
980
  :return: Returns the result object.
971
981
  """ # noqa: E501
972
982
 
973
- _param = self._retrieve_profile_details_serialize(
974
- id=id,
983
+ _param = self._list_profiles_serialize(
975
984
  _request_auth=_request_auth,
976
985
  _content_type=_content_type,
977
986
  _headers=_headers,
@@ -979,10 +988,9 @@ class ProfileApi:
979
988
  )
980
989
 
981
990
  _response_types_map: Dict[str, Optional[str]] = {
982
- '200': "CreateProfileResponse",
991
+ '200': "ProfileListResponse",
983
992
  '400': "ErrorResponseModel",
984
993
  '401': "ErrorResponseModel",
985
- '404': "ErrorResponseModel",
986
994
  '500': None,
987
995
  }
988
996
  response_data = self.api_client.call_api(
@@ -997,9 +1005,8 @@ class ProfileApi:
997
1005
 
998
1006
 
999
1007
  @validate_call
1000
- def retrieve_profile_details_without_preload_content(
1008
+ def list_profiles_without_preload_content(
1001
1009
  self,
1002
- id: StrictInt,
1003
1010
  _request_timeout: Union[
1004
1011
  None,
1005
1012
  Annotated[StrictFloat, Field(gt=0)],
@@ -1013,12 +1020,10 @@ class ProfileApi:
1013
1020
  _headers: Optional[Dict[StrictStr, Any]] = None,
1014
1021
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1015
1022
  ) -> RESTResponseType:
1016
- """Retrieve profile details
1023
+ """List profiles
1017
1024
 
1018
- Retrieves details for an existing provisioning profile by supplying the profile ID in the request path. For more information about profiles, [**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles).
1025
+ Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles,[**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles#load-a-provisioning-profile).
1019
1026
 
1020
- :param id: (required)
1021
- :type id: int
1022
1027
  :param _request_timeout: timeout setting for this request. If one
1023
1028
  number provided, it will be total request
1024
1029
  timeout. It can also be a pair (tuple) of
@@ -1041,8 +1046,7 @@ class ProfileApi:
1041
1046
  :return: Returns the result object.
1042
1047
  """ # noqa: E501
1043
1048
 
1044
- _param = self._retrieve_profile_details_serialize(
1045
- id=id,
1049
+ _param = self._list_profiles_serialize(
1046
1050
  _request_auth=_request_auth,
1047
1051
  _content_type=_content_type,
1048
1052
  _headers=_headers,
@@ -1050,10 +1054,9 @@ class ProfileApi:
1050
1054
  )
1051
1055
 
1052
1056
  _response_types_map: Dict[str, Optional[str]] = {
1053
- '200': "CreateProfileResponse",
1057
+ '200': "ProfileListResponse",
1054
1058
  '400': "ErrorResponseModel",
1055
1059
  '401': "ErrorResponseModel",
1056
- '404': "ErrorResponseModel",
1057
1060
  '500': None,
1058
1061
  }
1059
1062
  response_data = self.api_client.call_api(
@@ -1063,9 +1066,8 @@ class ProfileApi:
1063
1066
  return response_data.response
1064
1067
 
1065
1068
 
1066
- def _retrieve_profile_details_serialize(
1069
+ def _list_profiles_serialize(
1067
1070
  self,
1068
- id,
1069
1071
  _request_auth,
1070
1072
  _content_type,
1071
1073
  _headers,
@@ -1087,8 +1089,6 @@ class ProfileApi:
1087
1089
  _body_params: Optional[bytes] = None
1088
1090
 
1089
1091
  # process the path parameters
1090
- if id is not None:
1091
- _path_params['id'] = id
1092
1092
  # process the query parameters
1093
1093
  # process the header parameters
1094
1094
  # process the form parameters
@@ -1111,7 +1111,7 @@ class ProfileApi:
1111
1111
 
1112
1112
  return self.api_client.param_serialize(
1113
1113
  method='GET',
1114
- resource_path='/core/profiles/{id}',
1114
+ resource_path='/core/profiles',
1115
1115
  path_params=_path_params,
1116
1116
  query_params=_query_params,
1117
1117
  header_params=_header_params,
@@ -37,7 +37,7 @@ class SnapshotEventsApi:
37
37
 
38
38
 
39
39
  @validate_call
40
- def fetch_all_events_for_a_snapshot(
40
+ def list_snapshot_events(
41
41
  self,
42
42
  snapshot_id: StrictInt,
43
43
  _request_timeout: Union[
@@ -81,7 +81,7 @@ class SnapshotEventsApi:
81
81
  :return: Returns the result object.
82
82
  """ # noqa: E501
83
83
 
84
- _param = self._fetch_all_events_for_a_snapshot_serialize(
84
+ _param = self._list_snapshot_events_serialize(
85
85
  snapshot_id=snapshot_id,
86
86
  _request_auth=_request_auth,
87
87
  _content_type=_content_type,
@@ -104,7 +104,7 @@ class SnapshotEventsApi:
104
104
 
105
105
 
106
106
  @validate_call
107
- def fetch_all_events_for_a_snapshot_with_http_info(
107
+ def list_snapshot_events_with_http_info(
108
108
  self,
109
109
  snapshot_id: StrictInt,
110
110
  _request_timeout: Union[
@@ -148,7 +148,7 @@ class SnapshotEventsApi:
148
148
  :return: Returns the result object.
149
149
  """ # noqa: E501
150
150
 
151
- _param = self._fetch_all_events_for_a_snapshot_serialize(
151
+ _param = self._list_snapshot_events_serialize(
152
152
  snapshot_id=snapshot_id,
153
153
  _request_auth=_request_auth,
154
154
  _content_type=_content_type,
@@ -171,7 +171,7 @@ class SnapshotEventsApi:
171
171
 
172
172
 
173
173
  @validate_call
174
- def fetch_all_events_for_a_snapshot_without_preload_content(
174
+ def list_snapshot_events_without_preload_content(
175
175
  self,
176
176
  snapshot_id: StrictInt,
177
177
  _request_timeout: Union[
@@ -215,7 +215,7 @@ class SnapshotEventsApi:
215
215
  :return: Returns the result object.
216
216
  """ # noqa: E501
217
217
 
218
- _param = self._fetch_all_events_for_a_snapshot_serialize(
218
+ _param = self._list_snapshot_events_serialize(
219
219
  snapshot_id=snapshot_id,
220
220
  _request_auth=_request_auth,
221
221
  _content_type=_content_type,
@@ -233,7 +233,7 @@ class SnapshotEventsApi:
233
233
  return response_data.response
234
234
 
235
235
 
236
- def _fetch_all_events_for_a_snapshot_serialize(
236
+ def _list_snapshot_events_serialize(
237
237
  self,
238
238
  snapshot_id,
239
239
  _request_auth,