purecloudplatformclientv2 91.0.0 → 92.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/AmazonLexRequest.md +14 -0
- data/docs/AnalyticsEvaluation.md +1 -1
- data/docs/AuditApi.md +70 -0
- data/docs/AuditRealtimeQueryRequest.md +18 -0
- data/docs/AuditRealtimeQueryResultsResponse.md +17 -0
- data/docs/ButtonComponent.md +16 -0
- data/docs/ContentActions.md +17 -0
- data/docs/ContentAttachment.md +19 -0
- data/docs/ContentGeneric.md +19 -0
- data/docs/ContentList.md +19 -0
- data/docs/ContentLocation.md +17 -0
- data/docs/ContentNotificationTemplate.md +17 -0
- data/docs/ContentQuickReply.md +16 -0
- data/docs/EdgeGroup.md +1 -0
- data/docs/EntityListing.md +1 -5
- data/docs/GoogleDialogflowCustomSettings.md +13 -0
- data/docs/LanguageUnderstandingApi.md +164 -30
- data/docs/ListItemComponent.md +19 -0
- data/docs/MessageContent.md +19 -0
- data/docs/NluDomainVersion.md +2 -1
- data/docs/NotificationTemplateBody.md +14 -0
- data/docs/NotificationTemplateFooter.md +13 -0
- data/docs/NotificationTemplateHeader.md +16 -0
- data/docs/NotificationTemplateParameter.md +14 -0
- data/docs/PostTextMessage.md +15 -0
- data/docs/PostTextRequest.md +23 -0
- data/docs/PostTextResponse.md +20 -0
- data/docs/SurveyForm.md +0 -2
- data/docs/TextbotsApi.md +78 -0
- data/lib/purecloudplatformclientv2.rb +22 -0
- data/lib/purecloudplatformclientv2/api/audit_api.rb +74 -0
- data/lib/purecloudplatformclientv2/api/language_understanding_api.rb +189 -30
- data/lib/purecloudplatformclientv2/api/textbots_api.rb +92 -0
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/amazon_lex_request.rb +232 -0
- data/lib/purecloudplatformclientv2/models/analytics_evaluation.rb +13 -13
- data/lib/purecloudplatformclientv2/models/audit_realtime_query_request.rb +360 -0
- data/lib/purecloudplatformclientv2/models/audit_realtime_query_results_response.rb +303 -0
- data/lib/purecloudplatformclientv2/models/button_component.rb +281 -0
- data/lib/purecloudplatformclientv2/models/content_actions.rb +309 -0
- data/lib/purecloudplatformclientv2/models/content_attachment.rb +378 -0
- data/lib/purecloudplatformclientv2/models/content_generic.rb +361 -0
- data/lib/purecloudplatformclientv2/models/content_list.rb +375 -0
- data/lib/purecloudplatformclientv2/models/content_location.rb +307 -0
- data/lib/purecloudplatformclientv2/models/content_notification_template.rb +312 -0
- data/lib/purecloudplatformclientv2/models/content_quick_reply.rb +300 -0
- data/lib/purecloudplatformclientv2/models/edge_group.rb +27 -1
- data/lib/purecloudplatformclientv2/models/entity_listing.rb +4 -104
- data/lib/purecloudplatformclientv2/models/google_dialogflow_custom_settings.rb +202 -0
- data/lib/purecloudplatformclientv2/models/list_item_component.rb +373 -0
- data/lib/purecloudplatformclientv2/models/message_content.rb +378 -0
- data/lib/purecloudplatformclientv2/models/nlu_domain_version.rb +32 -1
- data/lib/purecloudplatformclientv2/models/notification_template_body.rb +236 -0
- data/lib/purecloudplatformclientv2/models/notification_template_footer.rb +203 -0
- data/lib/purecloudplatformclientv2/models/notification_template_header.rb +302 -0
- data/lib/purecloudplatformclientv2/models/notification_template_parameter.rb +234 -0
- data/lib/purecloudplatformclientv2/models/post_text_message.rb +275 -0
- data/lib/purecloudplatformclientv2/models/post_text_request.rb +482 -0
- data/lib/purecloudplatformclientv2/models/post_text_response.rb +413 -0
- data/lib/purecloudplatformclientv2/models/survey_form.rb +1 -53
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +46 -2
@@ -0,0 +1,378 @@
|
|
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
|
+
# Message content element
|
21
|
+
class MessageContent
|
22
|
+
# Type of this content element. If contentType = \"Attachment\" only one item is allowed.
|
23
|
+
attr_accessor :content_type
|
24
|
+
|
25
|
+
# Location object
|
26
|
+
attr_accessor :location
|
27
|
+
|
28
|
+
# Attachment object
|
29
|
+
attr_accessor :attachment
|
30
|
+
|
31
|
+
# Quick reply object
|
32
|
+
attr_accessor :quick_reply
|
33
|
+
|
34
|
+
# Generic content object
|
35
|
+
attr_accessor :generic
|
36
|
+
|
37
|
+
# List content object
|
38
|
+
attr_accessor :list
|
39
|
+
|
40
|
+
# Template notification object
|
41
|
+
attr_accessor :template
|
42
|
+
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
44
|
+
def self.attribute_map
|
45
|
+
{
|
46
|
+
|
47
|
+
:'content_type' => :'contentType',
|
48
|
+
|
49
|
+
:'location' => :'location',
|
50
|
+
|
51
|
+
:'attachment' => :'attachment',
|
52
|
+
|
53
|
+
:'quick_reply' => :'quickReply',
|
54
|
+
|
55
|
+
:'generic' => :'generic',
|
56
|
+
|
57
|
+
:'list' => :'list',
|
58
|
+
|
59
|
+
:'template' => :'template'
|
60
|
+
|
61
|
+
}
|
62
|
+
end
|
63
|
+
|
64
|
+
# Attribute type mapping.
|
65
|
+
def self.swagger_types
|
66
|
+
{
|
67
|
+
|
68
|
+
:'content_type' => :'String',
|
69
|
+
|
70
|
+
:'location' => :'ContentLocation',
|
71
|
+
|
72
|
+
:'attachment' => :'ContentAttachment',
|
73
|
+
|
74
|
+
:'quick_reply' => :'ContentQuickReply',
|
75
|
+
|
76
|
+
:'generic' => :'ContentGeneric',
|
77
|
+
|
78
|
+
:'list' => :'ContentList',
|
79
|
+
|
80
|
+
:'template' => :'ContentNotificationTemplate'
|
81
|
+
|
82
|
+
}
|
83
|
+
end
|
84
|
+
|
85
|
+
# Initializes the object
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
+
def initialize(attributes = {})
|
88
|
+
return unless attributes.is_a?(Hash)
|
89
|
+
|
90
|
+
# convert string to symbol for hash key
|
91
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
92
|
+
|
93
|
+
|
94
|
+
if attributes.has_key?(:'contentType')
|
95
|
+
|
96
|
+
|
97
|
+
self.content_type = attributes[:'contentType']
|
98
|
+
|
99
|
+
|
100
|
+
end
|
101
|
+
|
102
|
+
|
103
|
+
if attributes.has_key?(:'location')
|
104
|
+
|
105
|
+
|
106
|
+
self.location = attributes[:'location']
|
107
|
+
|
108
|
+
|
109
|
+
end
|
110
|
+
|
111
|
+
|
112
|
+
if attributes.has_key?(:'attachment')
|
113
|
+
|
114
|
+
|
115
|
+
self.attachment = attributes[:'attachment']
|
116
|
+
|
117
|
+
|
118
|
+
end
|
119
|
+
|
120
|
+
|
121
|
+
if attributes.has_key?(:'quickReply')
|
122
|
+
|
123
|
+
|
124
|
+
self.quick_reply = attributes[:'quickReply']
|
125
|
+
|
126
|
+
|
127
|
+
end
|
128
|
+
|
129
|
+
|
130
|
+
if attributes.has_key?(:'generic')
|
131
|
+
|
132
|
+
|
133
|
+
self.generic = attributes[:'generic']
|
134
|
+
|
135
|
+
|
136
|
+
end
|
137
|
+
|
138
|
+
|
139
|
+
if attributes.has_key?(:'list')
|
140
|
+
|
141
|
+
|
142
|
+
self.list = attributes[:'list']
|
143
|
+
|
144
|
+
|
145
|
+
end
|
146
|
+
|
147
|
+
|
148
|
+
if attributes.has_key?(:'template')
|
149
|
+
|
150
|
+
|
151
|
+
self.template = attributes[:'template']
|
152
|
+
|
153
|
+
|
154
|
+
end
|
155
|
+
|
156
|
+
|
157
|
+
end
|
158
|
+
|
159
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
160
|
+
# @return Array for valid properies with the reasons
|
161
|
+
def list_invalid_properties
|
162
|
+
invalid_properties = Array.new
|
163
|
+
|
164
|
+
|
165
|
+
return invalid_properties
|
166
|
+
end
|
167
|
+
|
168
|
+
# Check to see if the all the properties in the model are valid
|
169
|
+
# @return true if the model is valid
|
170
|
+
def valid?
|
171
|
+
|
172
|
+
|
173
|
+
if @content_type.nil?
|
174
|
+
return false
|
175
|
+
end
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
allowed_values = ["Attachment", "Location", "QuickReply", "Notification", "GenericTemplate", "ListTemplate"]
|
180
|
+
if @content_type && !allowed_values.include?(@content_type)
|
181
|
+
return false
|
182
|
+
end
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
end
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
# Custom attribute writer method checking allowed values (enum).
|
215
|
+
# @param [Object] content_type Object to be assigned
|
216
|
+
def content_type=(content_type)
|
217
|
+
allowed_values = ["Attachment", "Location", "QuickReply", "Notification", "GenericTemplate", "ListTemplate"]
|
218
|
+
if content_type && !allowed_values.include?(content_type)
|
219
|
+
fail ArgumentError, "invalid value for 'content_type', must be one of #{allowed_values}."
|
220
|
+
end
|
221
|
+
@content_type = content_type
|
222
|
+
end
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
# Checks equality by comparing each attribute.
|
258
|
+
# @param [Object] Object to be compared
|
259
|
+
def ==(o)
|
260
|
+
return true if self.equal?(o)
|
261
|
+
self.class == o.class &&
|
262
|
+
content_type == o.content_type &&
|
263
|
+
location == o.location &&
|
264
|
+
attachment == o.attachment &&
|
265
|
+
quick_reply == o.quick_reply &&
|
266
|
+
generic == o.generic &&
|
267
|
+
list == o.list &&
|
268
|
+
template == o.template
|
269
|
+
end
|
270
|
+
|
271
|
+
# @see the `==` method
|
272
|
+
# @param [Object] Object to be compared
|
273
|
+
def eql?(o)
|
274
|
+
self == o
|
275
|
+
end
|
276
|
+
|
277
|
+
# Calculates hash code according to all attributes.
|
278
|
+
# @return [Fixnum] Hash code
|
279
|
+
def hash
|
280
|
+
[content_type, location, attachment, quick_reply, generic, list, template].hash
|
281
|
+
end
|
282
|
+
|
283
|
+
# build the object from hash
|
284
|
+
def build_from_hash(attributes)
|
285
|
+
return nil unless attributes.is_a?(Hash)
|
286
|
+
self.class.swagger_types.each_pair do |key, type|
|
287
|
+
if type =~ /^Array<(.*)>/i
|
288
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
289
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
290
|
+
else
|
291
|
+
#TODO show warning in debug mode
|
292
|
+
end
|
293
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
294
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
295
|
+
else
|
296
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
self
|
301
|
+
end
|
302
|
+
|
303
|
+
def _deserialize(type, value)
|
304
|
+
case type.to_sym
|
305
|
+
when :DateTime
|
306
|
+
DateTime.parse(value)
|
307
|
+
when :Date
|
308
|
+
Date.parse(value)
|
309
|
+
when :String
|
310
|
+
value.to_s
|
311
|
+
when :Integer
|
312
|
+
value.to_i
|
313
|
+
when :Float
|
314
|
+
value.to_f
|
315
|
+
when :BOOLEAN
|
316
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
317
|
+
true
|
318
|
+
else
|
319
|
+
false
|
320
|
+
end
|
321
|
+
when :Object
|
322
|
+
# generic object (usually a Hash), return directly
|
323
|
+
value
|
324
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
325
|
+
inner_type = Regexp.last_match[:inner_type]
|
326
|
+
value.map { |v| _deserialize(inner_type, v) }
|
327
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
328
|
+
k_type = Regexp.last_match[:k_type]
|
329
|
+
v_type = Regexp.last_match[:v_type]
|
330
|
+
{}.tap do |hash|
|
331
|
+
value.each do |k, v|
|
332
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
333
|
+
end
|
334
|
+
end
|
335
|
+
else # model
|
336
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
337
|
+
_model.build_from_hash(value)
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
def to_s
|
342
|
+
to_hash.to_s
|
343
|
+
end
|
344
|
+
|
345
|
+
# to_body is an alias to to_body (backward compatibility))
|
346
|
+
def to_body
|
347
|
+
to_hash
|
348
|
+
end
|
349
|
+
|
350
|
+
# return the object in the form of hash
|
351
|
+
def to_hash
|
352
|
+
hash = {}
|
353
|
+
self.class.attribute_map.each_pair do |attr, param|
|
354
|
+
value = self.send(attr)
|
355
|
+
next if value.nil?
|
356
|
+
hash[param] = _to_hash(value)
|
357
|
+
end
|
358
|
+
hash
|
359
|
+
end
|
360
|
+
|
361
|
+
# Method to output non-array value in the form of hash
|
362
|
+
# For object, use to_hash. Otherwise, just return the value
|
363
|
+
def _to_hash(value)
|
364
|
+
if value.is_a?(Array)
|
365
|
+
value.compact.map{ |v| _to_hash(v) }
|
366
|
+
elsif value.is_a?(Hash)
|
367
|
+
{}.tap do |hash|
|
368
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
369
|
+
end
|
370
|
+
elsif value.respond_to? :to_hash
|
371
|
+
value.to_hash
|
372
|
+
else
|
373
|
+
value
|
374
|
+
end
|
375
|
+
end
|
376
|
+
|
377
|
+
end
|
378
|
+
end
|
@@ -30,6 +30,9 @@ module PureCloud
|
|
30
30
|
# The language that the NLU domain version supports.
|
31
31
|
attr_accessor :language
|
32
32
|
|
33
|
+
# Whether this NLU domain version has been published.
|
34
|
+
attr_accessor :published
|
35
|
+
|
33
36
|
# The date when the NLU domain version was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
34
37
|
attr_accessor :date_created
|
35
38
|
|
@@ -69,6 +72,8 @@ module PureCloud
|
|
69
72
|
|
70
73
|
:'language' => :'language',
|
71
74
|
|
75
|
+
:'published' => :'published',
|
76
|
+
|
72
77
|
:'date_created' => :'dateCreated',
|
73
78
|
|
74
79
|
:'date_modified' => :'dateModified',
|
@@ -102,6 +107,8 @@ module PureCloud
|
|
102
107
|
|
103
108
|
:'language' => :'String',
|
104
109
|
|
110
|
+
:'published' => :'BOOLEAN',
|
111
|
+
|
105
112
|
:'date_created' => :'DateTime',
|
106
113
|
|
107
114
|
:'date_modified' => :'DateTime',
|
@@ -168,6 +175,15 @@ module PureCloud
|
|
168
175
|
end
|
169
176
|
|
170
177
|
|
178
|
+
if attributes.has_key?(:'published')
|
179
|
+
|
180
|
+
|
181
|
+
self.published = attributes[:'published']
|
182
|
+
|
183
|
+
|
184
|
+
end
|
185
|
+
|
186
|
+
|
171
187
|
if attributes.has_key?(:'dateCreated')
|
172
188
|
|
173
189
|
|
@@ -281,6 +297,15 @@ module PureCloud
|
|
281
297
|
|
282
298
|
|
283
299
|
|
300
|
+
if @language.nil?
|
301
|
+
return false
|
302
|
+
end
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
284
309
|
|
285
310
|
|
286
311
|
|
@@ -368,6 +393,11 @@ module PureCloud
|
|
368
393
|
|
369
394
|
|
370
395
|
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
371
401
|
|
372
402
|
|
373
403
|
|
@@ -425,6 +455,7 @@ module PureCloud
|
|
425
455
|
domain == o.domain &&
|
426
456
|
description == o.description &&
|
427
457
|
language == o.language &&
|
458
|
+
published == o.published &&
|
428
459
|
date_created == o.date_created &&
|
429
460
|
date_modified == o.date_modified &&
|
430
461
|
date_trained == o.date_trained &&
|
@@ -445,7 +476,7 @@ module PureCloud
|
|
445
476
|
# Calculates hash code according to all attributes.
|
446
477
|
# @return [Fixnum] Hash code
|
447
478
|
def hash
|
448
|
-
[id, domain, description, language, date_created, date_modified, date_trained, date_published, training_status, evaluation_status, intents, entity_types, self_uri].hash
|
479
|
+
[id, domain, description, language, published, date_created, date_modified, date_trained, date_published, training_status, evaluation_status, intents, entity_types, self_uri].hash
|
449
480
|
end
|
450
481
|
|
451
482
|
# build the object from hash
|