Class: SwaggerAemClient::CrxApi

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ CrxApi

Returns a new instance of CrxApi.



19
20
21
# File 'lib/swagger_aem/api/crx_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/crx_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#get_install_status(opts = {}) ⇒ InstallStatus

Parameters:

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

    the optional parameters

Returns:



27
28
29
30
# File 'lib/swagger_aem/api/crx_api.rb', line 27

def get_install_status(opts = {})
  data, _status_code, _headers = get_install_status_with_http_info(opts)
  return data
end

#get_install_status_with_http_info(opts = {}) ⇒ Array<(InstallStatus, Fixnum, Hash)>

Returns InstallStatus data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    InstallStatus data, response status code and response headers



36
37
38
39
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
# File 'lib/swagger_aem/api/crx_api.rb', line 36

def get_install_status_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: CrxApi.get_install_status ..."
  end
  # resource path
  local_var_path = "/crx/packmgr/installstatus.jsp"

  # query parameters
  query_params = {}

  # 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 => 'InstallStatus')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: CrxApi#get_install_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_package_service(cmd, opts = {}) ⇒ String

Parameters:

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

    the optional parameters

Returns:

  • (String)


75
76
77
78
# File 'lib/swagger_aem/api/crx_api.rb', line 75

def post_package_service(cmd, opts = {})
  data, _status_code, _headers = post_package_service_with_http_info(cmd, opts)
  return data
end

#post_package_service_json(path, cmd, opts = {}) ⇒ String

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :group_name (String)
  • :package_name (String)
  • :package_version (String)
  • :_charset_ (String)
  • :force (BOOLEAN)
  • :recursive (BOOLEAN)
  • :package (File)

Returns:

  • (String)


137
138
139
140
# File 'lib/swagger_aem/api/crx_api.rb', line 137

def post_package_service_json(path, cmd, opts = {})
  data, _status_code, _headers = post_package_service_json_with_http_info(path, cmd, opts)
  return data
end

#post_package_service_json_with_http_info(path, cmd, opts = {}) ⇒ Array<(String, Fixnum, Hash)>

Returns String data, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :group_name (String)
  • :package_name (String)
  • :package_version (String)
  • :_charset_ (String)
  • :force (BOOLEAN)
  • :recursive (BOOLEAN)
  • :package (File)

Returns:

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

    String data, response status code and response headers



155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# File 'lib/swagger_aem/api/crx_api.rb', line 155

def post_package_service_json_with_http_info(path, cmd, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: CrxApi.post_package_service_json ..."
  end
  # verify the required parameter 'path' is set
  if @api_client.config.client_side_validation && path.nil?
    fail ArgumentError, "Missing the required parameter 'path' when calling CrxApi.post_package_service_json"
  end
  # verify the required parameter 'cmd' is set
  if @api_client.config.client_side_validation && cmd.nil?
    fail ArgumentError, "Missing the required parameter 'cmd' when calling CrxApi.post_package_service_json"
  end
  # resource path
  local_var_path = "/crx/packmgr/service/.json/{path}".sub('{' + 'path' + '}', path.to_s)

  # query parameters
  query_params = {}
  query_params[:'cmd'] = cmd
  query_params[:'groupName'] = opts[:'group_name'] if !opts[:'group_name'].nil?
  query_params[:'packageName'] = opts[:'package_name'] if !opts[:'package_name'].nil?
  query_params[:'packageVersion'] = opts[:'package_version'] if !opts[:'package_version'].nil?
  query_params[:'_charset_'] = opts[:'_charset_'] if !opts[:'_charset_'].nil?
  query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
  query_params[:'recursive'] = opts[:'recursive'] if !opts[:'recursive'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])

  # form parameters
  form_params = {}
  form_params["package"] = opts[:'package'] if !opts[:'package'].nil?

  # 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,
    :return_type => 'String')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: CrxApi#post_package_service_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

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

Returns String data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    String data, response status code and response headers



85
86
87
88
89
90
91
92
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
# File 'lib/swagger_aem/api/crx_api.rb', line 85

