purecloudplatformclientv2 39.1.0 → 40.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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/AuthorizationApi.md +80 -0
  4. data/docs/CreateQueueRequest.md +1 -1
  5. data/docs/DomainOrganizationRole.md +1 -1
  6. data/docs/DomainOrganizationRoleCreate.md +1 -1
  7. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  8. data/docs/ExternalContactsApi.md +3 -3
  9. data/docs/JsonNode.md +4 -4
  10. data/docs/QualityApi.md +1 -1
  11. data/docs/QueueRequest.md +37 -0
  12. data/docs/RoutingApi.md +5 -5
  13. data/docs/SubjectDivisionGrants.md +17 -0
  14. data/docs/SubjectDivisionGrantsEntityListing.md +22 -0
  15. data/docs/TimeZone.md +2 -2
  16. data/docs/UserQueue.md +0 -1
  17. data/docs/WritableDivision.md +15 -0
  18. data/lib/purecloudplatformclientv2.rb +4 -0
  19. data/lib/purecloudplatformclientv2/api/authorization_api.rb +119 -0
  20. data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +2 -2
  21. data/lib/purecloudplatformclientv2/api/routing_api.rb +2 -2
  22. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  23. data/lib/purecloudplatformclientv2/models/create_queue_request.rb +1 -1
  24. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
  25. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
  26. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
  27. data/lib/purecloudplatformclientv2/models/forecast_time_series_result.rb +2 -2
  28. data/lib/purecloudplatformclientv2/models/history_listing.rb +2 -2
  29. data/lib/purecloudplatformclientv2/models/json_node.rb +76 -76
  30. data/lib/purecloudplatformclientv2/models/operation.rb +2 -2
  31. data/lib/purecloudplatformclientv2/models/queue_request.rb +870 -0
  32. data/lib/purecloudplatformclientv2/models/subject_division_grants.rb +319 -0
  33. data/lib/purecloudplatformclientv2/models/subject_division_grants_entity_listing.rb +428 -0
  34. data/lib/purecloudplatformclientv2/models/time_zone.rb +24 -24
  35. data/lib/purecloudplatformclientv2/models/user_queue.rb +1 -27
  36. data/lib/purecloudplatformclientv2/models/writable_division.rb +253 -0
  37. data/lib/purecloudplatformclientv2/version.rb +1 -1
  38. metadata +10 -2
@@ -1470,7 +1470,7 @@ module PureCloud
1470
1470
  return data, status_code, headers
1471
1471
  end
1472
1472
 
1473
- # Lookup contacts and externalOrganizations based on an attribute
1473
+ # Look up contacts and externalOrganizations based on an attribute. Maximum of 25 values returned.
1474
1474
  #
1475
1475
  # @param lookup_val User supplied value to lookup contacts/externalOrganizations (supports email addresses, e164 phone numbers, Twitter screen names)
1476
1476
  # @param [Hash] opts the optional parameters
@@ -1481,7 +1481,7 @@ module PureCloud
1481
1481
  return data
1482
1482
  end
1483
1483
 
1484
- # Lookup contacts and externalOrganizations based on an attribute
1484
+ # Look up contacts and externalOrganizations based on an attribute. Maximum of 25 values returned.
1485
1485
  #
1486
1486
  # @param lookup_val User supplied value to lookup contacts/externalOrganizations (supports email addresses, e164 phone numbers, Twitter screen names)
1487
1487
  # @param [Hash] opts the optional parameters
@@ -3554,7 +3554,7 @@ module PureCloud
3554
3554
  return data, status_code, headers
3555
3555
  end
3556
3556
 
3557
- # Create queue
3557
+ # Create a queue
3558
3558
  #
3559
3559
  # @param body Queue
3560
3560
  # @param [Hash] opts the optional parameters
@@ -3564,7 +3564,7 @@ module PureCloud
3564
3564
  return data
3565
3565
  end
3566
3566
 
3567
- # Create queue
3567
+ # Create a queue
3568
3568
  #
3569
3569
  # @param body Queue
3570
3570
  # @param [Hash] opts the optional parameters
@@ -76,7 +76,7 @@ module PureCloud
76
76
  http_method = http_method.to_sym.downcase
