purecloudplatformclientv2 35.0.0 → 36.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 (82) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/AdditionalMessage.md +2 -0
  4. data/docs/AlertingApi.md +0 -2
  5. data/docs/AnalyticsApi.md +0 -13
  6. data/docs/ArchitectApi.md +210 -150
  7. data/docs/AttributesApi.md +0 -6
  8. data/docs/AuthorizationApi.md +15 -7
  9. data/docs/BillingApi.md +4 -1
  10. data/docs/CampaignDivisionView.md +1 -1
  11. data/docs/ContentManagementApi.md +0 -38
  12. data/docs/ConversationsApi.md +141 -75
  13. data/docs/CreateQueueRequest.md +1 -1
  14. data/docs/Division.md +15 -0
  15. data/docs/FaxApi.md +0 -6
  16. data/docs/Flow.md +1 -1
  17. data/docs/FlowDivisionView.md +1 -0
  18. data/docs/FreeSeatingConfiguration.md +1 -1
  19. data/docs/GeolocationApi.md +0 -3
  20. data/docs/GreetingsApi.md +0 -16
  21. data/docs/GroupsApi.md +2 -12
  22. data/docs/IdentityProviderApi.md +18 -9
  23. data/docs/IntegrationsApi.md +26 -31
  24. data/docs/LanguagesApi.md +0 -4
  25. data/docs/LicenseApi.md +21 -8
  26. data/docs/LocationsApi.md +0 -3
  27. data/docs/ManagementUnit.md +1 -0
  28. data/docs/MessageData.md +1 -0
  29. data/docs/MessageDetails.md +1 -0
  30. data/docs/MessageMedia.md +3 -0
  31. data/docs/MessageMediaData.md +20 -0
  32. data/docs/MessageSticker.md +14 -0
  33. data/docs/MobileDevicesApi.md +0 -5
  34. data/docs/NotificationsApi.md +0 -7
  35. data/docs/OrganizationApi.md +0 -2
  36. data/docs/OrganizationAuthorizationApi.md +16 -6
  37. data/docs/OutboundApi.md +8 -6
  38. data/docs/OutboundSettings.md +1 -0
  39. data/docs/PresenceApi.md +0 -5
  40. data/docs/QualityApi.md +0 -21
  41. data/docs/Queue.md +1 -1
  42. data/docs/RecordingApi.md +0 -17
  43. data/docs/ResponseManagementApi.md +0 -11
  44. data/docs/RoutingApi.md +93 -9
  45. data/docs/SearchApi.md +0 -14
  46. data/docs/StationsApi.md +0 -3
  47. data/docs/SuggestApi.md +0 -4
  48. data/docs/SurveyForm.md +3 -1
  49. data/docs/TelephonyProvidersEdgeApi.md +4 -16
  50. data/docs/TokensApi.md +0 -2
  51. data/docs/UserQueue.md +1 -1
  52. data/docs/UserRecordingsApi.md +0 -6
  53. data/docs/UsersApi.md +31 -42
  54. data/docs/UtilitiesApi.md +0 -3
  55. data/docs/VoicemailApi.md +8 -21
  56. data/docs/WorkforceManagementApi.md +25 -4
  57. data/lib/purecloudplatformclientv2.rb +3 -0
  58. data/lib/purecloudplatformclientv2/api/architect_api.rb +136 -102
  59. data/lib/purecloudplatformclientv2/api/conversations_api.rb +160 -0
  60. data/lib/purecloudplatformclientv2/api/routing_api.rb +122 -0
  61. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +22 -0
  62. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  63. data/lib/purecloudplatformclientv2/models/additional_message.rb +60 -4
  64. data/lib/purecloudplatformclientv2/models/campaign_division_view.rb +1 -1
  65. data/lib/purecloudplatformclientv2/models/create_queue_request.rb +1 -1
  66. data/lib/purecloudplatformclientv2/models/division.rb +253 -0
  67. data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
  68. data/lib/purecloudplatformclientv2/models/flow.rb +1 -1
  69. data/lib/purecloudplatformclientv2/models/flow_division_view.rb +27 -1
  70. data/lib/purecloudplatformclientv2/models/free_seating_configuration.rb +23 -9
  71. data/lib/purecloudplatformclientv2/models/management_unit.rb +27 -1
  72. data/lib/purecloudplatformclientv2/models/message_data.rb +29 -1
  73. data/lib/purecloudplatformclientv2/models/message_details.rb +32 -4
  74. data/lib/purecloudplatformclientv2/models/message_media.rb +82 -4
  75. data/lib/purecloudplatformclientv2/models/message_media_data.rb +411 -0
  76. data/lib/purecloudplatformclientv2/models/message_sticker.rb +228 -0
  77. data/lib/purecloudplatformclientv2/models/outbound_settings.rb +27 -1
  78. data/lib/purecloudplatformclientv2/models/queue.rb +1 -1
  79. data/lib/purecloudplatformclientv2/models/survey_form.rb +53 -1
  80. data/lib/purecloudplatformclientv2/models/user_queue.rb +1 -1
  81. data/lib/purecloudplatformclientv2/version.rb +1 -1
  82. metadata +8 -2
