purecloudplatformclientv2 15.0.0 → 16.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 (131) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/Action.md +21 -0
  4. data/docs/ActionConfig.md +14 -0
  5. data/docs/ActionContract.md +14 -0
  6. data/docs/ActionContractInput.md +14 -0
  7. data/docs/ActionEntityListing.md +22 -0
  8. data/docs/ActionInput.md +15 -0
  9. data/docs/ActionOutput.md +18 -0
  10. data/docs/ActiveAlertCount.md +13 -0
  11. data/docs/AggregationQuery.md +1 -1
  12. data/docs/AlertingApi.md +54 -0
  13. data/docs/ArchitectApi.md +31 -25
  14. data/docs/CallConversationNotificationCallMediaParticipant.md +1 -0
  15. data/docs/CallConversationNotificationParticipants.md +1 -0
  16. data/docs/CallbackConversationNotificationCallbackMediaParticipant.md +1 -0
  17. data/docs/CallbackConversationNotificationParticipants.md +1 -0
  18. data/docs/Category.md +13 -0
  19. data/docs/CategoryEntityListing.md +17 -0
  20. data/docs/ChatConversationNotificationChatMediaParticipant.md +1 -0
  21. data/docs/ChatConversationNotificationParticipants.md +1 -0
  22. data/docs/CobrowseConversationNotificationCobrowseMediaParticipant.md +1 -0
  23. data/docs/CobrowseConversationNotificationParticipants.md +1 -0
  24. data/docs/ConversationNotificationCall.md +1 -0
  25. data/docs/ConversationNotificationCalls.md +1 -0
  26. data/docs/ConversationNotificationEmail.md +1 -0
  27. data/docs/ConversationNotificationEmails.md +1 -0
  28. data/docs/ConversationNotificationParticipant.md +1 -0
  29. data/docs/ConversationNotificationParticipants.md +1 -0
  30. data/docs/ConversationsApi.md +3 -3
  31. data/docs/Document.md +1 -1
  32. data/docs/DomainOrganizationRole.md +1 -1
  33. data/docs/DomainOrganizationRoleCreate.md +1 -1
  34. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  35. data/docs/DraftValidationResult.md +14 -0
  36. data/docs/EmailConversationNotificationEmailMediaParticipant.md +2 -0
  37. data/docs/EmailConversationNotificationParticipants.md +2 -0
  38. data/docs/FaxDocument.md +1 -1
  39. data/docs/IntegrationsApi.md +1355 -0
  40. data/docs/JsonNode.md +4 -4
  41. data/docs/ManagementUnit.md +1 -1
  42. data/docs/ManagementUnitListing.md +22 -0
  43. data/docs/OutboundApi.md +59 -0
  44. data/docs/PostActionInput.md +18 -0
  45. data/docs/PostInputContract.md +13 -0
  46. data/docs/PostOutputContract.md +13 -0
  47. data/docs/PublishDraftInput.md +13 -0
  48. data/docs/RecordingApi.md +123 -0
  49. data/docs/RequestConfig.md +17 -0
  50. data/docs/ResponseConfig.md +15 -0
  51. data/docs/ScreenShareConversationNotificationParticipants.md +1 -0
  52. data/docs/ScreenShareConversationNotificationScreenShareMediaParticipant.md +1 -0
  53. data/docs/SocialConversationNotificationParticipants.md +1 -0
  54. data/docs/SocialConversationNotificationSocialMediaParticipant.md +1 -0
  55. data/docs/TestExecutionOperationResult.md +17 -0
  56. data/docs/TestExecutionResult.md +16 -0
  57. data/docs/UpdateActionInput.md +16 -0
  58. data/docs/UpdateDraftInput.md +18 -0
  59. data/docs/VideoConversationNotificationParticipants.md +1 -0
  60. data/docs/VideoConversationNotificationVideoMediaParticipant.md +1 -0
  61. data/docs/WorkforceManagementApi.md +2 -4
  62. data/lib/purecloudplatformclientv2.rb +23 -1
  63. data/lib/purecloudplatformclientv2/api/alerting_api.rb +55 -0
  64. data/lib/purecloudplatformclientv2/api/architect_api.rb +52 -20
  65. data/lib/purecloudplatformclientv2/api/conversations_api.rb +2 -2
  66. data/lib/purecloudplatformclientv2/api/integrations_api.rb +1723 -0
  67. data/lib/purecloudplatformclientv2/api/outbound_api.rb +65 -0
  68. data/lib/purecloudplatformclientv2/api/recording_api.rb +140 -0
  69. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +3 -12
  70. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  71. data/lib/purecloudplatformclientv2/models/action.rb +409 -0
  72. data/lib/purecloudplatformclientv2/models/action_config.rb +229 -0
  73. data/lib/purecloudplatformclientv2/models/action_contract.rb +229 -0
  74. data/lib/purecloudplatformclientv2/models/action_contract_input.rb +239 -0
  75. data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +428 -0
  76. data/lib/purecloudplatformclientv2/models/action_input.rb +255 -0
  77. data/lib/purecloudplatformclientv2/models/action_output.rb +333 -0
  78. data/lib/purecloudplatformclientv2/models/active_alert_count.rb +202 -0
  79. data/lib/purecloudplatformclientv2/models/aggregation_query.rb +1 -1
  80. data/lib/purecloudplatformclientv2/models/call_conversation_notification_call_media_participant.rb +26 -1
  81. data/lib/purecloudplatformclientv2/models/call_conversation_notification_participants.rb +26 -1
  82. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_callback_media_participant.rb +26 -1
  83. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_participants.rb +26 -1
  84. data/lib/purecloudplatformclientv2/models/category.rb +203 -0
  85. data/lib/purecloudplatformclientv2/models/category_entity_listing.rb +303 -0
  86. data/lib/purecloudplatformclientv2/models/chat_conversation_notification_chat_media_participant.rb +26 -1
  87. data/lib/purecloudplatformclientv2/models/chat_conversation_notification_participants.rb +26 -1
  88. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_cobrowse_media_participant.rb +26 -1
  89. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_participants.rb +26 -1
  90. data/lib/purecloudplatformclientv2/models/condition.rb +2 -2
  91. data/lib/purecloudplatformclientv2/models/conversation_notification_call.rb +26 -1
  92. data/lib/purecloudplatformclientv2/models/conversation_notification_calls.rb +26 -1
  93. data/lib/purecloudplatformclientv2/models/conversation_notification_email.rb +26 -1
  94. data/lib/purecloudplatformclientv2/models/conversation_notification_emails.rb +26 -1
  95. data/lib/purecloudplatformclientv2/models/conversation_notification_participant.rb +40 -1
  96. data/lib/purecloudplatformclientv2/models/conversation_notification_participants.rb +40 -1
  97. data/lib/purecloudplatformclientv2/models/dependency.rb +2 -2
  98. data/lib/purecloudplatformclientv2/models/dependency_object.rb +2 -2
  99. data/lib/purecloudplatformclientv2/models/document.rb +12 -12
  100. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
  101. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
  102. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
  103. data/lib/purecloudplatformclientv2/models/draft_validation_result.rb +231 -0
  104. data/lib/purecloudplatformclientv2/models/email_conversation_notification_email_media_participant.rb +54 -4
  105. data/lib/purecloudplatformclientv2/models/email_conversation_notification_participants.rb +54 -4
  106. data/lib/purecloudplatformclientv2/models/fax_document.rb +12 -12
  107. data/lib/purecloudplatformclientv2/models/flow.rb +2 -2
  108. data/lib/purecloudplatformclientv2/models/interaction_stats_alert.rb +2 -2
  109. data/lib/purecloudplatformclientv2/models/interaction_stats_rule.rb +2 -2
  110. data/lib/purecloudplatformclientv2/models/json_node.rb +72 -72
  111. data/lib/purecloudplatformclientv2/models/management_unit.rb +7 -7
  112. data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +428 -0
  113. data/lib/purecloudplatformclientv2/models/post_action_input.rb +358 -0
  114. data/lib/purecloudplatformclientv2/models/post_input_contract.rb +208 -0
  115. data/lib/purecloudplatformclientv2/models/post_output_contract.rb +208 -0
  116. data/lib/purecloudplatformclientv2/models/publish_draft_input.rb +208 -0
  117. data/lib/purecloudplatformclientv2/models/request_config.rb +309 -0
  118. data/lib/purecloudplatformclientv2/models/response_config.rb +257 -0
  119. data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_participants.rb +26 -1
  120. data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_screen_share_media_participant.rb +26 -1
  121. data/lib/purecloudplatformclientv2/models/social_conversation_notification_participants.rb +26 -1
  122. data/lib/purecloudplatformclientv2/models/social_conversation_notification_social_media_participant.rb +26 -1
  123. data/lib/purecloudplatformclientv2/models/test_execution_operation_result.rb +306 -0
  124. data/lib/purecloudplatformclientv2/models/test_execution_result.rb +282 -0
  125. data/lib/purecloudplatformclientv2/models/{publish_flow_notification_notification.rb → update_action_input.rb} +35 -26
  126. data/lib/purecloudplatformclientv2/models/update_draft_input.rb +338 -0
  127. data/lib/purecloudplatformclientv2/models/video_conversation_notification_participants.rb +26 -1
  128. data/lib/purecloudplatformclientv2/models/video_conversation_notification_video_media_participant.rb +26 -1
  129. data/lib/purecloudplatformclientv2/version.rb +1 -1
  130. metadata +91 -47
  131. data/docs/PublishFlowNotificationNotification.md +0 -16
