@@ -712,6 +712,103 @@ def create_deployment_set_with_http_info(self, body, **kwargs): # noqa: E501
712712 _request_timeout = params .get ('_request_timeout' ),
713713 collection_formats = collection_formats )
714714
715+ def create_hpc_cluster (self , body , ** kwargs ): # noqa: E501
716+ """create_hpc_cluster # noqa: E501
717+
718+ This method makes a synchronous HTTP request by default. To make an
719+ asynchronous HTTP request, please pass async_req=True
720+ >>> thread = api.create_hpc_cluster(body, async_req=True)
721+ >>> result = thread.get()
722+
723+ :param async_req bool
724+ :param CreateHpcClusterRequest body: (required)
725+ :return: CreateHpcClusterResponse
726+ If the method is called asynchronously,
727+ returns the request thread.
728+ """
729+ kwargs ['_return_http_data_only' ] = True
730+ if kwargs .get ('async_req' ):
731+ return self .create_hpc_cluster_with_http_info (body , ** kwargs ) # noqa: E501
732+ else :
733+ (data ) = self .create_hpc_cluster_with_http_info (body , ** kwargs ) # noqa: E501
734+ return data
735+
736+ def create_hpc_cluster_with_http_info (self , body , ** kwargs ): # noqa: E501
737+ """create_hpc_cluster # noqa: E501
738+
739+ This method makes a synchronous HTTP request by default. To make an
740+ asynchronous HTTP request, please pass async_req=True
741+ >>> thread = api.create_hpc_cluster_with_http_info(body, async_req=True)
742+ >>> result = thread.get()
743+
744+ :param async_req bool
745+ :param CreateHpcClusterRequest body: (required)
746+ :return: CreateHpcClusterResponse
747+ If the method is called asynchronously,
748+ returns the request thread.
749+ """
750+
751+ all_params = ['body' ] # noqa: E501
752+ all_params .append ('async_req' )
753+ all_params .append ('_return_http_data_only' )
754+ all_params .append ('_preload_content' )
755+ all_params .append ('_request_timeout' )
756+
757+ params = locals ()
758+ for key , val in six .iteritems (params ['kwargs' ]):
759+ if key not in all_params :
760+ raise TypeError (
761+ "Got an unexpected keyword argument '%s'"
762+ " to method create_hpc_cluster" % key
763+ )
764+ params [key ] = val
765+ del params ['kwargs' ]
766+ # verify the required parameter 'body' is set
767+ if self .api_client .client_side_validation and ('body' not in params or
768+ params ['body' ] is None ): # noqa: E501
769+ raise ValueError ("Missing the required parameter `body` when calling `create_hpc_cluster`" ) # noqa: E501
770+
771+ collection_formats = {}
772+
773+ path_params = {}
774+
775+ query_params = []
776+
777+ header_params = {}
778+
779+ form_params = []
780+ local_var_files = {}
781+
782+ body_params = None
783+ if 'body' in params :
784+ body_params = params ['body' ]
785+ # HTTP header `Accept`
786+ header_params ['Accept' ] = self .api_client .select_header_accept (
787+ ['application/json' ]) # noqa: E501
788+
789+ # HTTP header `Content-Type`
790+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
791+ ['text/plain' ]) # noqa: E501
792+
793+ # Authentication setting
794+ auth_settings = ['volcengineSign' ] # noqa: E501
795+
796+ return self .api_client .call_api (
797+ '/CreateHpcCluster/2020-04-01/ecs/get/text_plain/' , 'GET' ,
798+ path_params ,
799+ query_params ,
800+ header_params ,
801+ body = body_params ,
802+ post_params = form_params ,
803+ files = local_var_files ,
804+ response_type = 'CreateHpcClusterResponse' , # noqa: E501
805+ auth_settings = auth_settings ,
806+ async_req = params .get ('async_req' ),
807+ _return_http_data_only = params .get ('_return_http_data_only' ),
808+ _preload_content = params .get ('_preload_content' , True ),
809+ _request_timeout = params .get ('_request_timeout' ),
810+ collection_formats = collection_formats )
811+
715812 def create_image (self , body , ** kwargs ): # noqa: E501
716813 """create_image # noqa: E501
717814
@@ -1488,6 +1585,103 @@ def delete_deployment_set_with_http_info(self, body, **kwargs): # noqa: E501
14881585 _request_timeout = params .get ('_request_timeout' ),
14891586 collection_formats = collection_formats )
14901587
1588+ def delete_hpc_cluster (self , body , ** kwargs ): # noqa: E501
1589+ """delete_hpc_cluster # noqa: E501
1590+
1591+ This method makes a synchronous HTTP request by default. To make an
1592+ asynchronous HTTP request, please pass async_req=True
1593+ >>> thread = api.delete_hpc_cluster(body, async_req=True)
1594+ >>> result = thread.get()
1595+
1596+ :param async_req bool
1597+ :param DeleteHpcClusterRequest body: (required)
1598+ :return: DeleteHpcClusterResponse
1599+ If the method is called asynchronously,
1600+ returns the request thread.
1601+ """
1602+ kwargs ['_return_http_data_only' ] = True
1603+ if kwargs .get ('async_req' ):
1604+ return self .delete_hpc_cluster_with_http_info (body , ** kwargs ) # noqa: E501
1605+ else :
1606+ (data ) = self .delete_hpc_cluster_with_http_info (body , ** kwargs ) # noqa: E501
1607+ return data
1608+
1609+ def delete_hpc_cluster_with_http_info (self , body , ** kwargs ): # noqa: E501
1610+ """delete_hpc_cluster # noqa: E501
1611+
1612+ This method makes a synchronous HTTP request by default. To make an
1613+ asynchronous HTTP request, please pass async_req=True
1614+ >>> thread = api.delete_hpc_cluster_with_http_info(body, async_req=True)
1615+ >>> result = thread.get()
1616+
1617+ :param async_req bool
1618+ :param DeleteHpcClusterRequest body: (required)
1619+ :return: DeleteHpcClusterResponse
1620+ If the method is called asynchronously,
1621+ returns the request thread.
1622+ """
1623+
1624+ all_params = ['body' ] # noqa: E501
1625+ all_params .append ('async_req' )
1626+ all_params .append ('_return_http_data_only' )
1627+ all_params .append ('_preload_content' )
1628+ all_params .append ('_request_timeout' )
1629+
1630+ params = locals ()
1631+ for key , val in six .iteritems (params ['kwargs' ]):
1632+ if key not in all_params :
1633+ raise TypeError (
1634+ "Got an unexpected keyword argument '%s'"
1635+ " to method delete_hpc_cluster" % key
1636+ )
1637+ params [key ] = val
1638+ del params ['kwargs' ]
1639+ # verify the required parameter 'body' is set
1640+ if self .api_client .client_side_validation and ('body' not in params or
1641+ params ['body' ] is None ): # noqa: E501
1642+ raise ValueError ("Missing the required parameter `body` when calling `delete_hpc_cluster`" ) # noqa: E501
1643+
1644+ collection_formats = {}
1645+
1646+ path_params = {}
1647+
1648+ query_params = []
1649+
1650+ header_params = {}
1651+
1652+ form_params = []
1653+ local_var_files = {}
1654+
1655+ body_params = None
1656+ if 'body' in params :
1657+ body_params = params ['body' ]
1658+ # HTTP header `Accept`
1659+ header_params ['Accept' ] = self .api_client .select_header_accept (
1660+ ['application/json' ]) # noqa: E501
1661+
1662+ # HTTP header `Content-Type`
1663+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1664+ ['text/plain' ]) # noqa: E501
1665+
1666+ # Authentication setting
1667+ auth_settings = ['volcengineSign' ] # noqa: E501
1668+
1669+ return self .api_client .call_api (
1670+ '/DeleteHpcCluster/2020-04-01/ecs/get/text_plain/' , 'GET' ,
1671+ path_params ,
1672+ query_params ,
1673+ header_params ,
1674+ body = body_params ,
1675+ post_params = form_params ,
1676+ files = local_var_files ,
1677+ response_type = 'DeleteHpcClusterResponse' , # noqa: E501
1678+ auth_settings = auth_settings ,
1679+ async_req = params .get ('async_req' ),
1680+ _return_http_data_only = params .get ('_return_http_data_only' ),
1681+ _preload_content = params .get ('_preload_content' , True ),
1682+ _request_timeout = params .get ('_request_timeout' ),
1683+ collection_formats = collection_formats )
1684+
14911685 def delete_images (self , body , ** kwargs ): # noqa: E501
14921686 """delete_images # noqa: E501
14931687
@@ -3040,6 +3234,103 @@ def describe_event_types_with_http_info(self, body, **kwargs): # noqa: E501
30403234 _request_timeout = params .get ('_request_timeout' ),
30413235 collection_formats = collection_formats )
30423236
3237+ def describe_hpc_clusters (self , body , ** kwargs ): # noqa: E501
3238+ """describe_hpc_clusters # noqa: E501
3239+
3240+ This method makes a synchronous HTTP request by default. To make an
3241+ asynchronous HTTP request, please pass async_req=True
3242+ >>> thread = api.describe_hpc_clusters(body, async_req=True)
3243+ >>> result = thread.get()
3244+
3245+ :param async_req bool
3246+ :param DescribeHpcClustersRequest body: (required)
3247+ :return: DescribeHpcClustersResponse
3248+ If the method is called asynchronously,
3249+ returns the request thread.
3250+ """
3251+ kwargs ['_return_http_data_only' ] = True
3252+ if kwargs .get ('async_req' ):
3253+ return self .describe_hpc_clusters_with_http_info (body , ** kwargs ) # noqa: E501
3254+ else :
3255+ (data ) = self .describe_hpc_clusters_with_http_info (body , ** kwargs ) # noqa: E501
3256+ return data
3257+
3258+ def describe_hpc_clusters_with_http_info (self , body , ** kwargs ): # noqa: E501
3259+ """describe_hpc_clusters # noqa: E501
3260+
3261+ This method makes a synchronous HTTP request by default. To make an
3262+ asynchronous HTTP request, please pass async_req=True
3263+ >>> thread = api.describe_hpc_clusters_with_http_info(body, async_req=True)
3264+ >>> result = thread.get()
3265+
3266+ :param async_req bool
3267+ :param DescribeHpcClustersRequest body: (required)
3268+ :return: DescribeHpcClustersResponse
3269+ If the method is called asynchronously,
3270+ returns the request thread.
3271+ """
3272+
3273+ all_params = ['body' ] # noqa: E501
3274+ all_params .append ('async_req' )
3275+ all_params .append ('_return_http_data_only' )
3276+ all_params .append ('_preload_content' )
3277+ all_params .append ('_request_timeout' )
3278+
3279+ params = locals ()
3280+ for key , val in six .iteritems (params ['kwargs' ]):
3281+ if key not in all_params :
3282+ raise TypeError (
3283+ "Got an unexpected keyword argument '%s'"
3284+ " to method describe_hpc_clusters" % key
3285+ )
3286+ params [key ] = val
3287+ del params ['kwargs' ]
3288+ # verify the required parameter 'body' is set
3289+ if self .api_client .client_side_validation and ('body' not in params or
3290+ params ['body' ] is None ): # noqa: E501
3291+ raise ValueError ("Missing the required parameter `body` when calling `describe_hpc_clusters`" ) # noqa: E501
3292+
3293+ collection_formats = {}
3294+
3295+ path_params = {}
3296+
3297+ query_params = []
3298+
3299+ header_params = {}
3300+
3301+ form_params = []
3302+ local_var_files = {}
3303+
3304+ body_params = None
3305+ if 'body' in params :
3306+ body_params = params ['body' ]
3307+ # HTTP header `Accept`
3308+ header_params ['Accept' ] = self .api_client .select_header_accept (
3309+ ['application/json' ]) # noqa: E501
3310+
3311+ # HTTP header `Content-Type`
3312+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
3313+ ['text/plain' ]) # noqa: E501
3314+
3315+ # Authentication setting
3316+ auth_settings = ['volcengineSign' ] # noqa: E501
3317+
3318+ return self .api_client .call_api (
3319+ '/DescribeHpcClusters/2020-04-01/ecs/get/text_plain/' , 'GET' ,
3320+ path_params ,
3321+ query_params ,
3322+ header_params ,
3323+ body = body_params ,
3324+ post_params = form_params ,
3325+ files = local_var_files ,
3326+ response_type = 'DescribeHpcClustersResponse' , # noqa: E501
3327+ auth_settings = auth_settings ,
3328+ async_req = params .get ('async_req' ),
3329+ _return_http_data_only = params .get ('_return_http_data_only' ),
3330+ _preload_content = params .get ('_preload_content' , True ),
3331+ _request_timeout = params .get ('_request_timeout' ),
3332+ collection_formats = collection_formats )
3333+
30433334 def describe_image_share_permission (self , body , ** kwargs ): # noqa: E501
30443335 """describe_image_share_permission # noqa: E501
30453336
0 commit comments