purecloud 0.55.1 → 0.56.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/config-ruby.json +1 -1
  4. data/doc_out/AgentActivityEntityListing.html.md +1 -1
  5. data/doc_out/AttemptLimitsEntityListing.html.md +1 -1
  6. data/doc_out/AttributeEntityListing.html.md +1 -1
  7. data/doc_out/AvailableTranslations.html.md +14 -0
  8. data/doc_out/CalibrationEntityListing.html.md +1 -1
  9. data/doc_out/CallConversationEntityListing.html.md +1 -1
  10. data/doc_out/CallableTimeSetEntityListing.html.md +1 -1
  11. data/doc_out/CallbackConversationEntityListing.html.md +1 -1
  12. data/doc_out/CampaignEntityListing.html.md +1 -1
  13. data/doc_out/CampaignSequenceEntityListing.html.md +1 -1
  14. data/doc_out/CertificateAuthorityEntityListing.html.md +1 -1
  15. data/doc_out/ChannelEntityListing.html.md +1 -1
  16. data/doc_out/ChatConversationEntityListing.html.md +1 -1
  17. data/doc_out/CobrowseConversationEntityListing.html.md +1 -1
  18. data/doc_out/CommandStatusEntityListing.html.md +1 -1
  19. data/doc_out/ContactListEntityListing.html.md +1 -1
  20. data/doc_out/ConversationEntityListing.html.md +1 -1
  21. data/doc_out/DIDEntityListing.html.md +1 -1
  22. data/doc_out/DIDPoolEntityListing.html.md +1 -1
  23. data/doc_out/DncListEntityListing.html.md +1 -1
  24. data/doc_out/DocumentAuditEntityListing.html.md +1 -1
  25. data/doc_out/DocumentEntityListing.html.md +1 -1
  26. data/doc_out/DomainEdgeSoftwareVersionDtoEntityListing.html.md +1 -1
  27. data/doc_out/DomainEntityListing.html.md +1 -1
  28. data/doc_out/DomainEntityListingEvaluationForm.html.md +1 -1
  29. data/doc_out/DomainEntityListingQueryResult.html.md +1 -1
  30. data/doc_out/DomainOrganizationRole.html.md +1 -1
  31. data/doc_out/DomainOrganizationRoleCreate.html.md +1 -1
  32. data/doc_out/DomainOrganizationRoleUpdate.html.md +1 -1
  33. data/doc_out/EdgeEntityListing.html.md +1 -1
  34. data/doc_out/EdgeGroupEntityListing.html.md +1 -1
  35. data/doc_out/EdgeLineEntityListing.html.md +1 -1
  36. data/doc_out/EmailConversationEntityListing.html.md +1 -1
  37. data/doc_out/EmailMessageListing.html.md +1 -1
  38. data/doc_out/EncryptionKeyEntityListing.html.md +1 -1
  39. data/doc_out/EndpointEntityListing.html.md +1 -1
  40. data/doc_out/EvaluationEntityListing.html.md +1 -1
  41. data/doc_out/EvaluationFormEntityListing.html.md +1 -1
  42. data/doc_out/EvaluatorActivityEntityListing.html.md +1 -1
  43. data/doc_out/ExtensionEntityListing.html.md +1 -1
  44. data/doc_out/ExtensionPoolEntityListing.html.md +1 -1
  45. data/doc_out/FaxDocumentEntityListing.html.md +1 -1
  46. data/doc_out/ForecastMetadataEntityListing.html.md +1 -1
  47. data/doc_out/GeolocationSettings.html.md +1 -0
  48. data/doc_out/GroupEntityListing.html.md +1 -1
  49. data/doc_out/HeartBeatAlertContainer.html.md +1 -1
  50. data/doc_out/HeartBeatRuleContainer.html.md +1 -1
  51. data/doc_out/InboundDomainEntityListing.html.md +1 -1
  52. data/doc_out/InboundRoute.html.md +1 -0
  53. data/doc_out/InboundRouteEntityListing.html.md +1 -1
  54. data/doc_out/InteractionStatsAlertContainer.html.md +1 -1
  55. data/doc_out/InteractionStatsRuleContainer.html.md +1 -1
  56. data/doc_out/JsonNode.html.md +5 -5
  57. data/doc_out/KeywordSetEntityListing.html.md +1 -1
  58. data/doc_out/LanguageEntityListing.html.md +1 -1
  59. data/doc_out/LanguagesApi.html.md +222 -0
  60. data/doc_out/LibraryEntityListing.html.md +1 -1
  61. data/doc_out/LineBaseEntityListing.html.md +1 -1
  62. data/doc_out/LineEntityListing.html.md +1 -1
  63. data/doc_out/LogicalInterfaceEntityListing.html.md +1 -1
  64. data/doc_out/OAuthClientEntityListing.html.md +1 -1
  65. data/doc_out/OAuthProviderEntityListing.html.md +1 -1
  66. data/doc_out/OrganizationPresenceEntityListing.html.md +1 -1
  67. data/doc_out/OrganizationRoleEntityListing.html.md +1 -1
  68. data/doc_out/OrphanRecordingListing.html.md +1 -1
  69. data/doc_out/OutboundApi.html.md +4 -4
  70. data/doc_out/OutboundRouteEntityListing.html.md +1 -1
  71. data/doc_out/PermissionCollectionEntityListing.html.md +1 -1
  72. data/doc_out/PhoneBaseEntityListing.html.md +1 -1
  73. data/doc_out/PhoneEntityListing.html.md +1 -1
  74. data/doc_out/PhoneMetaBaseEntityListing.html.md +1 -1
  75. data/doc_out/PhysicalInterfaceEntityListing.html.md +1 -1
  76. data/doc_out/PolicyEntityListing.html.md +1 -1
  77. data/doc_out/QualityAuditPage.html.md +1 -1
  78. data/doc_out/QueueEntityListing.html.md +1 -1
  79. data/doc_out/QueueMemberEntityListing.html.md +1 -1
  80. data/doc_out/ReportMetaDataEntityListing.html.md +1 -1
  81. data/doc_out/ReportRunEntryEntityDomainListing.html.md +1 -1
  82. data/doc_out/ReportScheduleEntityListing.html.md +1 -1
  83. data/doc_out/ResponseEntityList.html.md +1 -1
  84. data/doc_out/ResponseEntityListing.html.md +1 -1
  85. data/doc_out/ResponseSetEntityListing.html.md +1 -1
  86. data/doc_out/RuleSetEntityListing.html.md +1 -1
  87. data/doc_out/SchemaCategoryEntityListing.html.md +1 -1
  88. data/doc_out/SchemaReferenceEntityListing.html.md +1 -1
  89. data/doc_out/ScreenRecordingSessionListing.html.md +1 -1
  90. data/doc_out/SecurityProfileEntityListing.html.md +1 -1
  91. data/doc_out/ShareEntityListing.html.md +1 -1
  92. data/doc_out/SiteEntityListing.html.md +1 -1
  93. data/doc_out/SkillEntityListing.html.md +1 -1
  94. data/doc_out/StationEntityListing.html.md +1 -1
  95. data/doc_out/TagValueEntityListing.html.md +1 -1
  96. data/doc_out/TimeZoneEntityListing.html.md +1 -1
  97. data/doc_out/TrunkBaseEntityListing.html.md +1 -1
  98. data/doc_out/TrunkEntityListing.html.md +1 -1
  99. data/doc_out/TrunkMetabaseEntityListing.html.md +1 -1
  100. data/doc_out/UserEntityListing.html.md +1 -1
  101. data/doc_out/UserQueueEntityListing.html.md +1 -1
  102. data/doc_out/UserRecordingEntityListing.html.md +1 -1
  103. data/doc_out/UserSkillEntityListing.html.md +1 -1
  104. data/doc_out/UserStation.html.md +2 -0
  105. data/doc_out/UsersEntityListing.html.md +1 -1
  106. data/doc_out/WorkspaceEntityListing.html.md +1 -1
  107. data/doc_out/WorkspaceMemberEntityListing.html.md +1 -1
  108. data/doc_out/WrapupCodeEntityListing.html.md +1 -1
  109. data/doc_out/index.html.md +3 -3
  110. data/lib/purecloud.rb +1 -0
  111. data/lib/purecloud/api/languages_api.rb +237 -0
  112. data/lib/purecloud/api/outbound_api.rb +4 -4
  113. data/lib/purecloud/api_client.rb +1 -1
  114. data/lib/purecloud/models/agent_activity_entity_listing.rb +11 -11
  115. data/lib/purecloud/models/analytics_session.rb +1 -1
  116. data/lib/purecloud/models/attempt_limits_entity_listing.rb +11 -11
  117. data/lib/purecloud/models/attribute_entity_listing.rb +11 -11
  118. data/lib/purecloud/models/available_translations.rb +179 -0
  119. data/lib/purecloud/models/calibration_entity_listing.rb +11 -11
  120. data/lib/purecloud/models/call_conversation_entity_listing.rb +11 -11
  121. data/lib/purecloud/models/callable_time_set_entity_listing.rb +11 -11
  122. data/lib/purecloud/models/callback_conversation_entity_listing.rb +11 -11
  123. data/lib/purecloud/models/campaign_entity_listing.rb +11 -11
  124. data/lib/purecloud/models/campaign_sequence_entity_listing.rb +11 -11
  125. data/lib/purecloud/models/certificate_authority_entity_listing.rb +11 -11
  126. data/lib/purecloud/models/channel_entity_listing.rb +11 -11
  127. data/lib/purecloud/models/chat_conversation_entity_listing.rb +11 -11
  128. data/lib/purecloud/models/cobrowse_conversation_entity_listing.rb +11 -11
  129. data/lib/purecloud/models/command_status_entity_listing.rb +11 -11
  130. data/lib/purecloud/models/contact_list_entity_listing.rb +11 -11
  131. data/lib/purecloud/models/conversation_entity_listing.rb +11 -11
  132. data/lib/purecloud/models/did_entity_listing.rb +11 -11
  133. data/lib/purecloud/models/did_pool_entity_listing.rb +11 -11
  134. data/lib/purecloud/models/dnc_list_entity_listing.rb +11 -11
  135. data/lib/purecloud/models/document_audit_entity_listing.rb +11 -11
  136. data/lib/purecloud/models/document_entity_listing.rb +11 -11
  137. data/lib/purecloud/models/domain_edge_software_version_dto_entity_listing.rb +11 -11
  138. data/lib/purecloud/models/domain_entity_listing.rb +11 -11
  139. data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +11 -11
  140. data/lib/purecloud/models/domain_entity_listing_query_result.rb +11 -11
  141. data/lib/purecloud/models/domain_organization_role.rb +13 -13
  142. data/lib/purecloud/models/domain_organization_role_create.rb +13 -13
  143. data/lib/purecloud/models/domain_organization_role_update.rb +13 -13
  144. data/lib/purecloud/models/edge_entity_listing.rb +11 -11
  145. data/lib/purecloud/models/edge_group_entity_listing.rb +11 -11
  146. data/lib/purecloud/models/edge_line_entity_listing.rb +11 -11
  147. data/lib/purecloud/models/email_conversation_entity_listing.rb +11 -11
  148. data/lib/purecloud/models/email_message_listing.rb +11 -11
  149. data/lib/purecloud/models/encryption_key_entity_listing.rb +11 -11
  150. data/lib/purecloud/models/endpoint_entity_listing.rb +11 -11
  151. data/lib/purecloud/models/evaluation_entity_listing.rb +11 -11
  152. data/lib/purecloud/models/evaluation_form_entity_listing.rb +11 -11
  153. data/lib/purecloud/models/evaluator_activity_entity_listing.rb +11 -11
  154. data/lib/purecloud/models/extension_entity_listing.rb +11 -11
  155. data/lib/purecloud/models/extension_pool_entity_listing.rb +11 -11
  156. data/lib/purecloud/models/fax_document_entity_listing.rb +11 -11
  157. data/lib/purecloud/models/forecast_metadata_entity_listing.rb +11 -11
  158. data/lib/purecloud/models/geolocation_settings.rb +11 -1
  159. data/lib/purecloud/models/group_entity_listing.rb +11 -11
  160. data/lib/purecloud/models/heart_beat_alert_container.rb +11 -11
  161. data/lib/purecloud/models/heart_beat_rule_container.rb +11 -11
  162. data/lib/purecloud/models/inbound_domain_entity_listing.rb +11 -11
  163. data/lib/purecloud/models/inbound_route.rb +12 -1
  164. data/lib/purecloud/models/inbound_route_entity_listing.rb +11 -11
  165. data/lib/purecloud/models/interaction_stats_alert_container.rb +11 -11
  166. data/lib/purecloud/models/interaction_stats_rule_container.rb +11 -11
  167. data/lib/purecloud/models/json_node.rb +51 -51
  168. data/lib/purecloud/models/keyword_set_entity_listing.rb +11 -11
  169. data/lib/purecloud/models/language_entity_listing.rb +11 -11
  170. data/lib/purecloud/models/library_entity_listing.rb +11 -11
  171. data/lib/purecloud/models/line_base_entity_listing.rb +11 -11
  172. data/lib/purecloud/models/line_entity_listing.rb +11 -11
  173. data/lib/purecloud/models/logical_interface_entity_listing.rb +11 -11
  174. data/lib/purecloud/models/o_auth_client_entity_listing.rb +11 -11
  175. data/lib/purecloud/models/o_auth_provider_entity_listing.rb +11 -11
  176. data/lib/purecloud/models/organization_presence_entity_listing.rb +11 -11
  177. data/lib/purecloud/models/organization_role_entity_listing.rb +11 -11
  178. data/lib/purecloud/models/orphan_recording_listing.rb +11 -11
  179. data/lib/purecloud/models/outbound_route_entity_listing.rb +11 -11
  180. data/lib/purecloud/models/permission_collection_entity_listing.rb +11 -11
  181. data/lib/purecloud/models/phone_base_entity_listing.rb +11 -11
  182. data/lib/purecloud/models/phone_entity_listing.rb +11 -11
  183. data/lib/purecloud/models/phone_meta_base_entity_listing.rb +11 -11
  184. data/lib/purecloud/models/physical_interface_entity_listing.rb +11 -11
  185. data/lib/purecloud/models/policy_entity_listing.rb +11 -11
  186. data/lib/purecloud/models/quality_audit_page.rb +11 -11
  187. data/lib/purecloud/models/queue_entity_listing.rb +11 -11
  188. data/lib/purecloud/models/queue_member_entity_listing.rb +11 -11
  189. data/lib/purecloud/models/report_meta_data_entity_listing.rb +11 -11
  190. data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +11 -11
  191. data/lib/purecloud/models/report_schedule_entity_listing.rb +11 -11
  192. data/lib/purecloud/models/response_entity_list.rb +11 -11
  193. data/lib/purecloud/models/response_entity_listing.rb +11 -11
  194. data/lib/purecloud/models/response_set_entity_listing.rb +11 -11
  195. data/lib/purecloud/models/rule_set_entity_listing.rb +11 -11
  196. data/lib/purecloud/models/schema_category_entity_listing.rb +11 -11
  197. data/lib/purecloud/models/schema_reference_entity_listing.rb +11 -11
  198. data/lib/purecloud/models/screen_recording_session_listing.rb +11 -11
  199. data/lib/purecloud/models/security_profile_entity_listing.rb +11 -11
  200. data/lib/purecloud/models/share_entity_listing.rb +11 -11
  201. data/lib/purecloud/models/site_entity_listing.rb +11 -11
  202. data/lib/purecloud/models/skill_entity_listing.rb +11 -11
  203. data/lib/purecloud/models/station_entity_listing.rb +11 -11
  204. data/lib/purecloud/models/tag_value_entity_listing.rb +11 -11
  205. data/lib/purecloud/models/time_zone_entity_listing.rb +11 -11
  206. data/lib/purecloud/models/trunk_base_entity_listing.rb +11 -11
  207. data/lib/purecloud/models/trunk_entity_listing.rb +11 -11
  208. data/lib/purecloud/models/trunk_metabase_entity_listing.rb +11 -11
  209. data/lib/purecloud/models/user_entity_listing.rb +11 -11
  210. data/lib/purecloud/models/user_queue_entity_listing.rb +11 -11
  211. data/lib/purecloud/models/user_recording_entity_listing.rb +11 -11
  212. data/lib/purecloud/models/user_skill_entity_listing.rb +11 -11
  213. data/lib/purecloud/models/user_station.rb +21 -1
  214. data/lib/purecloud/models/users_entity_listing.rb +11 -11
  215. data/lib/purecloud/models/workspace_entity_listing.rb +11 -11
  216. data/lib/purecloud/models/workspace_member_entity_listing.rb +11 -11
  217. data/lib/purecloud/models/wrapup_code_entity_listing.rb +11 -11
  218. data/lib/purecloud/version.rb +1 -1
  219. data/newVersion.md +1 -1
  220. data/swagger.json +1 -1
  221. data/version.json +1 -1
  222. metadata +4 -2
