purecloudplatformclientv2 14.0.0 → 14.1.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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/CertificateDetails.md +1 -1
  4. data/docs/DomainOrganizationRole.md +1 -1
  5. data/docs/DomainOrganizationRoleCreate.md +1 -1
  6. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  7. data/docs/Edge.md +1 -0
  8. data/docs/JsonNode.md +2 -2
  9. data/docs/LicenseApi.md +120 -0
  10. data/docs/LicenseOrgToggle.md +14 -0
  11. data/docs/OAuthClient.md +4 -0
  12. data/docs/OAuthClientListing.md +4 -0
  13. data/docs/OrgOAuthClient.md +4 -0
  14. data/docs/OutOfOffice.md +1 -0
  15. data/docs/UsersApi.md +2 -2
  16. data/docs/VoicemailApi.md +77 -14
  17. data/docs/VoicemailMessage.md +1 -0
  18. data/docs/VoicemailRetentionPolicy.md +14 -0
  19. data/lib/purecloudplatformclientv2.rb +2 -0
  20. data/lib/purecloudplatformclientv2/api/license_api.rb +130 -0
  21. data/lib/purecloudplatformclientv2/api/users_api.rb +2 -2
  22. data/lib/purecloudplatformclientv2/api/voicemail_api.rb +87 -12
  23. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  24. data/lib/purecloudplatformclientv2/models/activity_code.rb +2 -2
  25. data/lib/purecloudplatformclientv2/models/certificate_details.rb +13 -13
  26. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
  27. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
  28. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
  29. data/lib/purecloudplatformclientv2/models/edge.rb +27 -1
  30. data/lib/purecloudplatformclientv2/models/json_node.rb +50 -50
  31. data/lib/purecloudplatformclientv2/models/license_org_toggle.rb +226 -0
  32. data/lib/purecloudplatformclientv2/models/o_auth_client.rb +105 -1
  33. data/lib/purecloudplatformclientv2/models/o_auth_client_listing.rb +105 -1
  34. data/lib/purecloudplatformclientv2/models/org_o_auth_client.rb +105 -1
  35. data/lib/purecloudplatformclientv2/models/out_of_office.rb +26 -1
  36. data/lib/purecloudplatformclientv2/models/user_schedule_adherence.rb +4 -4
  37. data/lib/purecloudplatformclientv2/models/voicemail_message.rb +27 -1
  38. data/lib/purecloudplatformclientv2/models/voicemail_retention_policy.rb +243 -0
  39. data/lib/purecloudplatformclientv2/version.rb +1 -1
  40. metadata +6 -2
@@ -0,0 +1,226 @@
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 LicenseOrgToggle
21
+ attr_accessor :feature_name
22
+
23
+ attr_accessor :enabled
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+
29
+ :'feature_name' => :'featureName',
30
+
31
+ :'enabled' => :'enabled'
32
+
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.swagger_types
38
+ {
39
+
40
+ :'feature_name' => :'String',
41
+
42
+ :'enabled' => :'BOOLEAN'
43
+
44
+ }
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ return unless attributes.is_a?(Hash)
51
+
52
+ # convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
54
+
55
+
56
+ if attributes.has_key?(:'featureName')
57
+
58
+
59
+ self.feature_name = attributes[:'featureName']
60
+
61
+
62
+ end
63
+
64
+
65
+ if attributes.has_key?(:'enabled')
66
+
67
+
68
+ self.enabled = attributes[:'enabled']
69
+
70
+
71
+ end
72
+
73
+
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properies with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+
81
+
82
+ return invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ end
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ # Checks equality by comparing each attribute.
111
+ # @param [Object] Object to be compared
112
+ def ==(o)
113
+ return true if self.equal?(o)
114
+ self.class == o.class &&
115
+ feature_name == o.feature_name &&
116
+ enabled == o.enabled
117
+ end
118
+
119
+ # @see the `==` method
120
+ # @param [Object] Object to be compared
121
+ def eql?(o)
122
+ self == o
123
+ end
124
+
125
+ # Calculates hash code according to all attributes.
126
+ # @return [Fixnum] Hash code
127
+ def hash
128
+ [feature_name, enabled].hash
129
+ end
130
+
131
+ # build the object from hash
132
+ def build_from_hash(attributes)
133
+ return nil unless attributes.is_a?(Hash)
134
+ self.class.swagger_types.each_pair do |key, type|
135
+ if type =~ /^Array<(.*)>/i
136
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
137
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
138
+ else
139
+ #TODO show warning in debug mode
140
+ end
141
+ elsif !attributes[self.class.attribute_map[key]].nil?
142
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
143
+ else
144
+ # data not found in attributes(hash), not an issue as the data can be optional
145
+ end
146
+ end
147
+
148
+ self
149
+ end
150
+
151
+ def _deserialize(type, value)
152
+ case type.to_sym
153
+ when :DateTime
154
+ DateTime.parse(value)
155
+ when :Date
156
+ Date.parse(value)
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :BOOLEAN
164
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else # model
184
+ _model = Object.const_get("PureCloud").const_get(type).new
185
+ _model.build_from_hash(value)
186
+ end
187
+ end
188
+
189
+ def to_s
190
+ to_hash.to_s
191
+ end
192
+
193
+ # to_body is an alias to to_body (backward compatibility))
194
+ def to_body
195
+ to_hash
196
+ end
197
+
198
+ # return the object in the form of hash
199
+ def to_hash
200
+ hash = {}
201
+ self.class.attribute_map.each_pair do |attr, param|
202
+ value = self.send(attr)
203
+ next if value.nil?
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Method to output non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ def _to_hash(value)
212
+ if value.is_a?(Array)
213
+ value.compact.map{ |v| _to_hash(v) }
214
+ elsif value.is_a?(Hash)
215
+ {}.tap do |hash|
216
+ value.each { |k, v| hash[k] = _to_hash(v) }
217
+ end
218
+ elsif value.respond_to? :to_hash
219
+ value.to_hash
220
+ else
221
+ value
222
+ end
223
+ end
224
+
225
+ end
226
+ end
@@ -38,6 +38,18 @@ module PureCloud
38
38
  # Roles assigned to this client. Roles only apply to clients using the client_credential grant
