Class: SwaggerAemClient::CustomApi

Inherits:
Object
  • Object
show all
Defined in:
lib/swagger_aem/api/custom_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ CustomApi

Returns a new instance of CustomApi.



19
20
21
# File 'lib/swagger_aem/api/custom_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/swagger_aem/api/custom_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#get_aem_health_check(opts = {}) ⇒ String

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :tags (String)
  • :combine_tags_or (BOOLEAN)

Returns:

  • (String)


29
30
31
32
# File 'lib/swagger_aem/api/custom_api.rb', line 29

def get_aem_health_check(opts = {})
  data, _status_code, _headers = get_aem_health_check_with_http_info(opts)
  return data
end

#get_aem_health_check_with_http_info(opts = {}) ⇒ Array<(String, Fixnum, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :tags (String)
  • :combine_tags_or (BOOLEAN)

Returns:

  • (Array<(String, Fixnum, Hash)>)

    String data, response status code and response headers



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/swagger_aem/api/custom_api.rb', line 40

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 = {}
  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 = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['aemAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'String')
  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 = {}) ⇒ nil

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :bundles_ignored (Array<String>)
  • :bundles_ignored_type_hint (String)

Returns:

  • (nil)


82
83
84
85
# File 'lib/swagger_aem/api/custom_api.rb', line 82

def post_config_aem_health_check_servlet(opts = {})
  post_config_aem_health_check_servlet_with_http_info(opts)
  return nil
end

#post_config_aem_health_check_servlet_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :bundles_ignored (Array<String>)
  • :bundles_ignored_type_hint (String)

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# 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 = {}
  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 = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['aemAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  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 = {}) ⇒ nil

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :pwdreset_authorizables (Array<String>)
  • :pwdreset_authorizables_type_hint (String)

Returns:

  • (nil)


134
135
136
137
# File 'lib/swagger_aem/api/custom_api.rb', line 134

def post_config_aem_password_reset(opts = {})
  post_config_aem_password_reset_with_http_info(opts)
  return nil
end

#post_config_aem_password_reset_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :pwdreset_authorizables (Array<String>)
  • :pwdreset_authorizables_type_hint (String)

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/swagger_aem/api/custom_api.rb', line 145

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 = {}
  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 = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['aemAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  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