@@ -2238,6 +2238,111 @@ def update_configuration_with_http_info(self, account_id, **kwargs):
22382238 _request_timeout = params .get ('_request_timeout' ),
22392239 collection_formats = collection_formats )
22402240
2241+ def update_connect_o_auth_config (self , account_id , ** kwargs ):
2242+ """
2243+ Updates the existing Connect OAuth Config for the account.
2244+ This method makes a synchronous HTTP request by default. To make an
2245+ asynchronous HTTP request, please define a `callback` function
2246+ to be invoked when receiving the response.
2247+ >>> def callback_function(response):
2248+ >>> pprint(response)
2249+ >>>
2250+ >>> thread = api.update_connect_o_auth_config(account_id, callback=callback_function)
2251+
2252+ :param callback function: The callback function
2253+ for asynchronous request. (optional)
2254+ :param str account_id: The external account number (int) or account ID Guid. (required)
2255+ :param ConnectOAuthConfig connect_o_auth_config:
2256+ :return: ConnectOAuthConfig
2257+ If the method is called asynchronously,
2258+ returns the request thread.
2259+ """
2260+ kwargs ['_return_http_data_only' ] = True
2261+ if kwargs .get ('callback' ):
2262+ return self .update_connect_o_auth_config_with_http_info (account_id , ** kwargs )
2263+ else :
2264+ (data ) = self .update_connect_o_auth_config_with_http_info (account_id , ** kwargs )
2265+ return data
2266+
2267+ def update_connect_o_auth_config_with_http_info (self , account_id , ** kwargs ):
2268+ """
2269+ Updates the existing Connect OAuth Config for the account.
2270+ This method makes a synchronous HTTP request by default. To make an
2271+ asynchronous HTTP request, please define a `callback` function
2272+ to be invoked when receiving the response.
2273+ >>> def callback_function(response):
2274+ >>> pprint(response)
2275+ >>>
2276+ >>> thread = api.update_connect_o_auth_config_with_http_info(account_id, callback=callback_function)
2277+
2278+ :param callback function: The callback function
2279+ for asynchronous request. (optional)
2280+ :param str account_id: The external account number (int) or account ID Guid. (required)
2281+ :param ConnectOAuthConfig connect_o_auth_config:
2282+ :return: ConnectOAuthConfig
2283+ If the method is called asynchronously,
2284+ returns the request thread.
2285+ """
2286+
2287+ all_params = ['account_id' , 'connect_o_auth_config' ]
2288+ all_params .append ('callback' )
2289+ all_params .append ('_return_http_data_only' )
2290+ all_params .append ('_preload_content' )
2291+ all_params .append ('_request_timeout' )
2292+
2293+ params = locals ()
2294+ for key , val in iteritems (params ['kwargs' ]):
2295+ if key not in all_params :
2296+ raise TypeError (
2297+ "Got an unexpected keyword argument '%s'"
2298+ " to method update_connect_o_auth_config" % key
2299+ )
2300+ params [key ] = val
2301+ del params ['kwargs' ]
2302+ # verify the required parameter 'account_id' is set
2303+ if ('account_id' not in params ) or (params ['account_id' ] is None ):
2304+ raise ValueError ("Missing the required parameter `account_id` when calling `update_connect_o_auth_config`" )
2305+
2306+
2307+ collection_formats = {}
2308+
2309+ resource_path = '/v2.1/accounts/{accountId}/connect/oauth' .replace ('{format}' , 'json' )
2310+ path_params = {}
2311+ if 'account_id' in params :
2312+ path_params ['accountId' ] = params ['account_id' ]
2313+
2314+ query_params = {}
2315+
2316+ header_params = {}
2317+
2318+ form_params = []
2319+ local_var_files = {}
2320+
2321+ body_params = None
2322+ if 'connect_o_auth_config' in params :
2323+ body_params = params ['connect_o_auth_config' ]
2324+ # HTTP header `Accept`
2325+ header_params ['Accept' ] = self .api_client .\
2326+ select_header_accept (['application/json' ])
2327+
2328+ # Authentication setting
2329+ auth_settings = []
2330+
2331+ return self .api_client .call_api (resource_path , 'PUT' ,
2332+ path_params ,
2333+ query_params ,
2334+ header_params ,
2335+ body = body_params ,
2336+ post_params = form_params ,
2337+ files = local_var_files ,
2338+ response_type = 'ConnectOAuthConfig' ,
2339+ auth_settings = auth_settings ,
2340+ callback = params .get ('callback' ),
2341+ _return_http_data_only = params .get ('_return_http_data_only' ),
2342+ _preload_content = params .get ('_preload_content' , True ),
2343+ _request_timeout = params .get ('_request_timeout' ),
2344+ collection_formats = collection_formats )
2345+
22412346 def update_mobile_notifiers (self , account_id , ** kwargs ):
22422347 """
22432348 Reserved
0 commit comments