purecloudplatformclientv2 87.0.0 → 92.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.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/AmazonLexRequest.md +14 -0
  4. data/docs/AnalyticsEvaluation.md +1 -1
  5. data/docs/ApiUsageQuery.md +16 -0
  6. data/docs/ApiUsageQueryResult.md +14 -0
  7. data/docs/ApiUsageRow.md +25 -0
  8. data/docs/ArchitectApi.md +132 -0
  9. data/docs/AuditApi.md +130 -0
  10. data/docs/AuditQueryEntity.md +14 -0
  11. data/docs/AuditQueryExecutionStatusResponse.md +1 -0
  12. data/docs/AuditQueryRequest.md +1 -0
  13. data/docs/AuditQueryService.md +14 -0
  14. data/docs/AuditQueryServiceMapping.md +13 -0
  15. data/docs/AuditQuerySort.md +14 -0
  16. data/docs/AuditRealtimeQueryRequest.md +18 -0
  17. data/docs/AuditRealtimeQueryResultsResponse.md +17 -0
  18. data/docs/BuAgentScheduleActivity.md +2 -0
  19. data/docs/BuRescheduleRequest.md +2 -2
  20. data/docs/ButtonComponent.md +16 -0
  21. data/docs/CoachingApi.md +1 -1
  22. data/docs/ContentActions.md +17 -0
  23. data/docs/ContentAttachment.md +19 -0
  24. data/docs/ContentGeneric.md +19 -0
  25. data/docs/ContentList.md +19 -0
  26. data/docs/ContentLocation.md +17 -0
  27. data/docs/ContentNotificationTemplate.md +17 -0
  28. data/docs/ContentQuickReply.md +16 -0
  29. data/docs/ConversationAggregationQuery.md +1 -1
  30. data/docs/CreateQueueRequest.md +1 -0
  31. data/docs/EdgeGroup.md +1 -0
  32. data/docs/EntityListing.md +1 -5
  33. data/docs/EvaluationAggregationQuery.md +1 -1
  34. data/docs/ExternalContact.md +2 -0
  35. data/docs/ExternalOrganization.md +2 -0
  36. data/docs/FlowAggregationQuery.md +1 -1
  37. data/docs/FlowExecutionLaunchRequest.md +16 -0
  38. data/docs/FlowExecutionLaunchResponse.md +16 -0
  39. data/docs/FlowRuntimeExecution.md +23 -0
  40. data/docs/GenericSAML.md +22 -0
  41. data/docs/GoogleDialogflowCustomSettings.md +13 -0
  42. data/docs/GroupsApi.md +4 -4
  43. data/docs/IdentityProviderApi.md +187 -0
  44. data/docs/IpAddressAuthentication.md +13 -0
  45. data/docs/KnowledgeSearchResponse.md +1 -1
  46. data/docs/LanguageUnderstandingApi.md +164 -30
  47. data/docs/ListItemComponent.md +19 -0
  48. data/docs/MessageContent.md +19 -0
  49. data/docs/NluDomainVersion.md +3 -1
  50. data/docs/NotificationTemplateBody.md +14 -0
  51. data/docs/NotificationTemplateFooter.md +13 -0
  52. data/docs/NotificationTemplateHeader.md +16 -0
  53. data/docs/NotificationTemplateParameter.md +14 -0
  54. data/docs/OAuthApi.md +208 -0
  55. data/docs/OrganizationApi.md +126 -0
  56. data/docs/PostTextMessage.md +15 -0
  57. data/docs/PostTextRequest.md +23 -0
  58. data/docs/PostTextResponse.md +20 -0
  59. data/docs/Prompt.md +2 -2
  60. data/docs/Queue.md +1 -0
  61. data/docs/QueueRequest.md +1 -0
  62. data/docs/RecordingApi.md +12 -0
  63. data/docs/ReportingDataExportTopicDataExportNotification.md +1 -0
  64. data/docs/ScimEmail.md +1 -1
  65. data/docs/SurveyAggregationQuery.md +1 -1
  66. data/docs/SurveyForm.md +0 -2
  67. data/docs/TextbotsApi.md +78 -0
  68. data/docs/UploadUrlRequest.md +1 -0
  69. data/docs/UsageApi.md +144 -0
  70. data/docs/UsageExecutionResult.md +14 -0
  71. data/docs/UserAggregationQuery.md +1 -1
  72. data/docs/UserQueue.md +1 -0
  73. data/docs/UsersApi.md +5 -5
  74. data/docs/ViewFilter.md +2 -0
  75. data/docs/VoicemailMessagesTopicOwner.md +13 -0
  76. data/docs/VoicemailMessagesTopicVoicemailCopyRecord.md +14 -0
  77. data/docs/VoicemailMessagesTopicVoicemailMessage.md +2 -0
  78. data/docs/WfmBuShortTermForecastImportCompleteTopicBuForecastModification.md +23 -0
  79. data/docs/WfmBuShortTermForecastImportCompleteTopicBuShortTermForecast.md +24 -0
  80. data/docs/WfmBuShortTermForecastImportCompleteTopicBuShortTermForecastNotification.md +15 -0
  81. data/docs/WfmBuShortTermForecastImportCompleteTopicForecastSourceDayPointer.md +17 -0
  82. data/docs/WfmBuShortTermForecastImportCompleteTopicModificationIntervalOffsetValue.md +14 -0
  83. data/docs/WfmBuShortTermForecastImportCompleteTopicUserReference.md +13 -0
  84. data/docs/WfmBuShortTermForecastImportCompleteTopicWfmVersionedEntityMetadata.md +15 -0
  85. data/docs/WorkforceManagementApi.md +3 -3
  86. data/lib/purecloudplatformclientv2.rb +45 -0
  87. data/lib/purecloudplatformclientv2/api/architect_api.rb +130 -0
  88. data/lib/purecloudplatformclientv2/api/audit_api.rb +129 -0
  89. data/lib/purecloudplatformclientv2/api/groups_api.rb +4 -4
  90. data/lib/purecloudplatformclientv2/api/identity_provider_api.rb +175 -0
  91. data/lib/purecloudplatformclientv2/api/language_understanding_api.rb +189 -30
  92. data/lib/purecloudplatformclientv2/api/o_auth_api.rb +224 -0
  93. data/lib/purecloudplatformclientv2/api/organization_api.rb +120 -0
  94. data/lib/purecloudplatformclientv2/api/recording_api.rb +78 -0
  95. data/lib/purecloudplatformclientv2/api/textbots_api.rb +92 -0
  96. data/lib/purecloudplatformclientv2/api/usage_api.rb +157 -0
  97. data/lib/purecloudplatformclientv2/api/users_api.rb +4 -4
  98. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +6 -6
  99. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  100. data/lib/purecloudplatformclientv2/models/amazon_lex_request.rb +232 -0
  101. data/lib/purecloudplatformclientv2/models/analytics_evaluation.rb +13 -13
  102. data/lib/purecloudplatformclientv2/models/api_usage_query.rb +303 -0
  103. data/lib/purecloudplatformclientv2/models/api_usage_query_result.rb +244 -0
  104. data/lib/purecloudplatformclientv2/models/api_usage_row.rb +514 -0
  105. data/lib/purecloudplatformclientv2/models/audit_log_message.rb +6 -6
  106. data/lib/purecloudplatformclientv2/models/audit_query_entity.rb +244 -0
  107. data/lib/purecloudplatformclientv2/models/audit_query_execution_status_response.rb +34 -6
  108. data/lib/purecloudplatformclientv2/models/audit_query_request.rb +34 -6
  109. data/lib/purecloudplatformclientv2/models/audit_query_service.rb +244 -0
  110. data/lib/purecloudplatformclientv2/models/audit_query_service_mapping.rb +204 -0
  111. data/lib/purecloudplatformclientv2/models/audit_query_sort.rb +266 -0
  112. data/lib/purecloudplatformclientv2/models/audit_realtime_query_request.rb +360 -0
  113. data/lib/purecloudplatformclientv2/models/audit_realtime_query_results_response.rb +303 -0
  114. data/lib/purecloudplatformclientv2/models/bu_agent_schedule_activity.rb +70 -4
  115. data/lib/purecloudplatformclientv2/models/bu_reschedule_request.rb +2 -12
  116. data/lib/purecloudplatformclientv2/models/button_component.rb +281 -0
  117. data/lib/purecloudplatformclientv2/models/coaching_appointment_response.rb +2 -2
  118. data/lib/purecloudplatformclientv2/models/coaching_notification.rb +2 -2
  119. data/lib/purecloudplatformclientv2/models/content_actions.rb +309 -0
  120. data/lib/purecloudplatformclientv2/models/content_attachment.rb +378 -0
  121. data/lib/purecloudplatformclientv2/models/content_generic.rb +361 -0
  122. data/lib/purecloudplatformclientv2/models/content_list.rb +375 -0
  123. data/lib/purecloudplatformclientv2/models/content_location.rb +307 -0
  124. data/lib/purecloudplatformclientv2/models/content_notification_template.rb +312 -0
  125. data/lib/purecloudplatformclientv2/models/content_quick_reply.rb +300 -0
  126. data/lib/purecloudplatformclientv2/models/conversation_aggregate_query_predicate.rb +2 -2
  127. data/lib/purecloudplatformclientv2/models/conversation_aggregation_query.rb +1 -1
  128. data/lib/purecloudplatformclientv2/models/create_queue_request.rb +29 -1
  129. data/lib/purecloudplatformclientv2/models/edge_group.rb +27 -1
  130. data/lib/purecloudplatformclientv2/models/entity_listing.rb +4 -104
  131. data/lib/purecloudplatformclientv2/models/evaluation_aggregation_query.rb +1 -1
  132. data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
  133. data/lib/purecloudplatformclientv2/models/external_contact.rb +55 -1
  134. data/lib/purecloudplatformclientv2/models/external_organization.rb +55 -1
  135. data/lib/purecloudplatformclientv2/models/flow_aggregate_query_predicate.rb +2 -2
  136. data/lib/purecloudplatformclientv2/models/flow_aggregation_query.rb +1 -1
  137. data/lib/purecloudplatformclientv2/models/flow_execution_launch_request.rb +288 -0
  138. data/lib/purecloudplatformclientv2/models/flow_execution_launch_response.rb +281 -0
  139. data/lib/purecloudplatformclientv2/models/flow_runtime_execution.rb +494 -0
  140. data/lib/purecloudplatformclientv2/models/generic_saml.rb +428 -0
  141. data/lib/purecloudplatformclientv2/models/google_dialogflow_custom_settings.rb +202 -0
  142. data/lib/purecloudplatformclientv2/models/ip_address_authentication.rb +203 -0
  143. data/lib/purecloudplatformclientv2/models/knowledge_search_response.rb +18 -18
  144. data/lib/purecloudplatformclientv2/models/list_item_component.rb +373 -0
  145. data/lib/purecloudplatformclientv2/models/message_content.rb +378 -0
  146. data/lib/purecloudplatformclientv2/models/nlu_domain_version.rb +72 -1
  147. data/lib/purecloudplatformclientv2/models/notification_template_body.rb +236 -0
  148. data/lib/purecloudplatformclientv2/models/notification_template_footer.rb +203 -0
  149. data/lib/purecloudplatformclientv2/models/notification_template_header.rb +302 -0
  150. data/lib/purecloudplatformclientv2/models/notification_template_parameter.rb +234 -0
  151. data/lib/purecloudplatformclientv2/models/post_text_message.rb +275 -0
  152. data/lib/purecloudplatformclientv2/models/post_text_request.rb +482 -0
  153. data/lib/purecloudplatformclientv2/models/post_text_response.rb +413 -0
  154. data/lib/purecloudplatformclientv2/models/prompt.rb +2 -0
  155. data/lib/purecloudplatformclientv2/models/prompt_asset.rb +15 -1
  156. data/lib/purecloudplatformclientv2/models/prompt_asset_create.rb +15 -1
  157. data/lib/purecloudplatformclientv2/models/queue.rb +29 -1
  158. data/lib/purecloudplatformclientv2/models/queue_request.rb +29 -1
  159. data/lib/purecloudplatformclientv2/models/reporting_data_export_topic_data_export_notification.rb +31 -4
  160. data/lib/purecloudplatformclientv2/models/scim_email.rb +1 -1
  161. data/lib/purecloudplatformclientv2/models/survey_aggregation_query.rb +1 -1
  162. data/lib/purecloudplatformclientv2/models/survey_form.rb +1 -53
  163. data/lib/purecloudplatformclientv2/models/upload_url_request.rb +43 -4
  164. data/lib/purecloudplatformclientv2/models/usage_execution_result.rb +228 -0
  165. data/lib/purecloudplatformclientv2/models/user_aggregation_query.rb +1 -1
  166. data/lib/purecloudplatformclientv2/models/user_queue.rb +29 -1
  167. data/lib/purecloudplatformclientv2/models/view_filter.rb +58 -4
  168. data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_owner.rb +201 -0
  169. data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_voicemail_copy_record.rb +226 -0
  170. data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_voicemail_message.rb +56 -4
  171. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_forecast_modification.rb +497 -0
  172. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_short_term_forecast.rb +494 -0
  173. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_short_term_forecast_notification.rb +265 -0
  174. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_forecast_source_day_pointer.rb +315 -0
  175. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_modification_interval_offset_value.rb +226 -0
  176. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_user_reference.rb +201 -0
  177. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_wfm_versioned_entity_metadata.rb +251 -0
  178. data/lib/purecloudplatformclientv2/version.rb +1 -1
  179. metadata +92 -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
 