@@ -0,0 +1,228 @@
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 MessageSticker
21
+ # The location of the sticker, useful for retrieving it
22
+ attr_accessor :url
23
+
24
+ # The unique id of the the sticker object.
25
+ attr_accessor :id
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+
31
+ :'url' => :'url',
32
+
33
+ :'id' => :'id'
34
+
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+
42
+ :'url' => :'String',
43
+
44
+ :'id' => :'String'
45
+
46
+ }
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ return unless attributes.is_a?(Hash)
53
+
54
+ # convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
+
57
+
58
+ if attributes.has_key?(:'url')
59
+
60
+
61
+ self.url = attributes[:'url']
62
+
63
+
64
+ end
65
+
66
+
67
+ if attributes.has_key?(:'id')
68
+
69
+
70
+ self.id = attributes[:'id']
71
+
72
+
73
+ end
74
+
75
+
76
+ end
77
+
78
+ # Show invalid properties with the reasons. Usually used together with valid?
79
+ # @return Array for valid properies with the reasons
80
+ def list_invalid_properties
81
+ invalid_properties = Array.new
82
+
83
+
84
+ return invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+ end
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ # Checks equality by comparing each attribute.
113
+ # @param [Object] Object to be compared
114
+ def ==(o)
115
+ return true if self.equal?(o)
116
+ self.class == o.class &&
117
+ url == o.url &&
118
+ id == o.id
119
+ end
120
+
121
+ # @see the `==` method
122
+ # @param [Object] Object to be compared
123
+ def eql?(o)
124
+ self == o
125
+ end
126
+
127
+ # Calculates hash code according to all attributes.
128
+ # @return [Fixnum] Hash code
129
+ def hash
130
+ [url, id].hash
131
+ end
132
+
133
+ # build the object from hash
134
+ def build_from_hash(attributes)
135
+ return nil unless attributes.is_a?(Hash)
136
+ self.class.swagger_types.each_pair do |key, type|
137
+ if type =~ /^Array<(.*)>/i
138
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
139
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
140
+ else
141
+ #TODO show warning in debug mode
142
+ end
143
+ elsif !attributes[self.class.attribute_map[key]].nil?
144
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
145
+ else
146
+ # data not found in attributes(hash), not an issue as the data can be optional
147
+ end
148
+ end
149
+
150
+ self
151
+ end
152
+
153
+ def _deserialize(type, value)
154
+ case type.to_sym
155
+ when :DateTime
156
+ DateTime.parse(value)
157
+ when :Date
158
+ Date.parse(value)
159
+ when :String
160
+ value.to_s
161
+ when :Integer
162
+ value.to_i
163
+ when :Float
164
+ value.to_f
165
+ when :BOOLEAN
166
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
167
+ true
168
+ else
169
+ false
170
+ end
171
+ when :Object
172
+ # generic object (usually a Hash), return directly
173
+ value
174
+ when /\AArray<(?<inner_type>.+)>\z/
175
+ inner_type = Regexp.last_match[:inner_type]
176
+ value.map { |v| _deserialize(inner_type, v) }
177
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
178
+ k_type = Regexp.last_match[:k_type]
179
+ v_type = Regexp.last_match[:v_type]
180
+ {}.tap do |hash|
181
+ value.each do |k, v|
182
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
183
+ end
184
+ end
185
+ else # model
186
+ _model = Object.const_get("PureCloud").const_get(type).new
187
+ _model.build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ def to_s
192
+ to_hash.to_s
193
+ end
194
+
195
+ # to_body is an alias to to_body (backward compatibility))
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # return the object in the form of hash
201
+ def to_hash
202
+ hash = {}
203
+ self.class.attribute_map.each_pair do |attr, param|
204
+ value = self.send(attr)
205
+ next if value.nil?
206
+ hash[param] = _to_hash(value)
207
+ end
208
+ hash
209
+ end
210
+
211
+ # Method to output non-array value in the form of hash
212
+ # For object, use to_hash. Otherwise, just return the value
213
+ def _to_hash(value)
214
+ if value.is_a?(Array)
215
+ value.compact.map{ |v| _to_hash(v) }
216
+ elsif value.is_a?(Hash)
217
+ {}.tap do |hash|
218
+ value.each { |k, v| hash[k] = _to_hash(v) }
219
+ end
220
+ elsif value.respond_to? :to_hash
221
+ value.to_hash
222
+ else
223
+ value
224
+ end
225
+ end
226
+
227
+ end
228
+ end
@@ -35,6 +35,9 @@ module PureCloud
35
35
  # The maximum number of calls that can be placed per agent on any campaign