@@ -17,26 +17,30 @@ Terms of Service: https://developer.mypurecloud.com/tos
17
17
  require 'date'
18
18
 
19
19
  module PureCloud
20
- class PublishFlowNotificationNotification
21
- attr_accessor :id
20
+ class UpdateActionInput
21
+ # Category of action
22
+ attr_accessor :category
22
23
 
23
- attr_accessor :type
24
+ # Name of action
25
+ attr_accessor :name
24
26
 
25
- attr_accessor :message
27
+ # Configuration to support request and response processing
28
+ attr_accessor :config
26
29
 
27
- attr_accessor :date_created
30
+ # Version of this action
31
+ attr_accessor :version
28
32
 
29
33
  # Attribute mapping from ruby-style variable name to JSON key.
30
34
  def self.attribute_map
31
35
  {
32
36
 
33
- :'id' => :'id',
37
+ :'category' => :'category',
34
38
 
35
- :'type' => :'type',
39
+ :'name' => :'name',
36
40
 
37
- :'message' => :'message',
41
+ :'config' => :'config',
38
42
 
39
- :'date_created' => :'dateCreated'
43
+ :'version' => :'version'
40
44
 
41
45
  }
42
46
  end
@@ -45,13 +49,13 @@ module PureCloud
45
49
  def self.swagger_types