77
77
 
78
78
  header_params = @default_headers.merge(opts[:header_params] || {})
79
- header_params['purecloud-sdk'] = '39.1.0'
79
+ header_params['purecloud-sdk'] = '40.0.0'
80
80
  query_params = opts[:query_params] || {}
81
81
  form_params = opts[:form_params] || {}
82
82
 
@@ -160,7 +160,7 @@ module PureCloud
160
160
 
161
161
  :'name' => :'String',
162
162
 
163
- :'division' => :'Division',
163
+ :'division' => :'WritableDivision',
164
164
 
165
165
  :'description' => :'String',
166
166
 
@@ -36,10 +36,10 @@ module PureCloud
36
36
  # Optional unless patch operation.
37
37
  attr_accessor :role_needs_update
38
38
 
39
- attr_accessor :default
40
-
41
39
  attr_accessor :base
42
40
 
41
+ attr_accessor :default
42
+
43
43
  # The URI for this object
44
44
  attr_accessor :self_uri
45
45
 
@@ -63,10 +63,10 @@ module PureCloud
63
63
 
64
64
  :'role_needs_update' => :'roleNeedsUpdate',
65
65
 
66
- :'default' => :'default',
67
-
68
66
  :'base' => :'base',
69
67
 
68
+ :'default' => :'default',
69
+
70
70
  :'self_uri' => :'selfUri'
71
71
 
72
72
  }
@@ -92,10 +92,10 @@ module PureCloud
92
92
 
93
93
  :'role_needs_update' => :'BOOLEAN',
94
94
 
95
- :'default' => :'BOOLEAN',
96
-
97
95
  :'base' => :'BOOLEAN',
98
96
 
97
+ :'default' => :'BOOLEAN',
98
+
99
99
  :'self_uri' => :'String'
100
100
 
101
101
  }
@@ -186,19 +186,19 @@ module PureCloud
186
186
  end
187
187
 
188
188
 
189
- if attributes.has_key?(:'default')
189
+ if attributes.has_key?(:'base')
190
190
 
191
191
 
192
- self.default = attributes[:'default']
192
+ self.base = attributes[:'base']
193
193
 
194
194
 
195
195
  end
196
196
 
197
197
 
198
- if attributes.has_key?(:'base')
198
+ if attributes.has_key?(:'default')
199
199
 
200
200
 
201
- self.base = attributes[:'base']
201
+ self.default = attributes[:'default']
202
202
 
203
203
 
204
204
  end
@@ -343,8 +343,8 @@ module PureCloud
343
343
  permission_policies == o.permission_policies &&
344
344
  user_count == o.user_count &&
345
345
  role_needs_update == o.role_needs_update &&
346
- default == o.default &&
347
346
  base == o.base &&
347
+ default == o.default &&
348
348
  self_uri == o.self_uri
349
349
  end
350
350
 
@@ -357,7 +357,7 @@ module PureCloud
357
357
  # Calculates hash code according to all attributes.
358
358
  # @return [Fixnum] Hash code
359
359
  def hash
360
- [id, name, description, default_role_id, permissions, permission_policies, user_count, role_needs_update, default, base, self_uri].hash
360
+ [id, name, description, default_role_id, permissions, permission_policies, user_count, role_needs_update, base, default, self_uri].hash
361
361
  end
362
362
 
363
363
  # build the object from hash
@@ -37,10 +37,10 @@ module PureCloud
37
37
  # Optional unless patch operation.
38
38
  attr_accessor :role_needs_update
39
39
 
40
- attr_accessor :default
41
-
42
40
  attr_accessor :base
43
41
 
42
+ attr_accessor :default
43
+
44
44
  # The URI for this object
45
45
  attr_accessor :self_uri
46
46
 
@@ -64,10 +64,10 @@ module PureCloud
64
64
 
65
65
  :'role_needs_update' => :'roleNeedsUpdate',
66
66
 
67
- :'default' => :'default',
68
-
69
67
  :'base' => :'base',
70
68
 
69
+ :'default' => :'default',
70
+
71
71
  :'self_uri' => :'selfUri'
72
72
 
73
73
  }
@@ -93,10 +93,10 @@ module PureCloud
93
93
 