36
36
  attr_accessor :max_calls_per_agent
37
37
 
38
+ # The maximum number of calls that can be configured to be placed per agent on any campaign
39
+ attr_accessor :max_configurable_calls_per_agent
40
+
38
41
  # The maximum percentage of lines that should be used for Outbound, expressed as a decimal in the range [0.0, 1.0]
39
42
  attr_accessor :max_line_utilization
40
43
 
@@ -63,6 +66,8 @@ module PureCloud
63
66
 
64
67
  :'max_calls_per_agent' => :'maxCallsPerAgent',
65
68
 
69
+ :'max_configurable_calls_per_agent' => :'maxConfigurableCallsPerAgent',
70
+
66
71
  :'max_line_utilization' => :'maxLineUtilization',
67
72
 
68
73
  :'abandon_seconds' => :'abandonSeconds',
@@ -90,6 +95,8 @@ module PureCloud
90
95
 
91
96
  :'max_calls_per_agent' => :'Integer',
92
97
 
98
+ :'max_configurable_calls_per_agent' => :'Integer',
99
+
93
100
  :'max_line_utilization' => :'Float',
94
101
 
95
102
  :'abandon_seconds' => :'Float',
@@ -164,6 +171,15 @@ module PureCloud
164
171
  end
165
172
 
166
173
 
174
+ if attributes.has_key?(:'maxConfigurableCallsPerAgent')
175
+
176
+
177
+ self.max_configurable_calls_per_agent = attributes[:'maxConfigurableCallsPerAgent']
178
+
179
+
180
+ end
181
+
182
+
167
183
  if attributes.has_key?(:'maxLineUtilization')
168
184
 
169
185
 
@@ -244,6 +260,10 @@ module PureCloud
244
260
 
245
261
 
246
262
 
263
+
264
+
265
+
266
+
247
267
 
248
268
 
249
269
 
