hyperstack 1.43.0a0__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 +7 -2
- hyperstack/api/__init__.py +2 -1
- 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 +669 -370
- 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/{admin_api.py → fip_exclusions_api.py} +44 -28
- 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/vouchers_api.py +326 -0
- hyperstack/api_client.py +1 -1
- hyperstack/configuration.py +1 -1
- hyperstack/models/__init__.py +4 -0
- hyperstack/models/delete_cluster_nodes_fields.py +87 -0
- hyperstack/models/redeem_voucher_payload.py +87 -0
- hyperstack/models/voucher.py +91 -0
- hyperstack/models/voucher_redeem_response_schema.py +95 -0
- {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/METADATA +1 -1
- {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/RECORD +47 -42
- {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/WHEEL +0 -0
- {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/top_level.txt +0 -0
hyperstack/api/stock_api.py
CHANGED
|
@@ -37,7 +37,7 @@ class StockApi:
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
@validate_call
|
|
40
|
-
def
|
|
40
|
+
def get_gpu_stock(
|
|
41
41
|
self,
|
|
42
42
|
_request_timeout: Union[
|
|
43
43
|
None,
|
|
@@ -78,7 +78,7 @@ class StockApi:
|
|
|
78
78
|
:return: Returns the result object.
|
|
79
79
|
""" # noqa: E501
|
|
80
80
|
|
|
81
|
-
_param = self.
|
|
81
|
+
_param = self._get_gpu_stock_serialize(
|
|
82
82
|
_request_auth=_request_auth,
|
|
83
83
|
_content_type=_content_type,
|
|
84
84
|
_headers=_headers,
|
|
@@ -103,7 +103,7 @@ class StockApi:
|
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
@validate_call
|
|
106
|
-
def
|
|
106
|
+
def get_gpu_stock_with_http_info(
|
|
107
107
|
self,
|
|
108
108
|
_request_timeout: Union[
|
|
109
109
|
None,
|
|
@@ -144,7 +144,7 @@ class StockApi:
|
|
|
144
144
|
:return: Returns the result object.
|
|
145
145
|
""" # noqa: E501
|
|
146
146
|
|
|
147
|
-
_param = self.
|
|
147
|
+
_param = self._get_gpu_stock_serialize(
|
|
148
148
|
_request_auth=_request_auth,
|
|
149
149
|
_content_type=_content_type,
|
|
150
150
|
_headers=_headers,
|
|
@@ -169,7 +169,7 @@ class StockApi:
|
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
@validate_call
|
|
172
|
-
def
|
|
172
|
+
def get_gpu_stock_without_preload_content(
|
|
173
173
|
self,
|
|
174
174
|
_request_timeout: Union[
|
|
175
175
|
None,
|
|
@@ -210,7 +210,7 @@ class StockApi:
|
|
|
210
210
|
:return: Returns the result object.
|
|
211
211
|
""" # noqa: E501
|
|
212
212
|
|
|
213
|
-
_param = self.
|
|
213
|
+
_param = self._get_gpu_stock_serialize(
|
|
214
214
|
_request_auth=_request_auth,
|
|
215
215
|
_content_type=_content_type,
|
|
216
216
|
_headers=_headers,
|
|
@@ -230,7 +230,7 @@ class StockApi:
|
|
|
230
230
|
return response_data.response
|
|
231
231
|
|
|
232
232
|
|
|
233
|
-
def
|
|
233
|
+
def _get_gpu_stock_serialize(
|
|
234
234
|
self,
|
|
235
235
|
_request_auth,
|
|
236
236
|
_content_type,
|
hyperstack/api/template_api.py
CHANGED
|
@@ -644,9 +644,9 @@ class TemplateApi:
|
|
|
644
644
|
|
|
645
645
|
|
|
646
646
|
@validate_call
|
|
647
|
-
def
|
|
647
|
+
def get_template(
|
|
648
648
|
self,
|
|
649
|
-
|
|
649
|
+
id: StrictInt,
|
|
650
650
|
_request_timeout: Union[
|
|
651
651
|
None,
|
|
652
652
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -659,13 +659,13 @@ class TemplateApi:
|
|
|
659
659
|
_content_type: Optional[StrictStr] = None,
|
|
660
660
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
661
661
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
662
|
-
) ->
|
|
663
|
-
"""
|
|
662
|
+
) -> Template:
|
|
663
|
+
"""Retrieve template details
|
|
664
664
|
|
|
665
|
-
|
|
665
|
+
Retrieves the resource configuration details for a specified template.Provide the template ID in the path to retrieve details for the specified template.For additional information on template configuration details,[**click here**](https://docs...cloud/docs/api-references/).
|
|
666
666
|
|
|
667
|
-
:param
|
|
668
|
-
:type
|
|
667
|
+
:param id: (required)
|
|
668
|
+
:type id: int
|
|
669
669
|
:param _request_timeout: timeout setting for this request. If one
|
|
670
670
|
number provided, it will be total request
|
|
671
671
|
timeout. It can also be a pair (tuple) of
|
|
@@ -688,8 +688,8 @@ class TemplateApi:
|
|
|
688
688
|
:return: Returns the result object.
|
|
689
689
|
""" # noqa: E501
|
|
690
690
|
|
|
691
|
-
_param = self.
|
|
692
|
-
|
|
691
|
+
_param = self._get_template_serialize(
|
|
692
|
+
id=id,
|
|
693
693
|
_request_auth=_request_auth,
|
|
694
694
|
_content_type=_content_type,
|
|
695
695
|
_headers=_headers,
|
|
@@ -697,10 +697,10 @@ class TemplateApi:
|
|
|
697
697
|
)
|
|
698
698
|
|
|
699
699
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
700
|
-
'200': "
|
|
700
|
+
'200': "Template",
|
|
701
701
|
'400': "ErrorResponseModel",
|
|
702
702
|
'401': "ErrorResponseModel",
|
|
703
|
-
'
|
|
703
|
+
'404': "ErrorResponseModel",
|
|
704
704
|
'500': None,
|
|
705
705
|
}
|
|
706
706
|
response_data = self.api_client.call_api(
|
|
@@ -715,9 +715,9 @@ class TemplateApi:
|
|
|
715
715
|
|
|
716
716
|
|
|
717
717
|
@validate_call
|
|
718
|
-
def
|
|
718
|
+
def get_template_with_http_info(
|
|
719
719
|
self,
|
|
720
|
-
|
|
720
|
+
id: StrictInt,
|
|
721
721
|
_request_timeout: Union[
|
|
722
722
|
None,
|
|
723
723
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -730,13 +730,13 @@ class TemplateApi:
|
|
|
730
730
|
_content_type: Optional[StrictStr] = None,
|
|
731
731
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
732
732
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
733
|
-
) -> ApiResponse[
|
|
734
|
-
"""
|
|
733
|
+
) -> ApiResponse[Template]:
|
|
734
|
+
"""Retrieve template details
|
|
735
735
|
|
|
736
|
-
|
|
736
|
+
Retrieves the resource configuration details for a specified template.Provide the template ID in the path to retrieve details for the specified template.For additional information on template configuration details,[**click here**](https://docs...cloud/docs/api-references/).
|
|
737
737
|
|
|
738
|
-
:param
|
|
739
|
-
:type
|
|
738
|
+
:param id: (required)
|
|
739
|
+
:type id: int
|
|
740
740
|
:param _request_timeout: timeout setting for this request. If one
|
|
741
741
|
number provided, it will be total request
|
|
742
742
|
timeout. It can also be a pair (tuple) of
|
|
@@ -759,8 +759,8 @@ class TemplateApi:
|
|
|
759
759
|
:return: Returns the result object.
|
|
760
760
|
""" # noqa: E501
|
|
761
761
|
|
|
762
|
-
_param = self.
|
|
763
|
-
|
|
762
|
+
_param = self._get_template_serialize(
|
|
763
|
+
id=id,
|
|
764
764
|
_request_auth=_request_auth,
|
|
765
765
|
_content_type=_content_type,
|
|
766
766
|
_headers=_headers,
|
|
@@ -768,10 +768,10 @@ class TemplateApi:
|
|
|
768
768
|
)
|
|
769
769
|
|
|
770
770
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
771
|
-
'200': "
|
|
771
|
+
'200': "Template",
|
|
772
772
|
'400': "ErrorResponseModel",
|
|
773
773
|
'401': "ErrorResponseModel",
|
|
774
|
-
'
|
|
774
|
+
'404': "ErrorResponseModel",
|
|
775
775
|
'500': None,
|
|
776
776
|
}
|
|
777
777
|
response_data = self.api_client.call_api(
|
|
@@ -786,9 +786,9 @@ class TemplateApi:
|
|
|
786
786
|
|
|
787
787
|
|
|
788
788
|
@validate_call
|
|
789
|
-
def
|
|
789
|
+
def get_template_without_preload_content(
|
|
790
790
|
self,
|
|
791
|
-
|
|
791
|
+
id: StrictInt,
|
|
792
792
|
_request_timeout: Union[
|
|
793
793
|
None,
|
|
794
794
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -802,12 +802,12 @@ class TemplateApi:
|
|
|
802
802
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
803
803
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
804
804
|
) -> RESTResponseType:
|
|
805
|
-
"""
|
|
805
|
+
"""Retrieve template details
|
|
806
806
|
|
|
807
|
-
|
|
807
|
+
Retrieves the resource configuration details for a specified template.Provide the template ID in the path to retrieve details for the specified template.For additional information on template configuration details,[**click here**](https://docs...cloud/docs/api-references/).
|
|
808
808
|
|
|
809
|
-
:param
|
|
810
|
-
:type
|
|
809
|
+
:param id: (required)
|
|
810
|
+
:type id: int
|
|
811
811
|
:param _request_timeout: timeout setting for this request. If one
|
|
812
812
|
number provided, it will be total request
|
|
813
813
|
timeout. It can also be a pair (tuple) of
|
|
@@ -830,8 +830,8 @@ class TemplateApi:
|
|
|
830
830
|
:return: Returns the result object.
|
|
831
831
|
""" # noqa: E501
|
|
832
832
|
|
|
833
|
-
_param = self.
|
|
834
|
-
|
|
833
|
+
_param = self._get_template_serialize(
|
|
834
|
+
id=id,
|
|
835
835
|
_request_auth=_request_auth,
|
|
836
836
|
_content_type=_content_type,
|
|
837
837
|
_headers=_headers,
|
|
@@ -839,10 +839,10 @@ class TemplateApi:
|
|
|
839
839
|
)
|
|
840
840
|
|
|
841
841
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
842
|
-
'200': "
|
|
842
|
+
'200': "Template",
|
|
843
843
|
'400': "ErrorResponseModel",
|
|
844
844
|
'401': "ErrorResponseModel",
|
|
845
|
-
'
|
|
845
|
+
'404': "ErrorResponseModel",
|
|
846
846
|
'500': None,
|
|
847
847
|
}
|
|
848
848
|
response_data = self.api_client.call_api(
|
|
@@ -852,9 +852,9 @@ class TemplateApi:
|
|
|
852
852
|
return response_data.response
|
|
853
853
|
|
|
854
854
|
|
|
855
|
-
def
|
|
855
|
+
def _get_template_serialize(
|
|
856
856
|
self,
|
|
857
|
-
|
|
857
|
+
id,
|
|
858
858
|
_request_auth,
|
|
859
859
|
_content_type,
|
|
860
860
|
_headers,
|
|
@@ -876,11 +876,9 @@ class TemplateApi:
|
|
|
876
876
|
_body_params: Optional[bytes] = None
|
|
877
877
|
|
|
878
878
|
# process the path parameters
|
|
879
|
+
if id is not None:
|
|
880
|
+
_path_params['id'] = id
|
|
879
881
|
# process the query parameters
|
|
880
|
-
if visibility is not None:
|
|
881
|
-
|
|
882
|
-
_query_params.append(('visibility', visibility))
|
|
883
|
-
|
|
884
882
|
# process the header parameters
|
|
885
883
|
# process the form parameters
|
|
886
884
|
# process the body parameter
|
|
@@ -902,7 +900,7 @@ class TemplateApi:
|
|
|
902
900
|
|
|
903
901
|
return self.api_client.param_serialize(
|
|
904
902
|
method='GET',
|
|
905
|
-
resource_path='/core/marketplace/templates',
|
|
903
|
+
resource_path='/core/marketplace/templates/{id}',
|
|
906
904
|
path_params=_path_params,
|
|
907
905
|
query_params=_query_params,
|
|
908
906
|
header_params=_header_params,
|
|
@@ -919,9 +917,9 @@ class TemplateApi:
|
|
|
919
917
|
|
|
920
918
|
|
|
921
919
|
@validate_call
|
|
922
|
-
def
|
|
920
|
+
def list_templates(
|
|
923
921
|
self,
|
|
924
|
-
|
|
922
|
+
visibility: Annotated[Optional[StrictStr], Field(description="Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.")] = None,
|
|
925
923
|
_request_timeout: Union[
|
|
926
924
|
None,
|
|
927
925
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -934,13 +932,13 @@ class TemplateApi:
|
|
|
934
932
|
_content_type: Optional[StrictStr] = None,
|
|
935
933
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
936
934
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
937
|
-
) ->
|
|
938
|
-
"""
|
|
935
|
+
) -> Templates:
|
|
936
|
+
"""List templates
|
|
939
937
|
|
|
940
|
-
|
|
938
|
+
Returns a comprehensive list of templates, providing resource configuration details for each. Optionally, specify the `visibility` as `public` or `private` to retrieve templates with the desired visibility status. To learn more about the templates feature, [**click here**](https://docs...cloud/docs/features/templates#view-a-list-of-templates).
|
|
941
939
|
|
|
942
|
-
:param
|
|
943
|
-
:type
|
|
940
|
+
:param visibility: Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.
|
|
941
|
+
:type visibility: str
|
|
944
942
|
:param _request_timeout: timeout setting for this request. If one
|
|
945
943
|
number provided, it will be total request
|
|
946
944
|
timeout. It can also be a pair (tuple) of
|
|
@@ -963,8 +961,8 @@ class TemplateApi:
|
|
|
963
961
|
:return: Returns the result object.
|
|
964
962
|
""" # noqa: E501
|
|
965
963
|
|
|
966
|
-
_param = self.
|
|
967
|
-
|
|
964
|
+
_param = self._list_templates_serialize(
|
|
965
|
+
visibility=visibility,
|
|
968
966
|
_request_auth=_request_auth,
|
|
969
967
|
_content_type=_content_type,
|
|
970
968
|
_headers=_headers,
|
|
@@ -972,10 +970,10 @@ class TemplateApi:
|
|
|
972
970
|
)
|
|
973
971
|
|
|
974
972
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
975
|
-
'200': "
|
|
973
|
+
'200': "Templates",
|
|
976
974
|
'400': "ErrorResponseModel",
|
|
977
975
|
'401': "ErrorResponseModel",
|
|
978
|
-
'
|
|
976
|
+
'406': "ErrorResponseModel",
|
|
979
977
|
'500': None,
|
|
980
978
|
}
|
|
981
979
|
response_data = self.api_client.call_api(
|
|
@@ -990,9 +988,9 @@ class TemplateApi:
|
|
|
990
988
|
|
|
991
989
|
|
|
992
990
|
@validate_call
|
|
993
|
-
def
|
|
991
|
+
def list_templates_with_http_info(
|
|
994
992
|
self,
|
|
995
|
-
|
|
993
|
+
visibility: Annotated[Optional[StrictStr], Field(description="Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.")] = None,
|
|
996
994
|
_request_timeout: Union[
|
|
997
995
|
None,
|
|
998
996
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1005,13 +1003,13 @@ class TemplateApi:
|
|
|
1005
1003
|
_content_type: Optional[StrictStr] = None,
|
|
1006
1004
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1007
1005
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1008
|
-
) -> ApiResponse[
|
|
1009
|
-
"""
|
|
1006
|
+
) -> ApiResponse[Templates]:
|
|
1007
|
+
"""List templates
|
|
1010
1008
|
|
|
1011
|
-
|
|
1009
|
+
Returns a comprehensive list of templates, providing resource configuration details for each. Optionally, specify the `visibility` as `public` or `private` to retrieve templates with the desired visibility status. To learn more about the templates feature, [**click here**](https://docs...cloud/docs/features/templates#view-a-list-of-templates).
|
|
1012
1010
|
|
|
1013
|
-
:param
|
|
1014
|
-
:type
|
|
1011
|
+
:param visibility: Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.
|
|
1012
|
+
:type visibility: str
|
|
1015
1013
|
:param _request_timeout: timeout setting for this request. If one
|
|
1016
1014
|
number provided, it will be total request
|
|
1017
1015
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1034,8 +1032,8 @@ class TemplateApi:
|
|
|
1034
1032
|
:return: Returns the result object.
|
|
1035
1033
|
""" # noqa: E501
|
|
1036
1034
|
|
|
1037
|
-
_param = self.
|
|
1038
|
-
|
|
1035
|
+
_param = self._list_templates_serialize(
|
|
1036
|
+
visibility=visibility,
|
|
1039
1037
|
_request_auth=_request_auth,
|
|
1040
1038
|
_content_type=_content_type,
|
|
1041
1039
|
_headers=_headers,
|
|
@@ -1043,10 +1041,10 @@ class TemplateApi:
|
|
|
1043
1041
|
)
|
|
1044
1042
|
|
|
1045
1043
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1046
|
-
'200': "
|
|
1044
|
+
'200': "Templates",
|
|
1047
1045
|
'400': "ErrorResponseModel",
|
|
1048
1046
|
'401': "ErrorResponseModel",
|
|
1049
|
-
'
|
|
1047
|
+
'406': "ErrorResponseModel",
|
|
1050
1048
|
'500': None,
|
|
1051
1049
|
}
|
|
1052
1050
|
response_data = self.api_client.call_api(
|
|
@@ -1061,9 +1059,9 @@ class TemplateApi:
|
|
|
1061
1059
|
|
|
1062
1060
|
|
|
1063
1061
|
@validate_call
|
|
1064
|
-
def
|
|
1062
|
+
def list_templates_without_preload_content(
|
|
1065
1063
|
self,
|
|
1066
|
-
|
|
1064
|
+
visibility: Annotated[Optional[StrictStr], Field(description="Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.")] = None,
|
|
1067
1065
|
_request_timeout: Union[
|
|
1068
1066
|
None,
|
|
1069
1067
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1077,12 +1075,12 @@ class TemplateApi:
|
|
|
1077
1075
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1078
1076
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1079
1077
|
) -> RESTResponseType:
|
|
1080
|
-
"""
|
|
1078
|
+
"""List templates
|
|
1081
1079
|
|
|
1082
|
-
|
|
1080
|
+
Returns a comprehensive list of templates, providing resource configuration details for each. Optionally, specify the `visibility` as `public` or `private` to retrieve templates with the desired visibility status. To learn more about the templates feature, [**click here**](https://docs...cloud/docs/features/templates#view-a-list-of-templates).
|
|
1083
1081
|
|
|
1084
|
-
:param
|
|
1085
|
-
:type
|
|
1082
|
+
:param visibility: Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.
|
|
1083
|
+
:type visibility: str
|
|
1086
1084
|
:param _request_timeout: timeout setting for this request. If one
|
|
1087
1085
|
number provided, it will be total request
|
|
1088
1086
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1105,8 +1103,8 @@ class TemplateApi:
|
|
|
1105
1103
|
:return: Returns the result object.
|
|
1106
1104
|
""" # noqa: E501
|
|
1107
1105
|
|
|
1108
|
-
_param = self.
|
|
1109
|
-
|
|
1106
|
+
_param = self._list_templates_serialize(
|
|
1107
|
+
visibility=visibility,
|
|
1110
1108
|
_request_auth=_request_auth,
|
|
1111
1109
|
_content_type=_content_type,
|
|
1112
1110
|
_headers=_headers,
|
|
@@ -1114,10 +1112,10 @@ class TemplateApi:
|
|
|
1114
1112
|
)
|
|
1115
1113
|
|
|
1116
1114
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1117
|
-
'200': "
|
|
1115
|
+
'200': "Templates",
|
|
1118
1116
|
'400': "ErrorResponseModel",
|
|
1119
1117
|
'401': "ErrorResponseModel",
|
|
1120
|
-
'
|
|
1118
|
+
'406': "ErrorResponseModel",
|
|
1121
1119
|
'500': None,
|
|
1122
1120
|
}
|
|
1123
1121
|
response_data = self.api_client.call_api(
|
|
@@ -1127,9 +1125,9 @@ class TemplateApi:
|
|
|
1127
1125
|
return response_data.response
|
|
1128
1126
|
|
|
1129
1127
|
|
|
1130
|
-
def
|
|
1128
|
+
def _list_templates_serialize(
|
|
1131
1129
|
self,
|
|
1132
|
-
|
|
1130
|
+
visibility,
|
|
1133
1131
|
_request_auth,
|
|
1134
1132
|
_content_type,
|
|
1135
1133
|
_headers,
|
|
@@ -1151,9 +1149,11 @@ class TemplateApi:
|
|
|
1151
1149
|
_body_params: Optional[bytes] = None
|
|
1152
1150
|
|
|
1153
1151
|
# process the path parameters
|
|
1154
|
-
if id is not None:
|
|
1155
|
-
_path_params['id'] = id
|
|
1156
1152
|
# process the query parameters
|
|
1153
|
+
if visibility is not None:
|
|
1154
|
+
|
|
1155
|
+
_query_params.append(('visibility', visibility))
|
|
1156
|
+
|
|
1157
1157
|
# process the header parameters
|
|
1158
1158
|
# process the form parameters
|
|
1159
1159
|
# process the body parameter
|
|
@@ -1175,7 +1175,7 @@ class TemplateApi:
|
|
|
1175
1175
|
|
|
1176
1176
|
return self.api_client.param_serialize(
|
|
1177
1177
|
method='GET',
|
|
1178
|
-
resource_path='/core/marketplace/templates
|
|
1178
|
+
resource_path='/core/marketplace/templates',
|
|
1179
1179
|
path_params=_path_params,
|
|
1180
1180
|
query_params=_query_params,
|
|
1181
1181
|
header_params=_header_params,
|