@@ -2943,103 +2943,6 @@ def list_budget_filter_zone_code_with_http_info(self, body, **kwargs): # noqa:
29432943 _request_timeout = params .get ('_request_timeout' ),
29442944 collection_formats = collection_formats )
29452945
2946- def list_cost_analysis (self , body , ** kwargs ): # noqa: E501
2947- """list_cost_analysis # noqa: E501
2948-
2949- This method makes a synchronous HTTP request by default. To make an
2950- asynchronous HTTP request, please pass async_req=True
2951- >>> thread = api.list_cost_analysis(body, async_req=True)
2952- >>> result = thread.get()
2953-
2954- :param async_req bool
2955- :param ListCostAnalysisRequest body: (required)
2956- :return: ListCostAnalysisResponse
2957- If the method is called asynchronously,
2958- returns the request thread.
2959- """
2960- kwargs ['_return_http_data_only' ] = True
2961- if kwargs .get ('async_req' ):
2962- return self .list_cost_analysis_with_http_info (body , ** kwargs ) # noqa: E501
2963- else :
2964- (data ) = self .list_cost_analysis_with_http_info (body , ** kwargs ) # noqa: E501
2965- return data
2966-
2967- def list_cost_analysis_with_http_info (self , body , ** kwargs ): # noqa: E501
2968- """list_cost_analysis # noqa: E501
2969-
2970- This method makes a synchronous HTTP request by default. To make an
2971- asynchronous HTTP request, please pass async_req=True
2972- >>> thread = api.list_cost_analysis_with_http_info(body, async_req=True)
2973- >>> result = thread.get()
2974-
2975- :param async_req bool
2976- :param ListCostAnalysisRequest body: (required)
2977- :return: ListCostAnalysisResponse
2978- If the method is called asynchronously,
2979- returns the request thread.
2980- """
2981-
2982- all_params = ['body' ] # noqa: E501
2983- all_params .append ('async_req' )
2984- all_params .append ('_return_http_data_only' )
2985- all_params .append ('_preload_content' )
2986- all_params .append ('_request_timeout' )
2987-
2988- params = locals ()
2989- for key , val in six .iteritems (params ['kwargs' ]):
2990- if key not in all_params :
2991- raise TypeError (
2992- "Got an unexpected keyword argument '%s'"
2993- " to method list_cost_analysis" % key
2994- )
2995- params [key ] = val
2996- del params ['kwargs' ]
2997- # verify the required parameter 'body' is set
2998- if self .api_client .client_side_validation and ('body' not in params or
2999- params ['body' ] is None ): # noqa: E501
3000- raise ValueError ("Missing the required parameter `body` when calling `list_cost_analysis`" ) # noqa: E501
3001-
3002- collection_formats = {}
3003-
3004- path_params = {}
3005-
3006- query_params = []
3007-
3008- header_params = {}
3009-
3010- form_params = []
3011- local_var_files = {}
3012-
3013- body_params = None
3014- if 'body' in params :
3015- body_params = params ['body' ]
3016- # HTTP header `Accept`
3017- header_params ['Accept' ] = self .api_client .select_header_accept (
3018- ['application/json' ]) # noqa: E501
3019-
3020- # HTTP header `Content-Type`
3021- header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
3022- ['application/json' ]) # noqa: E501
3023-
3024- # Authentication setting
3025- auth_settings = ['volcengineSign' ] # noqa: E501
3026-
3027- return self .api_client .call_api (
3028- '/ListCostAnalysis/2022-01-01/billing/post/application_json/' , 'POST' ,
3029- path_params ,
3030- query_params ,
3031- header_params ,
3032- body = body_params ,
3033- post_params = form_params ,
3034- files = local_var_files ,
3035- response_type = 'ListCostAnalysisResponse' , # noqa: E501
3036- auth_settings = auth_settings ,
3037- async_req = params .get ('async_req' ),
3038- _return_http_data_only = params .get ('_return_http_data_only' ),
3039- _preload_content = params .get ('_preload_content' , True ),
3040- _request_timeout = params .get ('_request_timeout' ),
3041- collection_formats = collection_formats )
3042-
30432946 def list_coupon_usage_records (self , body , ** kwargs ): # noqa: E501
30442947 """list_coupon_usage_records # noqa: E501
30452948
0 commit comments