@@ -266,7 +266,7 @@ module PureCloud
266
266
 
267
267
  # Custom attribute writer method checking allowed values (enum).
268
268
  def media_type=(media_type)
269
- allowed_values = ["voice", "chat", "email", "callback", "cobrowse", "video", "screenShare"]
269
+ allowed_values = ["voice", "chat", "email", "callback", "cobrowse", "video", "screenshare"]
270
270
  if media_type && !allowed_values.include?(media_type)
271
271
  fail "invalid value for 'media_type', must be one of #{allowed_values}"
272
272
  end
@@ -30,10 +30,10 @@ module PureCloud
30
30
 
31
31
  attr_accessor :first_uri
32
32
 
33
- attr_accessor :previous_uri
34
-
35
33
  attr_accessor :next_uri
36
34
 
35
+ attr_accessor :previous_uri
36
+
37
37
  attr_accessor :last_uri
38
38
 
39
39
  attr_accessor :page_count
@@ -54,10 +54,10 @@ module PureCloud
54
54
 
55
55
  :'first_uri' => :'firstUri',
56
56
 
57
- :'previous_uri' => :'previousUri',
58
-
59
57
  :'next_uri' => :'nextUri',
60
58
 
59
+ :'previous_uri' => :'previousUri',
60
+
61
61
  :'last_uri' => :'lastUri',