def post_package_service_with_http_info(cmd, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: CrxApi.post_package_service ..."
  end
  # verify the required parameter 'cmd' is set
  if @api_client.config.client_side_validation && cmd.nil?
    fail ArgumentError, "Missing the required parameter 'cmd' when calling CrxApi.post_package_service"
  end
  # resource path
  local_var_path = "/crx/packmgr/service.jsp"

  # query parameters
  query_params = {}
  query_params[:'cmd'] = cmd

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/xml'])

  # 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,
    :return_type => 'String')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: CrxApi#post_package_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_package_update(group_name, package_name, version, path, opts = {}) ⇒ String

Parameters:

  • group_name
  • package_name
  • version
  • path
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)
  • :_charset_ (String)

Returns:

  • (String)


217
218
219
220
# File 'lib/swagger_aem/api/crx_api.rb', line 217

def post_package_update(group_name, package_name, version, path, opts = {})
  data, _status_code, _headers = post_package_update_with_http_info(group_name, package_name, version, path, opts)
  return data
end

#post_package_update_with_http_info(group_name, package_name, version, path, opts = {}) ⇒ Array<(String, Fixnum, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • group_name
  • package_name
  • version
  • path
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)
  • :_charset_ (String)

Returns:

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

    String data, response status code and response headers



232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# File 'lib/swagger_aem/api/crx_api.rb', line 232

def post_package_update_with_http_info(group_name, package_name, version, path, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: CrxApi.post_package_update ..."
  end
  # verify the required parameter 'group_name' is set
  if @api_client.config.client_side_validation && group_name.nil?
    fail ArgumentError, "Missing the required parameter 'group_name' when calling CrxApi.post_package_update"
  end
  # verify the required parameter 'package_name' is set
  if @api_client.config.client_side_validation && package_name.nil?
    fail ArgumentError, "Missing the required parameter 'package_name' when calling CrxApi.post_package_update"
  end
  # verify the required parameter 'version' is set
  if @api_client.config.client_side_validation && version.nil?
    fail ArgumentError, "Missing the required parameter 'version' when calling CrxApi.post_package_update"
  end
  # verify the required parameter 'path' is set
  if @api_client.config.client_side_validation && path.nil?
    fail ArgumentError, "Missing the required parameter 'path' when calling CrxApi.post_package_update"
  end
  # resource path
  local_var_path = "/crx/packmgr/update.jsp"

  # query parameters
  query_params = {}
  query_params[:'groupName'] = group_name
  query_params[:'packageName'] = package_name
  query_params[:'version'] = version
  query_params[:'path'] = path
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
  query_params[:'_charset_'] = opts[:'_charset_'] if !opts[:'_charset_'].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(:POST, 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: CrxApi#post_package_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_set_password(old, plain, verify, opts = {}) ⇒ String

Parameters:

  • old
  • plain
  • verify
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


295
296
297
298
# File 'lib/swagger_aem/api/crx_api.rb', line 295

def post_set_password(old, plain, verify, opts = {})
  data, _status_code, _headers = post_set_password_with_http_info(old, plain, verify, opts)
  return data
end

#post_set_password_with_http_info(old, plain, verify, opts = {}) ⇒ Array<(String, Fixnum, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • old
  • plain
  • verify
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    String data, response status code and response headers



307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
# File 'lib/swagger_aem/api/crx_api.rb', line 307

def post_set_password_with_http_info(old, plain, verify, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: CrxApi.post_set_password ..."
  end
  # verify the required parameter 'old' is set
  if @api_client.config.client_side_validation && old.nil?
    fail ArgumentError, "Missing the required parameter 'old' when calling CrxApi.post_set_password"
  end
  # verify the required parameter 'plain' is set
  if @api_client.config.client_side_validation && plain.nil?
    fail ArgumentError, "Missing the required parameter 'plain' when calling CrxApi.post_set_password"
  end
  # verify the required parameter 'verify' is set
  if @api_client.config.client_side_validation && verify.nil?
    fail ArgumentError, "Missing the required parameter 'verify' when calling CrxApi.post_set_password"
  end
  # resource path
  local_var_path = "/crx/explorer/ui/setpassword.jsp"

  # query parameters
  query_params = {}
  query_params[:'old'] = old
  query_params[:'plain'] = plain
  query_params[:'verify'] = verify

  # 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,
    :return_type => 'String')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: CrxApi#post_set_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end