@@ -3234,6 +3234,103 @@ def list_service_control_policies_with_http_info(self, body, **kwargs): # noqa:
32343234 _request_timeout = params .get ('_request_timeout' ),
32353235 collection_formats = collection_formats )
32363236
3237+ def list_tag_resources (self , body , ** kwargs ): # noqa: E501
3238+ """list_tag_resources # noqa: E501
3239+
3240+ This method makes a synchronous HTTP request by default. To make an
3241+ asynchronous HTTP request, please pass async_req=True
3242+ >>> thread = api.list_tag_resources(body, async_req=True)
3243+ >>> result = thread.get()
3244+
3245+ :param async_req bool
3246+ :param ListTagResourcesRequest body: (required)
3247+ :return: ListTagResourcesResponse
3248+ If the method is called asynchronously,
3249+ returns the request thread.
3250+ """
3251+ kwargs ['_return_http_data_only' ] = True
3252+ if kwargs .get ('async_req' ):
3253+ return self .list_tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
3254+ else :
3255+ (data ) = self .list_tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
3256+ return data
3257+
3258+ def list_tag_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
3259+ """list_tag_resources # noqa: E501
3260+
3261+ This method makes a synchronous HTTP request by default. To make an
3262+ asynchronous HTTP request, please pass async_req=True
3263+ >>> thread = api.list_tag_resources_with_http_info(body, async_req=True)
3264+ >>> result = thread.get()
3265+
3266+ :param async_req bool
3267+ :param ListTagResourcesRequest body: (required)
3268+ :return: ListTagResourcesResponse
3269+ If the method is called asynchronously,
3270+ returns the request thread.
3271+ """
3272+
3273+ all_params = ['body' ] # noqa: E501
3274+ all_params .append ('async_req' )
3275+ all_params .append ('_return_http_data_only' )
3276+ all_params .append ('_preload_content' )
3277+ all_params .append ('_request_timeout' )
3278+
3279+ params = locals ()
3280+ for key , val in six .iteritems (params ['kwargs' ]):
3281+ if key not in all_params :
3282+ raise TypeError (
3283+ "Got an unexpected keyword argument '%s'"
3284+ " to method list_tag_resources" % key
3285+ )
3286+ params [key ] = val
3287+ del params ['kwargs' ]
3288+ # verify the required parameter 'body' is set
3289+ if self .api_client .client_side_validation and ('body' not in params or
3290+ params ['body' ] is None ): # noqa: E501
3291+ raise ValueError ("Missing the required parameter `body` when calling `list_tag_resources`" ) # noqa: E501
3292+
3293+ collection_formats = {}
3294+
3295+ path_params = {}
3296+
3297+ query_params = []
3298+
3299+ header_params = {}
3300+
3301+ form_params = []
3302+ local_var_files = {}
3303+
3304+ body_params = None
3305+ if 'body' in params :
3306+ body_params = params ['body' ]
3307+ # HTTP header `Accept`
3308+ header_params ['Accept' ] = self .api_client .select_header_accept (
3309+ ['application/json' ]) # noqa: E501
3310+
3311+ # HTTP header `Content-Type`
3312+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
3313+ ['text/plain' ]) # noqa: E501
3314+
3315+ # Authentication setting
3316+ auth_settings = ['volcengineSign' ] # noqa: E501
3317+
3318+ return self .api_client .call_api (
3319+ '/ListTagResources/2022-01-01/organization/get/text_plain/' , 'GET' ,
3320+ path_params ,
3321+ query_params ,
3322+ header_params ,
3323+ body = body_params ,
3324+ post_params = form_params ,
3325+ files = local_var_files ,
3326+ response_type = 'ListTagResourcesResponse' , # noqa: E501
3327+ auth_settings = auth_settings ,
3328+ async_req = params .get ('async_req' ),
3329+ _return_http_data_only = params .get ('_return_http_data_only' ),
3330+ _preload_content = params .get ('_preload_content' , True ),
3331+ _request_timeout = params .get ('_request_timeout' ),
3332+ collection_formats = collection_formats )
3333+
32373334 def list_targets_for_policy (self , body , ** kwargs ): # noqa: E501
32383335 """list_targets_for_policy # noqa: E501
32393336
0 commit comments