46
50
  {
47
51
 
48
- :'id' => :'String',
52
+ :'category' => :'String',
49
53
 
50
- :'type' => :'String',
54
+ :'name' => :'String',
51
55
 
52
- :'message' => :'String',
56
+ :'config' => :'ActionConfig',
53
57
 
54
- :'date_created' => :'DateTime'
58
+ :'version' => :'Integer'
55
59
 
56
60
  }
57
61
  end
@@ -65,37 +69,37 @@ module PureCloud
65
69
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
66
70
 
67
71
 
68
- if attributes.has_key?(:'id')
72
+ if attributes.has_key?(:'category')
69
73
 
70
74
 
71
- self.id = attributes[:'id']
75
+ self.category = attributes[:'category']
72
76
 
73
77
 
74
78
  end
75
79
 
76
80
 
77
- if attributes.has_key?(:'type')
81
+ if attributes.has_key?(:'name')
78
82
 
79
83
 
80
- self.type = attributes[:'type']
84
+ self.name = attributes[:'name']
81
85
 
82
86
 
83
87
  end
84
88
 
85
89
 
86
- if attributes.has_key?(:'message')
90
+ if attributes.has_key?(:'config')
87
91
 
88
92
 
89
- self.message = attributes[:'message']
93
+ self.config = attributes[:'config']
90
94
 
