@@ -324,6 +324,103 @@ def clean_up_financial_relation_with_http_info(self, body, **kwargs): # noqa: E
324324 _request_timeout = params .get ('_request_timeout' ),
325325 collection_formats = collection_formats )
326326
327+ def common_buy (self , body , ** kwargs ): # noqa: E501
328+ """common_buy # noqa: E501
329+
330+ This method makes a synchronous HTTP request by default. To make an
331+ asynchronous HTTP request, please pass async_req=True
332+ >>> thread = api.common_buy(body, async_req=True)
333+ >>> result = thread.get()
334+
335+ :param async_req bool
336+ :param CommonBuyRequest body: (required)
337+ :return: CommonBuyResponse
338+ If the method is called asynchronously,
339+ returns the request thread.
340+ """
341+ kwargs ['_return_http_data_only' ] = True
342+ if kwargs .get ('async_req' ):
343+ return self .common_buy_with_http_info (body , ** kwargs ) # noqa: E501
344+ else :
345+ (data ) = self .common_buy_with_http_info (body , ** kwargs ) # noqa: E501
346+ return data
347+
348+ def common_buy_with_http_info (self , body , ** kwargs ): # noqa: E501
349+ """common_buy # noqa: E501
350+
351+ This method makes a synchronous HTTP request by default. To make an
352+ asynchronous HTTP request, please pass async_req=True
353+ >>> thread = api.common_buy_with_http_info(body, async_req=True)
354+ >>> result = thread.get()
355+
356+ :param async_req bool
357+ :param CommonBuyRequest body: (required)
358+ :return: CommonBuyResponse
359+ If the method is called asynchronously,
360+ returns the request thread.
361+ """
362+
363+ all_params = ['body' ] # noqa: E501
364+ all_params .append ('async_req' )
365+ all_params .append ('_return_http_data_only' )
366+ all_params .append ('_preload_content' )
367+ all_params .append ('_request_timeout' )
368+
369+ params = locals ()
370+ for key , val in six .iteritems (params ['kwargs' ]):
371+ if key not in all_params :
372+ raise TypeError (
373+ "Got an unexpected keyword argument '%s'"
374+ " to method common_buy" % key
375+ )
376+ params [key ] = val
377+ del params ['kwargs' ]
378+ # verify the required parameter 'body' is set
379+ if self .api_client .client_side_validation and ('body' not in params or
380+ params ['body' ] is None ): # noqa: E501
381+ raise ValueError ("Missing the required parameter `body` when calling `common_buy`" ) # noqa: E501
382+
383+ collection_formats = {}
384+
385+ path_params = {}
386+
387+ query_params = []
388+
389+ header_params = {}
390+
391+ form_params = []
392+ local_var_files = {}
393+
394+ body_params = None
395+ if 'body' in params :
396+ body_params = params ['body' ]
397+ # HTTP header `Accept`
398+ header_params ['Accept' ] = self .api_client .select_header_accept (
399+ ['application/json' ]) # noqa: E501
400+
401+ # HTTP header `Content-Type`
402+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
403+ ['application/json' ]) # noqa: E501
404+
405+ # Authentication setting
406+ auth_settings = ['volcengineSign' ] # noqa: E501
407+
408+ return self .api_client .call_api (
409+ '/CommonBuy/2022-01-01/billing/post/application_json/' , 'POST' ,
410+ path_params ,
411+ query_params ,
412+ header_params ,
413+ body = body_params ,
414+ post_params = form_params ,
415+ files = local_var_files ,
416+ response_type = 'CommonBuyResponse' , # noqa: E501
417+ auth_settings = auth_settings ,
418+ async_req = params .get ('async_req' ),
419+ _return_http_data_only = params .get ('_return_http_data_only' ),
420+ _preload_content = params .get ('_preload_content' , True ),
421+ _request_timeout = params .get ('_request_timeout' ),
422+ collection_formats = collection_formats )
423+
327424 def create_budget (self , body , ** kwargs ): # noqa: E501
328425 """create_budget # noqa: E501
329426
@@ -2846,6 +2943,103 @@ def list_budget_filter_zone_code_with_http_info(self, body, **kwargs): # noqa:
28462943 _request_timeout = params .get ('_request_timeout' ),
28472944 collection_formats = collection_formats )
28482945
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+
28493043 def list_coupon_usage_records (self , body , ** kwargs ): # noqa: E501
28503044 """list_coupon_usage_records # noqa: E501
28513045
0 commit comments