@@ -298,6 +318,11 @@ module PureCloud
298
318
 
299
319
 
300
320
 
321
+
322
+
323
+
324
+
325
+
301
326
 
302
327
 
303
328
 
@@ -333,6 +358,7 @@ module PureCloud
333
358
  date_modified == o.date_modified &&
334
359
  version == o.version &&
335
360
  max_calls_per_agent == o.max_calls_per_agent &&
361
+ max_configurable_calls_per_agent == o.max_configurable_calls_per_agent &&
336
362
  max_line_utilization == o.max_line_utilization &&
337
363
  abandon_seconds == o.abandon_seconds &&
338
364
  compliance_abandon_rate_denominator == o.compliance_abandon_rate_denominator &&
@@ -348,7 +374,7 @@ module PureCloud
348
374
  # Calculates hash code according to all attributes.
349
375
  # @return [Fixnum] Hash code
350
376
  def hash
351
- [id, name, date_created, date_modified, version, max_calls_per_agent, max_line_utilization, abandon_seconds, compliance_abandon_rate_denominator, self_uri].hash
377
+ [id, name, date_created, date_modified, version, max_calls_per_agent, max_configurable_calls_per_agent, max_line_utilization, abandon_seconds, compliance_abandon_rate_denominator, self_uri].hash
352
378
  end
353
379
 
354
380
  # build the object from hash
@@ -155,7 +155,7 @@ module PureCloud
155
155
 
156
156
  :'name' => :'String',
157
157
 
158
- :'division' => :'UriReference',
158
+ :'division' => :'Division',
159
159
 
160
160
  :'description' => :'String',
161
161
 
@@ -37,6 +37,12 @@ module PureCloud
37
37
  attr_accessor :context_id
38
38
 
39
39
  # Id of the header image appearing at the top of the form.
40
+ attr_accessor :header_image_id
41
+
42
+ # Temporary URL for accessing header image
43
+ attr_accessor :header_image_url
44
+
45
+ # Markdown text for the top of the form.
40
46
  attr_accessor :header
41
47
 
42
48
  # Markdown text for the bottom of the form.
@@ -67,6 +73,10 @@ module PureCloud
67
73
 
68
74
  :'context_id' => :'contextId',
69
75
 
76
+ :'header_image_id' => :'headerImageId',
77
+
78
+ :'header_image_url' => :'headerImageUrl',
79
+
70
80
  :'header' => :'header',
71
81
 
72
82
  :'footer' => :'footer',
@@ -96,6 +106,10 @@ module PureCloud
96
106
 
97
107
  :'context_id' => :'String',
98
108
 
109
+ :'header_image_id' => :'String',
110
+
111
+ :'header_image_url' => :'String',
112
+
99
113
  :'header' => :'String',
100
114
 
101
115
  :'footer' => :'String',
@@ -172,6 +186,24 @@ module PureCloud
172
186
  end
173
187
 
174
188
 
189
+ if attributes.has_key?(:'headerImageId')
190
+
191
+
192
+ self.header_image_id = attributes[:'headerImageId']
193
+
194
+
195
+ end
196
+
197
+
198
+ if attributes.has_key?(:'headerImageUrl')
199
+
200
+
201
+ self.header_image_url = attributes[:'headerImageUrl']
202
+
203
+
204
+ end
205
+
206
+
175
207
  if attributes.has_key?(:'header')
176
208
 
177
209
 
@@ -275,6 +307,14 @@ module PureCloud
275
307
 
276
308
 
277
309
 
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
278
318
 
279
319
 
280
320
  if @question_groups.nil?
@@ -340,6 +380,16 @@ module PureCloud
340
380
 
341
381
 
342
382
 
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
343
393
 
344
394
 
345
395
 
@@ -362,6 +412,8 @@ module PureCloud
362
412
  published == o.published &&
363
413
  disabled == o.disabled &&
364
414
  context_id == o.context_id &&
