@@ -4010,6 +4010,200 @@ def retry_change_account_secure_contact_info_with_http_info(self, body, **kwargs
40104010 _request_timeout = params .get ('_request_timeout' ),
40114011 collection_formats = collection_formats )
40124012
4013+ def tag_resources (self , body , ** kwargs ): # noqa: E501
4014+ """tag_resources # noqa: E501
4015+
4016+ This method makes a synchronous HTTP request by default. To make an
4017+ asynchronous HTTP request, please pass async_req=True
4018+ >>> thread = api.tag_resources(body, async_req=True)
4019+ >>> result = thread.get()
4020+
4021+ :param async_req bool
4022+ :param TagResourcesRequest body: (required)
4023+ :return: TagResourcesResponse
4024+ If the method is called asynchronously,
4025+ returns the request thread.
4026+ """
4027+ kwargs ['_return_http_data_only' ] = True
4028+ if kwargs .get ('async_req' ):
4029+ return self .tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
4030+ else :
4031+ (data ) = self .tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
4032+ return data
4033+
4034+ def tag_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
4035+ """tag_resources # noqa: E501
4036+
4037+ This method makes a synchronous HTTP request by default. To make an
4038+ asynchronous HTTP request, please pass async_req=True
4039+ >>> thread = api.tag_resources_with_http_info(body, async_req=True)
4040+ >>> result = thread.get()
4041+
4042+ :param async_req bool
4043+ :param TagResourcesRequest body: (required)
4044+ :return: TagResourcesResponse
4045+ If the method is called asynchronously,
4046+ returns the request thread.
4047+ """
4048+
4049+ all_params = ['body' ] # noqa: E501
4050+ all_params .append ('async_req' )
4051+ all_params .append ('_return_http_data_only' )
4052+ all_params .append ('_preload_content' )
4053+ all_params .append ('_request_timeout' )
4054+
4055+ params = locals ()
4056+ for key , val in six .iteritems (params ['kwargs' ]):
4057+ if key not in all_params :
4058+ raise TypeError (
4059+ "Got an unexpected keyword argument '%s'"
4060+ " to method tag_resources" % key
4061+ )
4062+ params [key ] = val
4063+ del params ['kwargs' ]
4064+ # verify the required parameter 'body' is set
4065+ if self .api_client .client_side_validation and ('body' not in params or
4066+ params ['body' ] is None ): # noqa: E501
4067+ raise ValueError ("Missing the required parameter `body` when calling `tag_resources`" ) # noqa: E501
4068+
4069+ collection_formats = {}
4070+
4071+ path_params = {}
4072+
4073+ query_params = []
4074+
4075+ header_params = {}
4076+
4077+ form_params = []
4078+ local_var_files = {}
4079+
4080+ body_params = None
4081+ if 'body' in params :
4082+ body_params = params ['body' ]
4083+ # HTTP header `Accept`
4084+ header_params ['Accept' ] = self .api_client .select_header_accept (
4085+ ['application/json' ]) # noqa: E501
4086+
4087+ # HTTP header `Content-Type`
4088+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
4089+ ['text/plain' ]) # noqa: E501
4090+
4091+ # Authentication setting
4092+ auth_settings = ['volcengineSign' ] # noqa: E501
4093+
4094+ return self .api_client .call_api (
4095+ '/TagResources/2022-01-01/organization/get/text_plain/' , 'GET' ,
4096+ path_params ,
4097+ query_params ,
4098+ header_params ,
4099+ body = body_params ,
4100+ post_params = form_params ,
4101+ files = local_var_files ,
4102+ response_type = 'TagResourcesResponse' , # noqa: E501
4103+ auth_settings = auth_settings ,
4104+ async_req = params .get ('async_req' ),
4105+ _return_http_data_only = params .get ('_return_http_data_only' ),
4106+ _preload_content = params .get ('_preload_content' , True ),
4107+ _request_timeout = params .get ('_request_timeout' ),
4108+ collection_formats = collection_formats )
4109+
4110+ def untag_resources (self , body , ** kwargs ): # noqa: E501
4111+ """untag_resources # noqa: E501
4112+
4113+ This method makes a synchronous HTTP request by default. To make an
4114+ asynchronous HTTP request, please pass async_req=True
4115+ >>> thread = api.untag_resources(body, async_req=True)
4116+ >>> result = thread.get()
4117+
4118+ :param async_req bool
4119+ :param UntagResourcesRequest body: (required)
4120+ :return: UntagResourcesResponse
4121+ If the method is called asynchronously,
4122+ returns the request thread.
4123+ """
4124+ kwargs ['_return_http_data_only' ] = True
4125+ if kwargs .get ('async_req' ):
4126+ return self .untag_resources_with_http_info (body , ** kwargs ) # noqa: E501
4127+ else :
4128+ (data ) = self .untag_resources_with_http_info (body , ** kwargs ) # noqa: E501
4129+ return data
4130+
4131+ def untag_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
4132+ """untag_resources # noqa: E501
4133+
4134+ This method makes a synchronous HTTP request by default. To make an
4135+ asynchronous HTTP request, please pass async_req=True
4136+ >>> thread = api.untag_resources_with_http_info(body, async_req=True)
4137+ >>> result = thread.get()
4138+
4139+ :param async_req bool
4140+ :param UntagResourcesRequest body: (required)
4141+ :return: UntagResourcesResponse
4142+ If the method is called asynchronously,
4143+ returns the request thread.
4144+ """
4145+
4146+ all_params = ['body' ] # noqa: E501
4147+ all_params .append ('async_req' )
4148+ all_params .append ('_return_http_data_only' )
4149+ all_params .append ('_preload_content' )
4150+ all_params .append ('_request_timeout' )
4151+
4152+ params = locals ()
4153+ for key , val in six .iteritems (params ['kwargs' ]):
4154+ if key not in all_params :
4155+ raise TypeError (
4156+ "Got an unexpected keyword argument '%s'"
4157+ " to method untag_resources" % key
4158+ )
4159+ params [key ] = val
4160+ del params ['kwargs' ]
4161+ # verify the required parameter 'body' is set
4162+ if self .api_client .client_side_validation and ('body' not in params or
4163+ params ['body' ] is None ): # noqa: E501
4164+ raise ValueError ("Missing the required parameter `body` when calling `untag_resources`" ) # noqa: E501
4165+
4166+ collection_formats = {}
4167+
4168+ path_params = {}
4169+
4170+ query_params = []
4171+
4172+ header_params = {}
4173+
4174+ form_params = []
4175+ local_var_files = {}
4176+
4177+ body_params = None
4178+ if 'body' in params :
4179+ body_params = params ['body' ]
4180+ # HTTP header `Accept`
4181+ header_params ['Accept' ] = self .api_client .select_header_accept (
4182+ ['application/json' ]) # noqa: E501
4183+
4184+ # HTTP header `Content-Type`
4185+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
4186+ ['text/plain' ]) # noqa: E501
4187+
4188+ # Authentication setting
4189+ auth_settings = ['volcengineSign' ] # noqa: E501
4190+
4191+ return self .api_client .call_api (
4192+ '/UntagResources/2022-01-01/organization/get/text_plain/' , 'GET' ,
4193+ path_params ,
4194+ query_params ,
4195+ header_params ,
4196+ body = body_params ,
4197+ post_params = form_params ,
4198+ files = local_var_files ,
4199+ response_type = 'UntagResourcesResponse' , # noqa: E501
4200+ auth_settings = auth_settings ,
4201+ async_req = params .get ('async_req' ),
4202+ _return_http_data_only = params .get ('_return_http_data_only' ),
4203+ _preload_content = params .get ('_preload_content' , True ),
4204+ _request_timeout = params .get ('_request_timeout' ),
4205+ collection_formats = collection_formats )
4206+
40134207 def update_account (self , body , ** kwargs ): # noqa: E501
40144208 """update_account # noqa: E501
40154209
0 commit comments