@@ -6435,6 +6435,103 @@ def invoke_command_with_http_info(self, body, **kwargs): # noqa: E501
64356435 _request_timeout = params .get ('_request_timeout' ),
64366436 collection_formats = collection_formats )
64376437
6438+ def list_tags_for_resources (self , body , ** kwargs ): # noqa: E501
6439+ """list_tags_for_resources # noqa: E501
6440+
6441+ This method makes a synchronous HTTP request by default. To make an
6442+ asynchronous HTTP request, please pass async_req=True
6443+ >>> thread = api.list_tags_for_resources(body, async_req=True)
6444+ >>> result = thread.get()
6445+
6446+ :param async_req bool
6447+ :param ListTagsForResourcesRequest body: (required)
6448+ :return: ListTagsForResourcesResponse
6449+ If the method is called asynchronously,
6450+ returns the request thread.
6451+ """
6452+ kwargs ['_return_http_data_only' ] = True
6453+ if kwargs .get ('async_req' ):
6454+ return self .list_tags_for_resources_with_http_info (body , ** kwargs ) # noqa: E501
6455+ else :
6456+ (data ) = self .list_tags_for_resources_with_http_info (body , ** kwargs ) # noqa: E501
6457+ return data
6458+
6459+ def list_tags_for_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
6460+ """list_tags_for_resources # noqa: E501
6461+
6462+ This method makes a synchronous HTTP request by default. To make an
6463+ asynchronous HTTP request, please pass async_req=True
6464+ >>> thread = api.list_tags_for_resources_with_http_info(body, async_req=True)
6465+ >>> result = thread.get()
6466+
6467+ :param async_req bool
6468+ :param ListTagsForResourcesRequest body: (required)
6469+ :return: ListTagsForResourcesResponse
6470+ If the method is called asynchronously,
6471+ returns the request thread.
6472+ """
6473+
6474+ all_params = ['body' ] # noqa: E501
6475+ all_params .append ('async_req' )
6476+ all_params .append ('_return_http_data_only' )
6477+ all_params .append ('_preload_content' )
6478+ all_params .append ('_request_timeout' )
6479+
6480+ params = locals ()
6481+ for key , val in six .iteritems (params ['kwargs' ]):
6482+ if key not in all_params :
6483+ raise TypeError (
6484+ "Got an unexpected keyword argument '%s'"
6485+ " to method list_tags_for_resources" % key
6486+ )
6487+ params [key ] = val
6488+ del params ['kwargs' ]
6489+ # verify the required parameter 'body' is set
6490+ if self .api_client .client_side_validation and ('body' not in params or
6491+ params ['body' ] is None ): # noqa: E501
6492+ raise ValueError ("Missing the required parameter `body` when calling `list_tags_for_resources`" ) # noqa: E501
6493+
6494+ collection_formats = {}
6495+
6496+ path_params = {}
6497+
6498+ query_params = []
6499+
6500+ header_params = {}
6501+
6502+ form_params = []
6503+ local_var_files = {}
6504+
6505+ body_params = None
6506+ if 'body' in params :
6507+ body_params = params ['body' ]
6508+ # HTTP header `Accept`
6509+ header_params ['Accept' ] = self .api_client .select_header_accept (
6510+ ['application/json' ]) # noqa: E501
6511+
6512+ # HTTP header `Content-Type`
6513+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
6514+ ['text/plain' ]) # noqa: E501
6515+
6516+ # Authentication setting
6517+ auth_settings = ['volcengineSign' ] # noqa: E501
6518+
6519+ return self .api_client .call_api (
6520+ '/ListTagsForResources/2020-04-01/ecs/get/text_plain/' , 'GET' ,
6521+ path_params ,
6522+ query_params ,
6523+ header_params ,
6524+ body = body_params ,
6525+ post_params = form_params ,
6526+ files = local_var_files ,
6527+ response_type = 'ListTagsForResourcesResponse' , # noqa: E501
6528+ auth_settings = auth_settings ,
6529+ async_req = params .get ('async_req' ),
6530+ _return_http_data_only = params .get ('_return_http_data_only' ),
6531+ _preload_content = params .get ('_preload_content' , True ),
6532+ _request_timeout = params .get ('_request_timeout' ),
6533+ collection_formats = collection_formats )
6534+
64386535 def modify_command (self , body , ** kwargs ): # noqa: E501
64396536 """modify_command # noqa: E501
64406537
@@ -9248,6 +9345,103 @@ def stop_invocation_with_http_info(self, body, **kwargs): # noqa: E501
92489345 _request_timeout = params .get ('_request_timeout' ),
92499346 collection_formats = collection_formats )
92509347
9348+ def tag_resources (self , body , ** kwargs ): # noqa: E501
9349+ """tag_resources # noqa: E501
9350+
9351+ This method makes a synchronous HTTP request by default. To make an
9352+ asynchronous HTTP request, please pass async_req=True
9353+ >>> thread = api.tag_resources(body, async_req=True)
9354+ >>> result = thread.get()
9355+
9356+ :param async_req bool
9357+ :param TagResourcesRequest body: (required)
9358+ :return: TagResourcesResponse
9359+ If the method is called asynchronously,
9360+ returns the request thread.
9361+ """
9362+ kwargs ['_return_http_data_only' ] = True
9363+ if kwargs .get ('async_req' ):
9364+ return self .tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
9365+ else :
9366+ (data ) = self .tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
9367+ return data
9368+
9369+ def tag_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
9370+ """tag_resources # noqa: E501
9371+
9372+ This method makes a synchronous HTTP request by default. To make an
9373+ asynchronous HTTP request, please pass async_req=True
9374+ >>> thread = api.tag_resources_with_http_info(body, async_req=True)
9375+ >>> result = thread.get()
9376+
9377+ :param async_req bool
9378+ :param TagResourcesRequest body: (required)
9379+ :return: TagResourcesResponse
9380+ If the method is called asynchronously,
9381+ returns the request thread.
9382+ """
9383+
9384+ all_params = ['body' ] # noqa: E501
9385+ all_params .append ('async_req' )
9386+ all_params .append ('_return_http_data_only' )
9387+ all_params .append ('_preload_content' )
9388+ all_params .append ('_request_timeout' )
9389+
9390+ params = locals ()
9391+ for key , val in six .iteritems (params ['kwargs' ]):
9392+ if key not in all_params :
9393+ raise TypeError (
9394+ "Got an unexpected keyword argument '%s'"
9395+ " to method tag_resources" % key
9396+ )
9397+ params [key ] = val
9398+ del params ['kwargs' ]
9399+ # verify the required parameter 'body' is set
9400+ if self .api_client .client_side_validation and ('body' not in params or
9401+ params ['body' ] is None ): # noqa: E501
9402+ raise ValueError ("Missing the required parameter `body` when calling `tag_resources`" ) # noqa: E501
9403+
9404+ collection_formats = {}
9405+
9406+ path_params = {}
9407+
9408+ query_params = []
9409+
9410+ header_params = {}
9411+
9412+ form_params = []
9413+ local_var_files = {}
9414+
9415+ body_params = None
9416+ if 'body' in params :
9417+ body_params = params ['body' ]
9418+ # HTTP header `Accept`
9419+ header_params ['Accept' ] = self .api_client .select_header_accept (
9420+ ['application/json' ]) # noqa: E501
9421+
9422+ # HTTP header `Content-Type`
9423+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
9424+ ['text/plain' ]) # noqa: E501
9425+
9426+ # Authentication setting
9427+ auth_settings = ['volcengineSign' ] # noqa: E501
9428+
9429+ return self .api_client .call_api (
9430+ '/TagResources/2020-04-01/ecs/get/text_plain/' , 'GET' ,
9431+ path_params ,
9432+ query_params ,
9433+ header_params ,
9434+ body = body_params ,
9435+ post_params = form_params ,
9436+ files = local_var_files ,
9437+ response_type = 'TagResourcesResponse' , # noqa: E501
9438+ auth_settings = auth_settings ,
9439+ async_req = params .get ('async_req' ),
9440+ _return_http_data_only = params .get ('_return_http_data_only' ),
9441+ _preload_content = params .get ('_preload_content' , True ),
9442+ _request_timeout = params .get ('_request_timeout' ),
9443+ collection_formats = collection_formats )
9444+
92519445 def uninstall_cloud_assistants (self , body , ** kwargs ): # noqa: E501
92529446 """uninstall_cloud_assistants # noqa: E501
92539447
@@ -9345,6 +9539,103 @@ def uninstall_cloud_assistants_with_http_info(self, body, **kwargs): # noqa: E5
93459539 _request_timeout = params .get ('_request_timeout' ),
93469540 collection_formats = collection_formats )
93479541
9542+ def untag_resources (self , body , ** kwargs ): # noqa: E501
9543+ """untag_resources # noqa: E501
9544+
9545+ This method makes a synchronous HTTP request by default. To make an
9546+ asynchronous HTTP request, please pass async_req=True
9547+ >>> thread = api.untag_resources(body, async_req=True)
9548+ >>> result = thread.get()
9549+
9550+ :param async_req bool
9551+ :param UntagResourcesRequest body: (required)
9552+ :return: UntagResourcesResponse
9553+ If the method is called asynchronously,
9554+ returns the request thread.
9555+ """
9556+ kwargs ['_return_http_data_only' ] = True
9557+ if kwargs .get ('async_req' ):
9558+ return self .untag_resources_with_http_info (body , ** kwargs ) # noqa: E501
9559+ else :
9560+ (data ) = self .untag_resources_with_http_info (body , ** kwargs ) # noqa: E501
9561+ return data
9562+
9563+ def untag_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
9564+ """untag_resources # noqa: E501
9565+
9566+ This method makes a synchronous HTTP request by default. To make an
9567+ asynchronous HTTP request, please pass async_req=True
9568+ >>> thread = api.untag_resources_with_http_info(body, async_req=True)
9569+ >>> result = thread.get()
9570+
9571+ :param async_req bool
9572+ :param UntagResourcesRequest body: (required)
9573+ :return: UntagResourcesResponse
9574+ If the method is called asynchronously,
9575+ returns the request thread.
9576+ """
9577+
9578+ all_params = ['body' ] # noqa: E501
9579+ all_params .append ('async_req' )
9580+ all_params .append ('_return_http_data_only' )
9581+ all_params .append ('_preload_content' )
9582+ all_params .append ('_request_timeout' )
9583+
9584+ params = locals ()
9585+ for key , val in six .iteritems (params ['kwargs' ]):
9586+ if key not in all_params :
9587+ raise TypeError (
9588+ "Got an unexpected keyword argument '%s'"
9589+ " to method untag_resources" % key
9590+ )
9591+ params [key ] = val
9592+ del params ['kwargs' ]
9593+ # verify the required parameter 'body' is set
9594+ if self .api_client .client_side_validation and ('body' not in params or
9595+ params ['body' ] is None ): # noqa: E501
9596+ raise ValueError ("Missing the required parameter `body` when calling `untag_resources`" ) # noqa: E501
9597+
9598+ collection_formats = {}
9599+
9600+ path_params = {}
9601+
9602+ query_params = []
9603+
9604+ header_params = {}
9605+
9606+ form_params = []
9607+ local_var_files = {}
9608+
9609+ body_params = None
9610+ if 'body' in params :
9611+ body_params = params ['body' ]
9612+ # HTTP header `Accept`
9613+ header_params ['Accept' ] = self .api_client .select_header_accept (
9614+ ['application/json' ]) # noqa: E501
9615+
9616+ # HTTP header `Content-Type`
9617+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
9618+ ['text/plain' ]) # noqa: E501
9619+
9620+ # Authentication setting
9621+ auth_settings = ['volcengineSign' ] # noqa: E501
9622+
9623+ return self .api_client .call_api (
9624+ '/UntagResources/2020-04-01/ecs/get/text_plain/' , 'GET' ,
9625+ path_params ,
9626+ query_params ,
9627+ header_params ,
9628+ body = body_params ,
9629+ post_params = form_params ,
9630+ files = local_var_files ,
9631+ response_type = 'UntagResourcesResponse' , # noqa: E501
9632+ auth_settings = auth_settings ,
9633+ async_req = params .get ('async_req' ),
9634+ _return_http_data_only = params .get ('_return_http_data_only' ),
9635+ _preload_content = params .get ('_preload_content' , True ),
9636+ _request_timeout = params .get ('_request_timeout' ),
9637+ collection_formats = collection_formats )
9638+
93489639 def update_system_events (self , body , ** kwargs ): # noqa: E501
93499640 """update_system_events # noqa: E501
93509641
0 commit comments