39
39
  attr_accessor :role_ids
40
40
 
41
+ # Date this client was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
42
+ attr_accessor :date_created
43
+
44
+ # Date this client was last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
45
+ attr_accessor :date_modified
46
+
47
+ # User that created this client
48
+ attr_accessor :created_by
49
+
50
+ # User that last modified this client
51
+ attr_accessor :modified_by
52
+
41
53
  # The OAuth Grant/Client type supported by this client. Code Authorization Grant/Client type - Preferred client type where the Client ID and Secret are required to create tokens. Used where the secret can be secured. Implicit grant type - Client ID only is required to create tokens. Used in browser and mobile apps where the secret can not be secured. SAML2-Bearer extension grant type - SAML2 assertion provider for user authentication at the token endpoint. Client Credential grant type - Used to created access tokens that are tied only to the client.
42
54
  attr_accessor :authorized_grant_type
43
55
 
@@ -62,6 +74,14 @@ module PureCloud
62
74
 
63
75
  :'role_ids' => :'roleIds',
64
76
 
77
+ :'date_created' => :'dateCreated',
78
+
79
+ :'date_modified' => :'dateModified',
80
+
81
+ :'created_by' => :'createdBy',
82
+
83
+ :'modified_by' => :'modifiedBy',
84
+
65
85
  :'authorized_grant_type' => :'authorizedGrantType',
66
86
 
67
87
  :'self_uri' => :'selfUri'
@@ -87,6 +107,14 @@ module PureCloud
87
107
 
88
108
  :'role_ids' => :'Array<String>',
89
109
 
110
+ :'date_created' => :'DateTime',
111
+
112
+ :'date_modified' => :'DateTime',
113
+
114
+ :'created_by' => :'UriReference',
115
+
116
+ :'modified_by' => :'UriReference',
117
+
90
118
  :'authorized_grant_type' => :'String',
91
119
 
92
120
  :'self_uri' => :'String'
@@ -170,6 +198,42 @@ module PureCloud
170
198
  end
171
199
 
172
200
 
201
+ if attributes.has_key?(:'dateCreated')
202
+
203
+
204
+ self.date_created = attributes[:'dateCreated']
205
+
206
+
207
+ end
208
+
209
+
210
+ if attributes.has_key?(:'dateModified')
211
+
212
+
213
+ self.date_modified = attributes[:'dateModified']
214
+
215
+
216
+ end
217
+
218
+
219
+ if attributes.has_key?(:'createdBy')
220
+
221
+
222
+ self.created_by = attributes[:'createdBy']
223
+
224
+
225
+ end
226
+
227
+
228
+ if attributes.has_key?(:'modifiedBy')
229
+
230
+
231
+ self.modified_by = attributes[:'modifiedBy']
232
+
233
+
234
+ end
235
+
236
+
173
237
  if attributes.has_key?(:'authorizedGrantType')
174
238
 
175
239
 
@@ -231,6 +295,22 @@ module PureCloud
231
295
 
232
296
 
233
297
 
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
234
314
 
235
315
 
236
316
 
@@ -272,6 +352,26 @@ module PureCloud
272
352
 
273
353
 
274
354
 
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+
275
375
 
276
376
 
277
377
 
@@ -323,6 +423,10 @@ module PureCloud
323
423
  registered_redirect_uri == o.registered_redirect_uri &&