415
+ header_image_id == o.header_image_id &&
416
+ header_image_url == o.header_image_url &&
365
417
  header == o.header &&
366
418
  footer == o.footer &&
367
419
  question_groups == o.question_groups &&
@@ -378,7 +430,7 @@ module PureCloud
378
430
  # Calculates hash code according to all attributes.
379
431
  # @return [Fixnum] Hash code
380
432
  def hash
381
- [id, name, modified_date, published, disabled, context_id, header, footer, question_groups, published_versions, self_uri].hash
433
+ [id, name, modified_date, published, disabled, context_id, header_image_id, header_image_url, header, footer, question_groups, published_versions, self_uri].hash
382
434
  end
383
435
 
384
436
  # build the object from hash
@@ -159,7 +159,7 @@ module PureCloud
159
159
 
160
160
  :'name' => :'String',
161
161
 
162
- :'division' => :'UriReference',
162
+ :'division' => :'Division',
163
163
 
164
164
  :'description' => :'String',
165
165
 
@@ -15,5 +15,5 @@ Terms of Service: https://developer.mypurecloud.com/tos
15
15
  =end
16
16
 
17
17
  module PureCloud
18
- VERSION = "35.0.0"
18
+ VERSION = "36.0.0"
19
19
  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: 35.0.0
4
+ version: 36.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: 2018-06-11 00:00:00.000000000 Z
11
+ date: 2018-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -611,6 +611,7 @@ files:
611
611
  - docs/Digits.md
612
612
  - docs/DirectoryUserDevicesListing.md
613
613
  - docs/DisconnectReason.md
614
+ - docs/Division.md
614
615
  - docs/DncList.md
615
616
  - docs/DncListCreate.md
616
617
  - docs/DncListEntityListing.md
@@ -957,9 +958,11 @@ files:
957
958
  - docs/MessageDetails.md
958
959
  - docs/MessageInfo.md
959
960
  - docs/MessageMedia.md
961
+ - docs/MessageMediaData.md
960
962
  - docs/MessageMediaParticipant.md
961
963
  - docs/MessageMediaPolicy.md
962
964
  - docs/MessageMediaPolicyConditions.md
965
+ - docs/MessageSticker.md
963
966
  - docs/MetaData.md
964
967
  - docs/Metabase.md
965
968
  - docs/MeteredEvaluationAssignment.md
@@ -1868,6 +1871,7 @@ files:
1868
1871
  - lib/purecloudplatformclientv2/models/digits.rb
1869
1872
  - lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb
1870
1873
  - lib/purecloudplatformclientv2/models/disconnect_reason.rb
1874
+ - lib/purecloudplatformclientv2/models/division.rb
1871
1875
  - lib/purecloudplatformclientv2/models/dnc_list.rb
1872
1876
  - lib/purecloudplatformclientv2/models/dnc_list_create.rb
1873
1877
  - lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb
@@ -2203,9 +2207,11 @@ files:
2203
2207
  - lib/purecloudplatformclientv2/models/message_details.rb
2204
2208
  - lib/purecloudplatformclientv2/models/message_info.rb
2205
2209
  - lib/purecloudplatformclientv2/models/message_media.rb
2210
+ - lib/purecloudplatformclientv2/models/message_media_data.rb
2206
2211
  - lib/purecloudplatformclientv2/models/message_media_participant.rb
2207
2212
  - lib/purecloudplatformclientv2/models/message_media_policy.rb
2208
2213
  - lib/purecloudplatformclientv2/models/message_media_policy_conditions.rb
2214
+ - lib/purecloudplatformclientv2/models/message_sticker.rb
2209
2215
  - lib/purecloudplatformclientv2/models/meta_data.rb
2210
2216
  - lib/purecloudplatformclientv2/models/metabase.rb
2211
2217
  - lib/purecloudplatformclientv2/models/metered_evaluation_assignment.rb