Class: SwaggerAemClient::SlingApi

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ SlingApi

Returns a new instance of SlingApi.



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

def api_client
  @api_client
end

Instance Method Details

#delete_agent(runmode, name, opts = {}) ⇒ nil

Parameters:

  • runmode (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


26
27
28
29
# File 'lib/swagger_aem/api/sling_api.rb', line 26

def delete_agent(runmode, name, opts = {})
  delete_agent_with_http_info(runmode, name, opts)
  nil
end

#delete_agent_with_http_info(runmode, name, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • runmode (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    nil, response status code and response headers



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
73
74
75
76
77
78
79
80
81
82
# File 'lib/swagger_aem/api/sling_api.rb', line 35

def delete_agent_with_http_info(runmode, name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.delete_agent ...'
  end
  # verify the required parameter 'runmode' is set
  if @api_client.config.client_side_validation && runmode.nil?
    fail ArgumentError, "Missing the required parameter 'runmode' when calling SlingApi.delete_agent"
  end
  # verify the required parameter 'name' is set
  if @api_client.config.client_side_validation && name.nil?
    fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.delete_agent"
  end
  # resource path
  local_var_path = '/etc/replication/agents.{runmode}/{name}'.sub('{' + 'runmode' + '}', CGI.escape(runmode.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))

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

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

#delete_node(path, name, opts = {}) ⇒ nil

Parameters:

  • path (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


88
89
90
91
# File 'lib/swagger_aem/api/sling_api.rb', line 88

def delete_node(path, name, opts = {})
  delete_node_with_http_info(path, name, opts)
  nil
end

#delete_node_with_http_info(path, name, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • path (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    nil, response status code and response headers



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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/swagger_aem/api/sling_api.rb', line 97

def delete_node_with_http_info(path, name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.delete_node ...'
  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 SlingApi.delete_node"
  end
  # verify the required parameter 'name' is set
  if @api_client.config.client_side_validation && name.nil?
    fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.delete_node"
  end
  # resource path
  local_var_path = '/{path}/{name}'.sub('{' + 'path' + '}', CGI.escape(path.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))

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

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

#get_agent(runmode, name, opts = {}) ⇒ nil

Parameters:

  • runmode (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


150
151
152
153
# File 'lib/swagger_aem/api/sling_api.rb', line 150

def get_agent(runmode, name, opts = {})
  get_agent_with_http_info(runmode, name, opts)
  nil
end

#get_agent_with_http_info(runmode, name, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • runmode (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    nil, response status code and response headers



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
206
# File 'lib/swagger_aem/api/sling_api.rb', line 159

def get_agent_with_http_info(runmode, name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.get_agent ...'
  end
  # verify the required parameter 'runmode' is set
  if @api_client.config.client_side_validation && runmode.nil?
    fail ArgumentError, "Missing the required parameter 'runmode' when calling SlingApi.get_agent"
  end
  # verify the required parameter 'name' is set
  if @api_client.config.client_side_validation && name.nil?
    fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.get_agent"
  end
  # resource path
  local_var_path = '/etc/replication/agents.{runmode}/{name}'.sub('{' + 'runmode' + '}', CGI.escape(runmode.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))

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

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

#get_agents(runmode, opts = {}) ⇒ String

Parameters:

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

    the optional parameters

Returns:

  • (String)


211
212
213
214
# File 'lib/swagger_aem/api/sling_api.rb', line 211

def get_agents(runmode, opts = {})
  data, _status_code, _headers = get_agents_with_http_info(runmode, opts)
  data
end

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

Returns String data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    String data, response status code and response headers



219
220
221
222
223
224
225
226
227
228
229
230
231
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
# File 'lib/swagger_aem/api/sling_api.rb', line 219

def get_agents_with_http_info(runmode, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.get_agents ...'
  end
  # verify the required parameter 'runmode' is set
  if @api_client.config.client_side_validation && runmode.nil?
    fail ArgumentError, "Missing the required parameter 'runmode' when calling SlingApi.get_agents"
  end
  # resource path
  local_var_path = '/etc/replication/agents.{runmode}.-1.json'.sub('{' + 'runmode' + '}', CGI.escape(runmode.to_s))

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

#get_authorizable_keystore(intermediate_path, authorizable_id, opts = {}) ⇒ KeystoreInfo

Parameters:

  • intermediate_path (String)
  • authorizable_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



270
271
272
273
# File 'lib/swagger_aem/api/sling_api.rb', line 270

def get_authorizable_keystore(intermediate_path, authorizable_id, opts = {})
  data, _status_code, _headers = get_authorizable_keystore_with_http_info(intermediate_path, authorizable_id, opts)
  data
end

#get_authorizable_keystore_with_http_info(intermediate_path, authorizable_id, opts = {}) ⇒ Array<(KeystoreInfo, Integer, Hash)>

Returns KeystoreInfo data, response status code and response headers.

Parameters:

  • intermediate_path (String)
  • authorizable_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    KeystoreInfo data, response status code and response headers



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
324
325
326
327
328
# File 'lib/swagger_aem/api/sling_api.rb', line 279

def get_authorizable_keystore_with_http_info(intermediate_path, authorizable_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.get_authorizable_keystore ...'
  end
  # verify the required parameter 'intermediate_path' is set
  if @api_client.config.client_side_validation && intermediate_path.nil?
    fail ArgumentError, "Missing the required parameter 'intermediate_path' when calling SlingApi.get_authorizable_keystore"
  end
  # verify the required parameter 'authorizable_id' is set
  if @api_client.config.client_side_validation && authorizable_id.nil?
    fail ArgumentError, "Missing the required parameter 'authorizable_id' when calling SlingApi.get_authorizable_keystore"
  end
  # resource path
  local_var_path = '/{intermediatePath}/{authorizableId}.ks.json'.sub('{' + 'intermediatePath' + '}', CGI.escape(intermediate_path.to_s)).sub('{' + 'authorizableId' + '}', CGI.escape(authorizable_id.to_s))

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

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

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

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

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

#get_keystore(intermediate_path, authorizable_id, opts = {}) ⇒ File

Parameters:

  • intermediate_path (String)
  • authorizable_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (File)


334
335
336
337
# File 'lib/swagger_aem/api/sling_api.rb', line 334

def get_keystore(intermediate_path, authorizable_id, opts = {})
  data, _status_code, _headers = get_keystore_with_http_info(intermediate_path, authorizable_id, opts)
  data
end

#get_keystore_with_http_info(intermediate_path, authorizable_id, opts = {}) ⇒ Array<(File, Integer, Hash)>

Returns File data, response status code and response headers.

Parameters:

  • intermediate_path (String)
  • authorizable_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    File data, response status code and response headers



343
344
345
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
# File 'lib/swagger_aem/api/sling_api.rb', line 343

def get_keystore_with_http_info(intermediate_path, authorizable_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.get_keystore ...'
  end
  # verify the required parameter 'intermediate_path' is set
  if @api_client.config.client_side_validation && intermediate_path.nil?
    fail ArgumentError, "Missing the required parameter 'intermediate_path' when calling SlingApi.get_keystore"
  end
  # verify the required parameter 'authorizable_id' is set
  if @api_client.config.client_side_validation && authorizable_id.nil?
    fail ArgumentError, "Missing the required parameter 'authorizable_id' when calling SlingApi.get_keystore"
  end
  # resource path
  local_var_path = '/{intermediatePath}/{authorizableId}/keystore/store.p12'.sub('{' + 'intermediatePath' + '}', CGI.escape(intermediate_path.to_s)).sub('{' + 'authorizableId' + '}', CGI.escape(authorizable_id.to_s))

  # 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/octet-stream'])

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

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

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

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

#get_node(path, name, opts = {}) ⇒ nil

Parameters:

  • path (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


398
399
400
401
# File 'lib/swagger_aem/api/sling_api.rb', line 398

def get_node(path, name, opts = {})
  get_node_with_http_info(path, name, opts)
  nil
end

#get_node_with_http_info(path, name, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • path (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    nil, response status code and response headers



407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
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
# File 'lib/swagger_aem/api/sling_api.rb', line 407

def get_node_with_http_info(path, name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.get_node ...'
  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 SlingApi.get_node"
  end
  # verify the required parameter 'name' is set
  if @api_client.config.client_side_validation && name.nil?
    fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.get_node"
  end
  # resource path
  local_var_path = '/{path}/{name}'.sub('{' + 'path' + '}', CGI.escape(path.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))

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

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

#get_package(group, name, version, opts = {}) ⇒ File

Parameters:

  • group (String)
  • name (String)
  • version (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (File)


461
462
463
464
# File 'lib/swagger_aem/api/sling_api.rb', line 461

def get_package(group, name, version, opts = {})
  data, _status_code, _headers = get_package_with_http_info(group, name, version, opts)
  data
end

#get_package_filter(group, name, version, opts = {}) ⇒ String

Parameters:

  • group (String)
  • name (String)
  • version (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


531
532
533
534
# File 'lib/swagger_aem/api/sling_api.rb', line 531

def get_package_filter(group, name, version, opts = {})
  data, _status_code, _headers = get_package_filter_with_http_info(group, name, version, opts)
  data
end

#get_package_filter_with_http_info(group, name, version, opts = {}) ⇒ Array<(String, Integer, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • group (String)
  • name (String)
  • version (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    String data, response status code and response headers



541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
# File 'lib/swagger_aem/api/sling_api.rb', line 541

def get_package_filter_with_http_info(group, name, version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.get_package_filter ...'
  end
  # verify the required parameter 'group' is set
  if @api_client.config.client_side_validation && group.nil?
    fail ArgumentError, "Missing the required parameter 'group' when calling SlingApi.get_package_filter"
  end
  # verify the required parameter 'name' is set
  if @api_client.config.client_side_validation && name.nil?
    fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.get_package_filter"
  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 SlingApi.get_package_filter"
  end
  # resource path
  local_var_path = '/etc/packages/{group}/{name}-{version}.zip/jcr:content/vlt:definition/filter.tidy.2.json'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s))

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

#get_package_with_http_info(group, name, version, opts = {}) ⇒ Array<(File, Integer, Hash)>

Returns File data, response status code and response headers.

Parameters:

  • group (String)
  • name (String)
  • version (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    File data, response status code and response headers



471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
# File 'lib/swagger_aem/api/sling_api.rb', line 471

def get_package_with_http_info(group, name, version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.get_package ...'
  end
  # verify the required parameter 'group' is set
  if @api_client.config.client_side_validation && group.nil?
    fail ArgumentError, "Missing the required parameter 'group' when calling SlingApi.get_package"
  end
  # verify the required parameter 'name' is set
  if @api_client.config.client_side_validation && name.nil?
    fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.get_package"
  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 SlingApi.get_package"
  end
  # resource path
  local_var_path = '/etc/packages/{group}/{name}-{version}.zip'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s))

  # 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/octet-stream'])

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

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

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

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

#get_query(path, p_limit, _1_property, _1_property_value, opts = {}) ⇒ String

Parameters:

  • path (String)
  • p_limit (Float)
  • _1_property (String)
  • _1_property_value (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


602
603
604
605
# File 'lib/swagger_aem/api/sling_api.rb', line 602

def get_query(path, p_limit, _1_property, _1_property_value, opts = {})
  data, _status_code, _headers = get_query_with_http_info(path, p_limit, _1_property, _1_property_value, opts)
  data
end

#get_query_with_http_info(path, p_limit, _1_property, _1_property_value, opts = {}) ⇒ Array<(String, Integer, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • path (String)
  • p_limit (Float)
  • _1_property (String)
  • _1_property_value (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    String data, response status code and response headers



613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
# File 'lib/swagger_aem/api/sling_api.rb', line 613

def get_query_with_http_info(path, p_limit, _1_property, _1_property_value, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.get_query ...'
  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 SlingApi.get_query"
  end
  # verify the required parameter 'p_limit' is set
  if @api_client.config.client_side_validation && p_limit.nil?
    fail ArgumentError, "Missing the required parameter 'p_limit' when calling SlingApi.get_query"
  end
  # verify the required parameter '_1_property' is set
  if @api_client.config.client_side_validation && _1_property.nil?
    fail ArgumentError, "Missing the required parameter '_1_property' when calling SlingApi.get_query"
  end
  # verify the required parameter '_1_property_value' is set
  if @api_client.config.client_side_validation && _1_property_value.nil?
    fail ArgumentError, "Missing the required parameter '_1_property_value' when calling SlingApi.get_query"
  end
  # resource path
  local_var_path = '/bin/querybuilder.json'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'path'] = path
  query_params[:'p.limit'] = p_limit
  query_params[:'1_property'] = _1_property
  query_params[:'1_property.value'] = _1_property_value

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

#get_truststore(opts = {}) ⇒ File

Parameters:

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

    the optional parameters

Returns:

  • (File)


678
679
680
681
# File 'lib/swagger_aem/api/sling_api.rb', line 678

def get_truststore(opts = {})
  data, _status_code, _headers = get_truststore_with_http_info(opts)
  data
end

#get_truststore_info(opts = {}) ⇒ TruststoreInfo

Parameters:

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

    the optional parameters

Returns:



730
731
732
733
# File 'lib/swagger_aem/api/sling_api.rb', line 730

def get_truststore_info(opts = {})
  data, _status_code, _headers = get_truststore_info_with_http_info(opts)
  data
end

#get_truststore_info_with_http_info(opts = {}) ⇒ Array<(TruststoreInfo, Integer, Hash)>

Returns TruststoreInfo data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    TruststoreInfo data, response status code and response headers



737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
# File 'lib/swagger_aem/api/sling_api.rb', line 737

def get_truststore_info_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.get_truststore_info ...'
  end
  # resource path
  local_var_path = '/libs/granite/security/truststore.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(['application/json'])

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

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

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

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

#get_truststore_with_http_info(opts = {}) ⇒ Array<(File, Integer, Hash)>

Returns File data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    File data, response status code and response headers



685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
# File 'lib/swagger_aem/api/sling_api.rb', line 685

def get_truststore_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.get_truststore ...'
  end
  # resource path
  local_var_path = '/etc/truststore/truststore.p12'

  # 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/octet-stream'])

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

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

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

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

#post_agent(runmode, name, opts = {}) ⇒ nil

Parameters:

  • runmode (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :jcrcontent_cqdistribute (Boolean)
  • :jcrcontent_cqdistribute_type_hint (String)
  • :jcrcontent_cqname (String)
  • :jcrcontent_cqtemplate (String)
  • :jcrcontent_enabled (Boolean)
  • :jcrcontent_jcrdescription (String)
  • :jcrcontent_jcrlast_modified (String)
  • :jcrcontent_jcrlast_modified_by (String)
  • :jcrcontent_jcrmixin_types (String)
  • :jcrcontent_jcrtitle (String)
  • :jcrcontent_log_level (String)
  • :jcrcontent_no_status_update (Boolean)
  • :jcrcontent_no_versioning (Boolean)
  • :jcrcontent_protocol_connect_timeout (Float)
  • :jcrcontent_protocol_http_connection_closed (Boolean)
  • :jcrcontent_protocol_http_expired (String)
  • :jcrcontent_protocol_http_headers (Array<String>)
  • :jcrcontent_protocol_http_headers_type_hint (String)
  • :jcrcontent_protocol_http_method (String)
  • :jcrcontent_protocol_https_relaxed (Boolean)
  • :jcrcontent_protocol_interface (String)
  • :jcrcontent_protocol_socket_timeout (Float)
  • :jcrcontent_protocol_version (String)
  • :jcrcontent_proxy_ntlm_domain (String)
  • :jcrcontent_proxy_ntlm_host (String)
  • :jcrcontent_proxy_host (String)
  • :jcrcontent_proxy_password (String)
  • :jcrcontent_proxy_port (Float)
  • :jcrcontent_proxy_user (String)
  • :jcrcontent_queue_batch_max_size (Float)
  • :jcrcontent_queue_batch_mode (String)
  • :jcrcontent_queue_batch_wait_time (Float)
  • :jcrcontent_retry_delay (String)
  • :jcrcontent_reverse_replication (Boolean)
  • :jcrcontent_serialization_type (String)
  • :jcrcontent_slingresource_type (String)
  • :jcrcontent_ssl (String)
  • :jcrcontent_transport_ntlm_domain (String)
  • :jcrcontent_transport_ntlm_host (String)
  • :jcrcontent_transport_password (String)
  • :jcrcontent_transport_uri (String)
  • :jcrcontent_transport_user (String)
  • :jcrcontent_trigger_distribute (Boolean)
  • :jcrcontent_trigger_modified (Boolean)
  • :jcrcontent_trigger_on_off_time (Boolean)
  • :jcrcontent_trigger_receive (Boolean)
  • :jcrcontent_trigger_specific (Boolean)
  • :jcrcontent_user_id (String)
  • :jcrprimary_type (String)
  • :operation (String)

Returns:

  • (nil)


834
835
836
837
# File 'lib/swagger_aem/api/sling_api.rb', line 834

def post_agent(runmode, name, opts = {})
  post_agent_with_http_info(runmode, name, opts)
  nil
end

#post_agent_with_http_info(runmode, name, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • runmode (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :jcrcontent_cqdistribute (Boolean)
  • :jcrcontent_cqdistribute_type_hint (String)
  • :jcrcontent_cqname (String)
  • :jcrcontent_cqtemplate (String)
  • :jcrcontent_enabled (Boolean)
  • :jcrcontent_jcrdescription (String)
  • :jcrcontent_jcrlast_modified (String)
  • :jcrcontent_jcrlast_modified_by (String)
  • :jcrcontent_jcrmixin_types (String)
  • :jcrcontent_jcrtitle (String)
  • :jcrcontent_log_level (String)
  • :jcrcontent_no_status_update (Boolean)
  • :jcrcontent_no_versioning (Boolean)
  • :jcrcontent_protocol_connect_timeout (Float)
  • :jcrcontent_protocol_http_connection_closed (Boolean)
  • :jcrcontent_protocol_http_expired (String)
  • :jcrcontent_protocol_http_headers (Array<String>)
  • :jcrcontent_protocol_http_headers_type_hint (String)
  • :jcrcontent_protocol_http_method (String)
  • :jcrcontent_protocol_https_relaxed (Boolean)
  • :jcrcontent_protocol_interface (String)
  • :jcrcontent_protocol_socket_timeout (Float)
  • :jcrcontent_protocol_version (String)
  • :jcrcontent_proxy_ntlm_domain (String)
  • :jcrcontent_proxy_ntlm_host (String)
  • :jcrcontent_proxy_host (String)
  • :jcrcontent_proxy_password (String)
  • :jcrcontent_proxy_port (Float)
  • :jcrcontent_proxy_user (String)
  • :jcrcontent_queue_batch_max_size (Float)
  • :jcrcontent_queue_batch_mode (String)
  • :jcrcontent_queue_batch_wait_time (Float)
  • :jcrcontent_retry_delay (String)
  • :jcrcontent_reverse_replication (Boolean)
  • :jcrcontent_serialization_type (String)
  • :jcrcontent_slingresource_type (String)
  • :jcrcontent_ssl (String)
  • :jcrcontent_transport_ntlm_domain (String)
  • :jcrcontent_transport_ntlm_host (String)
  • :jcrcontent_transport_password (String)
  • :jcrcontent_transport_uri (String)
  • :jcrcontent_transport_user (String)
  • :jcrcontent_trigger_distribute (Boolean)
  • :jcrcontent_trigger_modified (Boolean)
  • :jcrcontent_trigger_on_off_time (Boolean)
  • :jcrcontent_trigger_receive (Boolean)
  • :jcrcontent_trigger_specific (Boolean)
  • :jcrcontent_user_id (String)
  • :jcrprimary_type (String)
  • :operation (String)

Returns:

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

    nil, response status code and response headers



893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
# File 'lib/swagger_aem/api/sling_api.rb', line 893

def post_agent_with_http_info(runmode, name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_agent ...'
  end
  # verify the required parameter 'runmode' is set
  if @api_client.config.client_side_validation && runmode.nil?
    fail ArgumentError, "Missing the required parameter 'runmode' when calling SlingApi.post_agent"
  end
  # verify the required parameter 'name' is set
  if @api_client.config.client_side_validation && name.nil?
    fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.post_agent"
  end
  # resource path
  local_var_path = '/etc/replication/agents.{runmode}/{name}'.sub('{' + 'runmode' + '}', CGI.escape(runmode.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'jcr:content/cq:distribute'] = opts[:'jcrcontent_cqdistribute'] if !opts[:'jcrcontent_cqdistribute'].nil?
  query_params[:'jcr:content/cq:distribute@TypeHint'] = opts[:'jcrcontent_cqdistribute_type_hint'] if !opts[:'jcrcontent_cqdistribute_type_hint'].nil?
  query_params[:'jcr:content/cq:name'] = opts[:'jcrcontent_cqname'] if !opts[:'jcrcontent_cqname'].nil?
  query_params[:'jcr:content/cq:template'] = opts[:'jcrcontent_cqtemplate'] if !opts[:'jcrcontent_cqtemplate'].nil?
  query_params[:'jcr:content/enabled'] = opts[:'jcrcontent_enabled'] if !opts[:'jcrcontent_enabled'].nil?
  query_params[:'jcr:content/jcr:description'] = opts[:'jcrcontent_jcrdescription'] if !opts[:'jcrcontent_jcrdescription'].nil?
  query_params[:'jcr:content/jcr:lastModified'] = opts[:'jcrcontent_jcrlast_modified'] if !opts[:'jcrcontent_jcrlast_modified'].nil?
  query_params[:'jcr:content/jcr:lastModifiedBy'] = opts[:'jcrcontent_jcrlast_modified_by'] if !opts[:'jcrcontent_jcrlast_modified_by'].nil?
  query_params[:'jcr:content/jcr:mixinTypes'] = opts[:'jcrcontent_jcrmixin_types'] if !opts[:'jcrcontent_jcrmixin_types'].nil?
  query_params[:'jcr:content/jcr:title'] = opts[:'jcrcontent_jcrtitle'] if !opts[:'jcrcontent_jcrtitle'].nil?
  query_params[:'jcr:content/logLevel'] = opts[:'jcrcontent_log_level'] if !opts[:'jcrcontent_log_level'].nil?
  query_params[:'jcr:content/noStatusUpdate'] = opts[:'jcrcontent_no_status_update'] if !opts[:'jcrcontent_no_status_update'].nil?
  query_params[:'jcr:content/noVersioning'] = opts[:'jcrcontent_no_versioning'] if !opts[:'jcrcontent_no_versioning'].nil?
  query_params[:'jcr:content/protocolConnectTimeout'] = opts[:'jcrcontent_protocol_connect_timeout'] if !opts[:'jcrcontent_protocol_connect_timeout'].nil?
  query_params[:'jcr:content/protocolHTTPConnectionClosed'] = opts[:'jcrcontent_protocol_http_connection_closed'] if !opts[:'jcrcontent_protocol_http_connection_closed'].nil?
  query_params[:'jcr:content/protocolHTTPExpired'] = opts[:'jcrcontent_protocol_http_expired'] if !opts[:'jcrcontent_protocol_http_expired'].nil?
  query_params[:'jcr:content/protocolHTTPHeaders'] = @api_client.build_collection_param(opts[:'jcrcontent_protocol_http_headers'], :multi) if !opts[:'jcrcontent_protocol_http_headers'].nil?
  query_params[:'jcr:content/protocolHTTPHeaders@TypeHint'] = opts[:'jcrcontent_protocol_http_headers_type_hint'] if !opts[:'jcrcontent_protocol_http_headers_type_hint'].nil?
  query_params[:'jcr:content/protocolHTTPMethod'] = opts[:'jcrcontent_protocol_http_method'] if !opts[:'jcrcontent_protocol_http_method'].nil?
  query_params[:'jcr:content/protocolHTTPSRelaxed'] = opts[:'jcrcontent_protocol_https_relaxed'] if !opts[:'jcrcontent_protocol_https_relaxed'].nil?
  query_params[:'jcr:content/protocolInterface'] = opts[:'jcrcontent_protocol_interface'] if !opts[:'jcrcontent_protocol_interface'].nil?
  query_params[:'jcr:content/protocolSocketTimeout'] = opts[:'jcrcontent_protocol_socket_timeout'] if !opts[:'jcrcontent_protocol_socket_timeout'].nil?
  query_params[:'jcr:content/protocolVersion'] = opts[:'jcrcontent_protocol_version'] if !opts[:'jcrcontent_protocol_version'].nil?
  query_params[:'jcr:content/proxyNTLMDomain'] = opts[:'jcrcontent_proxy_ntlm_domain'] if !opts[:'jcrcontent_proxy_ntlm_domain'].nil?
  query_params[:'jcr:content/proxyNTLMHost'] = opts[:'jcrcontent_proxy_ntlm_host'] if !opts[:'jcrcontent_proxy_ntlm_host'].nil?
  query_params[:'jcr:content/proxyHost'] = opts[:'jcrcontent_proxy_host'] if !opts[:'jcrcontent_proxy_host'].nil?
  query_params[:'jcr:content/proxyPassword'] = opts[:'jcrcontent_proxy_password'] if !opts[:'jcrcontent_proxy_password'].nil?
  query_params[:'jcr:content/proxyPort'] = opts[:'jcrcontent_proxy_port'] if !opts[:'jcrcontent_proxy_port'].nil?
  query_params[:'jcr:content/proxyUser'] = opts[:'jcrcontent_proxy_user'] if !opts[:'jcrcontent_proxy_user'].nil?
  query_params[:'jcr:content/queueBatchMaxSize'] = opts[:'jcrcontent_queue_batch_max_size'] if !opts[:'jcrcontent_queue_batch_max_size'].nil?
  query_params[:'jcr:content/queueBatchMode'] = opts[:'jcrcontent_queue_batch_mode'] if !opts[:'jcrcontent_queue_batch_mode'].nil?
  query_params[:'jcr:content/queueBatchWaitTime'] = opts[:'jcrcontent_queue_batch_wait_time'] if !opts[:'jcrcontent_queue_batch_wait_time'].nil?
  query_params[:'jcr:content/retryDelay'] = opts[:'jcrcontent_retry_delay'] if !opts[:'jcrcontent_retry_delay'].nil?
  query_params[:'jcr:content/reverseReplication'] = opts[:'jcrcontent_reverse_replication'] if !opts[:'jcrcontent_reverse_replication'].nil?
  query_params[:'jcr:content/serializationType'] = opts[:'jcrcontent_serialization_type'] if !opts[:'jcrcontent_serialization_type'].nil?
  query_params[:'jcr:content/sling:resourceType'] = opts[:'jcrcontent_slingresource_type'] if !opts[:'jcrcontent_slingresource_type'].nil?
  query_params[:'jcr:content/ssl'] = opts[:'jcrcontent_ssl'] if !opts[:'jcrcontent_ssl'].nil?
  query_params[:'jcr:content/transportNTLMDomain'] = opts[:'jcrcontent_transport_ntlm_domain'] if !opts[:'jcrcontent_transport_ntlm_domain'].nil?
  query_params[:'jcr:content/transportNTLMHost'] = opts[:'jcrcontent_transport_ntlm_host'] if !opts[:'jcrcontent_transport_ntlm_host'].nil?
  query_params[:'jcr:content/transportPassword'] = opts[:'jcrcontent_transport_password'] if !opts[:'jcrcontent_transport_password'].nil?
  query_params[:'jcr:content/transportUri'] = opts[:'jcrcontent_transport_uri'] if !opts[:'jcrcontent_transport_uri'].nil?
  query_params[:'jcr:content/transportUser'] = opts[:'jcrcontent_transport_user'] if !opts[:'jcrcontent_transport_user'].nil?
  query_params[:'jcr:content/triggerDistribute'] = opts[:'jcrcontent_trigger_distribute'] if !opts[:'jcrcontent_trigger_distribute'].nil?
  query_params[:'jcr:content/triggerModified'] = opts[:'jcrcontent_trigger_modified'] if !opts[:'jcrcontent_trigger_modified'].nil?
  query_params[:'jcr:content/triggerOnOffTime'] = opts[:'jcrcontent_trigger_on_off_time'] if !opts[:'jcrcontent_trigger_on_off_time'].nil?
  query_params[:'jcr:content/triggerReceive'] = opts[:'jcrcontent_trigger_receive'] if !opts[:'jcrcontent_trigger_receive'].nil?
  query_params[:'jcr:content/triggerSpecific'] = opts[:'jcrcontent_trigger_specific'] if !opts[:'jcrcontent_trigger_specific'].nil?
  query_params[:'jcr:content/userId'] = opts[:'jcrcontent_user_id'] if !opts[:'jcrcontent_user_id'].nil?
  query_params[:'jcr:primaryType'] = opts[:'jcrprimary_type'] if !opts[:'jcrprimary_type'].nil?
  query_params[:':operation'] = opts[:'operation'] if !opts[:'operation'].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: SlingApi#post_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_authorizable_keystore(intermediate_path, authorizable_id, opts = {}) ⇒ KeystoreInfo

Parameters:

  • intermediate_path (String)
  • authorizable_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :operation (String)
  • :current_password (String)
  • :new_password (String)
  • :re_password (String)
  • :key_password (String)
  • :key_store_pass (String)
  • :_alias (String)
  • :new_alias (String)
  • :remove_alias (String)
  • :cert_chain (File)
  • :pk (File)
  • :key_store (File)

Returns:



1008
1009
1010
1011
# File 'lib/swagger_aem/api/sling_api.rb', line 1008

def (intermediate_path, authorizable_id, opts = {})
  data, _status_code, _headers = (intermediate_path, authorizable_id, opts)
  data
end

#post_authorizable_keystore_with_http_info(intermediate_path, authorizable_id, opts = {}) ⇒ Array<(KeystoreInfo, Integer, Hash)>

Returns KeystoreInfo data, response status code and response headers.

Parameters:

  • intermediate_path (String)
  • authorizable_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :operation (String)
  • :current_password (String)
  • :new_password (String)
  • :re_password (String)
  • :key_password (String)
  • :key_store_pass (String)
  • :_alias (String)
  • :new_alias (String)
  • :remove_alias (String)
  • :cert_chain (File)
  • :pk (File)
  • :key_store (File)

Returns:

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

    KeystoreInfo data, response status code and response headers



1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
# File 'lib/swagger_aem/api/sling_api.rb', line 1029

def (intermediate_path, authorizable_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_authorizable_keystore ...'
  end
  # verify the required parameter 'intermediate_path' is set
  if @api_client.config.client_side_validation && intermediate_path.nil?
    fail ArgumentError, "Missing the required parameter 'intermediate_path' when calling SlingApi.post_authorizable_keystore"
  end
  # verify the required parameter 'authorizable_id' is set
  if @api_client.config.client_side_validation && authorizable_id.nil?
    fail ArgumentError, "Missing the required parameter 'authorizable_id' when calling SlingApi.post_authorizable_keystore"
  end
  # resource path
  local_var_path = '/{intermediatePath}/{authorizableId}.ks.html'.sub('{' + 'intermediatePath' + '}', CGI.escape(intermediate_path.to_s)).sub('{' + 'authorizableId' + '}', CGI.escape(authorizable_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:':operation'] = opts[:'operation'] if !opts[:'operation'].nil?
  query_params[:'currentPassword'] = opts[:'current_password'] if !opts[:'current_password'].nil?
  query_params[:'newPassword'] = opts[:'new_password'] if !opts[:'new_password'].nil?
  query_params[:'rePassword'] = opts[:'re_password'] if !opts[:'re_password'].nil?
  query_params[:'keyPassword'] = opts[:'key_password'] if !opts[:'key_password'].nil?
  query_params[:'keyStorePass'] = opts[:'key_store_pass'] if !opts[:'key_store_pass'].nil?
  query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
  query_params[:'newAlias'] = opts[:'new_alias'] if !opts[:'new_alias'].nil?
  query_params[:'removeAlias'] = opts[:'remove_alias'] if !opts[:'remove_alias'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
  # 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['cert-chain'] = opts[:'cert_chain'] if !opts[:'cert_chain'].nil?
  form_params['pk'] = opts[:'pk'] if !opts[:'pk'].nil?
  form_params['keyStore'] = opts[:'key_store'] if !opts[:'key_store'].nil?

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

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

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

#post_authorizables(authorizable_id, intermediate_path, opts = {}) ⇒ String

Parameters:

  • authorizable_id (String)
  • intermediate_path (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :create_user (String)
  • :create_group (String)
  • :reppassword (String)
  • :profile_given_name (String)

Returns:

  • (String)


1102
1103
1104
1105
# File 'lib/swagger_aem/api/sling_api.rb', line 1102

def (authorizable_id, intermediate_path, opts = {})
  data, _status_code, _headers = (authorizable_id, intermediate_path, opts)
  data
end

#post_authorizables_with_http_info(authorizable_id, intermediate_path, opts = {}) ⇒ Array<(String, Integer, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • authorizable_id (String)
  • intermediate_path (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :create_user (String)
  • :create_group (String)
  • :reppassword (String)
  • :profile_given_name (String)

Returns:

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

    String data, response status code and response headers



1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
# File 'lib/swagger_aem/api/sling_api.rb', line 1115

def (authorizable_id, intermediate_path, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_authorizables ...'
  end
  # verify the required parameter 'authorizable_id' is set
  if @api_client.config.client_side_validation && authorizable_id.nil?
    fail ArgumentError, "Missing the required parameter 'authorizable_id' when calling SlingApi.post_authorizables"
  end
  # verify the required parameter 'intermediate_path' is set
  if @api_client.config.client_side_validation && intermediate_path.nil?
    fail ArgumentError, "Missing the required parameter 'intermediate_path' when calling SlingApi.post_authorizables"
  end
  # resource path
  local_var_path = '/libs/granite/security/post/authorizables'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'authorizableId'] = authorizable_id
  query_params[:'intermediatePath'] = intermediate_path
  query_params[:'createUser'] = opts[:'create_user'] if !opts[:'create_user'].nil?
  query_params[:'createGroup'] = opts[:'create_group'] if !opts[:'create_group'].nil?
  query_params[:'rep:password'] = opts[:'reppassword'] if !opts[:'reppassword'].nil?
  query_params[:'profile/givenName'] = opts[:'profile_given_name'] if !opts[:'profile_given_name'].nil?

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

#post_config_adobe_granite_saml_authentication_handler(opts = {}) ⇒ nil

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :key_store_password (String)
  • :key_store_password_type_hint (String)
  • :service_ranking (Integer)
  • :service_ranking_type_hint (String)
  • :idp_http_redirect (Boolean)
  • :idp_http_redirect_type_hint (String)
  • :create_user (Boolean)
  • :create_user_type_hint (String)
  • :default_redirect_url (String)
  • :default_redirect_url_type_hint (String)
  • :user_id_attribute (String)
  • :user_id_attribute_type_hint (String)
  • :default_groups (Array<String>)
  • :default_groups_type_hint (String)
  • :idp_cert_alias (String)
  • :idp_cert_alias_type_hint (String)
  • :add_group_memberships (Boolean)
  • :add_group_memberships_type_hint (String)
  • :path (Array<String>)
  • :path_type_hint (String)
  • :synchronize_attributes (Array<String>)
  • :synchronize_attributes_type_hint (String)
  • :clock_tolerance (Integer)
  • :clock_tolerance_type_hint (String)
  • :group_membership_attribute (String)
  • :group_membership_attribute_type_hint (String)
  • :idp_url (String)
  • :idp_url_type_hint (String)
  • :logout_url (String)
  • :logout_url_type_hint (String)
  • :service_provider_entity_id (String)
  • :service_provider_entity_id_type_hint (String)
  • :assertion_consumer_service_url (String)
  • :assertion_consumer_service_url_type_hint (String)
  • :handle_logout (Boolean)
  • :handle_logout_type_hint (String)
  • :sp_private_key_alias (String)
  • :sp_private_key_alias_type_hint (String)
  • :use_encryption (Boolean)
  • :use_encryption_type_hint (String)
  • :name_id_format (String)
  • :name_id_format_type_hint (String)
  • :digest_method (String)
  • :digest_method_type_hint (String)
  • :signature_method (String)
  • :signature_method_type_hint (String)
  • :user_intermediate_path (String)
  • :user_intermediate_path_type_hint (String)

Returns:

  • (nil)


1222
1223
1224
1225
# File 'lib/swagger_aem/api/sling_api.rb', line 1222

def post_config_adobe_granite_saml_authentication_handler(opts = {})
  post_config_adobe_granite_saml_authentication_handler_with_http_info(opts)
  nil
end

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

Returns nil, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :key_store_password (String)
  • :key_store_password_type_hint (String)
  • :service_ranking (Integer)
  • :service_ranking_type_hint (String)
  • :idp_http_redirect (Boolean)
  • :idp_http_redirect_type_hint (String)
  • :create_user (Boolean)
  • :create_user_type_hint (String)
  • :default_redirect_url (String)
  • :default_redirect_url_type_hint (String)
  • :user_id_attribute (String)
  • :user_id_attribute_type_hint (String)
  • :default_groups (Array<String>)
  • :default_groups_type_hint (String)
  • :idp_cert_alias (String)
  • :idp_cert_alias_type_hint (String)
  • :add_group_memberships (Boolean)
  • :add_group_memberships_type_hint (String)
  • :path (Array<String>)
  • :path_type_hint (String)
  • :synchronize_attributes (Array<String>)
  • :synchronize_attributes_type_hint (String)
  • :clock_tolerance (Integer)
  • :clock_tolerance_type_hint (String)
  • :group_membership_attribute (String)
  • :group_membership_attribute_type_hint (String)
  • :idp_url (String)
  • :idp_url_type_hint (String)
  • :logout_url (String)
  • :logout_url_type_hint (String)
  • :service_provider_entity_id (String)
  • :service_provider_entity_id_type_hint (String)
  • :assertion_consumer_service_url (String)
  • :assertion_consumer_service_url_type_hint (String)
  • :handle_logout (Boolean)
  • :handle_logout_type_hint (String)
  • :sp_private_key_alias (String)
  • :sp_private_key_alias_type_hint (String)
  • :use_encryption (Boolean)
  • :use_encryption_type_hint (String)
  • :name_id_format (String)
  • :name_id_format_type_hint (String)
  • :digest_method (String)
  • :digest_method_type_hint (String)
  • :signature_method (String)
  • :signature_method_type_hint (String)
  • :user_intermediate_path (String)
  • :user_intermediate_path_type_hint (String)

Returns:

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

    nil, response status code and response headers



1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
# File 'lib/swagger_aem/api/sling_api.rb', line 1277

def post_config_adobe_granite_saml_authentication_handler_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_config_adobe_granite_saml_authentication_handler ...'
  end
  # resource path
  local_var_path = '/apps/system/config/com.adobe.granite.auth.saml.SamlAuthenticationHandler.config'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'keyStorePassword'] = opts[:'key_store_password'] if !opts[:'key_store_password'].nil?
  query_params[:'keyStorePassword@TypeHint'] = opts[:'key_store_password_type_hint'] if !opts[:'key_store_password_type_hint'].nil?
  query_params[:'service.ranking'] = opts[:'service_ranking'] if !opts[:'service_ranking'].nil?
  query_params[:'service.ranking@TypeHint'] = opts[:'service_ranking_type_hint'] if !opts[:'service_ranking_type_hint'].nil?
  query_params[:'idpHttpRedirect'] = opts[:'idp_http_redirect'] if !opts[:'idp_http_redirect'].nil?
  query_params[:'idpHttpRedirect@TypeHint'] = opts[:'idp_http_redirect_type_hint'] if !opts[:'idp_http_redirect_type_hint'].nil?
  query_params[:'createUser'] = opts[:'create_user'] if !opts[:'create_user'].nil?
  query_params[:'createUser@TypeHint'] = opts[:'create_user_type_hint'] if !opts[:'create_user_type_hint'].nil?
  query_params[:'defaultRedirectUrl'] = opts[:'default_redirect_url'] if !opts[:'default_redirect_url'].nil?
  query_params[:'defaultRedirectUrl@TypeHint'] = opts[:'default_redirect_url_type_hint'] if !opts[:'default_redirect_url_type_hint'].nil?
  query_params[:'userIDAttribute'] = opts[:'user_id_attribute'] if !opts[:'user_id_attribute'].nil?
  query_params[:'userIDAttribute@TypeHint'] = opts[:'user_id_attribute_type_hint'] if !opts[:'user_id_attribute_type_hint'].nil?
  query_params[:'defaultGroups'] = @api_client.build_collection_param(opts[:'default_groups'], :multi) if !opts[:'default_groups'].nil?
  query_params[:'defaultGroups@TypeHint'] = opts[:'default_groups_type_hint'] if !opts[:'default_groups_type_hint'].nil?
  query_params[:'idpCertAlias'] = opts[:'idp_cert_alias'] if !opts[:'idp_cert_alias'].nil?
  query_params[:'idpCertAlias@TypeHint'] = opts[:'idp_cert_alias_type_hint'] if !opts[:'idp_cert_alias_type_hint'].nil?
  query_params[:'addGroupMemberships'] = opts[:'add_group_memberships'] if !opts[:'add_group_memberships'].nil?
  query_params[:'addGroupMemberships@TypeHint'] = opts[:'add_group_memberships_type_hint'] if !opts[:'add_group_memberships_type_hint'].nil?
  query_params[:'path'] = @api_client.build_collection_param(opts[:'path'], :multi) if !opts[:'path'].nil?
  query_params[:'path@TypeHint'] = opts[:'path_type_hint'] if !opts[:'path_type_hint'].nil?
  query_params[:'synchronizeAttributes'] = @api_client.build_collection_param(opts[:'synchronize_attributes'], :multi) if !opts[:'synchronize_attributes'].nil?
  query_params[:'synchronizeAttributes@TypeHint'] = opts[:'synchronize_attributes_type_hint'] if !opts[:'synchronize_attributes_type_hint'].nil?
  query_params[:'clockTolerance'] = opts[:'clock_tolerance'] if !opts[:'clock_tolerance'].nil?
  query_params[:'clockTolerance@TypeHint'] = opts[:'clock_tolerance_type_hint'] if !opts[:'clock_tolerance_type_hint'].nil?
  query_params[:'groupMembershipAttribute'] = opts[:'group_membership_attribute'] if !opts[:'group_membership_attribute'].nil?
  query_params[:'groupMembershipAttribute@TypeHint'] = opts[:'group_membership_attribute_type_hint'] if !opts[:'group_membership_attribute_type_hint'].nil?
  query_params[:'idpUrl'] = opts[:'idp_url'] if !opts[:'idp_url'].nil?
  query_params[:'idpUrl@TypeHint'] = opts[:'idp_url_type_hint'] if !opts[:'idp_url_type_hint'].nil?
  query_params[:'logoutUrl'] = opts[:'logout_url'] if !opts[:'logout_url'].nil?
  query_params[:'logoutUrl@TypeHint'] = opts[:'logout_url_type_hint'] if !opts[:'logout_url_type_hint'].nil?
  query_params[:'serviceProviderEntityId'] = opts[:'service_provider_entity_id'] if !opts[:'service_provider_entity_id'].nil?
  query_params[:'serviceProviderEntityId@TypeHint'] = opts[:'service_provider_entity_id_type_hint'] if !opts[:'service_provider_entity_id_type_hint'].nil?
  query_params[:'assertionConsumerServiceURL'] = opts[:'assertion_consumer_service_url'] if !opts[:'assertion_consumer_service_url'].nil?
  query_params[:'assertionConsumerServiceURL@TypeHint'] = opts[:'assertion_consumer_service_url_type_hint'] if !opts[:'assertion_consumer_service_url_type_hint'].nil?
  query_params[:'handleLogout'] = opts[:'handle_logout'] if !opts[:'handle_logout'].nil?
  query_params[:'handleLogout@TypeHint'] = opts[:'handle_logout_type_hint'] if !opts[:'handle_logout_type_hint'].nil?
  query_params[:'spPrivateKeyAlias'] = opts[:'sp_private_key_alias'] if !opts[:'sp_private_key_alias'].nil?
  query_params[:'spPrivateKeyAlias@TypeHint'] = opts[:'sp_private_key_alias_type_hint'] if !opts[:'sp_private_key_alias_type_hint'].nil?
  query_params[:'useEncryption'] = opts[:'use_encryption'] if !opts[:'use_encryption'].nil?
  query_params[:'useEncryption@TypeHint'] = opts[:'use_encryption_type_hint'] if !opts[:'use_encryption_type_hint'].nil?
  query_params[:'nameIdFormat'] = opts[:'name_id_format'] if !opts[:'name_id_format'].nil?
  query_params[:'nameIdFormat@TypeHint'] = opts[:'name_id_format_type_hint'] if !opts[:'name_id_format_type_hint'].nil?
  query_params[:'digestMethod'] = opts[:'digest_method'] if !opts[:'digest_method'].nil?
  query_params[:'digestMethod@TypeHint'] = opts[:'digest_method_type_hint'] if !opts[:'digest_method_type_hint'].nil?
  query_params[:'signatureMethod'] = opts[:'signature_method'] if !opts[:'signature_method'].nil?
  query_params[:'signatureMethod@TypeHint'] = opts[:'signature_method_type_hint'] if !opts[:'signature_method_type_hint'].nil?
  query_params[:'userIntermediatePath'] = opts[:'user_intermediate_path'] if !opts[:'user_intermediate_path'].nil?
  query_params[:'userIntermediatePath@TypeHint'] = opts[:'user_intermediate_path_type_hint'] if !opts[:'user_intermediate_path_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: SlingApi#post_config_adobe_granite_saml_authentication_handler\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_config_apache_felix_jetty_based_http_service(opts = {}) ⇒ nil

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :org_apache_felix_https_nio (Boolean)
  • :org_apache_felix_https_nio_type_hint (String)
  • :org_apache_felix_https_keystore (String)
  • :org_apache_felix_https_keystore_type_hint (String)
  • :org_apache_felix_https_keystore_password (String)
  • :org_apache_felix_https_keystore_password_type_hint (String)
  • :org_apache_felix_https_keystore_key (String)
  • :org_apache_felix_https_keystore_key_type_hint (String)
  • :org_apache_felix_https_keystore_key_password (String)
  • :org_apache_felix_https_keystore_key_password_type_hint (String)
  • :org_apache_felix_https_truststore (String)
  • :org_apache_felix_https_truststore_type_hint (String)
  • :org_apache_felix_https_truststore_password (String)
  • :org_apache_felix_https_truststore_password_type_hint (String)
  • :org_apache_felix_https_clientcertificate (String)
  • :org_apache_felix_https_clientcertificate_type_hint (String)
  • :org_apache_felix_https_enable (Boolean)
  • :org_apache_felix_https_enable_type_hint (String)
  • :org_osgi_service_http_port_secure (String)
  • :org_osgi_service_http_port_secure_type_hint (String)

Returns:

  • (nil)


1388
1389
1390
1391
# File 'lib/swagger_aem/api/sling_api.rb', line 1388

def post_config_apache_felix_jetty_based_http_service(opts = {})
  post_config_apache_felix_jetty_based_http_service_with_http_info(opts)
  nil
end

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

Returns nil, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :org_apache_felix_https_nio (Boolean)
  • :org_apache_felix_https_nio_type_hint (String)
  • :org_apache_felix_https_keystore (String)
  • :org_apache_felix_https_keystore_type_hint (String)
  • :org_apache_felix_https_keystore_password (String)
  • :org_apache_felix_https_keystore_password_type_hint (String)
  • :org_apache_felix_https_keystore_key (String)
  • :org_apache_felix_https_keystore_key_type_hint (String)
  • :org_apache_felix_https_keystore_key_password (String)
  • :org_apache_felix_https_keystore_key_password_type_hint (String)
  • :org_apache_felix_https_truststore (String)
  • :org_apache_felix_https_truststore_type_hint (String)
  • :org_apache_felix_https_truststore_password (String)
  • :org_apache_felix_https_truststore_password_type_hint (String)
  • :org_apache_felix_https_clientcertificate (String)
  • :org_apache_felix_https_clientcertificate_type_hint (String)
  • :org_apache_felix_https_enable (Boolean)
  • :org_apache_felix_https_enable_type_hint (String)
  • :org_osgi_service_http_port_secure (String)
  • :org_osgi_service_http_port_secure_type_hint (String)

Returns:

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

    nil, response status code and response headers



1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
# File 'lib/swagger_aem/api/sling_api.rb', line 1415

def post_config_apache_felix_jetty_based_http_service_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_config_apache_felix_jetty_based_http_service ...'
  end
  # resource path
  local_var_path = '/apps/system/config/org.apache.felix.http'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'org.apache.felix.https.nio'] = opts[:'org_apache_felix_https_nio'] if !opts[:'org_apache_felix_https_nio'].nil?
  query_params[:'org.apache.felix.https.nio@TypeHint'] = opts[:'org_apache_felix_https_nio_type_hint'] if !opts[:'org_apache_felix_https_nio_type_hint'].nil?
  query_params[:'org.apache.felix.https.keystore'] = opts[:'org_apache_felix_https_keystore'] if !opts[:'org_apache_felix_https_keystore'].nil?
  query_params[:'org.apache.felix.https.keystore@TypeHint'] = opts[:'org_apache_felix_https_keystore_type_hint'] if !opts[:'org_apache_felix_https_keystore_type_hint'].nil?
  query_params[:'org.apache.felix.https.keystore.password'] = opts[:'org_apache_felix_https_keystore_password'] if !opts[:'org_apache_felix_https_keystore_password'].nil?
  query_params[:'org.apache.felix.https.keystore.password@TypeHint'] = opts[:'org_apache_felix_https_keystore_password_type_hint'] if !opts[:'org_apache_felix_https_keystore_password_type_hint'].nil?
  query_params[:'org.apache.felix.https.keystore.key'] = opts[:'org_apache_felix_https_keystore_key'] if !opts[:'org_apache_felix_https_keystore_key'].nil?
  query_params[:'org.apache.felix.https.keystore.key@TypeHint'] = opts[:'org_apache_felix_https_keystore_key_type_hint'] if !opts[:'org_apache_felix_https_keystore_key_type_hint'].nil?
  query_params[:'org.apache.felix.https.keystore.key.password'] = opts[:'org_apache_felix_https_keystore_key_password'] if !opts[:'org_apache_felix_https_keystore_key_password'].nil?
  query_params[:'org.apache.felix.https.keystore.key.password@TypeHint'] = opts[:'org_apache_felix_https_keystore_key_password_type_hint'] if !opts[:'org_apache_felix_https_keystore_key_password_type_hint'].nil?
  query_params[:'org.apache.felix.https.truststore'] = opts[:'org_apache_felix_https_truststore'] if !opts[:'org_apache_felix_https_truststore'].nil?
  query_params[:'org.apache.felix.https.truststore@TypeHint'] = opts[:'org_apache_felix_https_truststore_type_hint'] if !opts[:'org_apache_felix_https_truststore_type_hint'].nil?
  query_params[:'org.apache.felix.https.truststore.password'] = opts[:'org_apache_felix_https_truststore_password'] if !opts[:'org_apache_felix_https_truststore_password'].nil?
  query_params[:'org.apache.felix.https.truststore.password@TypeHint'] = opts[:'org_apache_felix_https_truststore_password_type_hint'] if !opts[:'org_apache_felix_https_truststore_password_type_hint'].nil?
  query_params[:'org.apache.felix.https.clientcertificate'] = opts[:'org_apache_felix_https_clientcertificate'] if !opts[:'org_apache_felix_https_clientcertificate'].nil?
  query_params[:'org.apache.felix.https.clientcertificate@TypeHint'] = opts[:'org_apache_felix_https_clientcertificate_type_hint'] if !opts[:'org_apache_felix_https_clientcertificate_type_hint'].nil?
  query_params[:'org.apache.felix.https.enable'] = opts[:'org_apache_felix_https_enable'] if !opts[:'org_apache_felix_https_enable'].nil?
  query_params[:'org.apache.felix.https.enable@TypeHint'] = opts[:'org_apache_felix_https_enable_type_hint'] if !opts[:'org_apache_felix_https_enable_type_hint'].nil?
  query_params[:'org.osgi.service.http.port.secure'] = opts[:'org_osgi_service_http_port_secure'] if !opts[:'org_osgi_service_http_port_secure'].nil?
  query_params[:'org.osgi.service.http.port.secure@TypeHint'] = opts[:'org_osgi_service_http_port_secure_type_hint'] if !opts[:'org_osgi_service_http_port_secure_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: SlingApi#post_config_apache_felix_jetty_based_http_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_config_apache_http_components_proxy_configuration(opts = {}) ⇒ nil

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :proxy_host (String)
  • :proxy_host_type_hint (String)
  • :proxy_port (Integer)
  • :proxy_port_type_hint (String)
  • :proxy_exceptions (Array<String>)
  • :proxy_exceptions_type_hint (String)
  • :proxy_enabled (Boolean)
  • :proxy_enabled_type_hint (String)
  • :proxy_user (String)
  • :proxy_user_type_hint (String)
  • :proxy_password (String)
  • :proxy_password_type_hint (String)

Returns:

  • (nil)


1490
1491
1492
1493
# File 'lib/swagger_aem/api/sling_api.rb', line 1490

def post_config_apache_http_components_proxy_configuration(opts = {})
  post_config_apache_http_components_proxy_configuration_with_http_info(opts)
  nil
end

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

Returns nil, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :proxy_host (String)
  • :proxy_host_type_hint (String)
  • :proxy_port (Integer)
  • :proxy_port_type_hint (String)
  • :proxy_exceptions (Array<String>)
  • :proxy_exceptions_type_hint (String)
  • :proxy_enabled (Boolean)
  • :proxy_enabled_type_hint (String)
  • :proxy_user (String)
  • :proxy_user_type_hint (String)
  • :proxy_password (String)
  • :proxy_password_type_hint (String)

Returns:

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

    nil, response status code and response headers



1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
# File 'lib/swagger_aem/api/sling_api.rb', line 1509

def post_config_apache_http_components_proxy_configuration_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_config_apache_http_components_proxy_configuration ...'
  end
  # resource path
  local_var_path = '/apps/system/config/org.apache.http.proxyconfigurator.config'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'proxy.host'] = opts[:'proxy_host'] if !opts[:'proxy_host'].nil?
  query_params[:'proxy.host@TypeHint'] = opts[:'proxy_host_type_hint'] if !opts[:'proxy_host_type_hint'].nil?
  query_params[:'proxy.port'] = opts[:'proxy_port'] if !opts[:'proxy_port'].nil?
  query_params[:'proxy.port@TypeHint'] = opts[:'proxy_port_type_hint'] if !opts[:'proxy_port_type_hint'].nil?
  query_params[:'proxy.exceptions'] = @api_client.build_collection_param(opts[:'proxy_exceptions'], :multi) if !opts[:'proxy_exceptions'].nil?
  query_params[:'proxy.exceptions@TypeHint'] = opts[:'proxy_exceptions_type_hint'] if !opts[:'proxy_exceptions_type_hint'].nil?
  query_params[:'proxy.enabled'] = opts[:'proxy_enabled'] if !opts[:'proxy_enabled'].nil?
  query_params[:'proxy.enabled@TypeHint'] = opts[:'proxy_enabled_type_hint'] if !opts[:'proxy_enabled_type_hint'].nil?
  query_params[:'proxy.user'] = opts[:'proxy_user'] if !opts[:'proxy_user'].nil?
  query_params[:'proxy.user@TypeHint'] = opts[:'proxy_user_type_hint'] if !opts[:'proxy_user_type_hint'].nil?
  query_params[:'proxy.password'] = opts[:'proxy_password'] if !opts[:'proxy_password'].nil?
  query_params[:'proxy.password@TypeHint'] = opts[:'proxy_password_type_hint'] if !opts[:'proxy_password_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: SlingApi#post_config_apache_http_components_proxy_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_config_apache_sling_dav_ex_servlet(opts = {}) ⇒ nil

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :_alias (String)
  • :alias_type_hint (String)
  • :dav_create_absolute_uri (Boolean)
  • :dav_create_absolute_uri_type_hint (String)

Returns:

  • (nil)


1568
1569
1570
1571
# File 'lib/swagger_aem/api/sling_api.rb', line 1568

def post_config_apache_sling_dav_ex_servlet(opts = {})
  post_config_apache_sling_dav_ex_servlet_with_http_info(opts)
  nil
end

#post_config_apache_sling_dav_ex_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

Options Hash (opts):

  • :_alias (String)
  • :alias_type_hint (String)
  • :dav_create_absolute_uri (Boolean)
  • :dav_create_absolute_uri_type_hint (String)

Returns:

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

    nil, response status code and response headers



1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
# File 'lib/swagger_aem/api/sling_api.rb', line 1579

def post_config_apache_sling_dav_ex_servlet_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_config_apache_sling_dav_ex_servlet ...'
  end
  # resource path
  local_var_path = '/apps/system/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
  query_params[:'alias@TypeHint'] = opts[:'alias_type_hint'] if !opts[:'alias_type_hint'].nil?
  query_params[:'dav.create-absolute-uri'] = opts[:'dav_create_absolute_uri'] if !opts[:'dav_create_absolute_uri'].nil?
  query_params[:'dav.create-absolute-uri@TypeHint'] = opts[:'dav_create_absolute_uri_type_hint'] if !opts[:'dav_create_absolute_uri_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: SlingApi#post_config_apache_sling_dav_ex_servlet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_config_apache_sling_get_servlet(opts = {}) ⇒ nil

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :json_maximumresults (String)
  • :json_maximumresults_type_hint (String)
  • :enable_html (Boolean)
  • :enable_html_type_hint (String)
  • :enable_txt (Boolean)
  • :enable_txt_type_hint (String)
  • :enable_xml (Boolean)
  • :enable_xml_type_hint (String)

Returns:

  • (nil)


1634
1635
1636
1637
# File 'lib/swagger_aem/api/sling_api.rb', line 1634

def post_config_apache_sling_get_servlet(opts = {})
  post_config_apache_sling_get_servlet_with_http_info(opts)
  nil
end

#post_config_apache_sling_get_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

Options Hash (opts):

  • :json_maximumresults (String)
  • :json_maximumresults_type_hint (String)
  • :enable_html (Boolean)
  • :enable_html_type_hint (String)
  • :enable_txt (Boolean)
  • :enable_txt_type_hint (String)
  • :enable_xml (Boolean)
  • :enable_xml_type_hint (String)

Returns:

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

    nil, response status code and response headers



1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
# File 'lib/swagger_aem/api/sling_api.rb', line 1649

def post_config_apache_sling_get_servlet_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_config_apache_sling_get_servlet ...'
  end
  # resource path
  local_var_path = '/apps/system/config/org.apache.sling.servlets.get.DefaultGetServlet'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'json.maximumresults'] = opts[:'json_maximumresults'] if !opts[:'json_maximumresults'].nil?
  query_params[:'json.maximumresults@TypeHint'] = opts[:'json_maximumresults_type_hint'] if !opts[:'json_maximumresults_type_hint'].nil?
  query_params[:'enable.html'] = opts[:'enable_html'] if !opts[:'enable_html'].nil?
  query_params[:'enable.html@TypeHint'] = opts[:'enable_html_type_hint'] if !opts[:'enable_html_type_hint'].nil?
  query_params[:'enable.txt'] = opts[:'enable_txt'] if !opts[:'enable_txt'].nil?
  query_params[:'enable.txt@TypeHint'] = opts[:'enable_txt_type_hint'] if !opts[:'enable_txt_type_hint'].nil?
  query_params[:'enable.xml'] = opts[:'enable_xml'] if !opts[:'enable_xml'].nil?
  query_params[:'enable.xml@TypeHint'] = opts[:'enable_xml_type_hint'] if !opts[:'enable_xml_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: SlingApi#post_config_apache_sling_get_servlet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_config_apache_sling_referrer_filter(opts = {}) ⇒ nil

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :allow_empty (Boolean)
  • :allow_empty_type_hint (String)
  • :allow_hosts (String)
  • :allow_hosts_type_hint (String)
  • :allow_hosts_regexp (String)
  • :allow_hosts_regexp_type_hint (String)
  • :filter_methods (String)
  • :filter_methods_type_hint (String)

Returns:

  • (nil)


1708
1709
1710
1711
# File 'lib/swagger_aem/api/sling_api.rb', line 1708

def post_config_apache_sling_referrer_filter(opts = {})
  post_config_apache_sling_referrer_filter_with_http_info(opts)
  nil
end

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

Returns nil, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :allow_empty (Boolean)
  • :allow_empty_type_hint (String)
  • :allow_hosts (String)
  • :allow_hosts_type_hint (String)
  • :allow_hosts_regexp (String)
  • :allow_hosts_regexp_type_hint (String)
  • :filter_methods (String)
  • :filter_methods_type_hint (String)

Returns:

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

    nil, response status code and response headers



1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
# File 'lib/swagger_aem/api/sling_api.rb', line 1723

def post_config_apache_sling_referrer_filter_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_config_apache_sling_referrer_filter ...'
  end
  # resource path
  local_var_path = '/apps/system/config/org.apache.sling.security.impl.ReferrerFilter'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'allow.empty'] = opts[:'allow_empty'] if !opts[:'allow_empty'].nil?
  query_params[:'allow.empty@TypeHint'] = opts[:'allow_empty_type_hint'] if !opts[:'allow_empty_type_hint'].nil?
  query_params[:'allow.hosts'] = opts[:'allow_hosts'] if !opts[:'allow_hosts'].nil?
  query_params[:'allow.hosts@TypeHint'] = opts[:'allow_hosts_type_hint'] if !opts[:'allow_hosts_type_hint'].nil?
  query_params[:'allow.hosts.regexp'] = opts[:'allow_hosts_regexp'] if !opts[:'allow_hosts_regexp'].nil?
  query_params[:'allow.hosts.regexp@TypeHint'] = opts[:'allow_hosts_regexp_type_hint'] if !opts[:'allow_hosts_regexp_type_hint'].nil?
  query_params[:'filter.methods'] = opts[:'filter_methods'] if !opts[:'filter_methods'].nil?
  query_params[:'filter.methods@TypeHint'] = opts[:'filter_methods_type_hint'] if !opts[:'filter_methods_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: SlingApi#post_config_apache_sling_referrer_filter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_config_property(config_node_name, opts = {}) ⇒ nil

Parameters:

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

    the optional parameters

Returns:

  • (nil)


1775
1776
1777
1778
# File 'lib/swagger_aem/api/sling_api.rb', line 1775

def post_config_property(config_node_name, opts = {})
  post_config_property_with_http_info(config_node_name, opts)
  nil
end

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

Returns nil, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    nil, response status code and response headers



1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
# File 'lib/swagger_aem/api/sling_api.rb', line 1783

def post_config_property_with_http_info(config_node_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_config_property ...'
  end
  # verify the required parameter 'config_node_name' is set
  if @api_client.config.client_side_validation && config_node_name.nil?
    fail ArgumentError, "Missing the required parameter 'config_node_name' when calling SlingApi.post_config_property"
  end
  # resource path
  local_var_path = '/apps/system/config/{configNodeName}'.sub('{' + 'configNodeName' + '}', CGI.escape(config_node_name.to_s))

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

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

#post_node(path, name, opts = {}) ⇒ nil

Parameters:

  • path (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :operation (String)
  • :delete_authorizable (String)
  • :file (File)

Returns:

  • (nil)


1835
1836
1837
1838
# File 'lib/swagger_aem/api/sling_api.rb', line 1835

def post_node(path, name, opts = {})
  post_node_with_http_info(path, name, opts)
  nil
end

#post_node_rw(path, name, opts = {}) ⇒ nil

Parameters:

  • path (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :add_members (String)

Returns:

  • (nil)


1906
1907
1908
1909
# File 'lib/swagger_aem/api/sling_api.rb', line 1906

def post_node_rw(path, name, opts = {})
  post_node_rw_with_http_info(path, name, opts)
  nil
end

#post_node_rw_with_http_info(path, name, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • path (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :add_members (String)

Returns:

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

    nil, response status code and response headers



1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
# File 'lib/swagger_aem/api/sling_api.rb', line 1916

def post_node_rw_with_http_info(path, name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_node_rw ...'
  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 SlingApi.post_node_rw"
  end
  # verify the required parameter 'name' is set
  if @api_client.config.client_side_validation && name.nil?
    fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.post_node_rw"
  end
  # resource path
  local_var_path = '/{path}/{name}.rw.html'.sub('{' + 'path' + '}', CGI.escape(path.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'addMembers'] = opts[:'add_members'] if !opts[:'add_members'].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: SlingApi#post_node_rw\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_node_with_http_info(path, name, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • path (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :operation (String)
  • :delete_authorizable (String)
  • :file (File)

Returns:

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

    nil, response status code and response headers



1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
# File 'lib/swagger_aem/api/sling_api.rb', line 1847

def post_node_with_http_info(path, name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_node ...'
  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 SlingApi.post_node"
  end
  # verify the required parameter 'name' is set
  if @api_client.config.client_side_validation && name.nil?
    fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.post_node"
  end
  # resource path
  local_var_path = '/{path}/{name}'.sub('{' + 'path' + '}', CGI.escape(path.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:':operation'] = opts[:'operation'] if !opts[:'operation'].nil?
  query_params[:'deleteAuthorizable'] = opts[:'delete_authorizable'] if !opts[:'delete_authorizable'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # 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['file'] = opts[:'file'] if !opts[:'file'].nil?

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

#post_path(path, jcrprimary_type, name, opts = {}) ⇒ nil

Parameters:

  • path (String)
  • jcrprimary_type (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


1971
1972
1973
1974
# File 'lib/swagger_aem/api/sling_api.rb', line 1971

def post_path(path, jcrprimary_type, name, opts = {})
  post_path_with_http_info(path, jcrprimary_type, name, opts)
  nil
end

#post_path_with_http_info(path, jcrprimary_type, name, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • path (String)
  • jcrprimary_type (String)
  • name (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    nil, response status code and response headers



1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
# File 'lib/swagger_aem/api/sling_api.rb', line 1981

def post_path_with_http_info(path, jcrprimary_type, name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_path ...'
  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 SlingApi.post_path"
  end
  # verify the required parameter 'jcrprimary_type' is set
  if @api_client.config.client_side_validation && jcrprimary_type.nil?
    fail ArgumentError, "Missing the required parameter 'jcrprimary_type' when calling SlingApi.post_path"
  end
  # verify the required parameter 'name' is set
  if @api_client.config.client_side_validation && name.nil?
    fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.post_path"
  end
  # resource path
  local_var_path = '/{path}/'.sub('{' + 'path' + '}', CGI.escape(path.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'jcr:primaryType'] = jcrprimary_type
  query_params[:':name'] = name

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

#post_query(path, p_limit, _1_property, _1_property_value, opts = {}) ⇒ String

Parameters:

  • path (String)
  • p_limit (Float)
  • _1_property (String)
  • _1_property_value (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


2042
2043
2044
2045
# File 'lib/swagger_aem/api/sling_api.rb', line 2042

def post_query(path, p_limit, _1_property, _1_property_value, opts = {})
  data, _status_code, _headers = post_query_with_http_info(path, p_limit, _1_property, _1_property_value, opts)
  data
end

#post_query_with_http_info(path, p_limit, _1_property, _1_property_value, opts = {}) ⇒ Array<(String, Integer, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • path (String)
  • p_limit (Float)
  • _1_property (String)
  • _1_property_value (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    String data, response status code and response headers



2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
# File 'lib/swagger_aem/api/sling_api.rb', line 2053

def post_query_with_http_info(path, p_limit, _1_property, _1_property_value, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_query ...'
  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 SlingApi.post_query"
  end
  # verify the required parameter 'p_limit' is set
  if @api_client.config.client_side_validation && p_limit.nil?
    fail ArgumentError, "Missing the required parameter 'p_limit' when calling SlingApi.post_query"
  end
  # verify the required parameter '_1_property' is set
  if @api_client.config.client_side_validation && _1_property.nil?
    fail ArgumentError, "Missing the required parameter '_1_property' when calling SlingApi.post_query"
  end
  # verify the required parameter '_1_property_value' is set
  if @api_client.config.client_side_validation && _1_property_value.nil?
    fail ArgumentError, "Missing the required parameter '_1_property_value' when calling SlingApi.post_query"
  end
  # resource path
  local_var_path = '/bin/querybuilder.json'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'path'] = path
  query_params[:'p.limit'] = p_limit
  query_params[:'1_property'] = _1_property
  query_params[:'1_property.value'] = _1_property_value

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

#post_tree_activation(ignoredeactivated, onlymodified, path, cmd, opts = {}) ⇒ nil

Parameters:

  • ignoredeactivated (Boolean)
  • onlymodified (Boolean)
  • path (String)
  • cmd (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2122
2123
2124
2125
# File 'lib/swagger_aem/api/sling_api.rb', line 2122

def post_tree_activation(ignoredeactivated, onlymodified, path, cmd, opts = {})
  post_tree_activation_with_http_info(ignoredeactivated, onlymodified, path, cmd, opts)
  nil
end

#post_tree_activation_with_http_info(ignoredeactivated, onlymodified, path, cmd, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • ignoredeactivated (Boolean)
  • onlymodified (Boolean)
  • path (String)
  • cmd (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    nil, response status code and response headers



2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
# File 'lib/swagger_aem/api/sling_api.rb', line 2133

def post_tree_activation_with_http_info(ignoredeactivated, onlymodified, path, cmd, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_tree_activation ...'
  end
  # verify the required parameter 'ignoredeactivated' is set
  if @api_client.config.client_side_validation && ignoredeactivated.nil?
    fail ArgumentError, "Missing the required parameter 'ignoredeactivated' when calling SlingApi.post_tree_activation"
  end
  # verify the required parameter 'onlymodified' is set
  if @api_client.config.client_side_validation && onlymodified.nil?
    fail ArgumentError, "Missing the required parameter 'onlymodified' when calling SlingApi.post_tree_activation"
  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 SlingApi.post_tree_activation"
  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 SlingApi.post_tree_activation"
  end
  # resource path
  local_var_path = '/libs/replication/treeactivation.html'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ignoredeactivated'] = ignoredeactivated
  query_params[:'onlymodified'] = onlymodified
  query_params[:'path'] = path
  query_params[:'cmd'] = cmd

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

#post_truststore(opts = {}) ⇒ String

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :operation (String)
  • :new_password (String)
  • :re_password (String)
  • :key_store_type (String)
  • :remove_alias (String)
  • :certificate (File)

Returns:

  • (String)


2202
2203
2204
2205
# File 'lib/swagger_aem/api/sling_api.rb', line 2202

def post_truststore(opts = {})
  data, _status_code, _headers = post_truststore_with_http_info(opts)
  data
end

#post_truststore_pkcs12(opts = {}) ⇒ String

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :truststore_p12 (File)

Returns:

  • (String)


2269
2270
2271
2272
# File 'lib/swagger_aem/api/sling_api.rb', line 2269

def post_truststore_pkcs12(opts = {})
  data, _status_code, _headers = post_truststore_pkcs12_with_http_info(opts)
  data
end

#post_truststore_pkcs12_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

Options Hash (opts):

  • :truststore_p12 (File)

Returns:

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

    String data, response status code and response headers



2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
# File 'lib/swagger_aem/api/sling_api.rb', line 2277

def post_truststore_pkcs12_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_truststore_pkcs12 ...'
  end
  # resource path
  local_var_path = '/etc/truststore'

  # 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/plain'])
  # 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['truststore.p12'] = opts[:'truststore_p12'] if !opts[:'truststore_p12'].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: SlingApi#post_truststore_pkcs12\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_truststore_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

Options Hash (opts):

  • :operation (String)
  • :new_password (String)
  • :re_password (String)
  • :key_store_type (String)
  • :remove_alias (String)
  • :certificate (File)

Returns:

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

    String data, response status code and response headers



2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
# File 'lib/swagger_aem/api/sling_api.rb', line 2215

def post_truststore_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SlingApi.post_truststore ...'
  end
  # resource path
  local_var_path = '/libs/granite/security/post/truststore'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:':operation'] = opts[:'operation'] if !opts[:'operation'].nil?
  query_params[:'newPassword'] = opts[:'new_password'] if !opts[:'new_password'].nil?
  query_params[:'rePassword'] = opts[:'re_password'] if !opts[:'re_password'].nil?
  query_params[:'keyStoreType'] = opts[:'key_store_type'] if !opts[:'key_store_type'].nil?
  query_params[:'removeAlias'] = opts[:'remove_alias'] if !opts[:'remove_alias'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
  # 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['certificate'] = opts[:'certificate'] if !opts[:'certificate'].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: SlingApi#post_truststore\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end