94
94
  :'role_needs_update' => :'BOOLEAN',
95
95
 
96
- :'default' => :'BOOLEAN',
97
-
98
96
  :'base' => :'BOOLEAN',
99
97
 
98
+ :'default' => :'BOOLEAN',
99
+
100
100
  :'self_uri' => :'String'
101
101
 
102
102
  }
@@ -187,19 +187,19 @@ module PureCloud
187
187
  end
188
188
 
189
189
 
190
- if attributes.has_key?(:'default')
190
+ if attributes.has_key?(:'base')
191
191
 
192
192
 
193
- self.default = attributes[:'default']
193
+ self.base = attributes[:'base']
194
194
 
195
195
 
196
196
  end
197
197
 
198
198
 
199
- if attributes.has_key?(:'base')
199
+ if attributes.has_key?(:'default')
200
200
 
201
201
 
202
- self.base = attributes[:'base']
202
+ self.default = attributes[:'default']
203
203
 
204
204
 
205
205
  end
@@ -349,8 +349,8 @@ module PureCloud
349
349
  permission_policies == o.permission_policies &&
350
350
  user_count == o.user_count &&
351
351
  role_needs_update == o.role_needs_update &&
352
- default == o.default &&
353
352
  base == o.base &&
353
+ default == o.default &&
354
354
  self_uri == o.self_uri
355
355
  end
356
356
 
@@ -363,7 +363,7 @@ module PureCloud
363
363
  # Calculates hash code according to all attributes.
364
364
  # @return [Fixnum] Hash code
365
365
  def hash
366
- [id, name, description, default_role_id, permissions, permission_policies, user_count, role_needs_update, default, base, self_uri].hash
366
+ [id, name, description, default_role_id, permissions, permission_policies, user_count, role_needs_update, base, default, self_uri].hash
367
367
  end
368
368
 
369
369
  # build the object from hash
@@ -37,10 +37,10 @@ module PureCloud
37
37
  # Optional unless patch operation.
38
38
  attr_accessor :role_needs_update
39
39
 
40
- attr_accessor :default
41
-
42
40
  attr_accessor :base
43
41
 
42
+ attr_accessor :default
43
+
44
44
  # The URI for this object
45
45
  attr_accessor :self_uri
46
46
 
@@ -64,10 +64,10 @@ module PureCloud
64
64
 
65
65
  :'role_needs_update' => :'roleNeedsUpdate',
66
66
 
67
- :'default' => :'default',
68
-
69
67
  :'base' => :'base',
70
68
 
69
+ :'default' => :'default',
70
+
71
71
  :'self_uri' => :'selfUri'
72
72
 
73
73
  }
@@ -93,10 +93,10 @@ module PureCloud
93
93
 
94
94
  :'role_needs_update' => :'BOOLEAN',
95
95
 
96
- :'default' => :'BOOLEAN',
97
-
98
96
  :'base' => :'BOOLEAN',
99
97
 
98
+ :'default' => :'BOOLEAN',
99
+
100
100
  :'self_uri' => :'String'
101
101
 
102
102
  }
@@ -187,19 +187,19 @@ module PureCloud
187
187
  end
188
188
 
189
189
 
190
- if attributes.has_key?(:'default')
190
+ if attributes.has_key?(:'base')
191
191
 
192
192
 
193
- self.default = attributes[:'default']
193
+ self.base = attributes[:'base']
194
194
 
195
195
 
196
196
  end
197
197
 
198
198
 
199
- if attributes.has_key?(:'base')
199
+ if attributes.has_key?(:'default')
200
200
 
201
201
 
202
- self.base = attributes[:'base']
202
+ self.default = attributes[:'default']
203
203
 
204
204
 
205
205
  end
@@ -349,8 +349,8 @@ module PureCloud
349
349
  permission_policies == o.permission_policies &&
350
350
  user_count == o.user_count &&
351
351
  role_needs_update == o.role_needs_update &&
352
- default == o.default &&
353
352
  base == o.base &&
353
+ default == o.default &&
354
354
  self_uri == o.self_uri
355
355
  end
356
356
 
@@ -363,7 +363,7 @@ module PureCloud
363
363
  # Calculates hash code according to all attributes.