@@ -45,6 +48,9 @@ module PureCloud
45
48
  # The training status of the NLU domain version.
46
49
  attr_accessor :training_status
47
50
 
51
+ # The evaluation status of the NLU domain version.
52
+ attr_accessor :evaluation_status
53
+
48
54
  # The intents defined for this NLU domain version.
49
55
  attr_accessor :intents
50
56
 
@@ -66,6 +72,8 @@ module PureCloud
66
72
 
67
73
  :'language' => :'language',
68
74
 
75
+ :'published' => :'published',
76
+
69
77
  :'date_created' => :'dateCreated',
70
78
 
71
79
  :'date_modified' => :'dateModified',
@@ -76,6 +84,8 @@ module PureCloud
76
84
 
77
85
  :'training_status' => :'trainingStatus',
78
86
 
87
+ :'evaluation_status' => :'evaluationStatus',
88
+
79
89
  :'intents' => :'intents',
80
90
 
81
91
  :'entity_types' => :'entityTypes',
@@ -97,6 +107,8 @@ module PureCloud
97
107
 
98
108
  :'language' => :'String',
99
109
 
110
+ :'published' => :'BOOLEAN',
111
+
100
112
  :'date_created' => :'DateTime',
101
113
 
102
114
  :'date_modified' => :'DateTime',