62
62
 
63
63
  :'page_count' => :'pageCount'
@@ -74,8 +74,8 @@ module PureCloud
74
74
  :'total' => :'Integer',
75
75
  :'self_uri' => :'String',
76
76
  :'first_uri' => :'String',
77
- :'previous_uri' => :'String',
78
77
  :'next_uri' => :'String',
78
+ :'previous_uri' => :'String',
79
79
  :'last_uri' => :'String',
80
80
  :'page_count' => :'Integer'
81
81
 
@@ -115,14 +115,14 @@ module PureCloud
115
115
  self.first_uri = attributes[:'firstUri']
116
116
  end
117
117
 
118
- if attributes[:'previousUri']
119
- self.previous_uri = attributes[:'previousUri']
120
- end
121
-
122
118
  if attributes[:'nextUri']
123
119
  self.next_uri = attributes[:'nextUri']
124
120
  end
125
121
 
122
+ if attributes[:'previousUri']
123
+ self.previous_uri = attributes[:'previousUri']
124
+ end
125
+
126
126
  if attributes[:'lastUri']
127
127
  self.last_uri = attributes[:'lastUri']
128
128
  end
@@ -143,8 +143,8 @@ module PureCloud
143
143
  total == o.total &&
144
144
  self_uri == o.self_uri &&
