purecloud 0.38.1 → 0.39.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/config-ruby.json +1 -1
- data/doc_out/AuthorizationApi.html.md +0 -57
- data/doc_out/AvailableLanguageList.html.md +13 -0
- data/doc_out/BillingContact.html.md +20 -0
- data/doc_out/{FlowHistoryResultItemEntityListing.html.md → BillingContactListing.html.md} +3 -3
- data/doc_out/CallRecord.html.md +2 -2
- data/doc_out/CallableContactsDiagnostic.html.md +3 -3
- data/doc_out/CallableTimeSet.html.md +3 -3
- data/doc_out/Campaign.html.md +3 -3
- data/doc_out/CampaignDiagnostics.html.md +3 -3
- data/doc_out/CampaignSchedule.html.md +6 -6
- data/doc_out/CampaignSequence.html.md +8 -8
- data/doc_out/CampaignStats.html.md +4 -4
- data/doc_out/Condition.html.md +7 -7
- data/doc_out/ConnectRate.html.md +3 -3
- data/doc_out/ContactCallbackRequest.html.md +5 -5
- data/doc_out/ContactList.html.md +9 -9
- data/doc_out/ContactPhoneNumberColumn.html.md +3 -3
- data/doc_out/CreateCallbackCommand.html.md +1 -0
- data/doc_out/CreateUser.html.md +1 -1
- data/doc_out/CustomerInteractionCenter.html.md +18 -0
- data/doc_out/DialerAction.html.md +4 -4
- data/doc_out/DialerContact.html.md +5 -5
- data/doc_out/DialerRule.html.md +6 -6
- data/doc_out/DncList.html.md +6 -7
- data/doc_out/ExternalContact.html.md +1 -0
- data/doc_out/ExternalDataSource.html.md +14 -0
- data/doc_out/ExternalOrganization.html.md +1 -0
- data/doc_out/IdentityProviderApi.html.md +1011 -0
- data/doc_out/ImportStatus.html.md +5 -5
- data/doc_out/InitiateScreenRecording.html.md +15 -0
- data/doc_out/JsonNode.html.md +3 -3
- data/doc_out/Keyword.html.md +19 -0
- data/doc_out/KeywordSet.html.md +21 -0
- data/doc_out/KeywordSetEntityListing.html.md +22 -0
- data/doc_out/OAuthApi.html.md +45 -886
- data/doc_out/OAuthClient.html.md +2 -2
- data/doc_out/Okta.html.md +1 -1
- data/doc_out/OneLogin.html.md +1 -1
- data/doc_out/OrgMediaUtilization.html.md +1 -0
- data/doc_out/OutboundApi.html.md +3 -3
- data/doc_out/PaymentMethod.html.md +3 -0
- data/doc_out/PhoneNumberStatus.html.md +1 -1
- data/doc_out/PolicyActions.html.md +1 -0
- data/doc_out/PresenceApi.html.md +68 -17
- data/doc_out/QualityApi.html.md +361 -0
- data/doc_out/QueueUtilizationDiagnostic.html.md +8 -8
- data/doc_out/ResponseSet.html.md +3 -3
- data/doc_out/RoutingApi.html.md +15 -12
- data/doc_out/RoutingSkill.html.md +1 -2
- data/doc_out/RuleSet.html.md +6 -6
- data/doc_out/Salesforce.html.md +1 -1
- data/doc_out/ScheduleInterval.html.md +14 -0
- data/doc_out/SequenceSchedule.html.md +6 -6
- data/doc_out/Station.html.md +1 -0
- data/doc_out/StationsApi.html.md +3 -1
- data/doc_out/SupportCredit.html.md +16 -0
- data/doc_out/SupportCreditListing.html.md +22 -0
- data/doc_out/SystemPresence.html.md +15 -0
- data/doc_out/TelephonyProvidersEdgeApi.html.md +112 -1
- data/doc_out/TrunkRecordingEnabledCount.html.md +14 -0
- data/doc_out/UserImage.html.md +1 -1
- data/doc_out/UserMe.html.md +5 -1
- data/doc_out/UserRoutingSkill.html.md +2 -2
- data/doc_out/UsersApi.html.md +182 -0
- data/doc_out/WrapUpCodeMapping.html.md +5 -5
- data/doc_out/index.html.md +3 -3
- data/lib/purecloud.rb +15 -3
- data/lib/purecloud/api/authorization_api.rb +0 -60
- data/lib/purecloud/api/identity_provider_api.rb +1072 -0
- data/lib/purecloud/api/o_auth_api.rb +26 -906
- data/lib/purecloud/api/outbound_api.rb +2 -2
- data/lib/purecloud/api/presence_api.rb +67 -12
- data/lib/purecloud/api/quality_api.rb +378 -0
- data/lib/purecloud/api/routing_api.rb +21 -16
- data/lib/purecloud/api/stations_api.rb +3 -0
- data/lib/purecloud/api/telephony_providers_edge_api.rb +120 -0
- data/lib/purecloud/api/users_api.rb +189 -0
- data/lib/purecloud/api_client.rb +1 -1
- data/lib/purecloud/models/analytics_session.rb +1 -1
- data/lib/purecloud/models/available_language_list.rb +167 -0
- data/lib/purecloud/models/billing_contact.rb +237 -0
- data/lib/purecloud/models/{flow_history_result_item_entity_listing.rb → billing_contact_listing.rb} +2 -2
- data/lib/purecloud/models/call_record.rb +2 -1
- data/lib/purecloud/models/callable_contacts_diagnostic.rb +3 -0
- data/lib/purecloud/models/callable_time_set.rb +3 -3
- data/lib/purecloud/models/campaign.rb +3 -3
- data/lib/purecloud/models/campaign_diagnostics.rb +3 -0
- data/lib/purecloud/models/campaign_schedule.rb +7 -4
- data/lib/purecloud/models/campaign_sequence.rb +8 -3
- data/lib/purecloud/models/campaign_stats.rb +4 -0
- data/lib/purecloud/models/condition.rb +16 -0
- data/lib/purecloud/models/connect_rate.rb +3 -0
- data/lib/purecloud/models/contact_callback_request.rb +5 -0
- data/lib/purecloud/models/contact_list.rb +9 -3
- data/lib/purecloud/models/contact_phone_number_column.rb +3 -0
- data/lib/purecloud/models/create_callback_command.rb +12 -1
- data/lib/purecloud/models/create_user.rb +1 -0
- data/lib/purecloud/models/customer_interaction_center.rb +217 -0
- data/lib/purecloud/models/dialer_action.rb +31 -0
- data/lib/purecloud/models/dialer_contact.rb +5 -0
- data/lib/purecloud/models/dialer_rule.rb +15 -0
- data/lib/purecloud/models/dnc_list.rb +7 -14
- data/lib/purecloud/models/external_contact.rb +14 -1
- data/lib/purecloud/models/external_data_source.rb +176 -0
- data/lib/purecloud/models/external_organization.rb +14 -1
- data/lib/purecloud/models/import_status.rb +5 -0
- data/lib/purecloud/models/initiate_screen_recording.rb +187 -0
- data/lib/purecloud/models/json_node.rb +37 -37
- data/lib/purecloud/models/keyword.rb +227 -0
- data/lib/purecloud/models/keyword_set.rb +253 -0
- data/lib/purecloud/models/keyword_set_entity_listing.rb +257 -0
- data/lib/purecloud/models/o_auth_client.rb +3 -3
- data/lib/purecloud/models/okta.rb +11 -11
- data/lib/purecloud/models/one_login.rb +11 -11
- data/lib/purecloud/models/org_media_utilization.rb +17 -4
- data/lib/purecloud/models/organization_presence.rb +0 -9
- data/lib/purecloud/models/payment_method.rb +42 -1
- data/lib/purecloud/models/phone_number_status.rb +1 -0
- data/lib/purecloud/models/policy_actions.rb +14 -4
- data/lib/purecloud/models/queue_utilization_diagnostic.rb +8 -0
- data/lib/purecloud/models/response_set.rb +3 -3
- data/lib/purecloud/models/routing_skill.rb +2 -12
- data/lib/purecloud/models/routing_status.rb +1 -1
- data/lib/purecloud/models/rule_set.rb +6 -3
- data/lib/purecloud/models/salesforce.rb +11 -11
- data/lib/purecloud/models/{campaign_schedule_intervals.rb → schedule_interval.rb} +5 -5
- data/lib/purecloud/models/sequence_schedule.rb +7 -4
- data/lib/purecloud/models/station.rb +11 -1
- data/lib/purecloud/models/support_credit.rb +197 -0
- data/lib/purecloud/models/support_credit_listing.rb +257 -0
- data/lib/purecloud/models/system_presence.rb +187 -0
- data/lib/purecloud/models/trunk_recording_enabled_count.rb +177 -0
- data/lib/purecloud/models/user_image.rb +1 -0
- data/lib/purecloud/models/user_me.rb +50 -2
- data/lib/purecloud/models/user_routing_skill.rb +18 -11
- data/lib/purecloud/models/wrap_up_code_mapping.rb +5 -3
- data/lib/purecloud/version.rb +1 -1
- data/newVersion.md +1 -1
- data/swagger.json +1 -1
- data/version.json +1 -1
- metadata +32 -8
- data/doc_out/CampaignScheduleIntervals.html.md +0 -14
- data/doc_out/ObjectsApi.html.md +0 -69
- data/lib/purecloud/api/objects_api.rb +0 -87
@@ -1394,7 +1394,7 @@ module PureCloud
|
|
1394
1394
|
return data, status_code, headers
|
1395
1395
|
end
|
1396
1396
|
|
1397
|
-
# Get dialer
|
1397
|
+
# Get a dialer contact list.
|
1398
1398
|
#
|
1399
1399
|
# @param contact_list_id ContactList ID
|
1400
1400
|
# @param [Hash] opts the optional parameters
|
@@ -1406,7 +1406,7 @@ module PureCloud
|
|
1406
1406
|
return data
|
1407
1407
|
end
|
1408
1408
|
|
1409
|
-
# Get dialer
|
1409
|
+
# Get a dialer contact list.
|
1410
1410
|
#
|
1411
1411
|
# @param contact_list_id ContactList ID
|
1412
1412
|
# @param [Hash] opts the optional parameters
|
@@ -24,7 +24,7 @@ module PureCloud
|
|
24
24
|
@api_client = api_client
|
25
25
|
end
|
26
26
|
|
27
|
-
# Delete
|
27
|
+
# Delete a Presence Definition
|
28
28
|
#
|
29
29
|
# @param presence_id Organization Presence ID
|
30
30
|
# @param [Hash] opts the optional parameters
|
@@ -34,7 +34,7 @@ module PureCloud
|
|
34
34
|
return data
|
35
35
|
end
|
36
36
|
|
37
|
-
# Delete
|
37
|
+
# Delete a Presence Definition
|
38
38
|
#
|
39
39
|
# @param presence_id Organization Presence ID
|
40
40
|
# @param [Hash] opts the optional parameters
|
@@ -84,7 +84,7 @@ module PureCloud
|
|
84
84
|
return data, status_code, headers
|
85
85
|
end
|
86
86
|
|
87
|
-
# Get
|
87
|
+
# Get a Presence Definition
|
88
88
|
#
|
89
89
|
# @param presence_id Organization Presence ID
|
90
90
|
# @param [Hash] opts the optional parameters
|
@@ -94,7 +94,7 @@ module PureCloud
|
|
94
94
|
return data
|
95
95
|
end
|
96
96
|
|
97
|
-
# Get
|
97
|
+
# Get a Presence Definition
|
98
98
|
#
|
99
99
|
# @param presence_id Organization Presence ID
|
100
100
|
# @param [Hash] opts the optional parameters
|
@@ -144,7 +144,7 @@ module PureCloud
|
|
144
144
|
return data, status_code, headers
|
145
145
|
end
|
146
146
|
|
147
|
-
# Get an Organization's list of
|
147
|
+
# Get an Organization's list of Presence Definitions
|
148
148
|
#
|
149
149
|
# @param [Hash] opts the optional parameters
|
150
150
|
# @option opts [Integer] :page_number Page number (default to 1)
|
@@ -155,7 +155,7 @@ module PureCloud
|
|
155
155
|
return data
|
156
156
|
end
|
157
157
|
|
158
|
-
# Get an Organization's list of
|
158
|
+
# Get an Organization's list of Presence Definitions
|
159
159
|
#
|
160
160
|
# @param [Hash] opts the optional parameters
|
161
161
|
# @option opts [Integer] :page_number Page number
|
@@ -205,6 +205,61 @@ module PureCloud
|
|
205
205
|
return data, status_code, headers
|
206
206
|
end
|
207
207
|
|
208
|
+
# Get the list of SystemPresences
|
209
|
+
#
|
210
|
+
# @param [Hash] opts the optional parameters
|
211
|
+
# @return [SystemPresence]
|
212
|
+
def get_systempresences(opts = {})
|
213
|
+
data, status_code, headers = get_systempresences_with_http_info(opts)
|
214
|
+
return data
|
215
|
+
end
|
216
|
+
|
217
|
+
# Get the list of SystemPresences
|
218
|
+
#
|
219
|
+
# @param [Hash] opts the optional parameters
|
220
|
+
# @return [Array<(SystemPresence, Fixnum, Hash)>] SystemPresence data, response status code and response headers
|
221
|
+
def get_systempresences_with_http_info(opts = {})
|
222
|
+
if @api_client.config.debugging
|
223
|
+
@api_client.config.logger.debug "Calling API: PresenceApi#get_systempresences ..."
|
224
|
+
end
|
225
|
+
|
226
|
+
# resource path
|
227
|
+
local_var_path = "/api/v2/systempresences".sub('{format}','json')
|
228
|
+
|
229
|
+
# query parameters
|
230
|
+
query_params = {}
|
231
|
+
|
232
|
+
# header parameters
|
233
|
+
header_params = {}
|
234
|
+
|
235
|
+
# HTTP header 'Accept' (if needed)
|
236
|
+
_header_accept = ['application/json']
|
237
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
238
|
+
|
239
|
+
# HTTP header 'Content-Type'
|
240
|
+
_header_content_type = ['application/json']
|
241
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
242
|
+
|
243
|
+
# form parameters
|
244
|
+
form_params = {}
|
245
|
+
|
246
|
+
# http body (model)
|
247
|
+
post_body = nil
|
248
|
+
|
249
|
+
auth_names = ['PureCloud Auth']
|
250
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
251
|
+
:header_params => header_params,
|
252
|
+
:query_params => query_params,
|
253
|
+
:form_params => form_params,
|
254
|
+
:body => post_body,
|
255
|
+
:auth_names => auth_names,
|
256
|
+
:return_type => 'SystemPresence')
|
257
|
+
if @api_client.config.debugging
|
258
|
+
@api_client.config.logger.debug "API called: PresenceApi#get_systempresences\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
259
|
+
end
|
260
|
+
return data, status_code, headers
|
261
|
+
end
|
262
|
+
|
208
263
|
# Get a user's Presence
|
209
264
|
#
|
210
265
|
# @param user_id user Id
|
@@ -337,9 +392,9 @@ module PureCloud
|
|
337
392
|
return data, status_code, headers
|
338
393
|
end
|
339
394
|
|
340
|
-
# Create
|
395
|
+
# Create a Presence Definition
|
341
396
|
#
|
342
|
-
# @param body The
|
397
|
+
# @param body The Presence Definition to create
|
343
398
|
# @param [Hash] opts the optional parameters
|
344
399
|
# @return [OrganizationPresence]
|
345
400
|
def post_presencedefinitions(body, opts = {})
|
@@ -347,9 +402,9 @@ module PureCloud
|
|
347
402
|
return data
|
348
403
|
end
|
349
404
|
|
350
|
-
# Create
|
405
|
+
# Create a Presence Definition
|
351
406
|
#
|
352
|
-
# @param body The
|
407
|
+
# @param body The Presence Definition to create
|
353
408
|
# @param [Hash] opts the optional parameters
|
354
409
|
# @return [Array<(OrganizationPresence, Fixnum, Hash)>] OrganizationPresence data, response status code and response headers
|
355
410
|
def post_presencedefinitions_with_http_info(body, opts = {})
|
@@ -397,7 +452,7 @@ module PureCloud
|
|
397
452
|
return data, status_code, headers
|
398
453
|
end
|
399
454
|
|
400
|
-
# Update
|
455
|
+
# Update a Presence Definition
|
401
456
|
#
|
402
457
|
# @param presence_id Organization Presence ID
|
403
458
|
# @param body The OrganizationPresence to update
|
@@ -408,7 +463,7 @@ module PureCloud
|
|
408
463
|
return data
|
409
464
|
end
|
410
465
|
|
411
|
-
# Update
|
466
|
+
# Update a Presence Definition
|
412
467
|
#
|
413
468
|
# @param presence_id Organization Presence ID
|
414
469
|
# @param body The OrganizationPresence to update
|
@@ -218,6 +218,126 @@ module PureCloud
|
|
218
218
|
return data, status_code, headers
|
219
219
|
end
|
220
220
|
|
221
|
+
# Delete keyword sets
|
222
|
+
# Bulk delete of keyword sets; this will only delete the keyword sets that match the ids specified in the query param.
|
223
|
+
# @param ids A comma-delimited list of valid KeywordSet ids
|
224
|
+
# @param [Hash] opts the optional parameters
|
225
|
+
# @return [String]
|
226
|
+
def delete_keywordsets(ids, opts = {})
|
227
|
+
data, status_code, headers = delete_keywordsets_with_http_info(ids, opts)
|
228
|
+
return data
|
229
|
+
end
|
230
|
+
|
231
|
+
# Delete keyword sets
|
232
|
+
# Bulk delete of keyword sets; this will only delete the keyword sets that match the ids specified in the query param.
|
233
|
+
# @param ids A comma-delimited list of valid KeywordSet ids
|
234
|
+
# @param [Hash] opts the optional parameters
|
235
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
236
|
+
def delete_keywordsets_with_http_info(ids, opts = {})
|
237
|
+
if @api_client.config.debugging
|
238
|
+
@api_client.config.logger.debug "Calling API: QualityApi#delete_keywordsets ..."
|
239
|
+
end
|
240
|
+
|
241
|
+
# verify the required parameter 'ids' is set
|
242
|
+
fail "Missing the required parameter 'ids' when calling delete_keywordsets" if ids.nil?
|
243
|
+
|
244
|
+
# resource path
|
245
|
+
local_var_path = "/api/v2/quality/keywordsets".sub('{format}','json')
|
246
|
+
|
247
|
+
# query parameters
|
248
|
+
query_params = {}
|
249
|
+
query_params[:'ids'] = ids
|
250
|
+
|
251
|
+
# header parameters
|
252
|
+
header_params = {}
|
253
|
+
|
254
|
+
# HTTP header 'Accept' (if needed)
|
255
|
+
_header_accept = ['application/json']
|
256
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
257
|
+
|
258
|
+
# HTTP header 'Content-Type'
|
259
|
+
_header_content_type = ['application/json']
|
260
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
261
|
+
|
262
|
+
# form parameters
|
263
|
+
form_params = {}
|
264
|
+
|
265
|
+
# http body (model)
|
266
|
+
post_body = nil
|
267
|
+
|
268
|
+
auth_names = ['PureCloud Auth']
|
269
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
270
|
+
:header_params => header_params,
|
271
|
+
:query_params => query_params,
|
272
|
+
:form_params => form_params,
|
273
|
+
:body => post_body,
|
274
|
+
:auth_names => auth_names,
|
275
|
+
:return_type => 'String')
|
276
|
+
if @api_client.config.debugging
|
277
|
+
@api_client.config.logger.debug "API called: QualityApi#delete_keywordsets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
278
|
+
end
|
279
|
+
return data, status_code, headers
|
280
|
+
end
|
281
|
+
|
282
|
+
# Delete a keywordSet by id.
|
283
|
+
#
|
284
|
+
# @param keyword_set_id KeywordSet ID
|
285
|
+
# @param [Hash] opts the optional parameters
|
286
|
+
# @return [nil]
|
287
|
+
def delete_keywordsets_keywordset_id(keyword_set_id, opts = {})
|
288
|
+
delete_keywordsets_keywordset_id_with_http_info(keyword_set_id, opts)
|
289
|
+
return nil
|
290
|
+
end
|
291
|
+
|
292
|
+
# Delete a keywordSet by id.
|
293
|
+
#
|
294
|
+
# @param keyword_set_id KeywordSet ID
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
297
|
+
def delete_keywordsets_keywordset_id_with_http_info(keyword_set_id, opts = {})
|
298
|
+
if @api_client.config.debugging
|
299
|
+
@api_client.config.logger.debug "Calling API: QualityApi#delete_keywordsets_keywordset_id ..."
|
300
|
+
end
|
301
|
+
|
302
|
+
# verify the required parameter 'keyword_set_id' is set
|
303
|
+
fail "Missing the required parameter 'keyword_set_id' when calling delete_keywordsets_keywordset_id" if keyword_set_id.nil?
|
304
|
+
|
305
|
+
# resource path
|
306
|
+
local_var_path = "/api/v2/quality/keywordsets/{keywordSetId}".sub('{format}','json').sub('{' + 'keywordSetId' + '}', keyword_set_id.to_s)
|
307
|
+
|
308
|
+
# query parameters
|
309
|
+
query_params = {}
|
310
|
+
|
311
|
+
# header parameters
|
312
|
+
header_params = {}
|
313
|
+
|
314
|
+
# HTTP header 'Accept' (if needed)
|
315
|
+
_header_accept = ['application/json']
|
316
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
317
|
+
|
318
|
+
# HTTP header 'Content-Type'
|
319
|
+
_header_content_type = ['application/json']
|
320
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
321
|
+
|
322
|
+
# form parameters
|
323
|
+
form_params = {}
|
324
|
+
|
325
|
+
# http body (model)
|
326
|
+
post_body = nil
|
327
|
+
|
328
|
+
auth_names = ['PureCloud Auth']
|
329
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
330
|
+
:header_params => header_params,
|
331
|
+
:query_params => query_params,
|
332
|
+
:form_params => form_params,
|
333
|
+
:body => post_body,
|
334
|
+
:auth_names => auth_names)
|
335
|
+
if @api_client.config.debugging
|
336
|
+
@api_client.config.logger.debug "API called: QualityApi#delete_keywordsets_keywordset_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
337
|
+
end
|
338
|
+
return data, status_code, headers
|
339
|
+
end
|
340
|
+
|
221
341
|
# Gets a list of Agent Activities
|
222
342
|
# Including the number of evaluations and average evaluation score
|
223
343
|
# @param [Hash] opts the optional parameters
|
@@ -1011,6 +1131,142 @@ module PureCloud
|
|
1011
1131
|
return data, status_code, headers
|
1012
1132
|
end
|
1013
1133
|
|
1134
|
+
# Get the list of keyword sets
|
1135
|
+
#
|
1136
|
+
# @param [Hash] opts the optional parameters
|
1137
|
+
# @option opts [Integer] :page_size The total page size requested (default to 25)
|
1138
|
+
# @option opts [Integer] :page_number The page number requested (default to 1)
|
1139
|
+
# @option opts [String] :sort_by variable name requested to sort by
|
1140
|
+
# @option opts [Array<String>] :expand variable name requested by expand list
|
1141
|
+
# @option opts [String] :next_page next page token
|
1142
|
+
# @option opts [String] :previous_page Previous page token
|
1143
|
+
# @option opts [String] :name the keyword set name - used for filtering results in searches.
|
1144
|
+
# @return [KeywordSetEntityListing]
|
1145
|
+
def get_keywordsets(opts = {})
|
1146
|
+
data, status_code, headers = get_keywordsets_with_http_info(opts)
|
1147
|
+
return data
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
# Get the list of keyword sets
|
1151
|
+
#
|
1152
|
+
# @param [Hash] opts the optional parameters
|
1153
|
+
# @option opts [Integer] :page_size The total page size requested
|
1154
|
+
# @option opts [Integer] :page_number The page number requested
|
1155
|
+
# @option opts [String] :sort_by variable name requested to sort by
|
1156
|
+
# @option opts [Array<String>] :expand variable name requested by expand list
|
1157
|
+
# @option opts [String] :next_page next page token
|
1158
|
+
# @option opts [String] :previous_page Previous page token
|
1159
|
+
# @option opts [String] :name the keyword set name - used for filtering results in searches.
|
1160
|
+
# @return [Array<(KeywordSetEntityListing, Fixnum, Hash)>] KeywordSetEntityListing data, response status code and response headers
|
1161
|
+
def get_keywordsets_with_http_info(opts = {})
|
1162
|
+
if @api_client.config.debugging
|
1163
|
+
@api_client.config.logger.debug "Calling API: QualityApi#get_keywordsets ..."
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
# resource path
|
1167
|
+
local_var_path = "/api/v2/quality/keywordsets".sub('{format}','json')
|
1168
|
+
|
1169
|
+
# query parameters
|
1170
|
+
query_params = {}
|
1171
|
+
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
|
1172
|
+
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
|
1173
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
|
1174
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
|
1175
|
+
query_params[:'nextPage'] = opts[:'next_page'] if opts[:'next_page']
|
1176
|
+
query_params[:'previousPage'] = opts[:'previous_page'] if opts[:'previous_page']
|
1177
|
+
query_params[:'name'] = opts[:'name'] if opts[:'name']
|
1178
|
+
|
1179
|
+
# header parameters
|
1180
|
+
header_params = {}
|
1181
|
+
|
1182
|
+
# HTTP header 'Accept' (if needed)
|
1183
|
+
_header_accept = ['application/json']
|
1184
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1185
|
+
|
1186
|
+
# HTTP header 'Content-Type'
|
1187
|
+
_header_content_type = ['application/json']
|
1188
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1189
|
+
|
1190
|
+
# form parameters
|
1191
|
+
form_params = {}
|
1192
|
+
|
1193
|
+
# http body (model)
|
1194
|
+
post_body = nil
|
1195
|
+
|
1196
|
+
auth_names = ['PureCloud Auth']
|
1197
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1198
|
+
:header_params => header_params,
|
1199
|
+
:query_params => query_params,
|
1200
|
+
:form_params => form_params,
|
1201
|
+
:body => post_body,
|
1202
|
+
:auth_names => auth_names,
|
1203
|
+
:return_type => 'KeywordSetEntityListing')
|
1204
|
+
if @api_client.config.debugging
|
1205
|
+
@api_client.config.logger.debug "API called: QualityApi#get_keywordsets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1206
|
+
end
|
1207
|
+
return data, status_code, headers
|
1208
|
+
end
|
1209
|
+
|
1210
|
+
# Get a keywordSet by id.
|
1211
|
+
#
|
1212
|
+
# @param keyword_set_id KeywordSet ID
|
1213
|
+
# @param [Hash] opts the optional parameters
|
1214
|
+
# @return [KeywordSet]
|
1215
|
+
def get_keywordsets_keywordset_id(keyword_set_id, opts = {})
|
1216
|
+
data, status_code, headers = get_keywordsets_keywordset_id_with_http_info(keyword_set_id, opts)
|
1217
|
+
return data
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
# Get a keywordSet by id.
|
1221
|
+
#
|
1222
|
+
# @param keyword_set_id KeywordSet ID
|
1223
|
+
# @param [Hash] opts the optional parameters
|
1224
|
+
# @return [Array<(KeywordSet, Fixnum, Hash)>] KeywordSet data, response status code and response headers
|
1225
|
+
def get_keywordsets_keywordset_id_with_http_info(keyword_set_id, opts = {})
|
1226
|
+
if @api_client.config.debugging
|
1227
|
+
@api_client.config.logger.debug "Calling API: QualityApi#get_keywordsets_keywordset_id ..."
|
1228
|
+
end
|
1229
|
+
|
1230
|
+
# verify the required parameter 'keyword_set_id' is set
|
1231
|
+
fail "Missing the required parameter 'keyword_set_id' when calling get_keywordsets_keywordset_id" if keyword_set_id.nil?
|
1232
|
+
|
1233
|
+
# resource path
|
1234
|
+
local_var_path = "/api/v2/quality/keywordsets/{keywordSetId}".sub('{format}','json').sub('{' + 'keywordSetId' + '}', keyword_set_id.to_s)
|
1235
|
+
|
1236
|
+
# query parameters
|
1237
|
+
query_params = {}
|
1238
|
+
|
1239
|
+
# header parameters
|
1240
|
+
header_params = {}
|
1241
|
+
|
1242
|
+
# HTTP header 'Accept' (if needed)
|
1243
|
+
_header_accept = ['application/json']
|
1244
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1245
|
+
|
1246
|
+
# HTTP header 'Content-Type'
|
1247
|
+
_header_content_type = ['application/json']
|
1248
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1249
|
+
|
1250
|
+
# form parameters
|
1251
|
+
form_params = {}
|
1252
|
+
|
1253
|
+
# http body (model)
|
1254
|
+
post_body = nil
|
1255
|
+
|
1256
|
+
auth_names = ['PureCloud Auth']
|
1257
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1258
|
+
:header_params => header_params,
|
1259
|
+
:query_params => query_params,
|
1260
|
+
:form_params => form_params,
|
1261
|
+
:body => post_body,
|
1262
|
+
:auth_names => auth_names,
|
1263
|
+
:return_type => 'KeywordSet')
|
1264
|
+
if @api_client.config.debugging
|
1265
|
+
@api_client.config.logger.debug "API called: QualityApi#get_keywordsets_keywordset_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1266
|
+
end
|
1267
|
+
return data, status_code, headers
|
1268
|
+
end
|
1269
|
+
|
1014
1270
|
# Get the published evaluation forms.
|
1015
1271
|
#
|
1016
1272
|
# @param [Hash] opts the optional parameters
|
@@ -1431,6 +1687,66 @@ module PureCloud
|
|
1431
1687
|
return data, status_code, headers
|
1432
1688
|
end
|
1433
1689
|
|
1690
|
+
# Create a Keyword Set
|
1691
|
+
#
|
1692
|
+
# @param [Hash] opts the optional parameters
|
1693
|
+
# @option opts [KeywordSet] :body keywordSet
|
1694
|
+
# @option opts [String] :expand queueId
|
1695
|
+
# @return [KeywordSet]
|
1696
|
+
def post_keywordsets(opts = {})
|
1697
|
+
data, status_code, headers = post_keywordsets_with_http_info(opts)
|
1698
|
+
return data
|
1699
|
+
end
|
1700
|
+
|
1701
|
+
# Create a Keyword Set
|
1702
|
+
#
|
1703
|
+
# @param [Hash] opts the optional parameters
|
1704
|
+
# @option opts [KeywordSet] :body keywordSet
|
1705
|
+
# @option opts [String] :expand queueId
|
1706
|
+
# @return [Array<(KeywordSet, Fixnum, Hash)>] KeywordSet data, response status code and response headers
|
1707
|
+
def post_keywordsets_with_http_info(opts = {})
|
1708
|
+
if @api_client.config.debugging
|
1709
|
+
@api_client.config.logger.debug "Calling API: QualityApi#post_keywordsets ..."
|
1710
|
+
end
|
1711
|
+
|
1712
|
+
# resource path
|
1713
|
+
local_var_path = "/api/v2/quality/keywordsets".sub('{format}','json')
|
1714
|
+
|
1715
|
+
# query parameters
|
1716
|
+
query_params = {}
|
1717
|
+
query_params[:'expand'] = opts[:'expand'] if opts[:'expand']
|
1718
|
+
|
1719
|
+
# header parameters
|
1720
|
+
header_params = {}
|
1721
|
+
|
1722
|
+
# HTTP header 'Accept' (if needed)
|
1723
|
+
_header_accept = ['application/json']
|
1724
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1725
|
+
|
1726
|
+
# HTTP header 'Content-Type'
|
1727
|
+
_header_content_type = ['application/json']
|
1728
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1729
|
+
|
1730
|
+
# form parameters
|
1731
|
+
form_params = {}
|
1732
|
+
|
1733
|
+
# http body (model)
|
1734
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
1735
|
+
|
1736
|
+
auth_names = ['PureCloud Auth']
|
1737
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1738
|
+
:header_params => header_params,
|
1739
|
+
:query_params => query_params,
|
1740
|
+
:form_params => form_params,
|
1741
|
+
:body => post_body,
|
1742
|
+
:auth_names => auth_names,
|
1743
|
+
:return_type => 'KeywordSet')
|
1744
|
+
if @api_client.config.debugging
|
1745
|
+
@api_client.config.logger.debug "API called: QualityApi#post_keywordsets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1746
|
+
end
|
1747
|
+
return data, status_code, headers
|
1748
|
+
end
|
1749
|
+
|
1434
1750
|
# Publish an evaluation form.
|
1435
1751
|
#
|
1436
1752
|
# @param [Hash] opts the optional parameters
|
@@ -1681,5 +1997,67 @@ module PureCloud
|
|
1681
1997
|
end
|
1682
1998
|
return data, status_code, headers
|
1683
1999
|
end
|
2000
|
+
|
2001
|
+
# Update a keywordSet to the specified keywordSet via PUT.
|
2002
|
+
#
|
2003
|
+
# @param keyword_set_id KeywordSet ID
|
2004
|
+
# @param [Hash] opts the optional parameters
|
2005
|
+
# @option opts [KeywordSet] :body keywordSet
|
2006
|
+
# @return [KeywordSet]
|
2007
|
+
def put_keywordsets_keywordset_id(keyword_set_id, opts = {})
|
2008
|
+
data, status_code, headers = put_keywordsets_keywordset_id_with_http_info(keyword_set_id, opts)
|
2009
|
+
return data
|
2010
|
+
end
|
2011
|
+
|
2012
|
+
# Update a keywordSet to the specified keywordSet via PUT.
|
2013
|
+
#
|
2014
|
+
# @param keyword_set_id KeywordSet ID
|
2015
|
+
# @param [Hash] opts the optional parameters
|
2016
|
+
# @option opts [KeywordSet] :body keywordSet
|
2017
|
+
# @return [Array<(KeywordSet, Fixnum, Hash)>] KeywordSet data, response status code and response headers
|
2018
|
+
def put_keywordsets_keywordset_id_with_http_info(keyword_set_id, opts = {})
|
2019
|
+
if @api_client.config.debugging
|
2020
|
+
@api_client.config.logger.debug "Calling API: QualityApi#put_keywordsets_keywordset_id ..."
|
2021
|
+
end
|
2022
|
+
|
2023
|
+
# verify the required parameter 'keyword_set_id' is set
|
2024
|
+
fail "Missing the required parameter 'keyword_set_id' when calling put_keywordsets_keywordset_id" if keyword_set_id.nil?
|
2025
|
+
|
2026
|
+
# resource path
|
2027
|
+
local_var_path = "/api/v2/quality/keywordsets/{keywordSetId}".sub('{format}','json').sub('{' + 'keywordSetId' + '}', keyword_set_id.to_s)
|
2028
|
+
|
2029
|
+
# query parameters
|
2030
|
+
query_params = {}
|
2031
|
+
|
2032
|
+
# header parameters
|
2033
|
+
header_params = {}
|
2034
|
+
|
2035
|
+
# HTTP header 'Accept' (if needed)
|
2036
|
+
_header_accept = ['application/json']
|
2037
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2038
|
+
|
2039
|
+
# HTTP header 'Content-Type'
|
2040
|
+
_header_content_type = ['application/json']
|
2041
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2042
|
+
|
2043
|
+
# form parameters
|
2044
|
+
form_params = {}
|
2045
|
+
|
2046
|
+
# http body (model)
|
2047
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
2048
|
+
|
2049
|
+
auth_names = ['PureCloud Auth']
|
2050
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2051
|
+
:header_params => header_params,
|
2052
|
+
:query_params => query_params,
|
2053
|
+
:form_params => form_params,
|
2054
|
+
:body => post_body,
|
2055
|
+
:auth_names => auth_names,
|
2056
|
+
:return_type => 'KeywordSet')
|
2057
|
+
if @api_client.config.debugging
|
2058
|
+
@api_client.config.logger.debug "API called: QualityApi#put_keywordsets_keywordset_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2059
|
+
end
|
2060
|
+
return data, status_code, headers
|
2061
|
+
end
|
1684
2062
|
end
|
1685
2063
|
end
|