@@ -335,6 +335,73 @@ def list_saml_configurations_with_http_info(opts = {})
335335 return data , status_code , headers
336336 end
337337
338+ # Update the maximum session duration.
339+ #
340+ # @see #update_login_org_configs_max_session_duration_with_http_info
341+ def update_login_org_configs_max_session_duration ( body , opts = { } )
342+ update_login_org_configs_max_session_duration_with_http_info ( body , opts )
343+ nil
344+ end
345+
346+ # Update the maximum session duration.
347+ #
348+ # Update the maximum session duration for the current organization. The duration is specified in seconds.
349+ #
350+ # @param body [MaxSessionDurationUpdateRequest]
351+ # @param opts [Hash] the optional parameters
352+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
353+ def update_login_org_configs_max_session_duration_with_http_info ( body , opts = { } )
354+
355+ if @api_client . config . debugging
356+ @api_client . config . logger . debug 'Calling API: OrganizationsAPI.update_login_org_configs_max_session_duration ...'
357+ end
358+ # verify the required parameter 'body' is set
359+ if @api_client . config . client_side_validation && body . nil?
360+ fail ArgumentError , "Missing the required parameter 'body' when calling OrganizationsAPI.update_login_org_configs_max_session_duration"
361+ end
362+ # resource path
363+ local_var_path = '/api/v2/login/org_configs/max_session_duration'
364+
365+ # query parameters
366+ query_params = opts [ :query_params ] || { }
367+
368+ # header parameters
369+ header_params = opts [ :header_params ] || { }
370+ # HTTP header 'Accept' (if needed)
371+ header_params [ 'Accept' ] = @api_client . select_header_accept ( [ '*/*' ] )
372+ # HTTP header 'Content-Type'
373+ header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] )
374+
375+ # form parameters
376+ form_params = opts [ :form_params ] || { }
377+
378+ # http body (model)
379+ post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( body )
380+
381+ # return_type
382+ return_type = opts [ :debug_return_type ]
383+
384+ # auth_names
385+ auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth , :AuthZ ]
386+
387+ new_options = opts . merge (
388+ :operation => :update_login_org_configs_max_session_duration ,
389+ :header_params => header_params ,
390+ :query_params => query_params ,
391+ :form_params => form_params ,
392+ :body => post_body ,
393+ :auth_names => auth_names ,
394+ :return_type => return_type ,
395+ :api_version => "V2"
396+ )
397+
398+ data , status_code , headers = @api_client . call_api ( Net ::HTTP ::Put , local_var_path , new_options )
399+ if @api_client . config . debugging
400+ @api_client . config . logger . debug "API called: OrganizationsAPI#update_login_org_configs_max_session_duration\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
401+ end
402+ return data , status_code , headers
403+ end
404+
338405 # Update a specific Org Config.
339406 #
340407 # @see #update_org_config_with_http_info
0 commit comments