@@ -2167,6 +2167,103 @@ def list_views_with_http_info(self, body, **kwargs): # noqa: E501
21672167 _request_timeout = params .get ('_request_timeout' ),
21682168 collection_formats = collection_formats )
21692169
2170+ def submit_oversea_preload_task (self , body , ** kwargs ): # noqa: E501
2171+ """submit_oversea_preload_task # noqa: E501
2172+
2173+ This method makes a synchronous HTTP request by default. To make an
2174+ asynchronous HTTP request, please pass async_req=True
2175+ >>> thread = api.submit_oversea_preload_task(body, async_req=True)
2176+ >>> result = thread.get()
2177+
2178+ :param async_req bool
2179+ :param SubmitOverseaPreloadTaskRequest body: (required)
2180+ :return: SubmitOverseaPreloadTaskResponse
2181+ If the method is called asynchronously,
2182+ returns the request thread.
2183+ """
2184+ kwargs ['_return_http_data_only' ] = True
2185+ if kwargs .get ('async_req' ):
2186+ return self .submit_oversea_preload_task_with_http_info (body , ** kwargs ) # noqa: E501
2187+ else :
2188+ (data ) = self .submit_oversea_preload_task_with_http_info (body , ** kwargs ) # noqa: E501
2189+ return data
2190+
2191+ def submit_oversea_preload_task_with_http_info (self , body , ** kwargs ): # noqa: E501
2192+ """submit_oversea_preload_task # noqa: E501
2193+
2194+ This method makes a synchronous HTTP request by default. To make an
2195+ asynchronous HTTP request, please pass async_req=True
2196+ >>> thread = api.submit_oversea_preload_task_with_http_info(body, async_req=True)
2197+ >>> result = thread.get()
2198+
2199+ :param async_req bool
2200+ :param SubmitOverseaPreloadTaskRequest body: (required)
2201+ :return: SubmitOverseaPreloadTaskResponse
2202+ If the method is called asynchronously,
2203+ returns the request thread.
2204+ """
2205+
2206+ all_params = ['body' ] # noqa: E501
2207+ all_params .append ('async_req' )
2208+ all_params .append ('_return_http_data_only' )
2209+ all_params .append ('_preload_content' )
2210+ all_params .append ('_request_timeout' )
2211+
2212+ params = locals ()
2213+ for key , val in six .iteritems (params ['kwargs' ]):
2214+ if key not in all_params :
2215+ raise TypeError (
2216+ "Got an unexpected keyword argument '%s'"
2217+ " to method submit_oversea_preload_task" % key
2218+ )
2219+ params [key ] = val
2220+ del params ['kwargs' ]
2221+ # verify the required parameter 'body' is set
2222+ if self .api_client .client_side_validation and ('body' not in params or
2223+ params ['body' ] is None ): # noqa: E501
2224+ raise ValueError ("Missing the required parameter `body` when calling `submit_oversea_preload_task`" ) # noqa: E501
2225+
2226+ collection_formats = {}
2227+
2228+ path_params = {}
2229+
2230+ query_params = []
2231+
2232+ header_params = {}
2233+
2234+ form_params = []
2235+ local_var_files = {}
2236+
2237+ body_params = None
2238+ if 'body' in params :
2239+ body_params = params ['body' ]
2240+ # HTTP header `Accept`
2241+ header_params ['Accept' ] = self .api_client .select_header_accept (
2242+ ['application/json' ]) # noqa: E501
2243+
2244+ # HTTP header `Content-Type`
2245+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2246+ ['application/json' ]) # noqa: E501
2247+
2248+ # Authentication setting
2249+ auth_settings = ['volcengineSign' ] # noqa: E501
2250+
2251+ return self .api_client .call_api (
2252+ '/SubmitOverseaPreloadTask/2022-03-01/mcdn/post/application_json/' , 'POST' ,
2253+ path_params ,
2254+ query_params ,
2255+ header_params ,
2256+ body = body_params ,
2257+ post_params = form_params ,
2258+ files = local_var_files ,
2259+ response_type = 'SubmitOverseaPreloadTaskResponse' , # noqa: E501
2260+ auth_settings = auth_settings ,
2261+ async_req = params .get ('async_req' ),
2262+ _return_http_data_only = params .get ('_return_http_data_only' ),
2263+ _preload_content = params .get ('_preload_content' , True ),
2264+ _request_timeout = params .get ('_request_timeout' ),
2265+ collection_formats = collection_formats )
2266+
21702267 def submit_preload_task (self , body , ** kwargs ): # noqa: E501
21712268 """submit_preload_task # noqa: E501
21722269
0 commit comments