@@ -1003,6 +1003,103 @@ def describe_images_with_http_info(self, body, **kwargs): # noqa: E501
10031003 _request_timeout = params .get ('_request_timeout' ),
10041004 collection_formats = collection_formats )
10051005
1006+ def describe_instance_ecs_terminal_url (self , body , ** kwargs ): # noqa: E501
1007+ """describe_instance_ecs_terminal_url # noqa: E501
1008+
1009+ This method makes a synchronous HTTP request by default. To make an
1010+ asynchronous HTTP request, please pass async_req=True
1011+ >>> thread = api.describe_instance_ecs_terminal_url(body, async_req=True)
1012+ >>> result = thread.get()
1013+
1014+ :param async_req bool
1015+ :param DescribeInstanceECSTerminalUrlRequest body: (required)
1016+ :return: DescribeInstanceECSTerminalUrlResponse
1017+ If the method is called asynchronously,
1018+ returns the request thread.
1019+ """
1020+ kwargs ['_return_http_data_only' ] = True
1021+ if kwargs .get ('async_req' ):
1022+ return self .describe_instance_ecs_terminal_url_with_http_info (body , ** kwargs ) # noqa: E501
1023+ else :
1024+ (data ) = self .describe_instance_ecs_terminal_url_with_http_info (body , ** kwargs ) # noqa: E501
1025+ return data
1026+
1027+ def describe_instance_ecs_terminal_url_with_http_info (self , body , ** kwargs ): # noqa: E501
1028+ """describe_instance_ecs_terminal_url # noqa: E501
1029+
1030+ This method makes a synchronous HTTP request by default. To make an
1031+ asynchronous HTTP request, please pass async_req=True
1032+ >>> thread = api.describe_instance_ecs_terminal_url_with_http_info(body, async_req=True)
1033+ >>> result = thread.get()
1034+
1035+ :param async_req bool
1036+ :param DescribeInstanceECSTerminalUrlRequest body: (required)
1037+ :return: DescribeInstanceECSTerminalUrlResponse
1038+ If the method is called asynchronously,
1039+ returns the request thread.
1040+ """
1041+
1042+ all_params = ['body' ] # noqa: E501
1043+ all_params .append ('async_req' )
1044+ all_params .append ('_return_http_data_only' )
1045+ all_params .append ('_preload_content' )
1046+ all_params .append ('_request_timeout' )
1047+
1048+ params = locals ()
1049+ for key , val in six .iteritems (params ['kwargs' ]):
1050+ if key not in all_params :
1051+ raise TypeError (
1052+ "Got an unexpected keyword argument '%s'"
1053+ " to method describe_instance_ecs_terminal_url" % key
1054+ )
1055+ params [key ] = val
1056+ del params ['kwargs' ]
1057+ # verify the required parameter 'body' is set
1058+ if self .api_client .client_side_validation and ('body' not in params or
1059+ params ['body' ] is None ): # noqa: E501
1060+ raise ValueError ("Missing the required parameter `body` when calling `describe_instance_ecs_terminal_url`" ) # noqa: E501
1061+
1062+ collection_formats = {}
1063+
1064+ path_params = {}
1065+
1066+ query_params = []
1067+
1068+ header_params = {}
1069+
1070+ form_params = []
1071+ local_var_files = {}
1072+
1073+ body_params = None
1074+ if 'body' in params :
1075+ body_params = params ['body' ]
1076+ # HTTP header `Accept`
1077+ header_params ['Accept' ] = self .api_client .select_header_accept (
1078+ ['application/json' ]) # noqa: E501
1079+
1080+ # HTTP header `Content-Type`
1081+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1082+ ['text/plain' ]) # noqa: E501
1083+
1084+ # Authentication setting
1085+ auth_settings = ['volcengineSign' ] # noqa: E501
1086+
1087+ return self .api_client .call_api (
1088+ '/DescribeInstanceECSTerminalUrl/2020-04-01/ecs/get/' , 'GET' ,
1089+ path_params ,
1090+ query_params ,
1091+ header_params ,
1092+ body = body_params ,
1093+ post_params = form_params ,
1094+ files = local_var_files ,
1095+ response_type = 'DescribeInstanceECSTerminalUrlResponse' , # noqa: E501
1096+ auth_settings = auth_settings ,
1097+ async_req = params .get ('async_req' ),
1098+ _return_http_data_only = params .get ('_return_http_data_only' ),
1099+ _preload_content = params .get ('_preload_content' , True ),
1100+ _request_timeout = params .get ('_request_timeout' ),
1101+ collection_formats = collection_formats )
1102+
10061103 def describe_instance_type_families (self , body , ** kwargs ): # noqa: E501
10071104 """describe_instance_type_families # noqa: E501
10081105
@@ -1585,6 +1682,103 @@ def describe_key_pairs_with_http_info(self, body, **kwargs): # noqa: E501
15851682 _request_timeout = params .get ('_request_timeout' ),
15861683 collection_formats = collection_formats )
15871684
1685+ def describe_tasks (self , body , ** kwargs ): # noqa: E501
1686+ """describe_tasks # noqa: E501
1687+
1688+ This method makes a synchronous HTTP request by default. To make an
1689+ asynchronous HTTP request, please pass async_req=True
1690+ >>> thread = api.describe_tasks(body, async_req=True)
1691+ >>> result = thread.get()
1692+
1693+ :param async_req bool
1694+ :param DescribeTasksRequest body: (required)
1695+ :return: DescribeTasksResponse
1696+ If the method is called asynchronously,
1697+ returns the request thread.
1698+ """
1699+ kwargs ['_return_http_data_only' ] = True
1700+ if kwargs .get ('async_req' ):
1701+ return self .describe_tasks_with_http_info (body , ** kwargs ) # noqa: E501
1702+ else :
1703+ (data ) = self .describe_tasks_with_http_info (body , ** kwargs ) # noqa: E501
1704+ return data
1705+
1706+ def describe_tasks_with_http_info (self , body , ** kwargs ): # noqa: E501
1707+ """describe_tasks # noqa: E501
1708+
1709+ This method makes a synchronous HTTP request by default. To make an
1710+ asynchronous HTTP request, please pass async_req=True
1711+ >>> thread = api.describe_tasks_with_http_info(body, async_req=True)
1712+ >>> result = thread.get()
1713+
1714+ :param async_req bool
1715+ :param DescribeTasksRequest body: (required)
1716+ :return: DescribeTasksResponse
1717+ If the method is called asynchronously,
1718+ returns the request thread.
1719+ """
1720+
1721+ all_params = ['body' ] # noqa: E501
1722+ all_params .append ('async_req' )
1723+ all_params .append ('_return_http_data_only' )
1724+ all_params .append ('_preload_content' )
1725+ all_params .append ('_request_timeout' )
1726+
1727+ params = locals ()
1728+ for key , val in six .iteritems (params ['kwargs' ]):
1729+ if key not in all_params :
1730+ raise TypeError (
1731+ "Got an unexpected keyword argument '%s'"
1732+ " to method describe_tasks" % key
1733+ )
1734+ params [key ] = val
1735+ del params ['kwargs' ]
1736+ # verify the required parameter 'body' is set
1737+ if self .api_client .client_side_validation and ('body' not in params or
1738+ params ['body' ] is None ): # noqa: E501
1739+ raise ValueError ("Missing the required parameter `body` when calling `describe_tasks`" ) # noqa: E501
1740+
1741+ collection_formats = {}
1742+
1743+ path_params = {}
1744+
1745+ query_params = []
1746+
1747+ header_params = {}
1748+
1749+ form_params = []
1750+ local_var_files = {}
1751+
1752+ body_params = None
1753+ if 'body' in params :
1754+ body_params = params ['body' ]
1755+ # HTTP header `Accept`
1756+ header_params ['Accept' ] = self .api_client .select_header_accept (
1757+ ['application/json' ]) # noqa: E501
1758+
1759+ # HTTP header `Content-Type`
1760+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1761+ ['text/plain' ]) # noqa: E501
1762+
1763+ # Authentication setting
1764+ auth_settings = ['volcengineSign' ] # noqa: E501
1765+
1766+ return self .api_client .call_api (
1767+ '/DescribeTasks/2020-04-01/ecs/get/' , 'GET' ,
1768+ path_params ,
1769+ query_params ,
1770+ header_params ,
1771+ body = body_params ,
1772+ post_params = form_params ,
1773+ files = local_var_files ,
1774+ response_type = 'DescribeTasksResponse' , # noqa: E501
1775+ auth_settings = auth_settings ,
1776+ async_req = params .get ('async_req' ),
1777+ _return_http_data_only = params .get ('_return_http_data_only' ),
1778+ _preload_content = params .get ('_preload_content' , True ),
1779+ _request_timeout = params .get ('_request_timeout' ),
1780+ collection_formats = collection_formats )
1781+
15881782 def describe_user_data (self , body , ** kwargs ): # noqa: E501
15891783 """describe_user_data # noqa: E501
15901784
0 commit comments