class SwaggerAemClient::CustomApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/swagger_aem/api/custom_api.rb, line 19
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Public Instance Methods

get_aem_health_check(opts = {}) click to toggle source

@param [Hash] opts the optional parameters @option opts [String] :tags @option opts [Boolean] :combine_tags_or @return [String]

# File lib/swagger_aem/api/custom_api.rb, line 26
def get_aem_health_check(opts = {})
  data, _status_code, _headers = get_aem_health_check_with_http_info(opts)
  data
end
get_aem_health_check_with_http_info(opts = {}) click to toggle source

@param [Hash] opts the optional parameters @option opts [String] :tags @option opts [Boolean] :combine_tags_or @return [Array<(String, Integer, Hash)>] String data, response status code and response headers

# File lib/swagger_aem/api/custom_api.rb, line 35
def get_aem_health_check_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: CustomApi.get_aem_health_check ...'
  end
  # resource path
  local_var_path = '/system/health'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
  query_params[:'combineTagsOr'] = opts[:'combine_tags_or'] if !opts[:'combine_tags_or'].nil?

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

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

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

  # return_type
  return_type = opts[:return_type] || 'String' 

  # auth_names
  auth_names = opts[:auth_names] || ['aemAuth']

  new_options = opts.merge(
    :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: CustomApi#get_aem_health_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
post_config_aem_health_check_servlet(opts = {}) click to toggle source

@param [Hash] opts the optional parameters @option opts [Array<String>] :bundles_ignored @option opts [String] :bundles_ignored_type_hint @return [nil]

# File lib/swagger_aem/api/custom_api.rb, line 84
def post_config_aem_health_check_servlet(opts = {})
  post_config_aem_health_check_servlet_with_http_info(opts)
  nil
end
post_config_aem_health_check_servlet_with_http_info(opts = {}) click to toggle source

@param [Hash] opts the optional parameters @option opts [Array<String>] :bundles_ignored @option opts [String] :bundles_ignored_type_hint @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers

# File lib/swagger_aem/api/custom_api.rb, line 93
def post_config_aem_health_check_servlet_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: CustomApi.post_config_aem_health_check_servlet ...'
  end
  # resource path
  local_var_path = '/apps/system/config/com.shinesolutions.healthcheck.hc.impl.ActiveBundleHealthCheck'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'bundles.ignored'] = @api_client.build_collection_param(opts[:'bundles_ignored'], :multi) if !opts[:'bundles_ignored'].nil?
  query_params[:'bundles.ignored@TypeHint'] = opts[:'bundles_ignored_type_hint'] if !opts[:'bundles_ignored_type_hint'].nil?

  # header parameters
  header_params = opts[:header_params] || {}

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

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

  # return_type
  return_type = opts[:return_type] 

  # auth_names
  auth_names = opts[:auth_names] || ['aemAuth']

  new_options = opts.merge(
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: CustomApi#post_config_aem_health_check_servlet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
post_config_aem_password_reset(opts = {}) click to toggle source

@param [Hash] opts the optional parameters @option opts [Array<String>] :pwdreset_authorizables @option opts [String] :pwdreset_authorizables_type_hint @return [nil]

# File lib/swagger_aem/api/custom_api.rb, line 140
def post_config_aem_password_reset(opts = {})
  post_config_aem_password_reset_with_http_info(opts)
  nil
end
post_config_aem_password_reset_with_http_info(opts = {}) click to toggle source

@param [Hash] opts the optional parameters @option opts [Array<String>] :pwdreset_authorizables @option opts [String] :pwdreset_authorizables_type_hint @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers

# File lib/swagger_aem/api/custom_api.rb, line 149
def post_config_aem_password_reset_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: CustomApi.post_config_aem_password_reset ...'
  end
  # resource path
  local_var_path = '/apps/system/config/com.shinesolutions.aem.passwordreset.Activator'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'pwdreset.authorizables'] = @api_client.build_collection_param(opts[:'pwdreset_authorizables'], :multi) if !opts[:'pwdreset_authorizables'].nil?
  query_params[:'pwdreset.authorizables@TypeHint'] = opts[:'pwdreset_authorizables_type_hint'] if !opts[:'pwdreset_authorizables_type_hint'].nil?

  # header parameters
  header_params = opts[:header_params] || {}

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

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

  # return_type
  return_type = opts[:return_type] 

  # auth_names
  auth_names = opts[:auth_names] || ['aemAuth']

  new_options = opts.merge(
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: CustomApi#post_config_aem_password_reset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end