purecloudplatformclientv2 11.0.0 → 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/CallbackConversationNotificationCallbackMediaParticipant.md +1 -1
  4. data/docs/CallbackConversationNotificationParticipants.md +1 -1
  5. data/docs/CallbackConversationNotificationVoicemail.md +1 -0
  6. data/docs/ConversationNotificationCallback.md +1 -1
  7. data/docs/ConversationNotificationCallbacks.md +1 -1
  8. data/docs/ConversationNotificationVoicemail.md +1 -0
  9. data/docs/RuleSetNotificationCondition.md +2 -0
  10. data/docs/RuleSetNotificationConditions.md +2 -0
  11. data/docs/StatsNotificationNotification.md +14 -0
  12. data/docs/StatsNotificationNotificationData.md +14 -0
  13. data/docs/StatsNotificationNotificationDatum.md +14 -0
  14. data/docs/StatsNotificationNotificationMetric.md +15 -0
  15. data/docs/StatsNotificationNotificationMetrics.md +15 -0
  16. data/docs/WfmHistoricalAdherenceCalculationsCompleteNoticeNotification.md +15 -0
  17. data/lib/purecloudplatformclientv2.rb +6 -0
  18. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_callback_media_participant.rb +1 -1
  19. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_participants.rb +1 -1
  20. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_voicemail.rb +43 -4
  21. data/lib/purecloudplatformclientv2/models/conversation_notification_callback.rb +3 -3
  22. data/lib/purecloudplatformclientv2/models/conversation_notification_callbacks.rb +3 -3
  23. data/lib/purecloudplatformclientv2/models/conversation_notification_voicemail.rb +43 -4
  24. data/lib/purecloudplatformclientv2/models/flow_notification_notification_architect_operation.rb +2 -2
  25. data/lib/purecloudplatformclientv2/models/prompt_notification_notification_architect_operation.rb +2 -2
  26. data/lib/purecloudplatformclientv2/models/prompt_notification_notification_current_operation.rb +2 -2
  27. data/lib/purecloudplatformclientv2/models/rule_set_notification_condition.rb +65 -1
  28. data/lib/purecloudplatformclientv2/models/rule_set_notification_conditions.rb +65 -1
  29. data/lib/purecloudplatformclientv2/models/stats_notification_notification.rb +230 -0
  30. data/lib/purecloudplatformclientv2/models/stats_notification_notification_data.rb +228 -0
  31. data/lib/purecloudplatformclientv2/models/stats_notification_notification_datum.rb +228 -0
  32. data/lib/purecloudplatformclientv2/models/stats_notification_notification_metric.rb +253 -0
  33. data/lib/purecloudplatformclientv2/models/stats_notification_notification_metrics.rb +253 -0
  34. data/lib/purecloudplatformclientv2/models/wfm_historical_adherence_calculations_complete_notice_notification.rb +265 -0
  35. data/lib/purecloudplatformclientv2/version.rb +1 -1
  36. metadata +14 -2
@@ -207,7 +207,7 @@ module PureCloud
207
207
 
208
208
 
209
209
 
