purecloudplatformclientv2 27.1.0 → 28.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/AdditionalMessage.md +13 -0
- data/docs/AnalyticsParticipant.md +1 -0
- data/docs/ArchitectApi.md +40 -28
- data/docs/Attachment.md +5 -5
- data/docs/ConversationNotificationAttachment.md +18 -0
- data/docs/ConversationNotificationDraftAttachments.md +18 -0
- data/docs/ConversationNotificationEmail.md +1 -0
- data/docs/ConversationNotificationEmails.md +1 -0
- data/docs/ConversationsApi.md +964 -198
- data/docs/DataTable.md +17 -0
- data/docs/DataTableRowEntityListing.md +22 -0
- data/docs/DataTablesDomainEntityListing.md +22 -0
- data/docs/Document.md +1 -1
- data/docs/DomainEdgeSoftwareVersionDto.md +1 -1
- data/docs/DomainOrganizationRole.md +1 -1
- data/docs/DomainOrganizationRoleCreate.md +1 -1
- data/docs/DomainOrganizationRoleUpdate.md +1 -1
- data/docs/Email.md +1 -0
- data/docs/EmailConversationNotificationAttachment.md +18 -0
- data/docs/EmailConversationNotificationEmailMediaParticipant.md +1 -0
- data/docs/EmailConversationNotificationParticipants.md +1 -0
- data/docs/EmailMediaParticipant.md +1 -0
- data/docs/FaxDocument.md +1 -1
- data/docs/JsonNode.md +4 -4
- data/docs/MessageConversation.md +17 -0
- data/docs/MessageConversationEntityListing.md +22 -0
- data/docs/MessageData.md +25 -0
- data/docs/MessageMediaParticipant.md +44 -0
- data/docs/Question.md +1 -1
- data/docs/Recipient.md +20 -0
- data/docs/RecipientListing.md +22 -0
- data/docs/RoutingApi.md +632 -0
- data/docs/SMSAvailablePhoneNumberEntityListing.md +13 -0
- data/docs/SmsAddressProvision.md +21 -0
- data/docs/SmsAvailablePhoneNumber.md +22 -0
- data/docs/SmsPhoneNumber.md +25 -0
- data/docs/SmsPhoneNumberEntityListing.md +22 -0
- data/docs/SmsPhoneNumberProvision.md +18 -0
- data/docs/TextMessageListing.md +22 -0
- data/lib/purecloudplatformclientv2.rb +20 -0
- data/lib/purecloudplatformclientv2/api/architect_api.rb +108 -34
- data/lib/purecloudplatformclientv2/api/conversations_api.rb +1247 -317
- data/lib/purecloudplatformclientv2/api/routing_api.rb +829 -43
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/additional_message.rb +207 -0
- data/lib/purecloudplatformclientv2/models/aggregate_metric_data.rb +2 -2
- data/lib/purecloudplatformclientv2/models/analytics_participant.rb +41 -1
- data/lib/purecloudplatformclientv2/models/analytics_query_predicate.rb +4 -4
- data/lib/purecloudplatformclientv2/models/attachment.rb +5 -0
- data/lib/purecloudplatformclientv2/models/conversation_notification_attachment.rb +326 -0
- data/lib/purecloudplatformclientv2/models/conversation_notification_draft_attachments.rb +326 -0
- data/lib/purecloudplatformclientv2/models/conversation_notification_email.rb +28 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_emails.rb +28 -1
- data/lib/purecloudplatformclientv2/models/data_table.rb +306 -0
- data/lib/purecloudplatformclientv2/models/data_table_row_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/data_tables_domain_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/document.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
- data/lib/purecloudplatformclientv2/models/email.rb +32 -4
- data/lib/purecloudplatformclientv2/models/email_conversation_notification_attachment.rb +326 -0
- data/lib/purecloudplatformclientv2/models/email_conversation_notification_email_media_participant.rb +31 -4
- data/lib/purecloudplatformclientv2/models/email_conversation_notification_participants.rb +31 -4
- data/lib/purecloudplatformclientv2/models/email_media_participant.rb +32 -4
- data/lib/purecloudplatformclientv2/models/fax_document.rb +12 -12
- data/lib/purecloudplatformclientv2/models/json_node.rb +72 -72
- data/lib/purecloudplatformclientv2/models/message_conversation.rb +309 -0
- data/lib/purecloudplatformclientv2/models/message_conversation_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/message_data.rb +572 -0
- data/lib/purecloudplatformclientv2/models/message_media_participant.rb +1068 -0
- data/lib/purecloudplatformclientv2/models/question.rb +13 -13
- data/lib/purecloudplatformclientv2/models/recipient.rb +383 -0
- data/lib/purecloudplatformclientv2/models/recipient_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/sms_address_provision.rb +440 -0
- data/lib/purecloudplatformclientv2/models/sms_available_phone_number.rb +465 -0
- data/lib/purecloudplatformclientv2/models/sms_available_phone_number_entity_listing.rb +203 -0
- data/lib/purecloudplatformclientv2/models/sms_phone_number.rb +546 -0
- data/lib/purecloudplatformclientv2/models/sms_phone_number_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/sms_phone_number_provision.rb +360 -0
- data/lib/purecloudplatformclientv2/models/text_message_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +42 -2
data/lib/purecloudplatformclientv2/models/email_conversation_notification_email_media_participant.rb
CHANGED
@@ -80,6 +80,8 @@ module PureCloud
|
|
80
80
|
|
81
81
|
attr_accessor :message_id
|
82
82
|
|
83
|
+
attr_accessor :draft_attachments
|
84
|
+
|
83
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
84
86
|
def self.attribute_map
|
85
87
|
{
|
@@ -144,7 +146,9 @@ module PureCloud
|
|
144
146
|
|
145
147
|
:'auto_generated' => :'autoGenerated',
|
146
148
|
|
147
|
-
:'message_id' => :'messageId'
|
149
|
+
:'message_id' => :'messageId',
|
150
|
+
|
151
|
+
:'draft_attachments' => :'draftAttachments'
|
148
152
|
|
149
153
|
}
|
150
154
|
end
|
@@ -213,7 +217,9 @@ module PureCloud
|
|
213
217
|
|
214
218
|
:'auto_generated' => :'BOOLEAN',
|
215
219
|
|
216
|
-
:'message_id' => :'String'
|
220
|
+
:'message_id' => :'String',
|
221
|
+
|
222
|
+
:'draft_attachments' => :'Array<ConversationNotificationDraftAttachments>'
|
217
223
|
|
218
224
|
}
|
219
225
|
end
|
@@ -508,6 +514,17 @@ module PureCloud
|
|
508
514
|
end
|
509
515
|
|
510
516
|
|
517
|
+
if attributes.has_key?(:'draftAttachments')
|
518
|
+
|
519
|
+
if (value = attributes[:'draftAttachments']).is_a?(Array)
|
520
|
+
self.draft_attachments = value
|
521
|
+
end
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
end
|
526
|
+
|
527
|
+
|
511
528
|
end
|
512
529
|
|
513
530
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -657,6 +674,10 @@ module PureCloud
|
|
657
674
|
|
658
675
|
|
659
676
|
|
677
|
+
|
678
|
+
|
679
|
+
|
680
|
+
|
660
681
|
|
661
682
|
|
662
683
|
|
@@ -841,6 +862,11 @@ module PureCloud
|
|
841
862
|
|
842
863
|
|
843
864
|
|
865
|
+
|
866
|
+
|
867
|
+
|
868
|
+
|
869
|
+
|
844
870
|
|
845
871
|
|
846
872
|
|
@@ -882,7 +908,8 @@ module PureCloud
|
|
882
908
|
subject == o.subject &&
|
883
909
|
messages_sent == o.messages_sent &&
|
884
910
|
auto_generated == o.auto_generated &&
|
885
|
-
message_id == o.message_id
|
911
|
+
message_id == o.message_id &&
|
912
|
+
draft_attachments == o.draft_attachments
|
886
913
|
end
|
887
914
|
|
888
915
|
# @see the `==` method
|
@@ -894,7 +921,7 @@ module PureCloud
|
|
894
921
|
# Calculates hash code according to all attributes.
|
895
922
|
# @return [Fixnum] Hash code
|
896
923
|
def hash
|
897
|
-
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, wrapup, peer, screen_recording_state, subject, messages_sent, auto_generated, message_id].hash
|
924
|
+
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, wrapup, peer, screen_recording_state, subject, messages_sent, auto_generated, message_id, draft_attachments].hash
|
898
925
|
end
|
899
926
|
|
900
927
|
# build the object from hash
|
@@ -80,6 +80,8 @@ module PureCloud
|
|
80
80
|
|
81
81
|
attr_accessor :message_id
|
82
82
|
|
83
|
+
attr_accessor :draft_attachments
|
84
|
+
|
83
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
84
86
|
def self.attribute_map
|
85
87
|
{
|
@@ -144,7 +146,9 @@ module PureCloud
|
|
144
146
|
|
145
147
|
:'auto_generated' => :'autoGenerated',
|
146
148
|
|
147
|
-
:'message_id' => :'messageId'
|
149
|
+
:'message_id' => :'messageId',
|
150
|
+
|
151
|
+
:'draft_attachments' => :'draftAttachments'
|
148
152
|
|
149
153
|
}
|
150
154
|
end
|
@@ -213,7 +217,9 @@ module PureCloud
|
|
213
217
|
|
214
218
|
:'auto_generated' => :'BOOLEAN',
|
215
219
|
|
216
|
-
:'message_id' => :'String'
|
220
|
+
:'message_id' => :'String',
|
221
|
+
|
222
|
+
:'draft_attachments' => :'Array<ConversationNotificationDraftAttachments>'
|
217
223
|
|
218
224
|
}
|
219
225
|
end
|
@@ -508,6 +514,17 @@ module PureCloud
|
|
508
514
|
end
|
509
515
|
|
510
516
|
|
517
|
+
if attributes.has_key?(:'draftAttachments')
|
518
|
+
|
519
|
+
if (value = attributes[:'draftAttachments']).is_a?(Array)
|
520
|
+
self.draft_attachments = value
|
521
|
+
end
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
end
|
526
|
+
|
527
|
+
|
511
528
|
end
|
512
529
|
|
513
530
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -657,6 +674,10 @@ module PureCloud
|
|
657
674
|
|
658
675
|
|
659
676
|
|
677
|
+
|
678
|
+
|
679
|
+
|
680
|
+
|
660
681
|
|
661
682
|
|
662
683
|
|
@@ -841,6 +862,11 @@ module PureCloud
|
|
841
862
|
|
842
863
|
|
843
864
|
|
865
|
+
|
866
|
+
|
867
|
+
|
868
|
+
|
869
|
+
|
844
870
|
|
845
871
|
|
846
872
|
|
@@ -882,7 +908,8 @@ module PureCloud
|
|
882
908
|
subject == o.subject &&
|
883
909
|
messages_sent == o.messages_sent &&
|
884
910
|
auto_generated == o.auto_generated &&
|
885
|
-
message_id == o.message_id
|
911
|
+
message_id == o.message_id &&
|
912
|
+
draft_attachments == o.draft_attachments
|
886
913
|
end
|
887
914
|
|
888
915
|
# @see the `==` method
|
@@ -894,7 +921,7 @@ module PureCloud
|
|
894
921
|
# Calculates hash code according to all attributes.
|
895
922
|
# @return [Fixnum] Hash code
|
896
923
|
def hash
|
897
|
-
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, wrapup, peer, screen_recording_state, subject, messages_sent, auto_generated, message_id].hash
|
924
|
+
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, wrapup, peer, screen_recording_state, subject, messages_sent, auto_generated, message_id, draft_attachments].hash
|
898
925
|
end
|
899
926
|
|
900
927
|
# build the object from hash
|
@@ -105,6 +105,9 @@ module PureCloud
|
|
105
105
|
# Indicates that the email was auto-generated like an Out of Office reply.
|
106
106
|
attr_accessor :auto_generated
|
107
107
|
|
108
|
+
# A list of uploaded attachments on the email draft.
|
109
|
+
attr_accessor :draft_attachments
|
110
|
+
|
108
111
|
# Attribute mapping from ruby-style variable name to JSON key.
|
109
112
|
def self.attribute_map
|
110
113
|
{
|
@@ -165,7 +168,9 @@ module PureCloud
|
|
165
168
|
|
166
169
|
:'messages_sent' => :'messagesSent',
|
167
170
|
|
168
|
-
:'auto_generated' => :'autoGenerated'
|
171
|
+
:'auto_generated' => :'autoGenerated',
|
172
|
+
|
173
|
+
:'draft_attachments' => :'draftAttachments'
|
169
174
|
|
170
175
|
}
|
171
176
|
end
|
@@ -230,7 +235,9 @@ module PureCloud
|
|
230
235
|
|
231
236
|
:'messages_sent' => :'Integer',
|
232
237
|
|
233
|
-
:'auto_generated' => :'BOOLEAN'
|
238
|
+
:'auto_generated' => :'BOOLEAN',
|
239
|
+
|
240
|
+
:'draft_attachments' => :'Array<Attachment>'
|
234
241
|
|
235
242
|
}
|
236
243
|
end
|
@@ -507,6 +514,17 @@ module PureCloud
|
|
507
514
|
end
|
508
515
|
|
509
516
|
|
517
|
+
if attributes.has_key?(:'draftAttachments')
|
518
|
+
|
519
|
+
if (value = attributes[:'draftAttachments']).is_a?(Array)
|
520
|
+
self.draft_attachments = value
|
521
|
+
end
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
end
|
526
|
+
|
527
|
+
|
510
528
|
end
|
511
529
|
|
512
530
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -648,6 +666,10 @@ module PureCloud
|
|
648
666
|
|
649
667
|
|
650
668
|
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
651
673
|
|
652
674
|
|
653
675
|
|
@@ -822,6 +844,11 @@ module PureCloud
|
|
822
844
|
|
823
845
|
|
824
846
|
|
847
|
+
|
848
|
+
|
849
|
+
|
850
|
+
|
851
|
+
|
825
852
|
|
826
853
|
|
827
854
|
|
@@ -861,7 +888,8 @@ module PureCloud
|
|
861
888
|
peer == o.peer &&
|
862
889
|
subject == o.subject &&
|
863
890
|
messages_sent == o.messages_sent &&
|
864
|
-
auto_generated == o.auto_generated
|
891
|
+
auto_generated == o.auto_generated &&
|
892
|
+
draft_attachments == o.draft_attachments
|
865
893
|
end
|
866
894
|
|
867
895
|
# @see the `==` method
|
@@ -873,7 +901,7 @@ module PureCloud
|
|
873
901
|
# Calculates hash code according to all attributes.
|
874
902
|
# @return [Fixnum] Hash code
|
875
903
|
def hash
|
876
|
-
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, wrapup, peer, subject, messages_sent, auto_generated].hash
|
904
|
+
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, wrapup, peer, subject, messages_sent, auto_generated, draft_attachments].hash
|
877
905
|
end
|
878
906
|
|
879
907
|
# build the object from hash
|
@@ -51,10 +51,10 @@ module PureCloud
|
|
51
51
|
|
52
52
|
attr_accessor :thumbnails
|
53
53
|
|
54
|
-
attr_accessor :download_sharing_uri
|
55
|
-
|
56
54
|
attr_accessor :sharing_uri
|
57
55
|
|
56
|
+
attr_accessor :download_sharing_uri
|
57
|
+
|
58
58
|
# The URI for this object
|
59
59
|
attr_accessor :self_uri
|
60
60
|
|
@@ -92,10 +92,10 @@ module PureCloud
|
|
92
92
|
|
93
93
|
:'thumbnails' => :'thumbnails',
|
94
94
|
|
95
|
-
:'download_sharing_uri' => :'downloadSharingUri',
|
96
|
-
|
97
95
|
:'sharing_uri' => :'sharingUri',
|
98
96
|
|
97
|
+
:'download_sharing_uri' => :'downloadSharingUri',
|
98
|
+
|
99
99
|
:'self_uri' => :'selfUri'
|
100
100
|
|
101
101
|
}
|
@@ -135,10 +135,10 @@ module PureCloud
|
|
135
135
|
|
136
136
|
:'thumbnails' => :'Array<DocumentThumbnail>',
|
137
137
|
|
138
|
-
:'download_sharing_uri' => :'String',
|
139
|
-
|
140
138
|
:'sharing_uri' => :'String',
|
141
139
|
|
140
|
+
:'download_sharing_uri' => :'String',
|
141
|
+
|
142
142
|
:'self_uri' => :'String'
|
143
143
|
|
144
144
|
}
|
@@ -290,19 +290,19 @@ module PureCloud
|
|
290
290
|
end
|
291
291
|
|
292
292
|
|
293
|
-
if attributes.has_key?(:'
|
293
|
+
if attributes.has_key?(:'sharingUri')
|
294
294
|
|
295
295
|
|
296
|
-
self.
|
296
|
+
self.sharing_uri = attributes[:'sharingUri']
|
297
297
|
|
298
298
|
|
299
299
|
end
|
300
300
|
|
301
301
|
|
302
|
-
if attributes.has_key?(:'
|
302
|
+
if attributes.has_key?(:'downloadSharingUri')
|
303
303
|
|
304
304
|
|
305
|
-
self.
|
305
|
+
self.download_sharing_uri = attributes[:'downloadSharingUri']
|
306
306
|
|
307
307
|
|
308
308
|
end
|
@@ -517,8 +517,8 @@ module PureCloud
|
|
517
517
|
caller_address == o.caller_address &&
|
518
518
|
receiver_address == o.receiver_address &&
|
519
519
|
thumbnails == o.thumbnails &&
|
520
|
-
download_sharing_uri == o.download_sharing_uri &&
|
521
520
|
sharing_uri == o.sharing_uri &&
|
521
|
+
download_sharing_uri == o.download_sharing_uri &&
|
522
522
|
self_uri == o.self_uri
|
523
523
|
end
|
524
524
|
|
@@ -531,7 +531,7 @@ module PureCloud
|
|
531
531
|
# Calculates hash code according to all attributes.
|
532
532
|
# @return [Fixnum] Hash code
|
533
533
|
def hash
|
534
|
-
[id, name, date_created, date_modified, content_uri, workspace, created_by, content_type, content_length, filename, read, page_count, caller_address, receiver_address, thumbnails,
|
534
|
+
[id, name, date_created, date_modified, content_uri, workspace, created_by, content_type, content_length, filename, read, page_count, caller_address, receiver_address, thumbnails, sharing_uri, download_sharing_uri, self_uri].hash
|
535
535
|
end
|
536
536
|
|
537
537
|
# build the object from hash
|
@@ -18,15 +18,21 @@ require 'date'
|
|
18
18
|
|
19
19
|
module PureCloud
|
20
20
|
class JsonNode
|
21
|
+
attr_accessor :array
|
22
|
+
|
23
|
+
attr_accessor :null
|
24
|
+
|
21
25
|
attr_accessor :node_type
|
22
26
|
|
27
|
+
attr_accessor :float
|
28
|
+
|
23
29
|
attr_accessor :object
|
24
30
|
|
25
31
|
attr_accessor :boolean
|
26
32
|
|
27
33
|
attr_accessor :number
|
28
34
|
|
29
|
-
attr_accessor :
|
35
|
+
attr_accessor :value_node
|
30
36
|
|
31
37
|
attr_accessor :container_node
|
32
38
|
|
@@ -54,25 +60,25 @@ module PureCloud
|
|
54
60
|
|
55
61
|
attr_accessor :binary
|
56
62
|
|
57
|
-
attr_accessor :value_node
|
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
|
+
|
67
71
|
:'node_type' => :'nodeType',
|
68
72
|
|
73
|
+
:'float' => :'float',
|
74
|
+
|
69
75
|
:'object' => :'object',
|
70
76
|
|
71
77
|
:'boolean' => :'boolean',
|
72
78
|
|
73
79
|
:'number' => :'number',
|
74
80
|
|
75
|
-
:'
|
81
|
+
:'value_node' => :'valueNode',
|
76
82
|
|
77
83
|
:'container_node' => :'containerNode',
|
78
84
|
|
@@ -98,13 +104,7 @@ module PureCloud
|
|
98
104
|
|
99
105
|
:'textual' => :'textual',
|
100
106
|
|
101
|
-
:'binary' => :'binary'
|
102
|
-
|
103
|
-
:'value_node' => :'valueNode',
|
104
|
-
|
105
|
-
:'array' => :'array',
|
106
|
-
|
107
|
-
:'null' => :'null'
|
107
|
+
:'binary' => :'binary'
|
108
108
|
|
109
109
|
}
|
110
110
|
end
|
@@ -113,15 +113,21 @@ module PureCloud
|
|
113
113
|
def self.swagger_types
|
114
114
|
{
|
115
115
|
|
116
|
+
:'array' => :'BOOLEAN',
|
117
|
+
|
118
|
+
:'null' => :'BOOLEAN',
|
119
|
+
|
116
120
|
:'node_type' => :'String',
|
117
121
|
|
122
|
+
:'float' => :'BOOLEAN',
|
123
|
+
|
118
124
|
:'object' => :'BOOLEAN',
|
119
125
|
|
120
126
|
:'boolean' => :'BOOLEAN',
|
121
127
|
|
122
128
|
:'number' => :'BOOLEAN',
|
123
129
|
|
124
|
-
:'
|
130
|
+
:'value_node' => :'BOOLEAN',
|
125
131
|
|
126
132
|
:'container_node' => :'BOOLEAN',
|
127
133
|
|
@@ -147,13 +153,7 @@ module PureCloud
|
|
147
153
|
|
148
154
|
:'textual' => :'BOOLEAN',
|
149
155
|
|
150
|
-
:'binary' => :'BOOLEAN'
|
151
|
-
|
152
|
-
:'value_node' => :'BOOLEAN',
|
153
|
-
|
154
|
-
:'array' => :'BOOLEAN',
|
155
|
-
|
156
|
-
:'null' => :'BOOLEAN'
|
156
|
+
:'binary' => :'BOOLEAN'
|
157
157
|
|
158
158
|
}
|
159
159
|
end
|
@@ -167,6 +167,24 @@ 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
|
+
|
170
188
|
if attributes.has_key?(:'nodeType')
|
171
189
|
|
172
190
|
|
@@ -176,6 +194,15 @@ module PureCloud
|
|
176
194
|
end
|
177
195
|
|
178
196
|
|
197
|
+
if attributes.has_key?(:'float')
|
198
|
+
|
199
|
+
|
200
|
+
self.float = attributes[:'float']
|
201
|
+
|
202
|
+
|
203
|
+
end
|
204
|
+
|
205
|
+
|
179
206
|
if attributes.has_key?(:'object')
|
180
207
|
|
181
208
|
|
@@ -203,10 +230,10 @@ module PureCloud
|
|
203
230
|
end
|
204
231
|
|
205
232
|
|
206
|
-
if attributes.has_key?(:'
|
233
|
+
if attributes.has_key?(:'valueNode')
|
207
234
|
|
208
235
|
|
209
|
-
self.
|
236
|
+
self.value_node = attributes[:'valueNode']
|
210
237
|
|
211
238
|
|
212
239
|
end
|
@@ -329,33 +356,6 @@ module PureCloud
|
|
329
356
|
end
|
330
357
|
|
331
358
|
|
332
|
-
if attributes.has_key?(:'valueNode')
|
333
|
-
|
334
|
-
|
335
|
-
self.value_node = attributes[:'valueNode']
|
336
|
-
|
337
|
-
|
338
|
-
end
|
339
|
-
|
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,10 +373,6 @@ 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
|
380
376
|
|
381
377
|
|
382
378
|
|
@@ -385,6 +381,10 @@ module PureCloud
|
|
385
381
|
|
386
382
|
|
387
383
|
|
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
|
-
# Custom attribute writer method checking allowed values (enum).
|
468
|
-
# @param [Object] node_type Object to be assigned
|
469
|
-
def node_type=(node_type)
|
470
|
-
allowed_values = ["ARRAY", "BINARY", "BOOLEAN", "MISSING", "NULL", "NUMBER", "OBJECT", "POJO", "STRING"]
|
471
|
-
if node_type && !allowed_values.include?(node_type)
|
472
|
-
fail ArgumentError, "invalid value for 'node_type', must be one of #{allowed_values}."
|
473
|
-
end
|
474
|
-
@node_type = node_type
|
475
|
-
end
|
476
|
-
|
477
467
|
|
478
468
|
|
479
469
|
|
@@ -484,6 +474,16 @@ module PureCloud
|
|
484
474
|
|
485
475
|
|
486
476
|
|
477
|
+
# Custom attribute writer method checking allowed values (enum).
|
478
|
+
# @param [Object] node_type Object to be assigned
|
479
|
+
def node_type=(node_type)
|
480
|
+
allowed_values = ["ARRAY", "BINARY", "BOOLEAN", "MISSING", "NULL", "NUMBER", "OBJECT", "POJO", "STRING"]
|
481
|
+
if node_type && !allowed_values.include?(node_type)
|
482
|
+
fail ArgumentError, "invalid value for 'node_type', must be one of #{allowed_values}."
|
483
|
+
end
|
484
|
+
@node_type = node_type
|
485
|
+
end
|
486
|
+
|
487
487
|
|
488
488
|
|
489
489
|
|
@@ -582,11 +582,14 @@ 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 &&
|
585
587
|
node_type == o.node_type &&
|
588
|
+
float == o.float &&
|
586
589
|
object == o.object &&
|
587
590
|
boolean == o.boolean &&
|
588
591
|
number == o.number &&
|
589
|
-
|
592
|
+
value_node == o.value_node &&
|
590
593
|
container_node == o.container_node &&
|
591
594
|
missing_node == o.missing_node &&
|
592
595
|
pojo == o.pojo &&
|
@@ -599,10 +602,7 @@ module PureCloud
|
|
599
602
|
big_decimal == o.big_decimal &&
|
600
603
|
big_integer == o.big_integer &&
|
601
604
|
textual == o.textual &&
|
602
|
-
binary == o.binary
|
603
|
-
value_node == o.value_node &&
|
604
|
-
array == o.array &&
|
605
|
-
null == o.null
|
605
|
+
binary == o.binary
|
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
|
-
[node_type, object, boolean, number,
|
617
|
+
[array, null, node_type, float, object, boolean, number, value_node, container_node, missing_node, pojo, integral_number, floating_point_number, short, int, long, double, big_decimal, big_integer, textual, binary].hash
|
618
618
|
end
|
619
619
|
|
620
620
|
# build the object from hash
|