@@ -1973,6 +1973,103 @@ def describe_key_pairs_with_http_info(self, body, **kwargs): # noqa: E501
19731973 _request_timeout = params .get ('_request_timeout' ),
19741974 collection_formats = collection_formats )
19751975
1976+ def describe_system_events (self , body , ** kwargs ): # noqa: E501
1977+ """describe_system_events # noqa: E501
1978+
1979+ This method makes a synchronous HTTP request by default. To make an
1980+ asynchronous HTTP request, please pass async_req=True
1981+ >>> thread = api.describe_system_events(body, async_req=True)
1982+ >>> result = thread.get()
1983+
1984+ :param async_req bool
1985+ :param DescribeSystemEventsRequest body: (required)
1986+ :return: DescribeSystemEventsResponse
1987+ If the method is called asynchronously,
1988+ returns the request thread.
1989+ """
1990+ kwargs ['_return_http_data_only' ] = True
1991+ if kwargs .get ('async_req' ):
1992+ return self .describe_system_events_with_http_info (body , ** kwargs ) # noqa: E501
1993+ else :
1994+ (data ) = self .describe_system_events_with_http_info (body , ** kwargs ) # noqa: E501
1995+ return data
1996+
1997+ def describe_system_events_with_http_info (self , body , ** kwargs ): # noqa: E501
1998+ """describe_system_events # noqa: E501
1999+
2000+ This method makes a synchronous HTTP request by default. To make an
2001+ asynchronous HTTP request, please pass async_req=True
2002+ >>> thread = api.describe_system_events_with_http_info(body, async_req=True)
2003+ >>> result = thread.get()
2004+
2005+ :param async_req bool
2006+ :param DescribeSystemEventsRequest body: (required)
2007+ :return: DescribeSystemEventsResponse
2008+ If the method is called asynchronously,
2009+ returns the request thread.
2010+ """
2011+
2012+ all_params = ['body' ] # noqa: E501
2013+ all_params .append ('async_req' )
2014+ all_params .append ('_return_http_data_only' )
2015+ all_params .append ('_preload_content' )
2016+ all_params .append ('_request_timeout' )
2017+
2018+ params = locals ()
2019+ for key , val in six .iteritems (params ['kwargs' ]):
2020+ if key not in all_params :
2021+ raise TypeError (
2022+ "Got an unexpected keyword argument '%s'"
2023+ " to method describe_system_events" % key
2024+ )
2025+ params [key ] = val
2026+ del params ['kwargs' ]
2027+ # verify the required parameter 'body' is set
2028+ if self .api_client .client_side_validation and ('body' not in params or
2029+ params ['body' ] is None ): # noqa: E501
2030+ raise ValueError ("Missing the required parameter `body` when calling `describe_system_events`" ) # noqa: E501
2031+
2032+ collection_formats = {}
2033+
2034+ path_params = {}
2035+
2036+ query_params = []
2037+
2038+ header_params = {}
2039+
2040+ form_params = []
2041+ local_var_files = {}
2042+
2043+ body_params = None
2044+ if 'body' in params :
2045+ body_params = params ['body' ]
2046+ # HTTP header `Accept`
2047+ header_params ['Accept' ] = self .api_client .select_header_accept (
2048+ ['application/json' ]) # noqa: E501
2049+
2050+ # HTTP header `Content-Type`
2051+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2052+ ['text/plain' ]) # noqa: E501
2053+
2054+ # Authentication setting
2055+ auth_settings = ['volcengineSign' ] # noqa: E501
2056+
2057+ return self .api_client .call_api (
2058+ '/DescribeSystemEvents/2020-04-01/ecs/get/' , 'GET' ,
2059+ path_params ,
2060+ query_params ,
2061+ header_params ,
2062+ body = body_params ,
2063+ post_params = form_params ,
2064+ files = local_var_files ,
2065+ response_type = 'DescribeSystemEventsResponse' , # noqa: E501
2066+ auth_settings = auth_settings ,
2067+ async_req = params .get ('async_req' ),
2068+ _return_http_data_only = params .get ('_return_http_data_only' ),
2069+ _preload_content = params .get ('_preload_content' , True ),
2070+ _request_timeout = params .get ('_request_timeout' ),
2071+ collection_formats = collection_formats )
2072+
19762073 def describe_tags (self , body , ** kwargs ): # noqa: E501
19772074 """describe_tags # noqa: E501
19782075
@@ -4300,3 +4397,100 @@ def stop_instances_with_http_info(self, body, **kwargs): # noqa: E501
43004397 _preload_content = params .get ('_preload_content' , True ),
43014398 _request_timeout = params .get ('_request_timeout' ),
43024399 collection_formats = collection_formats )
4400+
4401+ def update_system_events (self , body , ** kwargs ): # noqa: E501
4402+ """update_system_events # noqa: E501
4403+
4404+ This method makes a synchronous HTTP request by default. To make an
4405+ asynchronous HTTP request, please pass async_req=True
4406+ >>> thread = api.update_system_events(body, async_req=True)
4407+ >>> result = thread.get()
4408+
4409+ :param async_req bool
4410+ :param UpdateSystemEventsRequest body: (required)
4411+ :return: UpdateSystemEventsResponse
4412+ If the method is called asynchronously,
4413+ returns the request thread.
4414+ """
4415+ kwargs ['_return_http_data_only' ] = True
4416+ if kwargs .get ('async_req' ):
4417+ return self .update_system_events_with_http_info (body , ** kwargs ) # noqa: E501
4418+ else :
4419+ (data ) = self .update_system_events_with_http_info (body , ** kwargs ) # noqa: E501
4420+ return data
4421+
4422+ def update_system_events_with_http_info (self , body , ** kwargs ): # noqa: E501
4423+ """update_system_events # noqa: E501
4424+
4425+ This method makes a synchronous HTTP request by default. To make an
4426+ asynchronous HTTP request, please pass async_req=True
4427+ >>> thread = api.update_system_events_with_http_info(body, async_req=True)
4428+ >>> result = thread.get()
4429+
4430+ :param async_req bool
4431+ :param UpdateSystemEventsRequest body: (required)
4432+ :return: UpdateSystemEventsResponse
4433+ If the method is called asynchronously,
4434+ returns the request thread.
4435+ """
4436+
4437+ all_params = ['body' ] # noqa: E501
4438+ all_params .append ('async_req' )
4439+ all_params .append ('_return_http_data_only' )
4440+ all_params .append ('_preload_content' )
4441+ all_params .append ('_request_timeout' )
4442+
4443+ params = locals ()
4444+ for key , val in six .iteritems (params ['kwargs' ]):
4445+ if key not in all_params :
4446+ raise TypeError (
4447+ "Got an unexpected keyword argument '%s'"
4448+ " to method update_system_events" % key
4449+ )
4450+ params [key ] = val
4451+ del params ['kwargs' ]
4452+ # verify the required parameter 'body' is set
4453+ if self .api_client .client_side_validation and ('body' not in params or
4454+ params ['body' ] is None ): # noqa: E501
4455+ raise ValueError ("Missing the required parameter `body` when calling `update_system_events`" ) # noqa: E501
4456+
4457+ collection_formats = {}
4458+
4459+ path_params = {}
4460+
4461+ query_params = []
4462+
4463+ header_params = {}
4464+
4465+ form_params = []
4466+ local_var_files = {}
4467+
4468+ body_params = None
4469+ if 'body' in params :
4470+ body_params = params ['body' ]
4471+ # HTTP header `Accept`
4472+ header_params ['Accept' ] = self .api_client .select_header_accept (
4473+ ['application/json' ]) # noqa: E501
4474+
4475+ # HTTP header `Content-Type`
4476+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
4477+ ['text/plain' ]) # noqa: E501
4478+
4479+ # Authentication setting
4480+ auth_settings = ['volcengineSign' ] # noqa: E501
4481+
4482+ return self .api_client .call_api (
4483+ '/UpdateSystemEvents/2020-04-01/ecs/get/' , 'GET' ,
4484+ path_params ,
4485+ query_params ,
4486+ header_params ,
4487+ body = body_params ,
4488+ post_params = form_params ,
4489+ files = local_var_files ,
4490+ response_type = 'UpdateSystemEventsResponse' , # noqa: E501
4491+ auth_settings = auth_settings ,
4492+ async_req = params .get ('async_req' ),
4493+ _return_http_data_only = params .get ('_return_http_data_only' ),
4494+ _preload_content = params .get ('_preload_content' , True ),
4495+ _request_timeout = params .get ('_request_timeout' ),
4496+ collection_formats = collection_formats )
0 commit comments