@@ -2555,6 +2555,103 @@ def describe_load_balancer_attributes_with_http_info(self, body, **kwargs): # n
25552555 _request_timeout = params .get ('_request_timeout' ),
25562556 collection_formats = collection_formats )
25572557
2558+ def describe_load_balancer_specs (self , body , ** kwargs ): # noqa: E501
2559+ """describe_load_balancer_specs # noqa: E501
2560+
2561+ This method makes a synchronous HTTP request by default. To make an
2562+ asynchronous HTTP request, please pass async_req=True
2563+ >>> thread = api.describe_load_balancer_specs(body, async_req=True)
2564+ >>> result = thread.get()
2565+
2566+ :param async_req bool
2567+ :param DescribeLoadBalancerSpecsRequest body: (required)
2568+ :return: DescribeLoadBalancerSpecsResponse
2569+ If the method is called asynchronously,
2570+ returns the request thread.
2571+ """
2572+ kwargs ['_return_http_data_only' ] = True
2573+ if kwargs .get ('async_req' ):
2574+ return self .describe_load_balancer_specs_with_http_info (body , ** kwargs ) # noqa: E501
2575+ else :
2576+ (data ) = self .describe_load_balancer_specs_with_http_info (body , ** kwargs ) # noqa: E501
2577+ return data
2578+
2579+ def describe_load_balancer_specs_with_http_info (self , body , ** kwargs ): # noqa: E501
2580+ """describe_load_balancer_specs # noqa: E501
2581+
2582+ This method makes a synchronous HTTP request by default. To make an
2583+ asynchronous HTTP request, please pass async_req=True
2584+ >>> thread = api.describe_load_balancer_specs_with_http_info(body, async_req=True)
2585+ >>> result = thread.get()
2586+
2587+ :param async_req bool
2588+ :param DescribeLoadBalancerSpecsRequest body: (required)
2589+ :return: DescribeLoadBalancerSpecsResponse
2590+ If the method is called asynchronously,
2591+ returns the request thread.
2592+ """
2593+
2594+ all_params = ['body' ] # noqa: E501
2595+ all_params .append ('async_req' )
2596+ all_params .append ('_return_http_data_only' )
2597+ all_params .append ('_preload_content' )
2598+ all_params .append ('_request_timeout' )
2599+
2600+ params = locals ()
2601+ for key , val in six .iteritems (params ['kwargs' ]):
2602+ if key not in all_params :
2603+ raise TypeError (
2604+ "Got an unexpected keyword argument '%s'"
2605+ " to method describe_load_balancer_specs" % key
2606+ )
2607+ params [key ] = val
2608+ del params ['kwargs' ]
2609+ # verify the required parameter 'body' is set
2610+ if self .api_client .client_side_validation and ('body' not in params or
2611+ params ['body' ] is None ): # noqa: E501
2612+ raise ValueError ("Missing the required parameter `body` when calling `describe_load_balancer_specs`" ) # noqa: E501
2613+
2614+ collection_formats = {}
2615+
2616+ path_params = {}
2617+
2618+ query_params = []
2619+
2620+ header_params = {}
2621+
2622+ form_params = []
2623+ local_var_files = {}
2624+
2625+ body_params = None
2626+ if 'body' in params :
2627+ body_params = params ['body' ]
2628+ # HTTP header `Accept`
2629+ header_params ['Accept' ] = self .api_client .select_header_accept (
2630+ ['application/json' ]) # noqa: E501
2631+
2632+ # HTTP header `Content-Type`
2633+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2634+ ['text/plain' ]) # noqa: E501
2635+
2636+ # Authentication setting
2637+ auth_settings = ['volcengineSign' ] # noqa: E501
2638+
2639+ return self .api_client .call_api (
2640+ '/DescribeLoadBalancerSpecs/2020-04-01/clb/get/text_plain/' , 'GET' ,
2641+ path_params ,
2642+ query_params ,
2643+ header_params ,
2644+ body = body_params ,
2645+ post_params = form_params ,
2646+ files = local_var_files ,
2647+ response_type = 'DescribeLoadBalancerSpecsResponse' , # noqa: E501
2648+ auth_settings = auth_settings ,
2649+ async_req = params .get ('async_req' ),
2650+ _return_http_data_only = params .get ('_return_http_data_only' ),
2651+ _preload_content = params .get ('_preload_content' , True ),
2652+ _request_timeout = params .get ('_request_timeout' ),
2653+ collection_formats = collection_formats )
2654+
25582655 def describe_load_balancers (self , body , ** kwargs ): # noqa: E501
25592656 """describe_load_balancers # noqa: E501
25602657
0 commit comments