@@ -5465,6 +5465,200 @@ def replace_certificate_with_http_info(self, body, **kwargs): # noqa: E501
54655465 _request_timeout = params .get ('_request_timeout' ),
54665466 collection_formats = collection_formats )
54675467
5468+ def tag_resources (self , body , ** kwargs ): # noqa: E501
5469+ """tag_resources # noqa: E501
5470+
5471+ This method makes a synchronous HTTP request by default. To make an
5472+ asynchronous HTTP request, please pass async_req=True
5473+ >>> thread = api.tag_resources(body, async_req=True)
5474+ >>> result = thread.get()
5475+
5476+ :param async_req bool
5477+ :param TagResourcesRequest body: (required)
5478+ :return: TagResourcesResponse
5479+ If the method is called asynchronously,
5480+ returns the request thread.
5481+ """
5482+ kwargs ['_return_http_data_only' ] = True
5483+ if kwargs .get ('async_req' ):
5484+ return self .tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
5485+ else :
5486+ (data ) = self .tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
5487+ return data
5488+
5489+ def tag_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
5490+ """tag_resources # noqa: E501
5491+
5492+ This method makes a synchronous HTTP request by default. To make an
5493+ asynchronous HTTP request, please pass async_req=True
5494+ >>> thread = api.tag_resources_with_http_info(body, async_req=True)
5495+ >>> result = thread.get()
5496+
5497+ :param async_req bool
5498+ :param TagResourcesRequest body: (required)
5499+ :return: TagResourcesResponse
5500+ If the method is called asynchronously,
5501+ returns the request thread.
5502+ """
5503+
5504+ all_params = ['body' ] # noqa: E501
5505+ all_params .append ('async_req' )
5506+ all_params .append ('_return_http_data_only' )
5507+ all_params .append ('_preload_content' )
5508+ all_params .append ('_request_timeout' )
5509+
5510+ params = locals ()
5511+ for key , val in six .iteritems (params ['kwargs' ]):
5512+ if key not in all_params :
5513+ raise TypeError (
5514+ "Got an unexpected keyword argument '%s'"
5515+ " to method tag_resources" % key
5516+ )
5517+ params [key ] = val
5518+ del params ['kwargs' ]
5519+ # verify the required parameter 'body' is set
5520+ if self .api_client .client_side_validation and ('body' not in params or
5521+ params ['body' ] is None ): # noqa: E501
5522+ raise ValueError ("Missing the required parameter `body` when calling `tag_resources`" ) # noqa: E501
5523+
5524+ collection_formats = {}
5525+
5526+ path_params = {}
5527+
5528+ query_params = []
5529+
5530+ header_params = {}
5531+
5532+ form_params = []
5533+ local_var_files = {}
5534+
5535+ body_params = None
5536+ if 'body' in params :
5537+ body_params = params ['body' ]
5538+ # HTTP header `Accept`
5539+ header_params ['Accept' ] = self .api_client .select_header_accept (
5540+ ['application/json' ]) # noqa: E501
5541+
5542+ # HTTP header `Content-Type`
5543+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
5544+ ['text/plain' ]) # noqa: E501
5545+
5546+ # Authentication setting
5547+ auth_settings = ['volcengineSign' ] # noqa: E501
5548+
5549+ return self .api_client .call_api (
5550+ '/TagResources/2020-04-01/alb/get/text_plain/' , 'GET' ,
5551+ path_params ,
5552+ query_params ,
5553+ header_params ,
5554+ body = body_params ,
5555+ post_params = form_params ,
5556+ files = local_var_files ,
5557+ response_type = 'TagResourcesResponse' , # noqa: E501
5558+ auth_settings = auth_settings ,
5559+ async_req = params .get ('async_req' ),
5560+ _return_http_data_only = params .get ('_return_http_data_only' ),
5561+ _preload_content = params .get ('_preload_content' , True ),
5562+ _request_timeout = params .get ('_request_timeout' ),
5563+ collection_formats = collection_formats )
5564+
5565+ def untag_resources (self , body , ** kwargs ): # noqa: E501
5566+ """untag_resources # noqa: E501
5567+
5568+ This method makes a synchronous HTTP request by default. To make an
5569+ asynchronous HTTP request, please pass async_req=True
5570+ >>> thread = api.untag_resources(body, async_req=True)
5571+ >>> result = thread.get()
5572+
5573+ :param async_req bool
5574+ :param UntagResourcesRequest body: (required)
5575+ :return: UntagResourcesResponse
5576+ If the method is called asynchronously,
5577+ returns the request thread.
5578+ """
5579+ kwargs ['_return_http_data_only' ] = True
5580+ if kwargs .get ('async_req' ):
5581+ return self .untag_resources_with_http_info (body , ** kwargs ) # noqa: E501
5582+ else :
5583+ (data ) = self .untag_resources_with_http_info (body , ** kwargs ) # noqa: E501
5584+ return data
5585+
5586+ def untag_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
5587+ """untag_resources # noqa: E501
5588+
5589+ This method makes a synchronous HTTP request by default. To make an
5590+ asynchronous HTTP request, please pass async_req=True
5591+ >>> thread = api.untag_resources_with_http_info(body, async_req=True)
5592+ >>> result = thread.get()
5593+
5594+ :param async_req bool
5595+ :param UntagResourcesRequest body: (required)
5596+ :return: UntagResourcesResponse
5597+ If the method is called asynchronously,
5598+ returns the request thread.
5599+ """
5600+
5601+ all_params = ['body' ] # noqa: E501
5602+ all_params .append ('async_req' )
5603+ all_params .append ('_return_http_data_only' )
5604+ all_params .append ('_preload_content' )
5605+ all_params .append ('_request_timeout' )
5606+
5607+ params = locals ()
5608+ for key , val in six .iteritems (params ['kwargs' ]):
5609+ if key not in all_params :
5610+ raise TypeError (
5611+ "Got an unexpected keyword argument '%s'"
5612+ " to method untag_resources" % key
5613+ )
5614+ params [key ] = val
5615+ del params ['kwargs' ]
5616+ # verify the required parameter 'body' is set
5617+ if self .api_client .client_side_validation and ('body' not in params or
5618+ params ['body' ] is None ): # noqa: E501
5619+ raise ValueError ("Missing the required parameter `body` when calling `untag_resources`" ) # noqa: E501
5620+
5621+ collection_formats = {}
5622+
5623+ path_params = {}
5624+
5625+ query_params = []
5626+
5627+ header_params = {}
5628+
5629+ form_params = []
5630+ local_var_files = {}
5631+
5632+ body_params = None
5633+ if 'body' in params :
5634+ body_params = params ['body' ]
5635+ # HTTP header `Accept`
5636+ header_params ['Accept' ] = self .api_client .select_header_accept (
5637+ ['application/json' ]) # noqa: E501
5638+
5639+ # HTTP header `Content-Type`
5640+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
5641+ ['text/plain' ]) # noqa: E501
5642+
5643+ # Authentication setting
5644+ auth_settings = ['volcengineSign' ] # noqa: E501
5645+
5646+ return self .api_client .call_api (
5647+ '/UntagResources/2020-04-01/alb/get/text_plain/' , 'GET' ,
5648+ path_params ,
5649+ query_params ,
5650+ header_params ,
5651+ body = body_params ,
5652+ post_params = form_params ,
5653+ files = local_var_files ,
5654+ response_type = 'UntagResourcesResponse' , # noqa: E501
5655+ auth_settings = auth_settings ,
5656+ async_req = params .get ('async_req' ),
5657+ _return_http_data_only = params .get ('_return_http_data_only' ),
5658+ _preload_content = params .get ('_preload_content' , True ),
5659+ _request_timeout = params .get ('_request_timeout' ),
5660+ collection_formats = collection_formats )
5661+
54685662 def upload_ca_certificate (self , body , ** kwargs ): # noqa: E501
54695663 """upload_ca_certificate # noqa: E501
54705664
0 commit comments