@@ -1779,6 +1779,103 @@ def list_nodes_with_http_info(self, body, **kwargs): # noqa: E501
17791779 _request_timeout = params .get ('_request_timeout' ),
17801780 collection_formats = collection_formats )
17811781
1782+ def list_scaling_events (self , body , ** kwargs ): # noqa: E501
1783+ """list_scaling_events # noqa: E501
1784+
1785+ This method makes a synchronous HTTP request by default. To make an
1786+ asynchronous HTTP request, please pass async_req=True
1787+ >>> thread = api.list_scaling_events(body, async_req=True)
1788+ >>> result = thread.get()
1789+
1790+ :param async_req bool
1791+ :param ListScalingEventsRequest body: (required)
1792+ :return: ListScalingEventsResponse
1793+ If the method is called asynchronously,
1794+ returns the request thread.
1795+ """
1796+ kwargs ['_return_http_data_only' ] = True
1797+ if kwargs .get ('async_req' ):
1798+ return self .list_scaling_events_with_http_info (body , ** kwargs ) # noqa: E501
1799+ else :
1800+ (data ) = self .list_scaling_events_with_http_info (body , ** kwargs ) # noqa: E501
1801+ return data
1802+
1803+ def list_scaling_events_with_http_info (self , body , ** kwargs ): # noqa: E501
1804+ """list_scaling_events # noqa: E501
1805+
1806+ This method makes a synchronous HTTP request by default. To make an
1807+ asynchronous HTTP request, please pass async_req=True
1808+ >>> thread = api.list_scaling_events_with_http_info(body, async_req=True)
1809+ >>> result = thread.get()
1810+
1811+ :param async_req bool
1812+ :param ListScalingEventsRequest body: (required)
1813+ :return: ListScalingEventsResponse
1814+ If the method is called asynchronously,
1815+ returns the request thread.
1816+ """
1817+
1818+ all_params = ['body' ] # noqa: E501
1819+ all_params .append ('async_req' )
1820+ all_params .append ('_return_http_data_only' )
1821+ all_params .append ('_preload_content' )
1822+ all_params .append ('_request_timeout' )
1823+
1824+ params = locals ()
1825+ for key , val in six .iteritems (params ['kwargs' ]):
1826+ if key not in all_params :
1827+ raise TypeError (
1828+ "Got an unexpected keyword argument '%s'"
1829+ " to method list_scaling_events" % key
1830+ )
1831+ params [key ] = val
1832+ del params ['kwargs' ]
1833+ # verify the required parameter 'body' is set
1834+ if self .api_client .client_side_validation and ('body' not in params or
1835+ params ['body' ] is None ): # noqa: E501
1836+ raise ValueError ("Missing the required parameter `body` when calling `list_scaling_events`" ) # noqa: E501
1837+
1838+ collection_formats = {}
1839+
1840+ path_params = {}
1841+
1842+ query_params = []
1843+
1844+ header_params = {}
1845+
1846+ form_params = []
1847+ local_var_files = {}
1848+
1849+ body_params = None
1850+ if 'body' in params :
1851+ body_params = params ['body' ]
1852+ # HTTP header `Accept`
1853+ header_params ['Accept' ] = self .api_client .select_header_accept (
1854+ ['application/json' ]) # noqa: E501
1855+
1856+ # HTTP header `Content-Type`
1857+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1858+ ['application/json' ]) # noqa: E501
1859+
1860+ # Authentication setting
1861+ auth_settings = ['volcengineSign' ] # noqa: E501
1862+
1863+ return self .api_client .call_api (
1864+ '/ListScalingEvents/2022-05-12/vke/post/application_json/' , 'POST' ,
1865+ path_params ,
1866+ query_params ,
1867+ header_params ,
1868+ body = body_params ,
1869+ post_params = form_params ,
1870+ files = local_var_files ,
1871+ response_type = 'ListScalingEventsResponse' , # noqa: E501
1872+ auth_settings = auth_settings ,
1873+ async_req = params .get ('async_req' ),
1874+ _return_http_data_only = params .get ('_return_http_data_only' ),
1875+ _preload_content = params .get ('_preload_content' , True ),
1876+ _request_timeout = params .get ('_request_timeout' ),
1877+ collection_formats = collection_formats )
1878+
17821879 def list_supported_addons (self , body , ** kwargs ): # noqa: E501
17831880 """list_supported_addons # noqa: E501
17841881
0 commit comments