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_crxde_status(opts = {}) ⇒ String

Parameters:

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

    the optional parameters

Returns:

  • (String)


24
25
26
27
# File 'lib/swagger_aem/api/crx_api.rb', line 24

def get_crxde_status(opts = {})
  data, _status_code, _headers = get_crxde_status_with_http_info(opts)
  data
end

#get_crxde_status_with_http_info(opts = {}) ⇒ Array<(String, Integer, Hash)>

Returns String data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    String data, response status code and response headers



31
32
33
34
35
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
69
70
71
72
# File 'lib/swagger_aem/api/crx_api.rb', line 31

def get_crxde_status_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: CrxApi.get_crxde_status ...'
  end
  # resource path
  local_var_path = '/crx/server/crx.default/jcr:root/.1.json'

  # 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(['plain/text'])

  # 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: CrxApi#get_crxde_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_install_status(opts = {}) ⇒ InstallStatus

Parameters:

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

    the optional parameters

Returns:



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

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

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

Returns InstallStatus data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    InstallStatus data, response status code and response headers



83
84
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
123
124
# File 'lib/swagger_aem/api/crx_api.rb', line 83

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 = 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'])

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

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

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

  # 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: CrxApi#get_install_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_package_manager_servlet(opts = {}) ⇒ nil

Parameters:

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

    the optional parameters

Returns:

  • (nil)


128
129
130
131
# File 'lib/swagger_aem/api/crx_api.rb', line 128

def get_package_manager_servlet(opts = {})
  get_package_manager_servlet_with_http_info(opts)
  nil
end

#get_package_manager_servlet_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    nil, response status code and response headers



135
136
137
138
139
140
141
142
143
144
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
# File 'lib/swagger_aem/api/crx_api.rb', line 135

def get_package_manager_servlet_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: CrxApi.get_package_manager_servlet ...'
  end
  # resource path
  local_var_path = '/crx/packmgr/service/script.html'

  # 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(['text/html'])

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

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

Parameters:

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

    the optional parameters

Returns:

  • (String)


181
182
183
184
# File 'lib/swagger_aem/api/crx_api.rb', line 181

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

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

Parameters:

  • path (String)
  • cmd (String)
  • 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)


248
249
250
251
# File 'lib/swagger_aem/api/crx_api.rb', line 248

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

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

Returns String data, response status code and response headers.

Parameters:

  • path (String)
  • cmd (String)
  • 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, Integer, Hash)>)

    String data, response status code and response headers



264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
# File 'lib/swagger_aem/api/crx_api.rb', line 264

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' + '}', ERB::Util.url_encode(path.to_s))

  # query parameters
  query_params = opts[: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 = opts[: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 = opts[:form_params] || {}
  form_params['package'] = opts[:'package'] if !opts[:'package'].nil?

  # 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(:POST, local_var_path, new_options)
  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, Integer, Hash)>

Returns String data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    String data, response status code and response headers



189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/swagger_aem/api/crx_api.rb', line 189

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 = opts[:query_params] || {}
  query_params[:'cmd'] = cmd

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

  # 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(:POST, local_var_path, new_options)
  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 (String)
  • package_name (String)
  • version (String)
  • path (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

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

Returns:

  • (String)


333
334
335
336
# File 'lib/swagger_aem/api/crx_api.rb', line 333

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)
  data
end

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

Returns String data, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

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

Returns:

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

    String data, response status code and response headers



346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
# File 'lib/swagger_aem/api/crx_api.rb', line 346

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 = opts[: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 = 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(:POST, local_var_path, new_options)
  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 (String)
  • plain (String)
  • verify (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


416
417
418
419
# File 'lib/swagger_aem/api/crx_api.rb', line 416

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

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

Returns String data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    String data, response status code and response headers



426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
# File 'lib/swagger_aem/api/crx_api.rb', line 426

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 = opts[:query_params] || {}
  query_params[:'old'] = old
  query_params[:'plain'] = plain
  query_params[:'verify'] = verify

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

  # 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(:POST, local_var_path, new_options)
  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