Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
670 changes: 670 additions & 0 deletions lib/zitadel/client/api/action_service_api.rb

Large diffs are not rendered by default.

147 changes: 0 additions & 147 deletions lib/zitadel/client/api/settings_api.rb

This file was deleted.

125 changes: 125 additions & 0 deletions lib/zitadel/client/api/settings_service_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,131 @@ def settings_service_get_password_expiry_settings_with_http_info(opts = {})
@api_client.config.logger.debug "API called: Api::SettingsServiceApi#settings_service_get_password_expiry_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
end
return data, status_code, headers
end

# Get Security Settings
# Returns the security settings of the ZITADEL instance.
# @param [Hash] opts the optional parameters
# @return [SettingsServiceGetSecuritySettingsResponse]
def settings_service_get_security_settings(opts = {})
data, _status_code, _headers = settings_service_get_security_settings_with_http_info(opts)
data
end

# Get Security Settings
# Returns the security settings of the ZITADEL instance.
# @param [Hash] opts the optional parameters
# @return [Array<(SettingsServiceGetSecuritySettingsResponse, Integer, Hash)>] SettingsServiceGetSecuritySettingsResponse data, response status code and response headers
def settings_service_get_security_settings_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: Api::SettingsServiceApi.settings_service_get_security_settings ...' # MODIFIED
end
# resource path
local_var_path = '/v2/settings/security'

# query parameters
query_params = opts[:query_params] || {}

# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

# form parameters
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:debug_body]

# return_type
return_type = opts[:debug_return_type] || 'SettingsServiceGetSecuritySettingsResponse'

# auth_names
auth_names = opts[:debug_auth_names] || ['zitadelAccessToken']

new_options = opts.merge(
:operation => :"Api::SettingsServiceApi.settings_service_get_security_settings", # MODIFIED
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)

data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: Api::SettingsServiceApi#settings_service_get_security_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
end
return data, status_code, headers
end

# Set Security Settings
# Set the security settings of the ZITADEL instance.
# @param settings_service_set_security_settings_request [SettingsServiceSetSecuritySettingsRequest]
# @param [Hash] opts the optional parameters
# @return [SettingsServiceSetSecuritySettingsResponse]
def settings_service_set_security_settings(settings_service_set_security_settings_request, opts = {})
data, _status_code, _headers = settings_service_set_security_settings_with_http_info(settings_service_set_security_settings_request, opts)
data
end

# Set Security Settings
# Set the security settings of the ZITADEL instance.
# @param settings_service_set_security_settings_request [SettingsServiceSetSecuritySettingsRequest]
# @param [Hash] opts the optional parameters
# @return [Array<(SettingsServiceSetSecuritySettingsResponse, Integer, Hash)>] SettingsServiceSetSecuritySettingsResponse data, response status code and response headers
def settings_service_set_security_settings_with_http_info(settings_service_set_security_settings_request, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: Api::SettingsServiceApi.settings_service_set_security_settings ...' # MODIFIED
end
# verify the required parameter 'settings_service_set_security_settings_request' is set
if @api_client.config.client_side_validation && settings_service_set_security_settings_request.nil?
fail ArgumentError, "Missing the required parameter 'settings_service_set_security_settings_request' when calling Api::SettingsServiceApi.settings_service_set_security_settings" # MODIFIED
end
# resource path
local_var_path = '/v2/policies/security'

# query parameters
query_params = opts[:query_params] || {}

# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end

# form parameters
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:debug_body] || @api_client.object_to_http_body(settings_service_set_security_settings_request)

# return_type
return_type = opts[:debug_return_type] || 'SettingsServiceSetSecuritySettingsResponse'

# auth_names
auth_names = opts[:debug_auth_names] || ['zitadelAccessToken']

new_options = opts.merge(
:operation => :"Api::SettingsServiceApi.settings_service_set_security_settings", # MODIFIED
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)

data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: Api::SettingsServiceApi#settings_service_set_security_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
end
return data, status_code, headers
end
end
end
Loading
Loading