purecloud 0.0.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config-ruby.json +1 -1
- data/lib/purecloud/api/analytics_api.rb +57 -57
- data/lib/purecloud/api/architect_api.rb +16 -16
- data/lib/purecloud/api/attributes_api.rb +33 -33
- data/lib/purecloud/api/authorization_api.rb +53 -53
- data/lib/purecloud/api/compliance_api.rb +5 -5
- data/lib/purecloud/api/configuration_api.rb +303 -303
- data/lib/purecloud/api/content_management_api.rb +215 -215
- data/lib/purecloud/api/conversations_api.rb +159 -159
- data/lib/purecloud/api/downloads_api.rb +6 -6
- data/lib/purecloud/api/fax_api.rb +6 -6
- data/lib/purecloud/api/geolocation_api.rb +24 -24
- data/lib/purecloud/api/greetings_api.rb +56 -56
- data/lib/purecloud/api/groups_api.rb +17 -17
- data/lib/purecloud/api/languages_api.rb +11 -11
- data/lib/purecloud/api/licensing_api.rb +17 -17
- data/lib/purecloud/api/locations_api.rb +11 -11
- data/lib/purecloud/api/notifications_api.rb +17 -17
- data/lib/purecloud/api/o_auth_api.rb +97 -97
- data/lib/purecloud/api/orphaned_recordings_api.rb +17 -17
- data/lib/purecloud/api/outbound_api.rb +259 -259
- data/lib/purecloud/api/presence_api.rb +53 -53
- data/lib/purecloud/api/quality_api.rb +101 -101
- data/lib/purecloud/api/routing_api.rb +125 -125
- data/lib/purecloud/api/scripts_api.rb +60 -60
- data/lib/purecloud/api/search_api.rb +5 -5
- data/lib/purecloud/api/stations_api.rb +17 -17
- data/lib/purecloud/api/telephony_providers_edge_api.rb +212 -212
- data/lib/purecloud/api/user_recordings_api.rb +34 -34
- data/lib/purecloud/api/users_api.rb +123 -123
- data/lib/purecloud/api/utilities_api.rb +15 -15
- data/lib/purecloud/api/voicemail_api.rb +29 -29
- data/lib/purecloud/version.rb +1 -1
- data/newVersion.md +1 -1
- data/swagger.json +1 -1
- data/version.json +1 -1
- metadata +2 -2
@@ -14,8 +14,8 @@ module PureCloud
|
|
14
14
|
# @option opts [Integer] :page_number Page number
|
15
15
|
# @option opts [Integer] :page_size Page size
|
16
16
|
# @return [AttributeEntityListing]
|
17
|
-
def
|
18
|
-
data, status_code, headers =
|
17
|
+
def get(opts = {})
|
18
|
+
data, status_code, headers = get_with_http_info(opts)
|
19
19
|
return data
|
20
20
|
end
|
21
21
|
|
@@ -25,9 +25,9 @@ module PureCloud
|
|
25
25
|
# @option opts [Integer] :page_number Page number
|
26
26
|
# @option opts [Integer] :page_size Page size
|
27
27
|
# @return [Array<(AttributeEntityListing, Fixnum, Hash)>] AttributeEntityListing data, response status code and response headers
|
28
|
-
def
|
28
|
+
def get_with_http_info(opts = {})
|
29
29
|
if @api_client.config.debugging
|
30
|
-
@api_client.config.logger.debug "Calling API: AttributesApi#
|
30
|
+
@api_client.config.logger.debug "Calling API: AttributesApi#get ..."
|
31
31
|
end
|
32
32
|
|
33
33
|
# resource path
|
@@ -65,7 +65,7 @@ module PureCloud
|
|
65
65
|
:auth_names => auth_names,
|
66
66
|
:return_type => 'AttributeEntityListing')
|
67
67
|
if @api_client.config.debugging
|
68
|
-
@api_client.config.logger.debug "API called: AttributesApi#
|
68
|
+
@api_client.config.logger.debug "API called: AttributesApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
69
69
|
end
|
70
70
|
return data, status_code, headers
|
71
71
|
end
|
@@ -75,8 +75,8 @@ module PureCloud
|
|
75
75
|
# @param [Hash] opts the optional parameters
|
76
76
|
# @option opts [Attribute] :body Attribute
|
77
77
|
# @return [Attribute]
|
78
|
-
def
|
79
|
-
data, status_code, headers =
|
78
|
+
def create(opts = {})
|
79
|
+
data, status_code, headers = create_with_http_info(opts)
|
80
80
|
return data
|
81
81
|
end
|
82
82
|
|
@@ -85,9 +85,9 @@ module PureCloud
|
|
85
85
|
# @param [Hash] opts the optional parameters
|
86
86
|
# @option opts [Attribute] :body Attribute
|
87
87
|
# @return [Array<(Attribute, Fixnum, Hash)>] Attribute data, response status code and response headers
|
88
|
-
def
|
88
|
+
def create_with_http_info(opts = {})
|
89
89
|
if @api_client.config.debugging
|
90
|
-
@api_client.config.logger.debug "Calling API: AttributesApi#
|
90
|
+
@api_client.config.logger.debug "Calling API: AttributesApi#create ..."
|
91
91
|
end
|
92
92
|
|
93
93
|
# resource path
|
@@ -123,7 +123,7 @@ module PureCloud
|
|
123
123
|
:auth_names => auth_names,
|
124
124
|
:return_type => 'Attribute')
|
125
125
|
if @api_client.config.debugging
|
126
|
-
@api_client.config.logger.debug "API called: AttributesApi#
|
126
|
+
@api_client.config.logger.debug "API called: AttributesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
127
127
|
end
|
128
128
|
return data, status_code, headers
|
129
129
|
end
|
@@ -133,8 +133,8 @@ module PureCloud
|
|
133
133
|
# @param [Hash] opts the optional parameters
|
134
134
|
# @option opts [AttributeQueryRequest] :body query
|
135
135
|
# @return [AttributeEntityListing]
|
136
|
-
def
|
137
|
-
data, status_code, headers =
|
136
|
+
def create_query(opts = {})
|
137
|
+
data, status_code, headers = create_query_with_http_info(opts)
|
138
138
|
return data
|
139
139
|
end
|
140
140
|
|
@@ -143,9 +143,9 @@ module PureCloud
|
|
143
143
|
# @param [Hash] opts the optional parameters
|
144
144
|
# @option opts [AttributeQueryRequest] :body query
|
145
145
|
# @return [Array<(AttributeEntityListing, Fixnum, Hash)>] AttributeEntityListing data, response status code and response headers
|
146
|
-
def
|
146
|
+
def create_query_with_http_info(opts = {})
|
147
147
|
if @api_client.config.debugging
|
148
|
-
@api_client.config.logger.debug "Calling API: AttributesApi#
|
148
|
+
@api_client.config.logger.debug "Calling API: AttributesApi#create_query ..."
|
149
149
|
end
|
150
150
|
|
151
151
|
# resource path
|
@@ -181,7 +181,7 @@ module PureCloud
|
|
181
181
|
:auth_names => auth_names,
|
182
182
|
:return_type => 'AttributeEntityListing')
|
183
183
|
if @api_client.config.debugging
|
184
|
-
@api_client.config.logger.debug "API called: AttributesApi#
|
184
|
+
@api_client.config.logger.debug "API called: AttributesApi#create_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
185
185
|
end
|
186
186
|
return data, status_code, headers
|
187
187
|
end
|
@@ -191,8 +191,8 @@ module PureCloud
|
|
191
191
|
# @param attribute_id Attribute ID
|
192
192
|
# @param [Hash] opts the optional parameters
|
193
193
|
# @return [Attribute]
|
194
|
-
def
|
195
|
-
data, status_code, headers =
|
194
|
+
def get_attribute(attribute_id, opts = {})
|
195
|
+
data, status_code, headers = get_attribute_with_http_info(attribute_id, opts)
|
196
196
|
return data
|
197
197
|
end
|
198
198
|
|
@@ -201,13 +201,13 @@ module PureCloud
|
|
201
201
|
# @param attribute_id Attribute ID
|
202
202
|
# @param [Hash] opts the optional parameters
|
203
203
|
# @return [Array<(Attribute, Fixnum, Hash)>] Attribute data, response status code and response headers
|
204
|
-
def
|
204
|
+
def get_attribute_with_http_info(attribute_id, opts = {})
|
205
205
|
if @api_client.config.debugging
|
206
|
-
@api_client.config.logger.debug "Calling API: AttributesApi#
|
206
|
+
@api_client.config.logger.debug "Calling API: AttributesApi#get_attribute ..."
|
207
207
|
end
|
208
208
|
|
209
209
|
# verify the required parameter 'attribute_id' is set
|
210
|
-
fail "Missing the required parameter 'attribute_id' when calling
|
210
|
+
fail "Missing the required parameter 'attribute_id' when calling get_attribute" if attribute_id.nil?
|
211
211
|
|
212
212
|
# resource path
|
213
213
|
path = "/api/v1/attributes/{attributeId}".sub('{format}','json').sub('{' + 'attributeId' + '}', attribute_id.to_s)
|
@@ -242,7 +242,7 @@ module PureCloud
|
|
242
242
|
:auth_names => auth_names,
|
243
243
|
:return_type => 'Attribute')
|
244
244
|
if @api_client.config.debugging
|
245
|
-
@api_client.config.logger.debug "API called: AttributesApi#
|
245
|
+
@api_client.config.logger.debug "API called: AttributesApi#get_attribute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
246
246
|
end
|
247
247
|
return data, status_code, headers
|
248
248
|
end
|
@@ -253,8 +253,8 @@ module PureCloud
|
|
253
253
|
# @param [Hash] opts the optional parameters
|
254
254
|
# @option opts [Attribute] :body Attribute
|
255
255
|
# @return [Attribute]
|
256
|
-
def
|
257
|
-
data, status_code, headers =
|
256
|
+
def update_attribute(attribute_id, opts = {})
|
257
|
+
data, status_code, headers = update_attribute_with_http_info(attribute_id, opts)
|
258
258
|
return data
|
259
259
|
end
|
260
260
|
|
@@ -264,13 +264,13 @@ module PureCloud
|
|
264
264
|
# @param [Hash] opts the optional parameters
|
265
265
|
# @option opts [Attribute] :body Attribute
|
266
266
|
# @return [Array<(Attribute, Fixnum, Hash)>] Attribute data, response status code and response headers
|
267
|
-
def
|
267
|
+
def update_attribute_with_http_info(attribute_id, opts = {})
|
268
268
|
if @api_client.config.debugging
|
269
|
-
@api_client.config.logger.debug "Calling API: AttributesApi#
|
269
|
+
@api_client.config.logger.debug "Calling API: AttributesApi#update_attribute ..."
|
270
270
|
end
|
271
271
|
|
272
272
|
# verify the required parameter 'attribute_id' is set
|
273
|
-
fail "Missing the required parameter 'attribute_id' when calling
|
273
|
+
fail "Missing the required parameter 'attribute_id' when calling update_attribute" if attribute_id.nil?
|
274
274
|
|
275
275
|
# resource path
|
276
276
|
path = "/api/v1/attributes/{attributeId}".sub('{format}','json').sub('{' + 'attributeId' + '}', attribute_id.to_s)
|
@@ -305,7 +305,7 @@ module PureCloud
|
|
305
305
|
:auth_names => auth_names,
|
306
306
|
:return_type => 'Attribute')
|
307
307
|
if @api_client.config.debugging
|
308
|
-
@api_client.config.logger.debug "API called: AttributesApi#
|
308
|
+
@api_client.config.logger.debug "API called: AttributesApi#update_attribute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
309
309
|
end
|
310
310
|
return data, status_code, headers
|
311
311
|
end
|
@@ -315,8 +315,8 @@ module PureCloud
|
|
315
315
|
# @param attribute_id Attribute ID
|
316
316
|
# @param [Hash] opts the optional parameters
|
317
317
|
# @return [nil]
|
318
|
-
def
|
319
|
-
|
318
|
+
def delete_attribute(attribute_id, opts = {})
|
319
|
+
delete_attribute_with_http_info(attribute_id, opts)
|
320
320
|
return nil
|
321
321
|
end
|
322
322
|
|
@@ -325,13 +325,13 @@ module PureCloud
|
|
325
325
|
# @param attribute_id Attribute ID
|
326
326
|
# @param [Hash] opts the optional parameters
|
327
327
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
328
|
-
def
|
328
|
+
def delete_attribute_with_http_info(attribute_id, opts = {})
|
329
329
|
if @api_client.config.debugging
|
330
|
-
@api_client.config.logger.debug "Calling API: AttributesApi#
|
330
|
+
@api_client.config.logger.debug "Calling API: AttributesApi#delete_attribute ..."
|
331
331
|
end
|
332
332
|
|
333
333
|
# verify the required parameter 'attribute_id' is set
|
334
|
-
fail "Missing the required parameter 'attribute_id' when calling
|
334
|
+
fail "Missing the required parameter 'attribute_id' when calling delete_attribute" if attribute_id.nil?
|
335
335
|
|
336
336
|
# resource path
|
337
337
|
path = "/api/v1/attributes/{attributeId}".sub('{format}','json').sub('{' + 'attributeId' + '}', attribute_id.to_s)
|
@@ -365,7 +365,7 @@ module PureCloud
|
|
365
365
|
:body => post_body,
|
366
366
|
:auth_names => auth_names)
|
367
367
|
if @api_client.config.debugging
|
368
|
-
@api_client.config.logger.debug "API called: AttributesApi#
|
368
|
+
@api_client.config.logger.debug "API called: AttributesApi#delete_attribute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
369
369
|
end
|
370
370
|
return data, status_code, headers
|
371
371
|
end
|
@@ -267,8 +267,8 @@ module PureCloud
|
|
267
267
|
# @param [Hash] opts the optional parameters
|
268
268
|
# @option opts [DomainOrganizationRole] :body
|
269
269
|
# @return [DomainOrganizationRole]
|
270
|
-
def
|
271
|
-
data, status_code, headers =
|
270
|
+
def create_roles(opts = {})
|
271
|
+
data, status_code, headers = create_roles_with_http_info(opts)
|
272
272
|
return data
|
273
273
|
end
|
274
274
|
|
@@ -277,9 +277,9 @@ module PureCloud
|
|
277
277
|
# @param [Hash] opts the optional parameters
|
278
278
|
# @option opts [DomainOrganizationRole] :body
|
279
279
|
# @return [Array<(DomainOrganizationRole, Fixnum, Hash)>] DomainOrganizationRole data, response status code and response headers
|
280
|
-
def
|
280
|
+
def create_roles_with_http_info(opts = {})
|
281
281
|
if @api_client.config.debugging
|
282
|
-
@api_client.config.logger.debug "Calling API: AuthorizationApi#
|
282
|
+
@api_client.config.logger.debug "Calling API: AuthorizationApi#create_roles ..."
|
283
283
|
end
|
284
284
|
|
285
285
|
# resource path
|
@@ -315,7 +315,7 @@ module PureCloud
|
|
315
315
|
:auth_names => auth_names,
|
316
316
|
:return_type => 'DomainOrganizationRole')
|
317
317
|
if @api_client.config.debugging
|
318
|
-
@api_client.config.logger.debug "API called: AuthorizationApi#
|
318
|
+
@api_client.config.logger.debug "API called: AuthorizationApi#create_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
319
319
|
end
|
320
320
|
return data, status_code, headers
|
321
321
|
end
|
@@ -325,8 +325,8 @@ module PureCloud
|
|
325
325
|
# @param [Hash] opts the optional parameters
|
326
326
|
# @option opts [Array<DomainOrganizationRole>] :body
|
327
327
|
# @return [OrganizationRoleEntityListing]
|
328
|
-
def
|
329
|
-
data, status_code, headers =
|
328
|
+
def update_roles_default(opts = {})
|
329
|
+
data, status_code, headers = update_roles_default_with_http_info(opts)
|
330
330
|
return data
|
331
331
|
end
|
332
332
|
|
@@ -335,9 +335,9 @@ module PureCloud
|
|
335
335
|
# @param [Hash] opts the optional parameters
|
336
336
|
# @option opts [Array<DomainOrganizationRole>] :body
|
337
337
|
# @return [Array<(OrganizationRoleEntityListing, Fixnum, Hash)>] OrganizationRoleEntityListing data, response status code and response headers
|
338
|
-
def
|
338
|
+
def update_roles_default_with_http_info(opts = {})
|
339
339
|
if @api_client.config.debugging
|
340
|
-
@api_client.config.logger.debug "Calling API: AuthorizationApi#
|
340
|
+
@api_client.config.logger.debug "Calling API: AuthorizationApi#update_roles_default ..."
|
341
341
|
end
|
342
342
|
|
343
343
|
# resource path
|
@@ -373,7 +373,7 @@ module PureCloud
|
|
373
373
|
:auth_names => auth_names,
|
374
374
|
:return_type => 'OrganizationRoleEntityListing')
|
375
375
|
if @api_client.config.debugging
|
376
|
-
@api_client.config.logger.debug "API called: AuthorizationApi#
|
376
|
+
@api_client.config.logger.debug "API called: AuthorizationApi#update_roles_default\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
377
377
|
end
|
378
378
|
return data, status_code, headers
|
379
379
|
end
|
@@ -383,8 +383,8 @@ module PureCloud
|
|
383
383
|
# @param [Hash] opts the optional parameters
|
384
384
|
# @option opts [BOOLEAN] :force Restore default roles
|
385
385
|
# @return [OrganizationRoleEntityListing]
|
386
|
-
def
|
387
|
-
data, status_code, headers =
|
386
|
+
def create_roles_default(opts = {})
|
387
|
+
data, status_code, headers = create_roles_default_with_http_info(opts)
|
388
388
|
return data
|
389
389
|
end
|
390
390
|
|
@@ -393,9 +393,9 @@ module PureCloud
|
|
393
393
|
# @param [Hash] opts the optional parameters
|
394
394
|
# @option opts [BOOLEAN] :force Restore default roles
|
395
395
|
# @return [Array<(OrganizationRoleEntityListing, Fixnum, Hash)>] OrganizationRoleEntityListing data, response status code and response headers
|
396
|
-
def
|
396
|
+
def create_roles_default_with_http_info(opts = {})
|
397
397
|
if @api_client.config.debugging
|
398
|
-
@api_client.config.logger.debug "Calling API: AuthorizationApi#
|
398
|
+
@api_client.config.logger.debug "Calling API: AuthorizationApi#create_roles_default ..."
|
399
399
|
end
|
400
400
|
|
401
401
|
# resource path
|
@@ -432,7 +432,7 @@ module PureCloud
|
|
432
432
|
:auth_names => auth_names,
|
433
433
|
:return_type => 'OrganizationRoleEntityListing')
|
434
434
|
if @api_client.config.debugging
|
435
|
-
@api_client.config.logger.debug "API called: AuthorizationApi#
|
435
|
+
@api_client.config.logger.debug "API called: AuthorizationApi#create_roles_default\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
436
436
|
end
|
437
437
|
return data, status_code, headers
|
438
438
|
end
|
@@ -443,8 +443,8 @@ module PureCloud
|
|
443
443
|
# @param right_role_id Right Role id
|
444
444
|
# @param [Hash] opts the optional parameters
|
445
445
|
# @return [DomainOrgRoleDifference]
|
446
|
-
def
|
447
|
-
data, status_code, headers =
|
446
|
+
def get_roles_left_role_comparedefault_by_right_role_id(left_role_id, right_role_id, opts = {})
|
447
|
+
data, status_code, headers = get_roles_left_role_comparedefault_by_right_role_id_with_http_info(left_role_id, right_role_id, opts)
|
448
448
|
return data
|
449
449
|
end
|
450
450
|
|
@@ -454,16 +454,16 @@ module PureCloud
|
|
454
454
|
# @param right_role_id Right Role id
|
455
455
|
# @param [Hash] opts the optional parameters
|
456
456
|
# @return [Array<(DomainOrgRoleDifference, Fixnum, Hash)>] DomainOrgRoleDifference data, response status code and response headers
|
457
|
-
def
|
457
|
+
def get_roles_left_role_comparedefault_by_right_role_id_with_http_info(left_role_id, right_role_id, opts = {})
|
458
458
|
if @api_client.config.debugging
|
459
|
-
@api_client.config.logger.debug "Calling API: AuthorizationApi#
|
459
|
+
@api_client.config.logger.debug "Calling API: AuthorizationApi#get_roles_left_role_comparedefault_by_right_role_id ..."
|
460
460
|
end
|
461
461
|
|
462
462
|
# verify the required parameter 'left_role_id' is set
|
463
|
-
fail "Missing the required parameter 'left_role_id' when calling
|
463
|
+
fail "Missing the required parameter 'left_role_id' when calling get_roles_left_role_comparedefault_by_right_role_id" if left_role_id.nil?
|
464
464
|
|
465
465
|
# verify the required parameter 'right_role_id' is set
|
466
|
-
fail "Missing the required parameter 'right_role_id' when calling
|
466
|
+
fail "Missing the required parameter 'right_role_id' when calling get_roles_left_role_comparedefault_by_right_role_id" if right_role_id.nil?
|
467
467
|
|
468
468
|
# resource path
|
469
469
|
path = "/api/v1/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}".sub('{format}','json').sub('{' + 'leftRoleId' + '}', left_role_id.to_s).sub('{' + 'rightRoleId' + '}', right_role_id.to_s)
|
@@ -498,7 +498,7 @@ module PureCloud
|
|
498
498
|
:auth_names => auth_names,
|
499
499
|
:return_type => 'DomainOrgRoleDifference')
|
500
500
|
if @api_client.config.debugging
|
501
|
-
@api_client.config.logger.debug "API called: AuthorizationApi#
|
501
|
+
@api_client.config.logger.debug "API called: AuthorizationApi#get_roles_left_role_comparedefault_by_right_role_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
502
502
|
end
|
503
503
|
return data, status_code, headers
|
504
504
|
end
|
@@ -510,8 +510,8 @@ module PureCloud
|
|
510
510
|
# @param [Hash] opts the optional parameters
|
511
511
|
# @option opts [DomainOrganizationRole] :body
|
512
512
|
# @return [DomainOrgRoleDifference]
|
513
|
-
def
|
514
|
-
data, status_code, headers =
|
513
|
+
def create_roles_left_role_comparedefault_by_right_role_id(left_role_id, right_role_id, opts = {})
|
514
|
+
data, status_code, headers = create_roles_left_role_comparedefault_by_right_role_id_with_http_info(left_role_id, right_role_id, opts)
|
515
515
|
return data
|
516
516
|
end
|
517
517
|
|
@@ -522,16 +522,16 @@ module PureCloud
|
|
522
522
|
# @param [Hash] opts the optional parameters
|
523
523
|
# @option opts [DomainOrganizationRole] :body
|
524
524
|
# @return [Array<(DomainOrgRoleDifference, Fixnum, Hash)>] DomainOrgRoleDifference data, response status code and response headers
|
525
|
-
def
|
525
|
+
def create_roles_left_role_comparedefault_by_right_role_id_with_http_info(left_role_id, right_role_id, opts = {})
|
526
526
|
if @api_client.config.debugging
|
527
|
-
@api_client.config.logger.debug "Calling API: AuthorizationApi#
|
527
|
+
@api_client.config.logger.debug "Calling API: AuthorizationApi#create_roles_left_role_comparedefault_by_right_role_id ..."
|
528
528
|
end
|
529
529
|
|
530
530
|
# verify the required parameter 'left_role_id' is set
|
531
|
-
fail "Missing the required parameter 'left_role_id' when calling
|
531
|
+
fail "Missing the required parameter 'left_role_id' when calling create_roles_left_role_comparedefault_by_right_role_id" if left_role_id.nil?
|
532
532
|
|
533
533
|
# verify the required parameter 'right_role_id' is set
|
534
|
-
fail "Missing the required parameter 'right_role_id' when calling
|
534
|
+
fail "Missing the required parameter 'right_role_id' when calling create_roles_left_role_comparedefault_by_right_role_id" if right_role_id.nil?
|
535
535
|
|
536
536
|
# resource path
|
537
537
|
path = "/api/v1/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}".sub('{format}','json').sub('{' + 'leftRoleId' + '}', left_role_id.to_s).sub('{' + 'rightRoleId' + '}', right_role_id.to_s)
|
@@ -566,7 +566,7 @@ module PureCloud
|
|
566
566
|
:auth_names => auth_names,
|
567
567
|
:return_type => 'DomainOrgRoleDifference')
|
568
568
|
if @api_client.config.debugging
|
569
|
-
@api_client.config.logger.debug "API called: AuthorizationApi#
|
569
|
+
@api_client.config.logger.debug "API called: AuthorizationApi#create_roles_left_role_comparedefault_by_right_role_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
570
570
|
end
|
571
571
|
return data, status_code, headers
|
572
572
|
end
|
@@ -638,8 +638,8 @@ module PureCloud
|
|
638
638
|
# @param [Hash] opts the optional parameters
|
639
639
|
# @option opts [DomainOrganizationRole] :body
|
640
640
|
# @return [DomainOrganizationRole]
|
641
|
-
def
|
642
|
-
data, status_code, headers =
|
641
|
+
def update_role(role_id, opts = {})
|
642
|
+
data, status_code, headers = update_role_with_http_info(role_id, opts)
|
643
643
|
return data
|
644
644
|
end
|
645
645
|
|
@@ -649,13 +649,13 @@ module PureCloud
|
|
649
649
|
# @param [Hash] opts the optional parameters
|
650
650
|
# @option opts [DomainOrganizationRole] :body
|
651
651
|
# @return [Array<(DomainOrganizationRole, Fixnum, Hash)>] DomainOrganizationRole data, response status code and response headers
|
652
|
-
def
|
652
|
+
def update_role_with_http_info(role_id, opts = {})
|
653
653
|
if @api_client.config.debugging
|
654
|
-
@api_client.config.logger.debug "Calling API: AuthorizationApi#
|
654
|
+
@api_client.config.logger.debug "Calling API: AuthorizationApi#update_role ..."
|
655
655
|
end
|
656
656
|
|
657
657
|
# verify the required parameter 'role_id' is set
|
658
|
-
fail "Missing the required parameter 'role_id' when calling
|
658
|
+
fail "Missing the required parameter 'role_id' when calling update_role" if role_id.nil?
|
659
659
|
|
660
660
|
# resource path
|
661
661
|
path = "/api/v1/authorization/roles/{roleId}".sub('{format}','json').sub('{' + 'roleId' + '}', role_id.to_s)
|
@@ -690,7 +690,7 @@ module PureCloud
|
|
690
690
|
:auth_names => auth_names,
|
691
691
|
:return_type => 'DomainOrganizationRole')
|
692
692
|
if @api_client.config.debugging
|
693
|
-
@api_client.config.logger.debug "API called: AuthorizationApi#
|
693
|
+
@api_client.config.logger.debug "API called: AuthorizationApi#update_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
694
694
|
end
|
695
695
|
return data, status_code, headers
|
696
696
|
end
|
@@ -824,8 +824,8 @@ module PureCloud
|
|
824
824
|
# @param [Hash] opts the optional parameters
|
825
825
|
# @option opts [Array<String>] :body
|
826
826
|
# @return [Array<String>]
|
827
|
-
def
|
828
|
-
data, status_code, headers =
|
827
|
+
def update_role_users_add(role_id, opts = {})
|
828
|
+
data, status_code, headers = update_role_users_add_with_http_info(role_id, opts)
|
829
829
|
return data
|
830
830
|
end
|
831
831
|
|
@@ -835,13 +835,13 @@ module PureCloud
|
|
835
835
|
# @param [Hash] opts the optional parameters
|
836
836
|
# @option opts [Array<String>] :body
|
837
837
|
# @return [Array<(Array<String>, Fixnum, Hash)>] Array<String> data, response status code and response headers
|
838
|
-
def
|
838
|
+
def update_role_users_add_with_http_info(role_id, opts = {})
|
839
839
|
if @api_client.config.debugging
|
840
|
-
@api_client.config.logger.debug "Calling API: AuthorizationApi#
|
840
|
+
@api_client.config.logger.debug "Calling API: AuthorizationApi#update_role_users_add ..."
|
841
841
|
end
|
842
842
|
|
843
843
|
# verify the required parameter 'role_id' is set
|
844
|
-
fail "Missing the required parameter 'role_id' when calling
|
844
|
+
fail "Missing the required parameter 'role_id' when calling update_role_users_add" if role_id.nil?
|
845
845
|
|
846
846
|
# resource path
|
847
847
|
path = "/api/v1/authorization/roles/{roleId}/users/add".sub('{format}','json').sub('{' + 'roleId' + '}', role_id.to_s)
|
@@ -876,7 +876,7 @@ module PureCloud
|
|
876
876
|
:auth_names => auth_names,
|
877
877
|
:return_type => 'Array<String>')
|
878
878
|
if @api_client.config.debugging
|
879
|
-
@api_client.config.logger.debug "API called: AuthorizationApi#
|
879
|
+
@api_client.config.logger.debug "API called: AuthorizationApi#update_role_users_add\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
880
880
|
end
|
881
881
|
return data, status_code, headers
|
882
882
|
end
|
@@ -887,8 +887,8 @@ module PureCloud
|
|
887
887
|
# @param [Hash] opts the optional parameters
|
888
888
|
# @option opts [Array<String>] :body
|
889
889
|
# @return [Array<String>]
|
890
|
-
def
|
891
|
-
data, status_code, headers =
|
890
|
+
def update_role_users_remove(role_id, opts = {})
|
891
|
+
data, status_code, headers = update_role_users_remove_with_http_info(role_id, opts)
|
892
892
|
return data
|
893
893
|
end
|
894
894
|
|
@@ -898,13 +898,13 @@ module PureCloud
|
|
898
898
|
# @param [Hash] opts the optional parameters
|
899
899
|
# @option opts [Array<String>] :body
|
900
900
|
# @return [Array<(Array<String>, Fixnum, Hash)>] Array<String> data, response status code and response headers
|
901
|
-
def
|
901
|
+
def update_role_users_remove_with_http_info(role_id, opts = {})
|
902
902
|
if @api_client.config.debugging
|
903
|
-
@api_client.config.logger.debug "Calling API: AuthorizationApi#
|
903
|
+
@api_client.config.logger.debug "Calling API: AuthorizationApi#update_role_users_remove ..."
|
904
904
|
end
|
905
905
|
|
906
906
|
# verify the required parameter 'role_id' is set
|
907
|
-
fail "Missing the required parameter 'role_id' when calling
|
907
|
+
fail "Missing the required parameter 'role_id' when calling update_role_users_remove" if role_id.nil?
|
908
908
|
|
909
909
|
# resource path
|
910
910
|
path = "/api/v1/authorization/roles/{roleId}/users/remove".sub('{format}','json').sub('{' + 'roleId' + '}', role_id.to_s)
|
@@ -939,7 +939,7 @@ module PureCloud
|
|
939
939
|
:auth_names => auth_names,
|
940
940
|
:return_type => 'Array<String>')
|
941
941
|
if @api_client.config.debugging
|
942
|
-
@api_client.config.logger.debug "API called: AuthorizationApi#
|
942
|
+
@api_client.config.logger.debug "API called: AuthorizationApi#update_role_users_remove\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
943
943
|
end
|
944
944
|
return data, status_code, headers
|
945
945
|
end
|
@@ -1011,8 +1011,8 @@ module PureCloud
|
|
1011
1011
|
# @param [Hash] opts the optional parameters
|
1012
1012
|
# @option opts [Array<String>] :body
|
1013
1013
|
# @return [Array<String>]
|
1014
|
-
def
|
1015
|
-
data, status_code, headers =
|
1014
|
+
def update_user_roles(user_id, opts = {})
|
1015
|
+
data, status_code, headers = update_user_roles_with_http_info(user_id, opts)
|
1016
1016
|
return data
|
1017
1017
|
end
|
1018
1018
|
|
@@ -1022,13 +1022,13 @@ module PureCloud
|
|
1022
1022
|
# @param [Hash] opts the optional parameters
|
1023
1023
|
# @option opts [Array<String>] :body
|
1024
1024
|
# @return [Array<(Array<String>, Fixnum, Hash)>] Array<String> data, response status code and response headers
|
1025
|
-
def
|
1025
|
+
def update_user_roles_with_http_info(user_id, opts = {})
|
1026
1026
|
if @api_client.config.debugging
|
1027
|
-
@api_client.config.logger.debug "Calling API: AuthorizationApi#
|
1027
|
+
@api_client.config.logger.debug "Calling API: AuthorizationApi#update_user_roles ..."
|
1028
1028
|
end
|
1029
1029
|
|
1030
1030
|
# verify the required parameter 'user_id' is set
|
1031
|
-
fail "Missing the required parameter 'user_id' when calling
|
1031
|
+
fail "Missing the required parameter 'user_id' when calling update_user_roles" if user_id.nil?
|
1032
1032
|
|
1033
1033
|
# resource path
|
1034
1034
|
path = "/api/v1/authorization/users/{userId}/roles".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
|
@@ -1063,7 +1063,7 @@ module PureCloud
|
|
1063
1063
|
:auth_names => auth_names,
|
1064
1064
|
:return_type => 'Array<String>')
|
1065
1065
|
if @api_client.config.debugging
|
1066
|
-
@api_client.config.logger.debug "API called: AuthorizationApi#
|
1066
|
+
@api_client.config.logger.debug "API called: AuthorizationApi#update_user_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1067
1067
|
end
|
1068
1068
|
return data, status_code, headers
|
1069
1069
|
end
|