210
- allowed_values = ["CHECKIN", "DEBUG", "DELETE", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
210
+ allowed_values = ["CHECKIN", "DEBUG", "DELETE", "HISTORY", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
211
211
  if @action_name && !allowed_values.include?(@action_name)
212
212
  return false
213
213
  end
@@ -261,7 +261,7 @@ module PureCloud
261
261
  # Custom attribute writer method checking allowed values (enum).
262
262
  # @param [Object] action_name Object to be assigned
263
263
  def action_name=(action_name)
264
- allowed_values = ["CHECKIN", "DEBUG", "DELETE", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
264
+ allowed_values = ["CHECKIN", "DEBUG", "DELETE", "HISTORY", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
265
265
  if action_name && !allowed_values.include?(action_name)
266
266
  fail ArgumentError, "invalid value for 'action_name', must be one of #{allowed_values}."
267
267
  end
@@ -207,7 +207,7 @@ module PureCloud
207
207
 
208
208
 
209
209
 
210
- allowed_values = ["CHECKIN", "DEBUG", "DELETE", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
210
+ allowed_values = ["CHECKIN", "DEBUG", "DELETE", "HISTORY", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
211
211
  if @action_name && !allowed_values.include?(@action_name)
212
212
  return false
213
213
  end
@@ -261,7 +261,7 @@ module PureCloud
261
261
  # Custom attribute writer method checking allowed values (enum).
262
262
  # @param [Object] action_name Object to be assigned
263
263
  def action_name=(action_name)
264
- allowed_values = ["CHECKIN", "DEBUG", "DELETE", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
264
+ allowed_values = ["CHECKIN", "DEBUG", "DELETE", "HISTORY", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
265
265
  if action_name && !allowed_values.include?(action_name)
266
266
  fail ArgumentError, "invalid value for 'action_name', must be one of #{allowed_values}."
267
267
  end
@@ -207,7 +207,7 @@ module PureCloud
207
207
 
208
208
 
209
209
 
210
- allowed_values = ["CHECKIN", "DEBUG", "DELETE", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
210
+ allowed_values = ["CHECKIN", "DEBUG", "DELETE", "HISTORY", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
211
211
  if @action_name && !allowed_values.include?(@action_name)
212
212
  return false
213
213
  end
@@ -261,7 +261,7 @@ module PureCloud
261
261
  # Custom attribute writer method checking allowed values (enum).
262
262
  # @param [Object] action_name Object to be assigned
263
263
  def action_name=(action_name)
264
- allowed_values = ["CHECKIN", "DEBUG", "DELETE", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
264
+ allowed_values = ["CHECKIN", "DEBUG", "DELETE", "HISTORY", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
265
265
  if action_name && !allowed_values.include?(action_name)
266
266
  fail ArgumentError, "invalid value for 'action_name', must be one of #{allowed_values}."
267
267
  end
@@ -32,6 +32,10 @@ module PureCloud
32
32
 
33
33
  attr_accessor :codes
34
34
 
35
+ attr_accessor :property_type
36
+
37
+ attr_accessor :property
38
+
35
39
  attr_accessor :additional_properties
36
40
 
37
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -52,6 +56,10 @@ module PureCloud
52
56
 
53
57
  :'codes' => :'codes',
54
58
 
59
+ :'property_type' => :'propertyType',
60
+
61
+ :'property' => :'property',
62
+
55
63
  :'additional_properties' => :'additionalProperties'
56
64
 
57
65
  }
@@ -75,6 +83,10 @@ module PureCloud
75
83
 
76
84
  :'codes' => :'Array<String>',
77
85
 
86
+ :'property_type' => :'String',
87
+
88
+ :'property' => :'String',
89
+
78
90
  :'additional_properties' => :'Object'
79
91
 
80
92
  }
@@ -154,6 +166,24 @@ module PureCloud
154
166
  end
155
167
 
156
168
 
169
+ if attributes.has_key?(:'propertyType')
170
+
171
+
172
+ self.property_type = attributes[:'propertyType']
173
+
174
+
175
+ end
176
+
177
+
178
+ if attributes.has_key?(:'property')
179
+
180
+
181
+ self.property = attributes[:'property']
182
+
183
+
184
+ end
185
+
186
+
157
187
  if attributes.has_key?(:'additionalProperties')
158
188
 
159
189
 
@@ -218,6 +248,19 @@ module PureCloud
218
248
 
219
249
 
220
250
 
251
+ allowed_values = ["LAST_ATTEMPT_BY_COLUMN", "LAST_ATTEMPT_OVERALL", "LAST_RESULT_BY_COLUMN", "LAST_RESULT_OVERALL"]
252
+ if @property_type && !allowed_values.include?(@property_type)
253
+ return false
254
+ end
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
221
264
 
222
265
 
223
266
  end
@@ -277,6 +320,25 @@ module PureCloud
277
320
 
278
321
 
279
322
 
323
+ # Custom attribute writer method checking allowed values (enum).
324
+ # @param [Object] property_type Object to be assigned
325
+ def property_type=(property_type)
326
+ allowed_values = ["LAST_ATTEMPT_BY_COLUMN", "LAST_ATTEMPT_OVERALL", "LAST_RESULT_BY_COLUMN", "LAST_RESULT_OVERALL"]
327
+ if property_type && !allowed_values.include?(property_type)
328
+ fail ArgumentError, "invalid value for 'property_type', must be one of #{allowed_values}."
329
+ end
330
+ @property_type = property_type
331
+ end
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
280
342
 
281
343
 
282
344
 
@@ -293,6 +355,8 @@ module PureCloud
293
355
  value_type == o.value_type &&
294
356
  operator == o.operator &&
295
357
  codes == o.codes &&
358
+ property_type == o.property_type &&
359
+ property == o.property &&
296
360
  additional_properties == o.additional_properties
297
361
  end
298
362
 
@@ -305,7 +369,7 @@ module PureCloud
305
369
  # Calculates hash code according to all attributes.
306
370
  # @return [Fixnum] Hash code
307
371
  def hash
308
- [type, inverted, attribute_name, value, value_type, operator, codes, additional_properties].hash
372
+ [type, inverted, attribute_name, value, value_type, operator, codes, property_type, property, additional_properties].hash
309
373
  end
310
374
 
311
375
  # build the object from hash
@@ -32,6 +32,10 @@ module PureCloud
32
32
 
33
33
  attr_accessor :codes
34
34
 
35
+ attr_accessor :property_type
36
+
37
+ attr_accessor :property
38
+
35
39
  attr_accessor :additional_properties
36
40
 
37
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -52,6 +56,10 @@ module PureCloud
52
56
 
53
57
  :'codes' => :'codes',
54
58
 
59
+ :'property_type' => :'propertyType',
60
+
61
+ :'property' => :'property',
62
+
55
63
  :'additional_properties' => :'additionalProperties'
56
64
 
57
65
  }
@@ -75,6 +83,10 @@ module PureCloud
75
83
 
76
84
  :'codes' => :'Array<String>',
77
85
 
86
+ :'property_type' => :'String',
87
+
88
+ :'property' => :'String',
89
+
78
90
  :'additional_properties' => :'Object'
79
91
 
80
92
  }
@@ -154,6 +166,24 @@ module PureCloud
154
166
  end
155
167
 
156
168
 
169
+ if attributes.has_key?(:'propertyType')
170
+
171
+
172
+ self.property_type = attributes[:'propertyType']
173
+
174
+
175
+ end
176
+
177
+
178
+ if attributes.has_key?(:'property')
179
+
180
+
181
+ self.property = attributes[:'property']
182
+
183
+
184
+ end
185
+
186
+
157
187
  if attributes.has_key?(:'additionalProperties')
158
188
 
159
189
 
@@ -218,6 +248,19 @@ module PureCloud
218
248
 
219
249
 
220
250
 
251
+ allowed_values = ["LAST_ATTEMPT_BY_COLUMN", "LAST_ATTEMPT_OVERALL", "LAST_RESULT_BY_COLUMN", "LAST_RESULT_OVERALL"]
252
+ if @property_type && !allowed_values.include?(@property_type)
253
+ return false
254
+ end
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
221
264
 
222
265
 
223
266
  end
@@ -277,6 +320,25 @@ module PureCloud
277
320
 
278
321
 
279
322
 
323
+ # Custom attribute writer method checking allowed values (enum).
324
+ # @param [Object] property_type Object to be assigned
325
+ def property_type=(property_type)
326
+ allowed_values = ["LAST_ATTEMPT_BY_COLUMN", "LAST_ATTEMPT_OVERALL", "LAST_RESULT_BY_COLUMN", "LAST_RESULT_OVERALL"]
327
+ if property_type && !allowed_values.include?(property_type)
328
+ fail ArgumentError, "invalid value for 'property_type', must be one of #{allowed_values}."
329
+ end
330
+ @property_type = property_type
331
+ end
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
280
342
 
281
343
 
282
344
 
@@ -293,6 +355,8 @@ module PureCloud
293
355
  value_type == o.value_type &&
294
356
  operator == o.operator &&
295
357
  codes == o.codes &&
358
+ property_type == o.property_type &&
359
+ property == o.property &&
296
360
  additional_properties == o.additional_properties
297
361
  end
298
362
 
@@ -305,7 +369,7 @@ module PureCloud
305
369
  # Calculates hash code according to all attributes.
306
370
  # @return [Fixnum] Hash code
307
371
  def hash
308
- [type, inverted, attribute_name, value, value_type, operator, codes, additional_properties].hash
372
+ [type, inverted, attribute_name, value, value_type, operator, codes, property_type, property, additional_properties].hash
309
373
  end
310
374
 
311
375
  # build the object from hash
@@ -0,0 +1,230 @@
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: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module PureCloud
20
+ class StatsNotificationNotification
21
+ attr_accessor :group
22
+
23
+ attr_accessor :data
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+
29
+ :'group' => :'group',
30
+
31
+ :'data' => :'data'
32
+
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.swagger_types
38
+ {
39
+
40
+ :'group' => :'Hash<String, String>',
41
+
42
+ :'data' => :'Array<StatsNotificationNotificationData>'
43
+
44
+ }
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ return unless attributes.is_a?(Hash)
51
+
52
+ # convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
54
+
55
+
56
+ if attributes.has_key?(:'group')
57
+
58
+ if (value = attributes[:'group']).is_a?(Array)
59
+ self.group = value
60
+ end
61
+
62
+
63
+
64
+ end
65
+
66
+
67
+ if attributes.has_key?(:'data')
68
+
69
+ if (value = attributes[:'data']).is_a?(Array)
70
+ self.data = value
71
+ end
72
+
73
+
74
+
75
+ end
76
+
77
+
78
+ end
79
+
80
+ # Show invalid properties with the reasons. Usually used together with valid?
81
+ # @return Array for valid properies with the reasons
82
+ def list_invalid_properties
83
+ invalid_properties = Array.new
84
+
85
+
86
+ return invalid_properties
87
+ end
88
+
89
+ # Check to see if the all the properties in the model are valid
90
+ # @return true if the model is valid
91
+ def valid?
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+ end
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+ # Checks equality by comparing each attribute.
115
+ # @param [Object] Object to be compared
116
+ def ==(o)
117
+ return true if self.equal?(o)
118
+ self.class == o.class &&
119
+ group == o.group &&
120
+ data == o.data
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(o)
126
+ self == o
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Fixnum] Hash code
131
+ def hash
132
+ [group, data].hash
133
+ end
134
+
135
+ # build the object from hash
136
+ def build_from_hash(attributes)
137
+ return nil unless attributes.is_a?(Hash)
138
+ self.class.swagger_types.each_pair do |key, type|
139
+ if type =~ /^Array<(.*)>/i
140
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
141
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
142
+ else
143
+ #TODO show warning in debug mode
144
+ end
145
+ elsif !attributes[self.class.attribute_map[key]].nil?
146
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
147
+ else
148
+ # data not found in attributes(hash), not an issue as the data can be optional
149
+ end
150
+ end
151
+
152
+ self
153
+ end
154
+
155
+ def _deserialize(type, value)
156
+ case type.to_sym
157
+ when :DateTime
158
+ DateTime.parse(value)
159
+ when :Date
160
+ Date.parse(value)
161
+ when :String
162
+ value.to_s
163
+ when :Integer
164
+ value.to_i
165
+ when :Float
166
+ value.to_f
167
+ when :BOOLEAN
168
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
169
+ true
170
+ else
171
+ false
172
+ end
173
+ when :Object
174
+ # generic object (usually a Hash), return directly
175
+ value
176
+ when /\AArray<(?<inner_type>.+)>\z/
177
+ inner_type = Regexp.last_match[:inner_type]
178
+ value.map { |v| _deserialize(inner_type, v) }
179
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
180
+ k_type = Regexp.last_match[:k_type]
181
+ v_type = Regexp.last_match[:v_type]
182
+ {}.tap do |hash|
183
+ value.each do |k, v|
184
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
185
+ end
186
+ end
187
+ else # model
188
+ _model = Object.const_get("PureCloud").const_get(type).new
189
+ _model.build_from_hash(value)
190
+ end
191
+ end
192
+
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_body (backward compatibility))
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # return the object in the form of hash
203
+ def to_hash
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ next if value.nil?
208
+ hash[param] = _to_hash(value)
209
+ end
210
+ hash
211
+ end
212
+
213
+ # Method to output non-array value in the form of hash
214
+ # For object, use to_hash. Otherwise, just return the value
215
+ def _to_hash(value)
216
+ if value.is_a?(Array)
217
+ value.compact.map{ |v| _to_hash(v) }
218
+ elsif value.is_a?(Hash)
219
+ {}.tap do |hash|
220
+ value.each { |k, v| hash[k] = _to_hash(v) }
221
+ end
222
+ elsif value.respond_to? :to_hash
223
+ value.to_hash
224
+ else
225
+ value
226
+ end
227
+ end
228
+
229
+ end
230
+ end