@@ -2652,6 +2652,103 @@ def enable_scaling_policy_with_http_info(self, body, **kwargs): # noqa: E501
26522652 _request_timeout = params .get ('_request_timeout' ),
26532653 collection_formats = collection_formats )
26542654
2655+ def list_tag_resources (self , body , ** kwargs ): # noqa: E501
2656+ """list_tag_resources # noqa: E501
2657+
2658+ This method makes a synchronous HTTP request by default. To make an
2659+ asynchronous HTTP request, please pass async_req=True
2660+ >>> thread = api.list_tag_resources(body, async_req=True)
2661+ >>> result = thread.get()
2662+
2663+ :param async_req bool
2664+ :param ListTagResourcesRequest body: (required)
2665+ :return: ListTagResourcesResponse
2666+ If the method is called asynchronously,
2667+ returns the request thread.
2668+ """
2669+ kwargs ['_return_http_data_only' ] = True
2670+ if kwargs .get ('async_req' ):
2671+ return self .list_tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
2672+ else :
2673+ (data ) = self .list_tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
2674+ return data
2675+
2676+ def list_tag_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
2677+ """list_tag_resources # noqa: E501
2678+
2679+ This method makes a synchronous HTTP request by default. To make an
2680+ asynchronous HTTP request, please pass async_req=True
2681+ >>> thread = api.list_tag_resources_with_http_info(body, async_req=True)
2682+ >>> result = thread.get()
2683+
2684+ :param async_req bool
2685+ :param ListTagResourcesRequest body: (required)
2686+ :return: ListTagResourcesResponse
2687+ If the method is called asynchronously,
2688+ returns the request thread.
2689+ """
2690+
2691+ all_params = ['body' ] # noqa: E501
2692+ all_params .append ('async_req' )
2693+ all_params .append ('_return_http_data_only' )
2694+ all_params .append ('_preload_content' )
2695+ all_params .append ('_request_timeout' )
2696+
2697+ params = locals ()
2698+ for key , val in six .iteritems (params ['kwargs' ]):
2699+ if key not in all_params :
2700+ raise TypeError (
2701+ "Got an unexpected keyword argument '%s'"
2702+ " to method list_tag_resources" % key
2703+ )
2704+ params [key ] = val
2705+ del params ['kwargs' ]
2706+ # verify the required parameter 'body' is set
2707+ if self .api_client .client_side_validation and ('body' not in params or
2708+ params ['body' ] is None ): # noqa: E501
2709+ raise ValueError ("Missing the required parameter `body` when calling `list_tag_resources`" ) # noqa: E501
2710+
2711+ collection_formats = {}
2712+
2713+ path_params = {}
2714+
2715+ query_params = []
2716+
2717+ header_params = {}
2718+
2719+ form_params = []
2720+ local_var_files = {}
2721+
2722+ body_params = None
2723+ if 'body' in params :
2724+ body_params = params ['body' ]
2725+ # HTTP header `Accept`
2726+ header_params ['Accept' ] = self .api_client .select_header_accept (
2727+ ['application/json' ]) # noqa: E501
2728+
2729+ # HTTP header `Content-Type`
2730+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2731+ ['text/plain' ]) # noqa: E501
2732+
2733+ # Authentication setting
2734+ auth_settings = ['volcengineSign' ] # noqa: E501
2735+
2736+ return self .api_client .call_api (
2737+ '/ListTagResources/2020-01-01/auto_scaling/get/text_plain/' , 'GET' ,
2738+ path_params ,
2739+ query_params ,
2740+ header_params ,
2741+ body = body_params ,
2742+ post_params = form_params ,
2743+ files = local_var_files ,
2744+ response_type = 'ListTagResourcesResponse' , # noqa: E501
2745+ auth_settings = auth_settings ,
2746+ async_req = params .get ('async_req' ),
2747+ _return_http_data_only = params .get ('_return_http_data_only' ),
2748+ _preload_content = params .get ('_preload_content' , True ),
2749+ _request_timeout = params .get ('_request_timeout' ),
2750+ collection_formats = collection_formats )
2751+
26552752 def modify_lifecycle_hook (self , body , ** kwargs ): # noqa: E501
26562753 """modify_lifecycle_hook # noqa: E501
26572754
@@ -3233,3 +3330,197 @@ def set_instances_protection_with_http_info(self, body, **kwargs): # noqa: E501
32333330 _preload_content = params .get ('_preload_content' , True ),
32343331 _request_timeout = params .get ('_request_timeout' ),
32353332 collection_formats = collection_formats )
3333+
3334+ def tag_resources (self , body , ** kwargs ): # noqa: E501
3335+ """tag_resources # noqa: E501
3336+
3337+ This method makes a synchronous HTTP request by default. To make an
3338+ asynchronous HTTP request, please pass async_req=True
3339+ >>> thread = api.tag_resources(body, async_req=True)
3340+ >>> result = thread.get()
3341+
3342+ :param async_req bool
3343+ :param TagResourcesRequest body: (required)
3344+ :return: TagResourcesResponse
3345+ If the method is called asynchronously,
3346+ returns the request thread.
3347+ """
3348+ kwargs ['_return_http_data_only' ] = True
3349+ if kwargs .get ('async_req' ):
3350+ return self .tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
3351+ else :
3352+ (data ) = self .tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
3353+ return data
3354+
3355+ def tag_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
3356+ """tag_resources # noqa: E501
3357+
3358+ This method makes a synchronous HTTP request by default. To make an
3359+ asynchronous HTTP request, please pass async_req=True
3360+ >>> thread = api.tag_resources_with_http_info(body, async_req=True)
3361+ >>> result = thread.get()
3362+
3363+ :param async_req bool
3364+ :param TagResourcesRequest body: (required)
3365+ :return: TagResourcesResponse
3366+ If the method is called asynchronously,
3367+ returns the request thread.
3368+ """
3369+
3370+ all_params = ['body' ] # noqa: E501
3371+ all_params .append ('async_req' )
3372+ all_params .append ('_return_http_data_only' )
3373+ all_params .append ('_preload_content' )
3374+ all_params .append ('_request_timeout' )
3375+
3376+ params = locals ()
3377+ for key , val in six .iteritems (params ['kwargs' ]):
3378+ if key not in all_params :
3379+ raise TypeError (
3380+ "Got an unexpected keyword argument '%s'"
3381+ " to method tag_resources" % key
3382+ )
3383+ params [key ] = val
3384+ del params ['kwargs' ]
3385+ # verify the required parameter 'body' is set
3386+ if self .api_client .client_side_validation and ('body' not in params or
3387+ params ['body' ] is None ): # noqa: E501
3388+ raise ValueError ("Missing the required parameter `body` when calling `tag_resources`" ) # noqa: E501
3389+
3390+ collection_formats = {}
3391+
3392+ path_params = {}
3393+
3394+ query_params = []
3395+
3396+ header_params = {}
3397+
3398+ form_params = []
3399+ local_var_files = {}
3400+
3401+ body_params = None
3402+ if 'body' in params :
3403+ body_params = params ['body' ]
3404+ # HTTP header `Accept`
3405+ header_params ['Accept' ] = self .api_client .select_header_accept (
3406+ ['application/json' ]) # noqa: E501
3407+
3408+ # HTTP header `Content-Type`
3409+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
3410+ ['text/plain' ]) # noqa: E501
3411+
3412+ # Authentication setting
3413+ auth_settings = ['volcengineSign' ] # noqa: E501
3414+
3415+ return self .api_client .call_api (
3416+ '/TagResources/2020-01-01/auto_scaling/get/text_plain/' , 'GET' ,
3417+ path_params ,
3418+ query_params ,
3419+ header_params ,
3420+ body = body_params ,
3421+ post_params = form_params ,
3422+ files = local_var_files ,
3423+ response_type = 'TagResourcesResponse' , # noqa: E501
3424+ auth_settings = auth_settings ,
3425+ async_req = params .get ('async_req' ),
3426+ _return_http_data_only = params .get ('_return_http_data_only' ),
3427+ _preload_content = params .get ('_preload_content' , True ),
3428+ _request_timeout = params .get ('_request_timeout' ),
3429+ collection_formats = collection_formats )
3430+
3431+ def untag_resources (self , body , ** kwargs ): # noqa: E501
3432+ """untag_resources # noqa: E501
3433+
3434+ This method makes a synchronous HTTP request by default. To make an
3435+ asynchronous HTTP request, please pass async_req=True
3436+ >>> thread = api.untag_resources(body, async_req=True)
3437+ >>> result = thread.get()
3438+
3439+ :param async_req bool
3440+ :param UntagResourcesRequest body: (required)
3441+ :return: UntagResourcesResponse
3442+ If the method is called asynchronously,
3443+ returns the request thread.
3444+ """
3445+ kwargs ['_return_http_data_only' ] = True
3446+ if kwargs .get ('async_req' ):
3447+ return self .untag_resources_with_http_info (body , ** kwargs ) # noqa: E501
3448+ else :
3449+ (data ) = self .untag_resources_with_http_info (body , ** kwargs ) # noqa: E501
3450+ return data
3451+
3452+ def untag_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
3453+ """untag_resources # noqa: E501
3454+
3455+ This method makes a synchronous HTTP request by default. To make an
3456+ asynchronous HTTP request, please pass async_req=True
3457+ >>> thread = api.untag_resources_with_http_info(body, async_req=True)
3458+ >>> result = thread.get()
3459+
3460+ :param async_req bool
3461+ :param UntagResourcesRequest body: (required)
3462+ :return: UntagResourcesResponse
3463+ If the method is called asynchronously,
3464+ returns the request thread.
3465+ """
3466+
3467+ all_params = ['body' ] # noqa: E501
3468+ all_params .append ('async_req' )
3469+ all_params .append ('_return_http_data_only' )
3470+ all_params .append ('_preload_content' )
3471+ all_params .append ('_request_timeout' )
3472+
3473+ params = locals ()
3474+ for key , val in six .iteritems (params ['kwargs' ]):
3475+ if key not in all_params :
3476+ raise TypeError (
3477+ "Got an unexpected keyword argument '%s'"
3478+ " to method untag_resources" % key
3479+ )
3480+ params [key ] = val
3481+ del params ['kwargs' ]
3482+ # verify the required parameter 'body' is set
3483+ if self .api_client .client_side_validation and ('body' not in params or
3484+ params ['body' ] is None ): # noqa: E501
3485+ raise ValueError ("Missing the required parameter `body` when calling `untag_resources`" ) # noqa: E501
3486+
3487+ collection_formats = {}
3488+
3489+ path_params = {}
3490+
3491+ query_params = []
3492+
3493+ header_params = {}
3494+
3495+ form_params = []
3496+ local_var_files = {}
3497+
3498+ body_params = None
3499+ if 'body' in params :
3500+ body_params = params ['body' ]
3501+ # HTTP header `Accept`
3502+ header_params ['Accept' ] = self .api_client .select_header_accept (
3503+ ['application/json' ]) # noqa: E501
3504+
3505+ # HTTP header `Content-Type`
3506+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
3507+ ['text/plain' ]) # noqa: E501
3508+
3509+ # Authentication setting
3510+ auth_settings = ['volcengineSign' ] # noqa: E501
3511+
3512+ return self .api_client .call_api (
3513+ '/UntagResources/2020-01-01/auto_scaling/get/text_plain/' , 'GET' ,
3514+ path_params ,
3515+ query_params ,
3516+ header_params ,
3517+ body = body_params ,
3518+ post_params = form_params ,
3519+ files = local_var_files ,
3520+ response_type = 'UntagResourcesResponse' , # noqa: E501
3521+ auth_settings = auth_settings ,
3522+ async_req = params .get ('async_req' ),
3523+ _return_http_data_only = params .get ('_return_http_data_only' ),
3524+ _preload_content = params .get ('_preload_content' , True ),
3525+ _request_timeout = params .get ('_request_timeout' ),
3526+ collection_formats = collection_formats )
0 commit comments