@@ -906,103 +906,6 @@ def create_pre_signed_url_with_http_info(self, body, **kwargs): # noqa: E501
906906 _request_timeout = params .get ('_request_timeout' ),
907907 collection_formats = collection_formats )
908908
909- def create_reserved_capacity (self , body , ** kwargs ): # noqa: E501
910- """create_reserved_capacity # noqa: E501
911-
912- This method makes a synchronous HTTP request by default. To make an
913- asynchronous HTTP request, please pass async_req=True
914- >>> thread = api.create_reserved_capacity(body, async_req=True)
915- >>> result = thread.get()
916-
917- :param async_req bool
918- :param CreateReservedCapacityRequest body: (required)
919- :return: CreateReservedCapacityResponse
920- If the method is called asynchronously,
921- returns the request thread.
922- """
923- kwargs ['_return_http_data_only' ] = True
924- if kwargs .get ('async_req' ):
925- return self .create_reserved_capacity_with_http_info (body , ** kwargs ) # noqa: E501
926- else :
927- (data ) = self .create_reserved_capacity_with_http_info (body , ** kwargs ) # noqa: E501
928- return data
929-
930- def create_reserved_capacity_with_http_info (self , body , ** kwargs ): # noqa: E501
931- """create_reserved_capacity # noqa: E501
932-
933- This method makes a synchronous HTTP request by default. To make an
934- asynchronous HTTP request, please pass async_req=True
935- >>> thread = api.create_reserved_capacity_with_http_info(body, async_req=True)
936- >>> result = thread.get()
937-
938- :param async_req bool
939- :param CreateReservedCapacityRequest body: (required)
940- :return: CreateReservedCapacityResponse
941- If the method is called asynchronously,
942- returns the request thread.
943- """
944-
945- all_params = ['body' ] # noqa: E501
946- all_params .append ('async_req' )
947- all_params .append ('_return_http_data_only' )
948- all_params .append ('_preload_content' )
949- all_params .append ('_request_timeout' )
950-
951- params = locals ()
952- for key , val in six .iteritems (params ['kwargs' ]):
953- if key not in all_params :
954- raise TypeError (
955- "Got an unexpected keyword argument '%s'"
956- " to method create_reserved_capacity" % key
957- )
958- params [key ] = val
959- del params ['kwargs' ]
960- # verify the required parameter 'body' is set
961- if self .api_client .client_side_validation and ('body' not in params or
962- params ['body' ] is None ): # noqa: E501
963- raise ValueError ("Missing the required parameter `body` when calling `create_reserved_capacity`" ) # noqa: E501
964-
965- collection_formats = {}
966-
967- path_params = {}
968-
969- query_params = []
970-
971- header_params = {}
972-
973- form_params = []
974- local_var_files = {}
975-
976- body_params = None
977- if 'body' in params :
978- body_params = params ['body' ]
979- # HTTP header `Accept`
980- header_params ['Accept' ] = self .api_client .select_header_accept (
981- ['application/json' ]) # noqa: E501
982-
983- # HTTP header `Content-Type`
984- header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
985- ['application/json' ]) # noqa: E501
986-
987- # Authentication setting
988- auth_settings = ['volcengineSign' ] # noqa: E501
989-
990- return self .api_client .call_api (
991- '/CreateReservedCapacity/2022-01-01/filenas/post/application_json/' , 'POST' ,
992- path_params ,
993- query_params ,
994- header_params ,
995- body = body_params ,
996- post_params = form_params ,
997- files = local_var_files ,
998- response_type = 'CreateReservedCapacityResponse' , # noqa: E501
999- auth_settings = auth_settings ,
1000- async_req = params .get ('async_req' ),
1001- _return_http_data_only = params .get ('_return_http_data_only' ),
1002- _preload_content = params .get ('_preload_content' , True ),
1003- _request_timeout = params .get ('_request_timeout' ),
1004- collection_formats = collection_formats )
1005-
1006909 def create_snapshot (self , body , ** kwargs ): # noqa: E501
1007910 """create_snapshot # noqa: E501
1008911
@@ -2943,103 +2846,6 @@ def describe_regions_with_http_info(self, body, **kwargs): # noqa: E501
29432846 _request_timeout = params .get ('_request_timeout' ),
29442847 collection_formats = collection_formats )
29452848
2946- def describe_reserved_capacitys (self , body , ** kwargs ): # noqa: E501
2947- """describe_reserved_capacitys # 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.describe_reserved_capacitys(body, async_req=True)
2952- >>> result = thread.get()
2953-
2954- :param async_req bool
2955- :param DescribeReservedCapacitysRequest body: (required)
2956- :return: DescribeReservedCapacitysResponse
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 .describe_reserved_capacitys_with_http_info (body , ** kwargs ) # noqa: E501
2963- else :
2964- (data ) = self .describe_reserved_capacitys_with_http_info (body , ** kwargs ) # noqa: E501
2965- return data
2966-
2967- def describe_reserved_capacitys_with_http_info (self , body , ** kwargs ): # noqa: E501
2968- """describe_reserved_capacitys # 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.describe_reserved_capacitys_with_http_info(body, async_req=True)
2973- >>> result = thread.get()
2974-
2975- :param async_req bool
2976- :param DescribeReservedCapacitysRequest body: (required)
2977- :return: DescribeReservedCapacitysResponse
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 describe_reserved_capacitys" % 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 `describe_reserved_capacitys`" ) # 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- '/DescribeReservedCapacitys/2022-01-01/filenas/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 = 'DescribeReservedCapacitysResponse' , # 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-
30432849 def describe_snapshots (self , body , ** kwargs ): # noqa: E501
30442850 """describe_snapshots # noqa: E501
30452851
0 commit comments