91
95
 
92
96
  end
93
97
 
94
98
 
95
- if attributes.has_key?(:'dateCreated')
99
+ if attributes.has_key?(:'version')
96
100
 
97
101
 
98
- self.date_created = attributes[:'dateCreated']
102
+ self.version = attributes[:'version']
99
103
 
100
104
 
101
105
  end
@@ -129,6 +133,11 @@ module PureCloud
129
133
 
130
134
 
131
135
 
136
+ if @version.nil?
137
+ return false
138
+ end
139
+
140
+
132
141
 
133
142
 
134
143
 
@@ -160,10 +169,10 @@ module PureCloud
160
169
  def ==(o)
161
170
  return true if self.equal?(o)
162
171
  self.class == o.class &&
163
- id == o.id &&
164
- type == o.type &&
165
- message == o.message &&
166
- date_created == o.date_created
172
+ category == o.category &&
173
+ name == o.name &&
174
+ config == o.config &&
175
+ version == o.version
167
176
  end
168
177
 
169
178
  # @see the `==` method
@@ -175,7 +184,7 @@ module PureCloud
175
184
  # Calculates hash code according to all attributes.
176
185
  # @return [Fixnum] Hash code
177
186
  def hash
178
- [id, type, message, date_created].hash
187
+ [category, name, config, version].hash
179
188
  end
180
189
 
181
190
  # build the object from hash
