purecloudplatformclientv2 11.0.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/CallbackConversationNotificationCallbackMediaParticipant.md +1 -1
- data/docs/CallbackConversationNotificationParticipants.md +1 -1
- data/docs/CallbackConversationNotificationVoicemail.md +1 -0
- data/docs/ConversationNotificationCallback.md +1 -1
- data/docs/ConversationNotificationCallbacks.md +1 -1
- data/docs/ConversationNotificationVoicemail.md +1 -0
- data/docs/RuleSetNotificationCondition.md +2 -0
- data/docs/RuleSetNotificationConditions.md +2 -0
- data/docs/StatsNotificationNotification.md +14 -0
- data/docs/StatsNotificationNotificationData.md +14 -0
- data/docs/StatsNotificationNotificationDatum.md +14 -0
- data/docs/StatsNotificationNotificationMetric.md +15 -0
- data/docs/StatsNotificationNotificationMetrics.md +15 -0
- data/docs/WfmHistoricalAdherenceCalculationsCompleteNoticeNotification.md +15 -0
- data/lib/purecloudplatformclientv2.rb +6 -0
- data/lib/purecloudplatformclientv2/models/callback_conversation_notification_callback_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/callback_conversation_notification_participants.rb +1 -1
- data/lib/purecloudplatformclientv2/models/callback_conversation_notification_voicemail.rb +43 -4
- data/lib/purecloudplatformclientv2/models/conversation_notification_callback.rb +3 -3
- data/lib/purecloudplatformclientv2/models/conversation_notification_callbacks.rb +3 -3
- data/lib/purecloudplatformclientv2/models/conversation_notification_voicemail.rb +43 -4
- data/lib/purecloudplatformclientv2/models/flow_notification_notification_architect_operation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_architect_operation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_current_operation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/rule_set_notification_condition.rb +65 -1
- data/lib/purecloudplatformclientv2/models/rule_set_notification_conditions.rb +65 -1
- data/lib/purecloudplatformclientv2/models/stats_notification_notification.rb +230 -0
- data/lib/purecloudplatformclientv2/models/stats_notification_notification_data.rb +228 -0
- data/lib/purecloudplatformclientv2/models/stats_notification_notification_datum.rb +228 -0
- data/lib/purecloudplatformclientv2/models/stats_notification_notification_metric.rb +253 -0
- data/lib/purecloudplatformclientv2/models/stats_notification_notification_metrics.rb +253 -0
- data/lib/purecloudplatformclientv2/models/wfm_historical_adherence_calculations_complete_notice_notification.rb +265 -0
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +14 -2
@@ -0,0 +1,265 @@
|
|
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 WfmHistoricalAdherenceCalculationsCompleteNoticeNotification
|
21
|
+
attr_accessor :id
|
22
|
+
|
23
|
+
attr_accessor :download_url
|
24
|
+
|
25
|
+
attr_accessor :query_state
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
|
31
|
+
:'id' => :'id',
|
32
|
+
|
33
|
+
:'download_url' => :'downloadUrl',
|
34
|
+
|
35
|
+
:'query_state' => :'queryState'
|
36
|
+
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Attribute type mapping.
|
41
|
+
def self.swagger_types
|
42
|
+
{
|
43
|
+
|
44
|
+
:'id' => :'String',
|
45
|
+
|
46
|
+
:'download_url' => :'String',
|
47
|
+
|
48
|
+
:'query_state' => :'String'
|
49
|
+
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
return unless attributes.is_a?(Hash)
|
57
|
+
|
58
|
+
# convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
60
|
+
|
61
|
+
|
62
|
+
if attributes.has_key?(:'id')
|
63
|
+
|
64
|
+
|
65
|
+
self.id = attributes[:'id']
|
66
|
+
|
67
|
+
|
68
|
+
end
|
69
|
+
|
70
|
+
|
71
|
+
if attributes.has_key?(:'downloadUrl')
|
72
|
+
|
73
|
+
|
74
|
+
self.download_url = attributes[:'downloadUrl']
|
75
|
+
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
|
80
|
+
if attributes.has_key?(:'queryState')
|
81
|
+
|
82
|
+
|
83
|
+
self.query_state = attributes[:'queryState']
|
84
|
+
|
85
|
+
|
86
|
+
end
|
87
|
+
|
88
|
+
|
89
|
+
end
|
90
|
+
|
91
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
92
|
+
# @return Array for valid properies with the reasons
|
93
|
+
def list_invalid_properties
|
94
|
+
invalid_properties = Array.new
|
95
|
+
|
96
|
+
|
97
|
+
return invalid_properties
|
98
|
+
end
|
99
|
+
|
100
|
+
# Check to see if the all the properties in the model are valid
|
101
|
+
# @return true if the model is valid
|
102
|
+
def valid?
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
allowed_values = ["COMPLETE", "ERROR", "PROCESSING"]
|
115
|
+
if @query_state && !allowed_values.include?(@query_state)
|
116
|
+
return false
|
117
|
+
end
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
end
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
# Custom attribute writer method checking allowed values (enum).
|
136
|
+
# @param [Object] query_state Object to be assigned
|
137
|
+
def query_state=(query_state)
|
138
|
+
allowed_values = ["COMPLETE", "ERROR", "PROCESSING"]
|
139
|
+
if query_state && !allowed_values.include?(query_state)
|
140
|
+
fail ArgumentError, "invalid value for 'query_state', must be one of #{allowed_values}."
|
141
|
+
end
|
142
|
+
@query_state = query_state
|
143
|
+
end
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
# Checks equality by comparing each attribute.
|
149
|
+
# @param [Object] Object to be compared
|
150
|
+
def ==(o)
|
151
|
+
return true if self.equal?(o)
|
152
|
+
self.class == o.class &&
|
153
|
+
id == o.id &&
|
154
|
+
download_url == o.download_url &&
|
155
|
+
query_state == o.query_state
|
156
|
+
end
|
157
|
+
|
158
|
+
# @see the `==` method
|
159
|
+
# @param [Object] Object to be compared
|
160
|
+
def eql?(o)
|
161
|
+
self == o
|
162
|
+
end
|
163
|
+
|
164
|
+
# Calculates hash code according to all attributes.
|
165
|
+
# @return [Fixnum] Hash code
|
166
|
+
def hash
|
167
|
+
[id, download_url, query_state].hash
|
168
|
+
end
|
169
|
+
|
170
|
+
# build the object from hash
|
171
|
+
def build_from_hash(attributes)
|
172
|
+
return nil unless attributes.is_a?(Hash)
|
173
|
+
self.class.swagger_types.each_pair do |key, type|
|
174
|
+
if type =~ /^Array<(.*)>/i
|
175
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
176
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
177
|
+
else
|
178
|
+
#TODO show warning in debug mode
|
179
|
+
end
|
180
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
181
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
182
|
+
else
|
183
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
self
|
188
|
+
end
|
189
|
+
|
190
|
+
def _deserialize(type, value)
|
191
|
+
case type.to_sym
|
192
|
+
when :DateTime
|
193
|
+
DateTime.parse(value)
|
194
|
+
when :Date
|
195
|
+
Date.parse(value)
|
196
|
+
when :String
|
197
|
+
value.to_s
|
198
|
+
when :Integer
|
199
|
+
value.to_i
|
200
|
+
when :Float
|
201
|
+
value.to_f
|
202
|
+
when :BOOLEAN
|
203
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
204
|
+
true
|
205
|
+
else
|
206
|
+
false
|
207
|
+
end
|
208
|
+
when :Object
|
209
|
+
# generic object (usually a Hash), return directly
|
210
|
+
value
|
211
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
212
|
+
inner_type = Regexp.last_match[:inner_type]
|
213
|
+
value.map { |v| _deserialize(inner_type, v) }
|
214
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
215
|
+
k_type = Regexp.last_match[:k_type]
|
216
|
+
v_type = Regexp.last_match[:v_type]
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each do |k, v|
|
219
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
220
|
+
end
|
221
|
+
end
|
222
|
+
else # model
|
223
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
224
|
+
_model.build_from_hash(value)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
def to_s
|
229
|
+
to_hash.to_s
|
230
|
+
end
|
231
|
+
|
232
|
+
# to_body is an alias to to_body (backward compatibility))
|
233
|
+
def to_body
|
234
|
+
to_hash
|
235
|
+
end
|
236
|
+
|
237
|
+
# return the object in the form of hash
|
238
|
+
def to_hash
|
239
|
+
hash = {}
|
240
|
+
self.class.attribute_map.each_pair do |attr, param|
|
241
|
+
value = self.send(attr)
|
242
|
+
next if value.nil?
|
243
|
+
hash[param] = _to_hash(value)
|
244
|
+
end
|
245
|
+
hash
|
246
|
+
end
|
247
|
+
|
248
|
+
# Method to output non-array value in the form of hash
|
249
|
+
# For object, use to_hash. Otherwise, just return the value
|
250
|
+
def _to_hash(value)
|
251
|
+
if value.is_a?(Array)
|
252
|
+
value.compact.map{ |v| _to_hash(v) }
|
253
|
+
elsif value.is_a?(Hash)
|
254
|
+
{}.tap do |hash|
|
255
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
256
|
+
end
|
257
|
+
elsif value.respond_to? :to_hash
|
258
|
+
value.to_hash
|
259
|
+
else
|
260
|
+
value
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
end
|
265
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: purecloudplatformclientv2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 12.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genesys Developer Evangelists
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06
|
11
|
+
date: 2017-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -1049,6 +1049,11 @@ files:
|
|
1049
1049
|
- docs/StationsApi.md
|
1050
1050
|
- docs/StatisticalResponse.md
|
1051
1051
|
- docs/StatisticalSummary.md
|
1052
|
+
- docs/StatsNotificationNotification.md
|
1053
|
+
- docs/StatsNotificationNotificationData.md
|
1054
|
+
- docs/StatsNotificationNotificationDatum.md
|
1055
|
+
- docs/StatsNotificationNotificationMetric.md
|
1056
|
+
- docs/StatsNotificationNotificationMetrics.md
|
1052
1057
|
- docs/StreetAddress.md
|
1053
1058
|
- docs/SubscriberResponse.md
|
1054
1059
|
- docs/SuggestApi.md
|
@@ -1180,6 +1185,7 @@ files:
|
|
1180
1185
|
- docs/VoicemailSearchRequest.md
|
1181
1186
|
- docs/VoicemailUserPolicy.md
|
1182
1187
|
- docs/VoicemailsSearchResponse.md
|
1188
|
+
- docs/WfmHistoricalAdherenceCalculationsCompleteNoticeNotification.md
|
1183
1189
|
- docs/WfmIntradayQueueListing.md
|
1184
1190
|
- docs/WfmUserEntityListing.md
|
1185
1191
|
- docs/WorkforceManagementApi.md
|
@@ -2038,6 +2044,11 @@ files:
|
|
2038
2044
|
- lib/purecloudplatformclientv2/models/station_entity_listing.rb
|
2039
2045
|
- lib/purecloudplatformclientv2/models/statistical_response.rb
|
2040
2046
|
- lib/purecloudplatformclientv2/models/statistical_summary.rb
|
2047
|
+
- lib/purecloudplatformclientv2/models/stats_notification_notification.rb
|
2048
|
+
- lib/purecloudplatformclientv2/models/stats_notification_notification_data.rb
|
2049
|
+
- lib/purecloudplatformclientv2/models/stats_notification_notification_datum.rb
|
2050
|
+
- lib/purecloudplatformclientv2/models/stats_notification_notification_metric.rb
|
2051
|
+
- lib/purecloudplatformclientv2/models/stats_notification_notification_metrics.rb
|
2041
2052
|
- lib/purecloudplatformclientv2/models/street_address.rb
|
2042
2053
|
- lib/purecloudplatformclientv2/models/subscriber_response.rb
|
2043
2054
|
- lib/purecloudplatformclientv2/models/suggest_search_criteria.rb
|
@@ -2162,6 +2173,7 @@ files:
|
|
2162
2173
|
- lib/purecloudplatformclientv2/models/voicemail_search_request.rb
|
2163
2174
|
- lib/purecloudplatformclientv2/models/voicemail_user_policy.rb
|
2164
2175
|
- lib/purecloudplatformclientv2/models/voicemails_search_response.rb
|
2176
|
+
- lib/purecloudplatformclientv2/models/wfm_historical_adherence_calculations_complete_notice_notification.rb
|
2165
2177
|
- lib/purecloudplatformclientv2/models/wfm_intraday_queue_listing.rb
|
2166
2178
|
- lib/purecloudplatformclientv2/models/wfm_user_entity_listing.rb
|
2167
2179
|
- lib/purecloudplatformclientv2/models/workspace.rb
|