@@ -107,6 +119,8 @@ module PureCloud
107
119
 
108
120
  :'training_status' => :'String',
109
121
 
122
+ :'evaluation_status' => :'String',
123
+
110
124
  :'intents' => :'Array<IntentDefinition>',
111
125
 
112
126
  :'entity_types' => :'Array<NamedEntityTypeDefinition>',
@@ -161,6 +175,15 @@ module PureCloud
161
175
  end
162
176
 
163
177
 
178
+ if attributes.has_key?(:'published')
179
+
180
+
181
+ self.published = attributes[:'published']
182
+
183
+
184
+ end
185
+
186
+
164
187
  if attributes.has_key?(:'dateCreated')
165
188
 
166
189
 
@@ -206,6 +229,15 @@ module PureCloud
206
229
  end
207
230
 
208
231
 
232
+ if attributes.has_key?(:'evaluationStatus')
233
+
234
+
235
+ self.evaluation_status = attributes[:'evaluationStatus']
236
+
237
+
238
+ end
239
+
240
+
209
241
  if attributes.has_key?(:'intents')
210
242
 
211
243
  if (value = attributes[:'intents']).is_a?(Array)
@@ -265,6 +297,15 @@ module PureCloud
265
297
 
266
298
 
267
299
 
300
+ if @language.nil?
301
+ return false
302
+ end
303
+
304
+
305
+
306
+
307
+
308
+
268
309
 
