purecloudplatformclientv2 92.0.0 → 93.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/AnalyticsEvaluation.md +1 -1
  4. data/docs/AnalyticsSession.md +4 -0
  5. data/docs/ArchitectApi.md +51 -49
  6. data/docs/CoachingApi.md +8 -7
  7. data/docs/CommonCampaign.md +17 -0
  8. data/docs/CommonCampaignDivisionView.md +17 -0
  9. data/docs/CommonCampaignDivisionViewEntityListing.md +22 -0
  10. data/docs/CommonCampaignEntityListing.md +22 -0
  11. data/docs/ConversationAssociation.md +1 -1
  12. data/docs/ConversationEventTopicMessage.md +1 -0
  13. data/docs/ConversationsApi.md +4 -4
  14. data/docs/ExternalContactsApi.md +4 -4
  15. data/docs/HistoricalAdherenceActuals.md +15 -0
  16. data/docs/HistoricalAdherenceDayMetrics.md +23 -0
  17. data/docs/HistoricalAdherenceExceptionInfo.md +21 -0
  18. data/docs/HistoricalAdherenceQueryResult.md +21 -0
  19. data/docs/KnowledgeSearchRequest.md +3 -3
  20. data/docs/MessagingCampaign.md +28 -0
  21. data/docs/MessagingCampaignDivisionView.md +16 -0
  22. data/docs/MessagingCampaignDivisionViewEntityListing.md +22 -0
  23. data/docs/MessagingCampaignEntityListing.md +22 -0
  24. data/docs/ObservationValue.md +3 -1
  25. data/docs/OutboundApi.md +881 -76
  26. data/docs/QueueConversationEventTopicMessage.md +1 -0
  27. data/docs/QueueConversationSocialExpressionEventTopicMessage.md +1 -0
  28. data/docs/QueueConversationVideoEventTopicMessage.md +1 -0
  29. data/docs/ReportingExportJobRequest.md +2 -0
  30. data/docs/ReportingExportJobResponse.md +3 -0
  31. data/docs/SCIMApi.md +96 -108
  32. data/docs/ScimConfigResourceType.md +1 -1
  33. data/docs/ScimUserExtensions.md +2 -2
  34. data/docs/ScimUserRole.md +1 -1
  35. data/docs/ScimUserRoutingLanguage.md +2 -2
  36. data/docs/ScimUserRoutingSkill.md +2 -2
  37. data/docs/ScimV2CreateUser.md +3 -3
  38. data/docs/ScimV2Group.md +1 -1
  39. data/docs/ScimV2SchemaAttribute.md +11 -11
  40. data/docs/ScimV2SchemaDefinition.md +4 -4
  41. data/docs/ScimV2SchemaListResponse.md +1 -1
  42. data/docs/ScimV2User.md +4 -4
  43. data/docs/SmsConfig.md +15 -0
  44. data/docs/SmsPhoneNumberRef.md +14 -0
  45. data/docs/UserRoutingLanguage.md +3 -3
  46. data/docs/UserRoutingLanguagePost.md +1 -1
  47. data/docs/UserRoutingSkill.md +1 -1
  48. data/docs/VoicemailUserPolicy.md +1 -0
  49. data/docs/WfmBusinessUnitReference.md +14 -0
  50. data/docs/WfmHistoricalAdherenceResponse.md +1 -0
  51. data/docs/WfmHistoricalAdherenceResultWrapper.md +15 -0
  52. data/docs/WfmHistoricalDataUploadRequestStatusTopicDateTime.md +16 -0
  53. data/docs/WfmHistoricalDataUploadRequestStatusTopicHistoricalDataUploadRequestUpdate.md +20 -0
  54. data/docs/WfmScheduleReference.md +16 -0
  55. data/lib/purecloudplatformclientv2.rb +19 -0
  56. data/lib/purecloudplatformclientv2/api/architect_api.rb +15 -6
  57. data/lib/purecloudplatformclientv2/api/coaching_api.rb +10 -9
  58. data/lib/purecloudplatformclientv2/api/conversations_api.rb +4 -4
  59. data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +4 -4
  60. data/lib/purecloudplatformclientv2/api/outbound_api.rb +1215 -155
  61. data/lib/purecloudplatformclientv2/api/scim_api.rb +88 -88
  62. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  63. data/lib/purecloudplatformclientv2/models/analytics_evaluation.rb +13 -13
  64. data/lib/purecloudplatformclientv2/models/analytics_session.rb +124 -4
  65. data/lib/purecloudplatformclientv2/models/common_campaign.rb +320 -0
  66. data/lib/purecloudplatformclientv2/models/common_campaign_division_view.rb +320 -0
  67. data/lib/purecloudplatformclientv2/models/common_campaign_division_view_entity_listing.rb +428 -0
  68. data/lib/purecloudplatformclientv2/models/common_campaign_entity_listing.rb +428 -0
  69. data/lib/purecloudplatformclientv2/models/conversation_aggregate_query_predicate.rb +2 -2
  70. data/lib/purecloudplatformclientv2/models/conversation_association.rb +1 -1
  71. data/lib/purecloudplatformclientv2/models/conversation_event_topic_message.rb +26 -1
  72. data/lib/purecloudplatformclientv2/models/dependency.rb +2 -2
  73. data/lib/purecloudplatformclientv2/models/dependency_object.rb +2 -2
  74. data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
  75. data/lib/purecloudplatformclientv2/models/flow_aggregate_query_predicate.rb +2 -2
  76. data/lib/purecloudplatformclientv2/models/historical_adherence_actuals.rb +268 -0
  77. data/lib/purecloudplatformclientv2/models/historical_adherence_day_metrics.rb +462 -0
  78. data/lib/purecloudplatformclientv2/models/historical_adherence_exception_info.rb +466 -0
  79. data/lib/purecloudplatformclientv2/models/historical_adherence_query_result.rb +430 -0
  80. data/lib/purecloudplatformclientv2/models/knowledge_search_request.rb +0 -15
  81. data/lib/purecloudplatformclientv2/models/messaging_campaign.rb +621 -0
  82. data/lib/purecloudplatformclientv2/models/messaging_campaign_division_view.rb +279 -0
  83. data/lib/purecloudplatformclientv2/models/messaging_campaign_division_view_entity_listing.rb +428 -0
  84. data/lib/purecloudplatformclientv2/models/messaging_campaign_entity_listing.rb +428 -0
  85. data/lib/purecloudplatformclientv2/models/observation_value.rb +70 -2
  86. data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_message.rb +26 -1
  87. data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_message.rb +26 -1
  88. data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_message.rb +26 -1
  89. data/lib/purecloudplatformclientv2/models/reporting_export_job_request.rb +53 -1
  90. data/lib/purecloudplatformclientv2/models/reporting_export_job_response.rb +78 -1
  91. data/lib/purecloudplatformclientv2/models/scim_config_resource_type.rb +1 -1
  92. data/lib/purecloudplatformclientv2/models/scim_user_extensions.rb +3 -3
  93. data/lib/purecloudplatformclientv2/models/scim_user_role.rb +1 -1
  94. data/lib/purecloudplatformclientv2/models/scim_user_routing_language.rb +3 -3
  95. data/lib/purecloudplatformclientv2/models/scim_user_routing_skill.rb +3 -3
  96. data/lib/purecloudplatformclientv2/models/scim_v2_create_user.rb +3 -2
  97. data/lib/purecloudplatformclientv2/models/scim_v2_enterprise_user.rb +1 -1
  98. data/lib/purecloudplatformclientv2/models/scim_v2_group.rb +1 -1
  99. data/lib/purecloudplatformclientv2/models/scim_v2_schema_attribute.rb +12 -12
  100. data/lib/purecloudplatformclientv2/models/scim_v2_schema_definition.rb +5 -5
  101. data/lib/purecloudplatformclientv2/models/scim_v2_schema_list_response.rb +2 -2
  102. data/lib/purecloudplatformclientv2/models/scim_v2_user.rb +4 -3
  103. data/lib/purecloudplatformclientv2/models/segment_detail_query_predicate.rb +2 -2
  104. data/lib/purecloudplatformclientv2/models/sms_config.rb +269 -0
  105. data/lib/purecloudplatformclientv2/models/sms_phone_number_ref.rb +232 -0
  106. data/lib/purecloudplatformclientv2/models/user_routing_language.rb +4 -4
  107. data/lib/purecloudplatformclientv2/models/user_routing_language_post.rb +1 -1
  108. data/lib/purecloudplatformclientv2/models/user_routing_skill.rb +1 -1
  109. data/lib/purecloudplatformclientv2/models/voicemail_user_policy.rb +30 -4
  110. data/lib/purecloudplatformclientv2/models/wem_coaching_appointment_topic_coaching_appointment_notification.rb +4 -4
  111. data/lib/purecloudplatformclientv2/models/wfm_business_unit_reference.rb +228 -0
  112. data/lib/purecloudplatformclientv2/models/wfm_historical_adherence_response.rb +27 -1
  113. data/lib/purecloudplatformclientv2/models/wfm_historical_adherence_result_wrapper.rb +258 -0
  114. data/lib/purecloudplatformclientv2/models/wfm_historical_data_upload_request_status_topic_date_time.rb +276 -0
  115. data/lib/purecloudplatformclientv2/models/wfm_historical_data_upload_request_status_topic_historical_data_upload_request_update.rb +390 -0
  116. data/lib/purecloudplatformclientv2/models/wfm_schedule_reference.rb +280 -0
  117. data/lib/purecloudplatformclientv2/version.rb +1 -1
  118. metadata +41 -3