@@ -0,0 +1,338 @@
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
+ # Definition of an Action Draft to be created or updated.
21
+ class UpdateDraftInput
22
+ # Category of action
23
+ attr_accessor :category
24
+
25
+ # Name of action
26
+ attr_accessor :name
27
+
28
+ # Configuration to support request and response processing
29
+ attr_accessor :config
30
+
31
+ # Action contract
32
+ attr_accessor :contract
33
+
34
+ # Indication of whether or not the action is designed to accept sensitive data
35
+ attr_accessor :secure
36
+
37
+ # Version of current Draft
38
+ attr_accessor :version
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+
44
+ :'category' => :'category',
45
+
46
+ :'name' => :'name',
47
+
48
+ :'config' => :'config',
49
+
50
+ :'contract' => :'contract',
51
+
52
+ :'secure' => :'secure',
53
+
54
+ :'version' => :'version'
55
+
56
+ }
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.swagger_types
61
+ {
62
+
63
+ :'category' => :'String',
64
+
65
+ :'name' => :'String',
66
+
67
+ :'config' => :'ActionConfig',
68
+
69
+ :'contract' => :'ActionContractInput',
70
+
71
+ :'secure' => :'BOOLEAN',
72
+
73
+ :'version' => :'Integer'
74
+
75
+ }
76
+ end
77
+
78
+ # Initializes the object
79
+ # @param [Hash] attributes Model attributes in the form of hash
80
+ def initialize(attributes = {})
81
+ return unless attributes.is_a?(Hash)
82
+
83
+ # convert string to symbol for hash key
84
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
85
+
86
+
87
+ if attributes.has_key?(:'category')
88
+
89
+
90
+ self.category = attributes[:'category']
91
+
92
+
93
+ end
94
+
95
+
96
+ if attributes.has_key?(:'name')
97
+
98
+
99
+ self.name = attributes[:'name']
100
+
101
+
102
+ end
103
+
104
+
105
+ if attributes.has_key?(:'config')
106
+
107
+
108
+ self.config = attributes[:'config']
109
+
110
+
111
+ end
112
+
113
+
114
+ if attributes.has_key?(:'contract')
115
+
116
+
117
+ self.contract = attributes[:'contract']
118
+
119
+
120
+ end
121
+
122
+
123
+ if attributes.has_key?(:'secure')
124
+
125
+
126
+ self.secure = attributes[:'secure']
127
+
128
+
129
+ end
130
+
131
+
132
+ if attributes.has_key?(:'version')
133
+
134
+
135
+ self.version = attributes[:'version']
136
+
137
+
138
+ end
139
+
140
+
141
+ end
142
+
143
+ # Show invalid properties with the reasons. Usually used together with valid?
144
+ # @return Array for valid properies with the reasons
145
+ def list_invalid_properties
146
+ invalid_properties = Array.new
147
+
148
+
149
+ return invalid_properties
150
+ end
151
+
152
+ # Check to see if the all the properties in the model are valid
153
+ # @return true if the model is valid
154
+ def valid?
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+ if @version.nil?
178
+ return false
179
+ end
180
+
181
+
182
+
183
+
184
+
185
+ end
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
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+ # Checks equality by comparing each attribute.
219
+ # @param [Object] Object to be compared
220
+ def ==(o)
221
+ return true if self.equal?(o)
222
+ self.class == o.class &&
223
+ category == o.category &&
224
+ name == o.name &&
225
+ config == o.config &&
226
+ contract == o.contract &&
227
+ secure == o.secure &&
228
+ version == o.version
229
+ end
230
+
231
+ # @see the `==` method
232
+ # @param [Object] Object to be compared
233
+ def eql?(o)
234
+ self == o
235
+ end
236
+
237
+ # Calculates hash code according to all attributes.
238
+ # @return [Fixnum] Hash code
239
+ def hash
240
+ [category, name, config, contract, secure, version].hash
241
+ end
242
+
243
+ # build the object from hash
244
+ def build_from_hash(attributes)
245
+ return nil unless attributes.is_a?(Hash)
246
+ self.class.swagger_types.each_pair do |key, type|
247
+ if type =~ /^Array<(.*)>/i
248
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
249
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
250
+ else
251
+ #TODO show warning in debug mode
252
+ end
253
+ elsif !attributes[self.class.attribute_map[key]].nil?
254
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
255
+ else
256
+ # data not found in attributes(hash), not an issue as the data can be optional
257
+ end
258
+ end
259
+
260
+ self
261
+ end
262
+
263
+ def _deserialize(type, value)
264
+ case type.to_sym
265
+ when :DateTime
266
+ DateTime.parse(value)
267
+ when :Date
268
+ Date.parse(value)
269
+ when :String
270
+ value.to_s
271
+ when :Integer
272
+ value.to_i
273
+ when :Float
274
+ value.to_f
275
+ when :BOOLEAN
276
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
277
+ true
278
+ else
279
+ false
280
+ end
281
+ when :Object
282
+ # generic object (usually a Hash), return directly
283
+ value
284
+ when /\AArray<(?<inner_type>.+)>\z/
285
+ inner_type = Regexp.last_match[:inner_type]
286
+ value.map { |v| _deserialize(inner_type, v) }
287
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
288
+ k_type = Regexp.last_match[:k_type]
289
+ v_type = Regexp.last_match[:v_type]
290
+ {}.tap do |hash|
291
+ value.each do |k, v|
292
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
293
+ end
294
+ end
295
+ else # model
296
+ _model = Object.const_get("PureCloud").const_get(type).new
297
+ _model.build_from_hash(value)
298
+ end
299
+ end
300
+
301
+ def to_s
302
+ to_hash.to_s
303
+ end
304
+
305
+ # to_body is an alias to to_body (backward compatibility))
306
+ def to_body
307
+ to_hash
308
+ end
309
+
310
+ # return the object in the form of hash
311
+ def to_hash
312
+ hash = {}
313
+ self.class.attribute_map.each_pair do |attr, param|
314
+ value = self.send(attr)
315
+ next if value.nil?
316
+ hash[param] = _to_hash(value)
317
+ end
318
+ hash
319
+ end
320
+
321
+ # Method to output non-array value in the form of hash
322
+ # For object, use to_hash. Otherwise, just return the value
323
+ def _to_hash(value)
324
+ if value.is_a?(Array)
325
+ value.compact.map{ |v| _to_hash(v) }
326
+ elsif value.is_a?(Hash)
327
+ {}.tap do |hash|
328
+ value.each { |k, v| hash[k] = _to_hash(v) }
329
+ end
330
+ elsif value.respond_to? :to_hash
331
+ value.to_hash
332
+ else
333
+ value
334
+ end
335
+ end
336
+
337
+ end
338
+ end