364
364
  # @return [Fixnum] Hash code
365
365
  def hash
366
- [id, name, description, default_role_id, permissions, permission_policies, user_count, role_needs_update, default, base, self_uri].hash
366
+ [id, name, description, default_role_id, permissions, permission_policies, user_count, role_needs_update, base, default, self_uri].hash
367
367
  end
368
368
 
369
369
  # build the object from hash
@@ -99,7 +99,7 @@ module PureCloud
99
99
 
100
100
 
101
101
 
102
- allowed_values = ["AutoRegressiveIntegratedMovingAverage", "MovingAverage", "SingleExponentialSmoothing", "RandomWalk", "DecompositionUsingAdditiveSeasonality", "DecompositionUsingMultiplicativeSeasonality", "HoltWintersAdditiveSeasonality", "HoltWintersAdditiveSeasonalityWithDampedTrend", "HoltWintersMultiplicativeSeasonality", "HoltWintersMultiplicativeSeasonalityWithDampedTrend", "DampedLinearExponentialSmoothing", "DoubleExponentialSmoothing", "DoubleMovingAverage", "LinearExponentialSmoothing", "LinearWeightedMovingAverage", "PointEstimateUsingDampedLinearExponentialSmoothing", "PointEstimateUsingDoubleExponentialSmoothing", "PointEstimateUsingLinearExponentialSmoothing", "CurveFit", "MultiLinearRegression", "Other"]
102
+ allowed_values = ["AutoRegressiveIntegratedMovingAverage", "MovingAverage", "SingleExponentialSmoothing", "RandomWalk", "DecompositionUsingAdditiveSeasonality", "DecompositionUsingMultiplicativeSeasonality", "HoltWintersAdditiveSeasonality", "HoltWintersAdditiveSeasonalityWithDampedTrend", "HoltWintersMultiplicativeSeasonality", "HoltWintersMultiplicativeSeasonalityWithDampedTrend", "DampedLinearExponentialSmoothing", "DoubleExponentialSmoothing", "DoubleMovingAverage", "LinearExponentialSmoothing", "LinearWeightedMovingAverage", "PointEstimateUsingDampedLinearExponentialSmoothing", "PointEstimateUsingDoubleExponentialSmoothing", "PointEstimateUsingLatestWeek", "PointEstimateUsingLinearExponentialSmoothing", "PointEstimateUsingWeightedAverage", "CurveFit", "MultiLinearRegression", "Other"]
103
103
  if @forecasting_method && !allowed_values.include?(@forecasting_method)
104
104
  return false
105
105
  end
@@ -127,7 +127,7 @@ module PureCloud
127
127
  # Custom attribute writer method checking allowed values (enum).
128
128
  # @param [Object] forecasting_method Object to be assigned
129
129
  def forecasting_method=(forecasting_method)
130
- allowed_values = ["AutoRegressiveIntegratedMovingAverage", "MovingAverage", "SingleExponentialSmoothing", "RandomWalk", "DecompositionUsingAdditiveSeasonality", "DecompositionUsingMultiplicativeSeasonality", "HoltWintersAdditiveSeasonality", "HoltWintersAdditiveSeasonalityWithDampedTrend", "HoltWintersMultiplicativeSeasonality", "HoltWintersMultiplicativeSeasonalityWithDampedTrend", "DampedLinearExponentialSmoothing", "DoubleExponentialSmoothing", "DoubleMovingAverage", "LinearExponentialSmoothing", "LinearWeightedMovingAverage", "PointEstimateUsingDampedLinearExponentialSmoothing", "PointEstimateUsingDoubleExponentialSmoothing", "PointEstimateUsingLinearExponentialSmoothing", "CurveFit", "MultiLinearRegression", "Other"]
130
+ allowed_values = ["AutoRegressiveIntegratedMovingAverage", "MovingAverage", "SingleExponentialSmoothing", "RandomWalk", "DecompositionUsingAdditiveSeasonality", "DecompositionUsingMultiplicativeSeasonality", "HoltWintersAdditiveSeasonality", "HoltWintersAdditiveSeasonalityWithDampedTrend", "HoltWintersMultiplicativeSeasonality", "HoltWintersMultiplicativeSeasonalityWithDampedTrend", "DampedLinearExponentialSmoothing", "DoubleExponentialSmoothing", "DoubleMovingAverage", "LinearExponentialSmoothing", "LinearWeightedMovingAverage", "PointEstimateUsingDampedLinearExponentialSmoothing", "PointEstimateUsingDoubleExponentialSmoothing", "PointEstimateUsingLatestWeek", "PointEstimateUsingLinearExponentialSmoothing", "PointEstimateUsingWeightedAverage", "CurveFit", "MultiLinearRegression", "Other"]
131
131
  if forecasting_method && !allowed_values.include?(forecasting_method)
