@@ -1197,6 +1197,103 @@ def forward_kubernetes_api_with_http_info(self, body, **kwargs): # noqa: E501
11971197 _request_timeout = params .get ('_request_timeout' ),
11981198 collection_formats = collection_formats )
11991199
1200+ def get_global_default_delete_option (self , body , ** kwargs ): # noqa: E501
1201+ """get_global_default_delete_option # noqa: E501
1202+
1203+ This method makes a synchronous HTTP request by default. To make an
1204+ asynchronous HTTP request, please pass async_req=True
1205+ >>> thread = api.get_global_default_delete_option(body, async_req=True)
1206+ >>> result = thread.get()
1207+
1208+ :param async_req bool
1209+ :param GetGlobalDefaultDeleteOptionRequest body: (required)
1210+ :return: GetGlobalDefaultDeleteOptionResponse
1211+ If the method is called asynchronously,
1212+ returns the request thread.
1213+ """
1214+ kwargs ['_return_http_data_only' ] = True
1215+ if kwargs .get ('async_req' ):
1216+ return self .get_global_default_delete_option_with_http_info (body , ** kwargs ) # noqa: E501
1217+ else :
1218+ (data ) = self .get_global_default_delete_option_with_http_info (body , ** kwargs ) # noqa: E501
1219+ return data
1220+
1221+ def get_global_default_delete_option_with_http_info (self , body , ** kwargs ): # noqa: E501
1222+ """get_global_default_delete_option # noqa: E501
1223+
1224+ This method makes a synchronous HTTP request by default. To make an
1225+ asynchronous HTTP request, please pass async_req=True
1226+ >>> thread = api.get_global_default_delete_option_with_http_info(body, async_req=True)
1227+ >>> result = thread.get()
1228+
1229+ :param async_req bool
1230+ :param GetGlobalDefaultDeleteOptionRequest body: (required)
1231+ :return: GetGlobalDefaultDeleteOptionResponse
1232+ If the method is called asynchronously,
1233+ returns the request thread.
1234+ """
1235+
1236+ all_params = ['body' ] # noqa: E501
1237+ all_params .append ('async_req' )
1238+ all_params .append ('_return_http_data_only' )
1239+ all_params .append ('_preload_content' )
1240+ all_params .append ('_request_timeout' )
1241+
1242+ params = locals ()
1243+ for key , val in six .iteritems (params ['kwargs' ]):
1244+ if key not in all_params :
1245+ raise TypeError (
1246+ "Got an unexpected keyword argument '%s'"
1247+ " to method get_global_default_delete_option" % key
1248+ )
1249+ params [key ] = val
1250+ del params ['kwargs' ]
1251+ # verify the required parameter 'body' is set
1252+ if self .api_client .client_side_validation and ('body' not in params or
1253+ params ['body' ] is None ): # noqa: E501
1254+ raise ValueError ("Missing the required parameter `body` when calling `get_global_default_delete_option`" ) # noqa: E501
1255+
1256+ collection_formats = {}
1257+
1258+ path_params = {}
1259+
1260+ query_params = []
1261+
1262+ header_params = {}
1263+
1264+ form_params = []
1265+ local_var_files = {}
1266+
1267+ body_params = None
1268+ if 'body' in params :
1269+ body_params = params ['body' ]
1270+ # HTTP header `Accept`
1271+ header_params ['Accept' ] = self .api_client .select_header_accept (
1272+ ['application/json' ]) # noqa: E501
1273+
1274+ # HTTP header `Content-Type`
1275+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1276+ ['application/json' ]) # noqa: E501
1277+
1278+ # Authentication setting
1279+ auth_settings = ['volcengineSign' ] # noqa: E501
1280+
1281+ return self .api_client .call_api (
1282+ '/GetGlobalDefaultDeleteOption/2022-05-12/vke/post/application_json/' , 'POST' ,
1283+ path_params ,
1284+ query_params ,
1285+ header_params ,
1286+ body = body_params ,
1287+ post_params = form_params ,
1288+ files = local_var_files ,
1289+ response_type = 'GetGlobalDefaultDeleteOptionResponse' , # noqa: E501
1290+ auth_settings = auth_settings ,
1291+ async_req = params .get ('async_req' ),
1292+ _return_http_data_only = params .get ('_return_http_data_only' ),
1293+ _preload_content = params .get ('_preload_content' , True ),
1294+ _request_timeout = params .get ('_request_timeout' ),
1295+ collection_formats = collection_formats )
1296+
12001297 def list_addons (self , body , ** kwargs ): # noqa: E501
12011298 """list_addons # noqa: E501
12021299
@@ -1973,6 +2070,103 @@ def list_tags_for_resources_with_http_info(self, body, **kwargs): # noqa: E501
19732070 _request_timeout = params .get ('_request_timeout' ),
19742071 collection_formats = collection_formats )
19752072
2073+ def set_global_default_delete_option (self , body , ** kwargs ): # noqa: E501
2074+ """set_global_default_delete_option # noqa: E501
2075+
2076+ This method makes a synchronous HTTP request by default. To make an
2077+ asynchronous HTTP request, please pass async_req=True
2078+ >>> thread = api.set_global_default_delete_option(body, async_req=True)
2079+ >>> result = thread.get()
2080+
2081+ :param async_req bool
2082+ :param SetGlobalDefaultDeleteOptionRequest body: (required)
2083+ :return: SetGlobalDefaultDeleteOptionResponse
2084+ If the method is called asynchronously,
2085+ returns the request thread.
2086+ """
2087+ kwargs ['_return_http_data_only' ] = True
2088+ if kwargs .get ('async_req' ):
2089+ return self .set_global_default_delete_option_with_http_info (body , ** kwargs ) # noqa: E501
2090+ else :
2091+ (data ) = self .set_global_default_delete_option_with_http_info (body , ** kwargs ) # noqa: E501
2092+ return data
2093+
2094+ def set_global_default_delete_option_with_http_info (self , body , ** kwargs ): # noqa: E501
2095+ """set_global_default_delete_option # noqa: E501
2096+
2097+ This method makes a synchronous HTTP request by default. To make an
2098+ asynchronous HTTP request, please pass async_req=True
2099+ >>> thread = api.set_global_default_delete_option_with_http_info(body, async_req=True)
2100+ >>> result = thread.get()
2101+
2102+ :param async_req bool
2103+ :param SetGlobalDefaultDeleteOptionRequest body: (required)
2104+ :return: SetGlobalDefaultDeleteOptionResponse
2105+ If the method is called asynchronously,
2106+ returns the request thread.
2107+ """
2108+
2109+ all_params = ['body' ] # noqa: E501
2110+ all_params .append ('async_req' )
2111+ all_params .append ('_return_http_data_only' )
2112+ all_params .append ('_preload_content' )
2113+ all_params .append ('_request_timeout' )
2114+
2115+ params = locals ()
2116+ for key , val in six .iteritems (params ['kwargs' ]):
2117+ if key not in all_params :
2118+ raise TypeError (
2119+ "Got an unexpected keyword argument '%s'"
2120+ " to method set_global_default_delete_option" % key
2121+ )
2122+ params [key ] = val
2123+ del params ['kwargs' ]
2124+ # verify the required parameter 'body' is set
2125+ if self .api_client .client_side_validation and ('body' not in params or
2126+ params ['body' ] is None ): # noqa: E501
2127+ raise ValueError ("Missing the required parameter `body` when calling `set_global_default_delete_option`" ) # noqa: E501
2128+
2129+ collection_formats = {}
2130+
2131+ path_params = {}
2132+
2133+ query_params = []
2134+
2135+ header_params = {}
2136+
2137+ form_params = []
2138+ local_var_files = {}
2139+
2140+ body_params = None
2141+ if 'body' in params :
2142+ body_params = params ['body' ]
2143+ # HTTP header `Accept`
2144+ header_params ['Accept' ] = self .api_client .select_header_accept (
2145+ ['application/json' ]) # noqa: E501
2146+
2147+ # HTTP header `Content-Type`
2148+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2149+ ['application/json' ]) # noqa: E501
2150+
2151+ # Authentication setting
2152+ auth_settings = ['volcengineSign' ] # noqa: E501
2153+
2154+ return self .api_client .call_api (
2155+ '/SetGlobalDefaultDeleteOption/2022-05-12/vke/post/application_json/' , 'POST' ,
2156+ path_params ,
2157+ query_params ,
2158+ header_params ,
2159+ body = body_params ,
2160+ post_params = form_params ,
2161+ files = local_var_files ,
2162+ response_type = 'SetGlobalDefaultDeleteOptionResponse' , # noqa: E501
2163+ auth_settings = auth_settings ,
2164+ async_req = params .get ('async_req' ),
2165+ _return_http_data_only = params .get ('_return_http_data_only' ),
2166+ _preload_content = params .get ('_preload_content' , True ),
2167+ _request_timeout = params .get ('_request_timeout' ),
2168+ collection_formats = collection_formats )
2169+
19762170 def tag_resources (self , body , ** kwargs ): # noqa: E501
19772171 """tag_resources # noqa: E501
19782172
0 commit comments