@@ -0,0 +1,430 @@
1
+ =begin
2
+ PureCloud Platform API
3
+
4
+ With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
5
+
6
+ OpenAPI spec version: v2
7
+ Contact: DeveloperEvangelists@genesys.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: UNLICENSED
11
+ https://help.mypurecloud.com/articles/terms-and-conditions/
12
+
13
+ Terms of Service: https://help.mypurecloud.com/articles/terms-and-conditions/
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module PureCloud
20
+ class HistoricalAdherenceQueryResult
21
+ # The ID of the user for whom the adherence is queried
22
+ attr_accessor :user_id
23
+
24
+ # Beginning of the date range that was queried, in ISO-8601 format
25
+ attr_accessor :start_date
26
+
27
+ # End of the date range that was queried, in ISO-8601 format. If it was not set, end date will be set to the queried time
28
+ attr_accessor :end_date
29
+
30
+ # Adherence percentage for this user, in the scale of 0 - 100
31
+ attr_accessor :adherence_percentage
32
+
33
+ # Conformance percentage for this user, in the scale of 0 - 100. Conformance percentage can be greater than 100 when the actual on queue time is greater than the scheduled on queue time for the same period.
34
+ attr_accessor :conformance_percentage
35
+
36
+ # The impact of the current adherence state for this user
37
+ attr_accessor :impact
38
+
39
+ # List of adherence exceptions for this user
40
+ attr_accessor :exception_info
41
+
42
+ # Adherence and conformance metrics for days in query range
43
+ attr_accessor :day_metrics
44
+
45
+ # List of actual activity with offset for this user
46
+ attr_accessor :actuals
47
+
48
+ # Attribute mapping from ruby-style variable name to JSON key.
49
+ def self.attribute_map
50
+ {
51
+
52
+ :'user_id' => :'userId',
53
+
54
+ :'start_date' => :'startDate',
55
+
56
+ :'end_date' => :'endDate',
57
+
58
+ :'adherence_percentage' => :'adherencePercentage',
59
+
60
+ :'conformance_percentage' => :'conformancePercentage',
61
+
62
+ :'impact' => :'impact',
63
+
64
+ :'exception_info' => :'exceptionInfo',
65
+
66
+ :'day_metrics' => :'dayMetrics',
67
+
68
+ :'actuals' => :'actuals'
69
+
70
+ }
71
+ end
72
+
73
+ # Attribute type mapping.
74
+ def self.swagger_types
75
+ {
76
+
77
+ :'user_id' => :'String',
78
+
79
+ :'start_date' => :'DateTime',
80
+
81
+ :'end_date' => :'DateTime',
82
+
83
+ :'adherence_percentage' => :'Float',
84
+
85
+ :'conformance_percentage' => :'Float',
86
+
87
+ :'impact' => :'String',
88
+
89
+ :'exception_info' => :'Array<HistoricalAdherenceExceptionInfo>',
90
+
91
+ :'day_metrics' => :'Array<HistoricalAdherenceDayMetrics>',
92
+
93
+ :'actuals' => :'Array<HistoricalAdherenceActuals>'
94
+
95
+ }
96
+ end
97
+
98
+ # Initializes the object
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ def initialize(attributes = {})
101
+ return unless attributes.is_a?(Hash)
102
+
103
+ # convert string to symbol for hash key
104
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
105
+
106
+
107
+ if attributes.has_key?(:'userId')
108
+
109
+
110
+ self.user_id = attributes[:'userId']
111
+
112
+
113
+ end
114
+
115
+
116
+ if attributes.has_key?(:'startDate')
117
+
118
+
119
+ self.start_date = attributes[:'startDate']
120
+
121
+
122
+ end
123
+
124
+
125
+ if attributes.has_key?(:'endDate')
126
+
127
+
128
+ self.end_date = attributes[:'endDate']
129
+
130
+
131
+ end
132
+
133
+
134
+ if attributes.has_key?(:'adherencePercentage')
135
+
136
+
137
+ self.adherence_percentage = attributes[:'adherencePercentage']
138
+
139
+
140
+ end
141
+
142
+
143
+ if attributes.has_key?(:'conformancePercentage')
144
+
145
+
146
+ self.conformance_percentage = attributes[:'conformancePercentage']
147
+
148
+
149
+ end
150
+
151
+
152
+ if attributes.has_key?(:'impact')
153
+
154
+
155
+ self.impact = attributes[:'impact']
156
+
157
+
158
+ end
159
+
160
+
161
+ if attributes.has_key?(:'exceptionInfo')
162
+
163
+ if (value = attributes[:'exceptionInfo']).is_a?(Array)
164
+ self.exception_info = value
165
+ end
166
+
167
+
168
+
169
+ end
170
+
171
+
172
+ if attributes.has_key?(:'dayMetrics')
173
+
174
+ if (value = attributes[:'dayMetrics']).is_a?(Array)
175
+ self.day_metrics = value
176
+ end
177
+
178
+
179
+
180
+ end
181
+
182
+
183
+ if attributes.has_key?(:'actuals')
184
+
185
+ if (value = attributes[:'actuals']).is_a?(Array)
186
+ self.actuals = value
187
+ end
188
+
189
+
190
+
191
+ end
192
+
193
+
194
+ end
195
+
196
+ # Show invalid properties with the reasons. Usually used together with valid?
197
+ # @return Array for valid properies with the reasons
198
+ def list_invalid_properties
199
+ invalid_properties = Array.new
200
+
201
+
202
+ return invalid_properties
203
+ end
204
+
205
+ # Check to see if the all the properties in the model are valid
206
+ # @return true if the model is valid
207
+ def valid?
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+ allowed_values = ["Positive", "Negative", "Neutral", "Unknown"]
232
+ if @impact && !allowed_values.include?(@impact)
233
+ return false
234
+ end
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+ end
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+ # Custom attribute writer method checking allowed values (enum).
280
+ # @param [Object] impact Object to be assigned
281
+ def impact=(impact)
282
+ allowed_values = ["Positive", "Negative", "Neutral", "Unknown"]
283
+ if impact && !allowed_values.include?(impact)
284
+ fail ArgumentError, "invalid value for 'impact', must be one of #{allowed_values}."
285
+ end
286
+ @impact = impact
287
+ end
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+ # Checks equality by comparing each attribute.
308
+ # @param [Object] Object to be compared
309
+ def ==(o)
310
+ return true if self.equal?(o)
311
+ self.class == o.class &&
312
+ user_id == o.user_id &&
313
+ start_date == o.start_date &&
314
+ end_date == o.end_date &&
315
+ adherence_percentage == o.adherence_percentage &&
316
+ conformance_percentage == o.conformance_percentage &&
317
+ impact == o.impact &&
318
+ exception_info == o.exception_info &&
319
+ day_metrics == o.day_metrics &&
320
+ actuals == o.actuals
321
+ end
322
+
323
+ # @see the `==` method
324
+ # @param [Object] Object to be compared
325
+ def eql?(o)
326
+ self == o
327
+ end
328
+
329
+ # Calculates hash code according to all attributes.
330
+ # @return [Fixnum] Hash code
331
+ def hash
332
+ [user_id, start_date, end_date, adherence_percentage, conformance_percentage, impact, exception_info, day_metrics, actuals].hash
333
+ end
334
+
335
+ # build the object from hash
336
+ def build_from_hash(attributes)
337
+ return nil unless attributes.is_a?(Hash)
338
+ self.class.swagger_types.each_pair do |key, type|
339
+ if type =~ /^Array<(.*)>/i
340
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
341
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
342
+ else
343
+ #TODO show warning in debug mode
344
+ end
345
+ elsif !attributes[self.class.attribute_map[key]].nil?
346
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
347
+ else
348
+ # data not found in attributes(hash), not an issue as the data can be optional
349
+ end
350
+ end
351
+
352
+ self
353
+ end
354
+
355
+ def _deserialize(type, value)
356
+ case type.to_sym
357
+ when :DateTime
358
+ DateTime.parse(value)
359
+ when :Date
360
+ Date.parse(value)
361
+ when :String
362
+ value.to_s
363
+ when :Integer
364
+ value.to_i
365
+ when :Float
366
+ value.to_f
367
+ when :BOOLEAN
368
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
369
+ true
370
+ else
371
+ false
372
+ end
373
+ when :Object
374
+ # generic object (usually a Hash), return directly
375
+ value
376
+ when /\AArray<(?<inner_type>.+)>\z/
377
+ inner_type = Regexp.last_match[:inner_type]
378
+ value.map { |v| _deserialize(inner_type, v) }
379
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
380
+ k_type = Regexp.last_match[:k_type]
381
+ v_type = Regexp.last_match[:v_type]
382
+ {}.tap do |hash|
383
+ value.each do |k, v|
384
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
385
+ end
386
+ end
387
+ else # model
388
+ _model = Object.const_get("PureCloud").const_get(type).new
389
+ _model.build_from_hash(value)
390
+ end
391
+ end
392
+
393
+ def to_s
394
+ to_hash.to_s
395
+ end
396
+
397
+ # to_body is an alias to to_body (backward compatibility))
398
+ def to_body
399
+ to_hash
400
+ end
401
+
402
+ # return the object in the form of hash
403
+ def to_hash
404
+ hash = {}
405
+ self.class.attribute_map.each_pair do |attr, param|
406
+ value = self.send(attr)
407
+ next if value.nil?
408
+ hash[param] = _to_hash(value)
409
+ end
410
+ hash
411
+ end
412
+
413
+ # Method to output non-array value in the form of hash
414
+ # For object, use to_hash. Otherwise, just return the value
415
+ def _to_hash(value)
416
+ if value.is_a?(Array)
417
+ value.compact.map{ |v| _to_hash(v) }
418
+ elsif value.is_a?(Hash)
419
+ {}.tap do |hash|
420
+ value.each { |k, v| hash[k] = _to_hash(v) }
421
+ end
422
+ elsif value.respond_to? :to_hash
423
+ value.to_hash
424
+ else
425
+ value
426
+ end
427
+ end
428
+
429
+ end
430
+ end
@@ -162,28 +162,13 @@ module PureCloud
162
162
 
163
163
 
164
164
 
165
- if @page_size.nil?
166
- return false
167
- end
168
-
169
-
170
-
171
-
172
165
 
173
166
 
174
- if @page_number.nil?
175
- return false
176
- end
177
-
178
167
 
179
168
 
180
169
 
181
170
 
182
171
 
183
- if @document_type.nil?
184
- return false
185
- end
186
-
187
172
 
188
173
 
189
174
  allowed_values = ["Faq"]