145
145
  first_uri == o.first_uri &&
146
- previous_uri == o.previous_uri &&
147
146
  next_uri == o.next_uri &&
147
+ previous_uri == o.previous_uri &&
148
148
  last_uri == o.last_uri &&
149
149
  page_count == o.page_count
150
150
  end
@@ -156,7 +156,7 @@ module PureCloud
156
156
 
157
157
  # Calculate hash code according to all attributes.
158
158
  def hash
159
- [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
159
+ [entities, page_size, page_number, total, self_uri, first_uri, next_uri, previous_uri, last_uri, page_count].hash
160
160
  end
161
161
 
162
162
  # build the object from hash
@@ -30,10 +30,10 @@ module PureCloud
30
30
 
31
31
  attr_accessor :first_uri
32
32
 
33
- attr_accessor :previous_uri
34
-
35
33
  attr_accessor :next_uri
36
34
 
35
+ attr_accessor :previous_uri
36
+
37
37
  attr_accessor :last_uri
38
38
 
39
39
  attr_accessor :page_count
@@ -54,10 +54,10 @@ module PureCloud
54
54
 
55
55
  :'first_uri' => :'firstUri',
56
56
 
57
- :'previous_uri' => :'previousUri',
58
-
59
57
  :'next_uri' => :'nextUri',
60
58
 
59
+ :'previous_uri' => :'previousUri',
60
+
61
61
  :'last_uri' => :'lastUri',
62
62
 
63
63
  :'page_count' => :'pageCount'
@@ -74,8 +74,8 @@ module PureCloud
74
74
  :'total' => :'Integer',
75
75
  :'self_uri' => :'String',
76
76
  :'first_uri' => :'String',
77
- :'previous_uri' => :'String',
78
77
  :'next_uri' => :'String',
78
+ :'previous_uri' => :'String',
79
79
  :'last_uri' => :'String',
80
80
  :'page_count' => :'Integer'
81
81
 
@@ -115,14 +115,14 @@ module PureCloud
115
115
  self.first_uri = attributes[:'firstUri']
116
116
  end
117
117
 
118
- if attributes[:'previousUri']
119
- self.previous_uri = attributes[:'previousUri']
120
- end
121
-
122
118
  if attributes[:'nextUri']
123
119
  self.next_uri = attributes[:'nextUri']
124
120
  end
125
121
 
122
+ if attributes[:'previousUri']
123
+ self.previous_uri = attributes[:'previousUri']
124
+ end
125
+
126
126
  if attributes[:'lastUri']
127
127
  self.last_uri = attributes[:'lastUri']
128
128
  end
@@ -143,8 +143,8 @@ module PureCloud
143
143
  total == o.total &&
144
144
  self_uri == o.self_uri &&
145
145
  first_uri == o.first_uri &&
146
- previous_uri == o.previous_uri &&
147
146
  next_uri == o.next_uri &&
147
+ previous_uri == o.previous_uri &&
148
148
  last_uri == o.last_uri &&
149
149
  page_count == o.page_count
150
150
  end
@@ -156,7 +156,7 @@ module PureCloud
156
156
 
157
157
  # Calculate hash code according to all attributes.
158
158
  def hash
159
- [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
159
+ [entities, page_size, page_number, total, self_uri, first_uri, next_uri, previous_uri, last_uri, page_count].hash
160
160
  end
161
161
 
162
162
  # build the object from hash
@@ -0,0 +1,179 @@
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@inin.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 AvailableTranslations
21
+ attr_accessor :org_specific
22
+
23
+ attr_accessor :builtin
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+
29
+ :'org_specific' => :'orgSpecific',
30
+
31
+ :'builtin' => :'builtin'
32
+
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.swagger_types
38
+ {
39
+ :'org_specific' => :'Array<String>',
40
+ :'builtin' => :'Array<String>'
41
+
42
+ }
43
+ end
44
+
45
+ def initialize(attributes = {})
46
+ return unless attributes.is_a?(Hash)
47
+
48
+ # convert string to symbol for hash key
49
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
50
+
51
+
52
+ if attributes[:'orgSpecific']
53
+ if (value = attributes[:'orgSpecific']).is_a?(Array)
54
+ self.org_specific = value
55
+ end
56
+ end
57
+
58
+ if attributes[:'builtin']
59
+ if (value = attributes[:'builtin']).is_a?(Array)
60
+ self.builtin = value
61
+ end
62
+ end
63
+
64
+ end
65
+
66
+ # Check equality by comparing each attribute.
67
+ def ==(o)
68
+ return true if self.equal?(o)
69
+ self.class == o.class &&
70
+ org_specific == o.org_specific &&
71
+ builtin == o.builtin
72
+ end
73
+
74
+ # @see the `==` method
75
+ def eql?(o)
76
+ self == o
77
+ end
78
+
79
+ # Calculate hash code according to all attributes.
80
+ def hash
81
+ [org_specific, builtin].hash
82
+ end
83
+
84
+ # build the object from hash
85
+ def build_from_hash(attributes)
86
+ return nil unless attributes.is_a?(Hash)
87
+ self.class.swagger_types.each_pair do |key, type|
88
+ if type =~ /^Array<(.*)>/i
89
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
90
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ else
92
+ #TODO show warning in debug mode
93
+ end
94
+ elsif !attributes[self.class.attribute_map[key]].nil?
95
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
96
+ else
97
+ # data not found in attributes(hash), not an issue as the data can be optional
98
+ end
99
+ end
100
+
101
+ self
102
+ end
103
+
104
+ def _deserialize(type, value)
105
+ case type.to_sym
106
+ when :DateTime
107
+ DateTime.parse(value)
108
+ when :Date
109
+ Date.parse(value)
110
+ when :String
111
+ value.to_s
112
+ when :Integer
113
+ value.to_i
114
+ when :Float
115
+ value.to_f
116
+ when :BOOLEAN
117
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
118
+ true
119
+ else
120
+ false
121
+ end
122
+ when :Object
123
+ # generic object (usually a Hash), return directly
124
+ value
125
+ when /\AArray<(?<inner_type>.+)>\z/
126
+ inner_type = Regexp.last_match[:inner_type]
127
+ value.map { |v| _deserialize(inner_type, v) }
128
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
129
+ k_type = Regexp.last_match[:k_type]
130
+ v_type = Regexp.last_match[:v_type]
131
+ {}.tap do |hash|
132
+ value.each do |k, v|
133
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
134
+ end
135
+ end
136
+ else # model
137
+ _model = Object.const_get("PureCloud").const_get(type).new
138
+ _model.build_from_hash(value)
139
+ end
140
+ end
141
+
142
+ def to_s
143
+ to_hash.to_s
144
+ end
145
+
146
+ # to_body is an alias to to_body (backward compatibility))
147
+ def to_body
148
+ to_hash
149
+ end
150
+
151
+ # return the object in the form of hash
152
+ def to_hash
153
+ hash = {}
154
+ self.class.attribute_map.each_pair do |attr, param|
155
+ value = self.send(attr)
156
+ next if value.nil?
157
+ hash[param] = _to_hash(value)
158
+ end
159
+ hash
160
+ end
161
+
162
+ # Method to output non-array value in the form of hash
163
+ # For object, use to_hash. Otherwise, just return the value
164
+ def _to_hash(value)
165
+ if value.is_a?(Array)
166
+ value.compact.map{ |v| _to_hash(v) }
167
+ elsif value.is_a?(Hash)
168
+ {}.tap do |hash|
169
+ value.each { |k, v| hash[k] = _to_hash(v) }
170
+ end
171
+ elsif value.respond_to? :to_hash
172
+ value.to_hash
173
+ else
174
+ value
175
+ end
176
+ end
177
+
178
+ end
179
+ end
@@ -30,10 +30,10 @@ module PureCloud
30
30
 
31
31
  attr_accessor :first_uri
32
32
 
33
- attr_accessor :previous_uri
34
-
35
33
  attr_accessor :next_uri
36
34
 
35
+ attr_accessor :previous_uri
36
+
37
37
  attr_accessor :last_uri
38
38
 
39
39
  attr_accessor :page_count
@@ -54,10 +54,10 @@ module PureCloud
54
54
 
55
55
  :'first_uri' => :'firstUri',
56
56
 
57
- :'previous_uri' => :'previousUri',
58
-
59
57
  :'next_uri' => :'nextUri',
60
58
 
59
+ :'previous_uri' => :'previousUri',
60
+
61
61
  :'last_uri' => :'lastUri',
62
62
 
63
63
  :'page_count' => :'pageCount'
@@ -74,8 +74,8 @@ module PureCloud
74
74
  :'total' => :'Integer',
75
75
  :'self_uri' => :'String',
76
76
  :'first_uri' => :'String',
77
- :'previous_uri' => :'String',
78
77
  :'next_uri' => :'String',
78
+ :'previous_uri' => :'String',
79
79
  :'last_uri' => :'String',
80
80
  :'page_count' => :'Integer'
81
81
 
@@ -115,14 +115,14 @@ module PureCloud
115
115
  self.first_uri = attributes[:'firstUri']
116
116
  end
117
117
 
118
- if attributes[:'previousUri']
119
- self.previous_uri = attributes[:'previousUri']
120
- end
121
-
122
118
  if attributes[:'nextUri']
123
119
  self.next_uri = attributes[:'nextUri']
124
120
  end
125
121
 
122
+ if attributes[:'previousUri']
123
+ self.previous_uri = attributes[:'previousUri']
124
+ end
125
+
126
126
  if attributes[:'lastUri']
127
127
  self.last_uri = attributes[:'lastUri']
128
128
  end
@@ -143,8 +143,8 @@ module PureCloud
143
143
  total == o.total &&
144
144
  self_uri == o.self_uri &&
145
145
  first_uri == o.first_uri &&
146
- previous_uri == o.previous_uri &&
147
146
  next_uri == o.next_uri &&
147
+ previous_uri == o.previous_uri &&
148
148
  last_uri == o.last_uri &&
149
149
  page_count == o.page_count
150
150
  end
@@ -156,7 +156,7 @@ module PureCloud
156
156
 
157
157
  # Calculate hash code according to all attributes.
158
158
  def hash
159
- [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
159
+ [entities, page_size, page_number, total, self_uri, first_uri, next_uri, previous_uri, last_uri, page_count].hash
160
160
  end
161
161
 
162
162
  # build the object from hash
@@ -30,10 +30,10 @@ module PureCloud
30
30
 
31
31
  attr_accessor :first_uri
32
32
 
33
- attr_accessor :previous_uri
34
-
35
33
  attr_accessor :next_uri
36
34
 
35
+ attr_accessor :previous_uri
36
+
37
37
  attr_accessor :last_uri
38
38
 
39
39
  attr_accessor :page_count
@@ -54,10 +54,10 @@ module PureCloud
54
54
 
55
55
  :'first_uri' => :'firstUri',
56
56
 
57
- :'previous_uri' => :'previousUri',
58
-
59
57
  :'next_uri' => :'nextUri',
60
58
 
59
+ :'previous_uri' => :'previousUri',
60
+
61
61
  :'last_uri' => :'lastUri',
62
62
 
63
63
  :'page_count' => :'pageCount'
@@ -74,8 +74,8 @@ module PureCloud
74
74
  :'total' => :'Integer',
75
75
  :'self_uri' => :'String',
76
76
  :'first_uri' => :'String',
77
- :'previous_uri' => :'String',
78
77
  :'next_uri' => :'String',
78
+ :'previous_uri' => :'String',
79
79
  :'last_uri' => :'String',
80
80
  :'page_count' => :'Integer'
81
81
 
@@ -115,14 +115,14 @@ module PureCloud
115
115
  self.first_uri = attributes[:'firstUri']
116
116
  end
117
117
 
118
- if attributes[:'previousUri']
119
- self.previous_uri = attributes[:'previousUri']
120
- end
121
-
122
118
  if attributes[:'nextUri']
123
119
  self.next_uri = attributes[:'nextUri']
124
120
  end
125
121
 
122
+ if attributes[:'previousUri']
123
+ self.previous_uri = attributes[:'previousUri']
124
+ end
125
+
126
126
  if attributes[:'lastUri']
127
127
  self.last_uri = attributes[:'lastUri']
128
128
  end
@@ -143,8 +143,8 @@ module PureCloud
143
143
  total == o.total &&
144
144
  self_uri == o.self_uri &&
145
145
  first_uri == o.first_uri &&
146
- previous_uri == o.previous_uri &&
147
146
  next_uri == o.next_uri &&
147
+ previous_uri == o.previous_uri &&
148
148
  last_uri == o.last_uri &&
149
149
  page_count == o.page_count
150
150
  end
@@ -156,7 +156,7 @@ module PureCloud
156
156
 
157
157
  # Calculate hash code according to all attributes.
158
158
  def hash
159
- [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
159
+ [entities, page_size, page_number, total, self_uri, first_uri, next_uri, previous_uri, last_uri, page_count].hash
160
160
  end
161
161
 
162
162
  # build the object from hash