132
132
  fail ArgumentError, "invalid value for 'forecasting_method', must be one of #{allowed_values}."
133
133
  end
@@ -304,7 +304,7 @@ module PureCloud
304
304
 
305
305
 
306
306
 
307
- allowed_values = ["CHECKIN", "DEBUG", "DELETE", "HISTORY", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
307
+ allowed_values = ["CREATE", "CHECKIN", "DEBUG", "DELETE", "HISTORY", "PUBLISH", "STATE_CHANGE", "UPDATE", "VALIDATE"]
308
308
  if @action_name && !allowed_values.include?(@action_name)
309
309
  return false
310
310
  end
@@ -382,7 +382,7 @@ module PureCloud
382
382
  # Custom attribute writer method checking allowed values (enum).
383
383
  # @param [Object] action_name Object to be assigned
384
384
  def action_name=(action_name)
385
- allowed_values = ["CHECKIN", "DEBUG", "DELETE", "HISTORY", "PUBLISH", "STATE_CHANGE", "VALIDATE"]
385
+ allowed_values = ["CREATE", "CHECKIN", "DEBUG", "DELETE", "HISTORY", "PUBLISH", "STATE_CHANGE", "UPDATE", "VALIDATE"]
386
386
  if action_name && !allowed_values.include?(action_name)
387
387
  fail ArgumentError, "invalid value for 'action_name', must be one of #{allowed_values}."
388
388
  end
@@ -18,10 +18,6 @@ require 'date'
18
18
 
19
19
  module PureCloud
20
20
  class JsonNode
21
- attr_accessor :array
22
-
23
- attr_accessor :null
24
-
25
21
  attr_accessor :node_type
26
22
 
27
23
  attr_accessor :object
@@ -32,18 +28,18 @@ module PureCloud
32
28
 
33
29
  attr_accessor :float
34
30
 
31
+ attr_accessor :floating_point_number
32
+
33
+ attr_accessor :value_node
34
+
35
35
  attr_accessor :container_node
36
36
 
37
37
  attr_accessor :missing_node
38
38
 
39
- attr_accessor :value_node
40
-
41
39
  attr_accessor :pojo
42
40
 
43
41
  attr_accessor :integral_number
44
42
 
45
- attr_accessor :floating_point_number
46
-
47
43
  attr_accessor :short
48
44
 
49
45
  attr_accessor :int
@@ -60,14 +56,14 @@ module PureCloud
60
56
 
61
57
  attr_accessor :binary
62
58
 
59
+ attr_accessor :array
60
+
61
+ attr_accessor :null
62
+
63
63
  # Attribute mapping from ruby-style variable name to JSON key.
64
64
  def self.attribute_map
65
65
  {
66
66
 
67
- :'array' => :'array',
68
-
69
- :'null' => :'null',
70
-
71
67
  :'node_type' => :'nodeType',
72
68
 
73
69
  :'object' => :'object',
@@ -78,18 +74,18 @@ module PureCloud
78
74
 
79
75
  :'float' => :'float',
80
76
 
77
+ :'floating_point_number' => :'floatingPointNumber',
78
+
79
+ :'value_node' => :'valueNode',
80
+
81
81
  :'container_node' => :'containerNode',
82
82
 
83
83
  :'missing_node' => :'missingNode',
84
84
 
85
- :'value_node' => :'valueNode',
86
-
87
85
  :'pojo' => :'pojo',
88
86
 
89
87
  :'integral_number' => :'integralNumber',
90
88
 
91
- :'floating_point_number' => :'floatingPointNumber',
92
-
93
89
  :'short' => :'short',
94
90
 
95
91
  :'int' => :'int',
@@ -104,7 +100,11 @@ module PureCloud
104
100
 
105
101
  :'textual' => :'textual',
106
102
 
107
- :'binary' => :'binary'
103
+ :'binary' => :'binary',
104
+
105
+ :'array' => :'array',
106
+
107
+ :'null' => :'null'
108
108
 
109
109
  }
110
110
  end
@@ -113,10 +113,6 @@ module PureCloud
113
113
  def self.swagger_types
114
114
  {
115
115
 
116
- :'array' => :'BOOLEAN',
117
-
118
- :'null' => :'BOOLEAN',
119
-
120
116
  :'node_type' => :'String',
121
117
 
122
118
  :'object' => :'BOOLEAN',
@@ -127,18 +123,18 @@ module PureCloud
127
123
 
128
124
  :'float' => :'BOOLEAN',
129
125
 
126
+ :'floating_point_number' => :'BOOLEAN',
127
+
128
+ :'value_node' => :'BOOLEAN',
129
+
130
130
  :'container_node' => :'BOOLEAN',
131
131
 
132
132
  :'missing_node' => :'BOOLEAN',
133
133
 
134
- :'value_node' => :'BOOLEAN',
135
-
136
134
  :'pojo' => :'BOOLEAN',
137
135
 
138
136
  :'integral_number' => :'BOOLEAN',
139
137
 
140
- :'floating_point_number' => :'BOOLEAN',
141
-
142
138
  :'short' => :'BOOLEAN',
143
139
 
144
140
  :'int' => :'BOOLEAN',
@@ -153,7 +149,11 @@ module PureCloud
153
149
 
154
150
  :'textual' => :'BOOLEAN',
155
151
 
156
- :'binary' => :'BOOLEAN'
152
+ :'binary' => :'BOOLEAN',
153
+
154
+ :'array' => :'BOOLEAN',
155
+
156
+ :'null' => :'BOOLEAN'
157
157
 
158
158
  }
159
159
  end
@@ -167,24 +167,6 @@ module PureCloud
167
167
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
168
168
 
169
169
 
170
- if attributes.has_key?(:'array')
171
-
172
-
173
- self.array = attributes[:'array']
174
-
175
-
176
- end
177
-
178
-
179
- if attributes.has_key?(:'null')
180
-
181
-
182
- self.null = attributes[:'null']
183
-
184
-
185
- end
186
-
187
-
188
170
  if attributes.has_key?(:'nodeType')
189
171
 
190
172
 
@@ -230,55 +212,55 @@ module PureCloud
230
212
  end
231
213
 
232
214
 
233
- if attributes.has_key?(:'containerNode')
215
+ if attributes.has_key?(:'floatingPointNumber')
234
216
 
235
217
 
236
- self.container_node = attributes[:'containerNode']
218
+ self.floating_point_number = attributes[:'floatingPointNumber']
237
219
 
238
220
 
239
221
  end
240
222
 
241
223
 
242
- if attributes.has_key?(:'missingNode')
224
+ if attributes.has_key?(:'valueNode')
243
225
 
244
226
 
245
- self.missing_node = attributes[:'missingNode']
227
+ self.value_node = attributes[:'valueNode']
246
228
 
247
229
 
248
230
  end
249
231
 
250
232
 
251
- if attributes.has_key?(:'valueNode')
233
+ if attributes.has_key?(:'containerNode')
252
234
 
253
235
 
254
- self.value_node = attributes[:'valueNode']
236
+ self.container_node = attributes[:'containerNode']
255
237
 
256
238
 
257
239
  end
258
240
 
259
241
 
260
- if attributes.has_key?(:'pojo')
242
+ if attributes.has_key?(:'missingNode')
261
243
 
262
244
 
263
- self.pojo = attributes[:'pojo']
245
+ self.missing_node = attributes[:'missingNode']
264
246
 
265
247
 
266
248
  end
267
249
 
268
250
 
269
- if attributes.has_key?(:'integralNumber')
251
+ if attributes.has_key?(:'pojo')
270
252
 
271
253
 
272
- self.integral_number = attributes[:'integralNumber']
254
+ self.pojo = attributes[:'pojo']
273
255
 
274
256
 
275
257
  end
276
258
 
277
259
 
278
- if attributes.has_key?(:'floatingPointNumber')
260
+ if attributes.has_key?(:'integralNumber')
279
261
 
280
262
 
281
- self.floating_point_number = attributes[:'floatingPointNumber']
263
+ self.integral_number = attributes[:'integralNumber']
282
264
 
283
265
 
284
266
  end
@@ -356,6 +338,24 @@ module PureCloud
356
338
  end
357
339
 
358
340
 
341
+ if attributes.has_key?(:'array')
342
+
343
+
344
+ self.array = attributes[:'array']
345
+
346
+
347
+ end
348
+
349
+
350
+ if attributes.has_key?(:'null')
351
+
352
+
353
+ self.null = attributes[:'null']
354
+
355
+
356
+ end
357
+
358
+
359
359
  end
360
360
 
361
361
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -373,6 +373,10 @@ module PureCloud
373
373
 
374
374
 
375
375
 
376
+ allowed_values = ["ARRAY", "BINARY", "BOOLEAN", "MISSING", "NULL", "NUMBER", "OBJECT", "POJO", "STRING"]
377
+ if @node_type && !allowed_values.include?(@node_type)
378
+ return false
379
+ end
376
380
 
377
381
 
378
382
 
@@ -381,10 +385,6 @@ module PureCloud
381
385
 
382
386
 
383
387
 
384
- allowed_values = ["ARRAY", "BINARY", "BOOLEAN", "MISSING", "NULL", "NUMBER", "OBJECT", "POJO", "STRING"]
385
- if @node_type && !allowed_values.include?(@node_type)
386
- return false
387
- end
388
388
 
389
389
 
390
390
 
@@ -464,16 +464,6 @@ module PureCloud
464
464
 
465
465
 
466
466
 
467
-
468
-
469
-
470
-
471
-
472
-
473
-
474
-
475
-
476
-
477
467
  # Custom attribute writer method checking allowed values (enum).
478
468
  # @param [Object] node_type Object to be assigned
479
469
  def node_type=(node_type)
@@ -566,6 +556,16 @@ module PureCloud
566
556
 
567
557
 
568
558
 
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
569
 
570
570
 
571
571
 
@@ -582,19 +582,17 @@ module PureCloud
582
582
  def ==(o)
583
583
  return true if self.equal?(o)
584
584
  self.class == o.class &&
585
- array == o.array &&
586
- null == o.null &&
587
585
  node_type == o.node_type &&
588
586
  object == o.object &&
589
587
  boolean == o.boolean &&
590
588
  number == o.number &&
591
589
  float == o.float &&
590
+ floating_point_number == o.floating_point_number &&
591
+ value_node == o.value_node &&
592
592
  container_node == o.container_node &&
593
593
  missing_node == o.missing_node &&
594
- value_node == o.value_node &&
595
594
  pojo == o.pojo &&
596
595
  integral_number == o.integral_number &&
597
- floating_point_number == o.floating_point_number &&
598
596
  short == o.short &&
599
597
  int == o.int &&
600
598
  long == o.long &&
@@ -602,7 +600,9 @@ module PureCloud
602
600
  big_decimal == o.big_decimal &&
603
601
  big_integer == o.big_integer &&
604
602
  textual == o.textual &&
605
- binary == o.binary
603
+ binary == o.binary &&
604
+ array == o.array &&
605
+ null == o.null
606
606
  end
607
607
 
608
608
  # @see the `==` method
@@ -614,7 +614,7 @@ module PureCloud
614
614
  # Calculates hash code according to all attributes.
615
615
  # @return [Fixnum] Hash code
616
616
  def hash
617
- [array, null, node_type, object, boolean, number, float, container_node, missing_node, value_node, pojo, integral_number, floating_point_number, short, int, long, double, big_decimal, big_integer, textual, binary].hash
617
+ [node_type, object, boolean, number, float, floating_point_number, value_node, container_node, missing_node, pojo, integral_number, short, int, long, double, big_decimal, big_integer, textual, binary, array, null].hash
618
618
  end
619
619
 
620
620
  # build the object from hash