324
424
  secret == o.secret &&
325
425
  role_ids == o.role_ids &&
426
+ date_created == o.date_created &&
427
+ date_modified == o.date_modified &&
428
+ created_by == o.created_by &&
429
+ modified_by == o.modified_by &&
326
430
  authorized_grant_type == o.authorized_grant_type &&
327
431
  self_uri == o.self_uri
328
432
  end
@@ -336,7 +440,7 @@ module PureCloud
336
440
  # Calculates hash code according to all attributes.
337
441
  # @return [Fixnum] Hash code
338
442
  def hash
339
- [id, name, access_token_validity_seconds, description, registered_redirect_uri, secret, role_ids, authorized_grant_type, self_uri].hash
443
+ [id, name, access_token_validity_seconds, description, registered_redirect_uri, secret, role_ids, date_created, date_modified, created_by, modified_by, authorized_grant_type, self_uri].hash
340
444
  end
341
445
 
342
446
  # build the object from hash
@@ -38,6 +38,18 @@ module PureCloud
38
38
  # Roles assigned to this client. Roles only apply to clients using the client_credential grant
39
39
  attr_accessor :role_ids
40
40
 
41
+ # Date this client was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
42
+ attr_accessor :date_created
43
+
44
+ # Date this client was last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
45
+ attr_accessor :date_modified
46
+
47
+ # User that created this client
48
+ attr_accessor :created_by
49
+
50
+ # User that last modified this client
51
+ attr_accessor :modified_by
52
+
41
53
  # The URI for this object
42
54
  attr_accessor :self_uri
43
55
 
@@ -59,6 +71,14 @@ module PureCloud
59
71
 
60
72
  :'role_ids' => :'roleIds',
61
73
 
74
+ :'date_created' => :'dateCreated',
75
+
76
+ :'date_modified' => :'dateModified',
77
+
78
+ :'created_by' => :'createdBy',
79
+
80
+ :'modified_by' => :'modifiedBy',
81
+
62
82
  :'self_uri' => :'selfUri'
63
83
 
64
84
  }
@@ -82,6 +102,14 @@ module PureCloud
82
102
 
83
103
  :'role_ids' => :'Array<String>',
84
104
 
105
+ :'date_created' => :'DateTime',
106
+
107
+ :'date_modified' => :'DateTime',
108
+
109
+ :'created_by' => :'UriReference',
110
+
111
+ :'modified_by' => :'UriReference',
112
+
85
113
  :'self_uri' => :'String'
86
114
 
87
115
  }
@@ -163,6 +191,42 @@ module PureCloud
163
191
  end
164
192
 
165
193
 
194
+ if attributes.has_key?(:'dateCreated')
195
+
196
+
197
+ self.date_created = attributes[:'dateCreated']
198
+
199
+
200
+ end
201
+
202
+
203
+ if attributes.has_key?(:'dateModified')
204
+
205
+
206
+ self.date_modified = attributes[:'dateModified']
207
+
208
+
209
+ end
210
+
211
+
212
+ if attributes.has_key?(:'createdBy')
213
+
214
+
215
+ self.created_by = attributes[:'createdBy']
216
+
217
+
218
+ end
219
+
220
+
221
+ if attributes.has_key?(:'modifiedBy')
222
+
223
+
224
+ self.modified_by = attributes[:'modifiedBy']
225
+
226
+
227
+ end
228
+
229
+
166
230
  if attributes.has_key?(:'selfUri')
167
231
 
168
232
 
@@ -215,6 +279,22 @@ module PureCloud
215
279
 
216
280
 
217
281
 
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
218
298
 
219
299
 
220
300
 
@@ -246,6 +326,26 @@ module PureCloud
246
326
 
247
327
 
248
328
 
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
249
349
 
250
350
 
251
351
 
@@ -279,6 +379,10 @@ module PureCloud
279
379
  registered_redirect_uri == o.registered_redirect_uri &&
280
380
  secret == o.secret &&
281
381
  role_ids == o.role_ids &&
382
+ date_created == o.date_created &&
383
+ date_modified == o.date_modified &&
384
+ created_by == o.created_by &&
385
+ modified_by == o.modified_by &&
282
386
  self_uri == o.self_uri
283
387
  end
284
388
 
@@ -291,7 +395,7 @@ module PureCloud
291
395
  # Calculates hash code according to all attributes.
292
396
  # @return [Fixnum] Hash code
293
397
  def hash
294
- [id, name, access_token_validity_seconds, description, registered_redirect_uri, secret, role_ids, self_uri].hash
398
+ [id, name, access_token_validity_seconds, description, registered_redirect_uri, secret, role_ids, date_created, date_modified, created_by, modified_by, self_uri].hash
295
399
  end
296
400
 
297
401
  # build the object from hash