269
310
 
270
311
 
@@ -295,6 +336,15 @@ module PureCloud
295
336
 
296
337
 
297
338
 
339
+ allowed_values = ["Unevaluated", "Evaluating", "Evaluated", "Error"]
340
+ if @evaluation_status && !allowed_values.include?(@evaluation_status)
341
+ return false
342
+ end
343
+
344
+
345
+
346
+
347
+
298
348
 
299
349
 
300
350
 
@@ -343,6 +393,11 @@ module PureCloud
343
393
 
344
394
 
345
395
 
396
+
397
+
398
+
399
+
400
+
346
401
 
347
402
 
348
403
 
@@ -363,6 +418,20 @@ module PureCloud
363
418
 
364
419
 
365
420
 
421
+ # Custom attribute writer method checking allowed values (enum).
422
+ # @param [Object] evaluation_status Object to be assigned
423
+ def evaluation_status=(evaluation_status)
424
+ allowed_values = ["Unevaluated", "Evaluating", "Evaluated", "Error"]
425
+ if evaluation_status && !allowed_values.include?(evaluation_status)
426
+ fail ArgumentError, "invalid value for 'evaluation_status', must be one of #{allowed_values}."
427
+ end
428
+ @evaluation_status = evaluation_status
429
+ end
430
+
431
+
432
+
433
+
434
+
366
435
 
367
436
 
368
437
 
@@ -386,11 +455,13 @@ module PureCloud
386
455
  domain == o.domain &&
387
456
  description == o.description &&
388
457
  language == o.language &&
458
+ published == o.published &&
389
459
  date_created == o.date_created &&
390
460
  date_modified == o.date_modified &&
391
461
  date_trained == o.date_trained &&
392
462
  date_published == o.date_published &&
393
463
  training_status == o.training_status &&
464
+ evaluation_status == o.evaluation_status &&
394
465
  intents == o.intents &&
395
466
  entity_types == o.entity_types &&
396
467
  self_uri == o.self_uri
@@ -405,7 +476,7 @@ module PureCloud
405
476
  # Calculates hash code according to all attributes.
406
477
  # @return [Fixnum] Hash code
407
478
  def hash
408
- [id, domain, description, language, date_created, date_modified, date_trained, date_published, training_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
409
480
  end
410
481
 
411
482
  # build the object from hash