purecloud 0.48.1 → 0.49.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (287) 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/AttributeEntityListing.html.md +1 -1
  6. data/doc_out/AvailableTopicEntityListing.html.md +1 -1
  7. data/doc_out/CalibrationEntityListing.html.md +1 -1
  8. data/doc_out/Call.html.md +1 -0
  9. data/doc_out/CallConversationEntityListing.html.md +1 -1
  10. data/doc_out/CallMediaParticipant.html.md +1 -0
  11. data/doc_out/CallableTimeSetEntityListing.html.md +1 -1
  12. data/doc_out/CallbackConversationEntityListing.html.md +1 -1
  13. data/doc_out/Campaign.html.md +1 -0
  14. data/doc_out/CampaignEntityListing.html.md +1 -1
  15. data/doc_out/CampaignSequenceEntityListing.html.md +1 -1
  16. data/doc_out/CertificateAuthorityEntityListing.html.md +1 -1
  17. data/doc_out/ChannelEntityListing.html.md +1 -1
  18. data/doc_out/ChannelTopicEntityListing.html.md +1 -1
  19. data/doc_out/ChatConversationEntityListing.html.md +1 -1
  20. data/doc_out/CommandStatusEntityListing.html.md +1 -1
  21. data/doc_out/ContactListEntityListing.html.md +1 -1
  22. data/doc_out/ConversationEntityListing.html.md +1 -1
  23. data/doc_out/CreateQueueRequest.html.md +33 -0
  24. data/doc_out/DID.html.md +1 -1
  25. data/doc_out/DIDEntityListing.html.md +1 -1
  26. data/doc_out/DIDPool.html.md +3 -3
  27. data/doc_out/DIDPoolEntityListing.html.md +1 -1
  28. data/doc_out/DialerContactEntityListing.html.md +1 -1
  29. data/doc_out/DncListEntityListing.html.md +1 -1
  30. data/doc_out/Document.html.md +1 -1
  31. data/doc_out/DocumentAuditEntityListing.html.md +1 -1
  32. data/doc_out/DocumentEntityListing.html.md +1 -1
  33. data/doc_out/DocumentThumbnail.html.md +2 -0
  34. data/doc_out/DomainCertificateAuthority.html.md +1 -1
  35. data/doc_out/DomainEntityListing.html.md +1 -1
  36. data/doc_out/DomainEntityListingEvaluationForm.html.md +1 -1
  37. data/doc_out/DomainEntityListingQueryResult.html.md +1 -1
  38. data/doc_out/DomainLogicalInterface.html.md +1 -1
  39. data/doc_out/DomainPhysicalInterface.html.md +10 -1
  40. data/doc_out/DomainSchemaReference.html.md +10 -1
  41. data/doc_out/DownloadResponse.html.md +1 -0
  42. data/doc_out/Edge.html.md +1 -1
  43. data/doc_out/EdgeEntityListing.html.md +1 -1
  44. data/doc_out/EdgeGroup.html.md +1 -1
  45. data/doc_out/EdgeGroupEntityListing.html.md +1 -1
  46. data/doc_out/EdgeLine.html.md +10 -1
  47. data/doc_out/EdgeLineEntityListing.html.md +1 -1
  48. data/doc_out/EdgeLogsJob.html.md +10 -1
  49. data/doc_out/EdgeLogsJobFile.html.md +10 -1
  50. data/doc_out/EdgeLogsJobResponse.html.md +10 -1
  51. data/doc_out/EdgeLogsJobUploadRequest.html.md +1 -1
  52. data/doc_out/EmailConversationEntityListing.html.md +1 -1
  53. data/doc_out/EmailMessageListing.html.md +1 -1
  54. data/doc_out/EncryptionKeyEntityListing.html.md +1 -1
  55. data/doc_out/EndpointEntityListing.html.md +1 -1
  56. data/doc_out/EvaluationEntityListing.html.md +1 -1
  57. data/doc_out/EvaluationFormEntityListing.html.md +1 -1
  58. data/doc_out/EvaluatorActivityEntityListing.html.md +1 -1
  59. data/doc_out/Extension.html.md +1 -1
  60. data/doc_out/ExtensionEntityListing.html.md +1 -1
  61. data/doc_out/ExtensionPool.html.md +1 -1
  62. data/doc_out/ExtensionPoolEntityListing.html.md +1 -1
  63. data/doc_out/FaxDocument.html.md +1 -1
  64. data/doc_out/FaxDocumentEntityListing.html.md +1 -1
  65. data/doc_out/FaxStatus.html.md +20 -0
  66. data/doc_out/GroupEntityListing.html.md +1 -1
  67. data/doc_out/InboundDomainEntityListing.html.md +1 -1
  68. data/doc_out/InboundRouteEntityListing.html.md +1 -1
  69. data/doc_out/InteractionStatsAlertContainer.html.md +1 -1
  70. data/doc_out/InteractionStatsRuleContainer.html.md +1 -1
  71. data/doc_out/JsonNode.html.md +2 -2
  72. data/doc_out/Keyword.html.md +3 -0
  73. data/doc_out/KeywordSetEntityListing.html.md +1 -1
  74. data/doc_out/LanguageEntityListing.html.md +1 -1
  75. data/doc_out/LibraryEntityListing.html.md +1 -1
  76. data/doc_out/Line.html.md +1 -1
  77. data/doc_out/LineBase.html.md +10 -1
  78. data/doc_out/LineBaseEntityListing.html.md +1 -1
  79. data/doc_out/LineEntityListing.html.md +1 -1
  80. data/doc_out/Location.html.md +1 -0
  81. data/doc_out/LogicalInterfaceEntityListing.html.md +1 -1
  82. data/doc_out/Metabase.html.md +9 -1
  83. data/doc_out/NumberPlan.html.md +2 -2
  84. data/doc_out/OAuthClientEntityListing.html.md +1 -1
  85. data/doc_out/OAuthProviderEntityListing.html.md +1 -1
  86. data/doc_out/OrganizationPresenceEntityListing.html.md +1 -1
  87. data/doc_out/OrganizationRoleEntityListing.html.md +1 -1
  88. data/doc_out/OrphanRecordingListing.html.md +1 -1
  89. data/doc_out/OutboundRoute.html.md +2 -2
  90. data/doc_out/OutboundRouteEntityListing.html.md +1 -1
  91. data/doc_out/PermissionCollectionEntityListing.html.md +1 -1
  92. data/doc_out/Phone.html.md +2 -2
  93. data/doc_out/PhoneBase.html.md +12 -3
  94. data/doc_out/PhoneBaseEntityListing.html.md +1 -1
  95. data/doc_out/PhoneEntityListing.html.md +1 -1
  96. data/doc_out/PhoneMetaBaseEntityListing.html.md +1 -1
  97. data/doc_out/PhysicalInterfaceEntityListing.html.md +1 -1
  98. data/doc_out/PolicyEntityListing.html.md +1 -1
  99. data/doc_out/QualityApi.html.md +58 -0
  100. data/doc_out/QualityAuditPage.html.md +1 -1
  101. data/doc_out/Queue.html.md +7 -7
  102. data/doc_out/QueueEntityListing.html.md +1 -1
  103. data/doc_out/ReportMetaDataEntityListing.html.md +1 -1
  104. data/doc_out/ReportRunEntryEntityDomainListing.html.md +1 -1
  105. data/doc_out/ReportScheduleEntityListing.html.md +1 -1
  106. data/doc_out/ResponseEntityList.html.md +1 -1
  107. data/doc_out/ResponseEntityListing.html.md +1 -1
  108. data/doc_out/ResponseSetEntityListing.html.md +1 -1
  109. data/doc_out/RoutingApi.html.md +2 -2
  110. data/doc_out/RuleSetEntityListing.html.md +1 -1
  111. data/doc_out/SchemaCategory.html.md +10 -1
  112. data/doc_out/SchemaCategoryEntityListing.html.md +1 -1
  113. data/doc_out/SchemaReferenceEntityListing.html.md +1 -1
  114. data/doc_out/SecurityProfileEntityListing.html.md +1 -1
  115. data/doc_out/ShareEntityListing.html.md +1 -1
  116. data/doc_out/Site.html.md +1 -1
  117. data/doc_out/SiteEntityListing.html.md +1 -1
  118. data/doc_out/SkillEntityListing.html.md +1 -1
  119. data/doc_out/StationEntityListing.html.md +1 -1
  120. data/doc_out/TagValueEntityListing.html.md +1 -1
  121. data/doc_out/TelephonyProvidersEdgeApi.html.md +4 -0
  122. data/doc_out/TimeZoneEntityListing.html.md +1 -1
  123. data/doc_out/Trunk.html.md +1 -1
  124. data/doc_out/TrunkBase.html.md +1 -1
  125. data/doc_out/TrunkEntityListing.html.md +1 -1
  126. data/doc_out/TrunkMetabaseEntityListing.html.md +1 -1
  127. data/doc_out/User.html.md +1 -0
  128. data/doc_out/UserEntityListing.html.md +1 -1
  129. data/doc_out/UserMe.html.md +1 -0
  130. data/doc_out/UserQueue.html.md +7 -7
  131. data/doc_out/UserQueueEntityListing.html.md +1 -1
  132. data/doc_out/UserRecordingEntityListing.html.md +1 -1
  133. data/doc_out/UserSkillEntityListing.html.md +1 -1
  134. data/doc_out/UsersEntityListing.html.md +1 -1
  135. data/doc_out/ValidateAddressRequest.html.md +1 -1
  136. data/doc_out/WorkspaceEntityListing.html.md +1 -1
  137. data/doc_out/WorkspaceMemberEntityListing.html.md +1 -1
  138. data/doc_out/WrapupCodeEntityListing.html.md +1 -1
  139. data/doc_out/index.html.md +3 -3
  140. data/lib/purecloud.rb +2 -0
  141. data/lib/purecloud/api/quality_api.rb +57 -0
  142. data/lib/purecloud/api/telephony_providers_edge_api.rb +6 -0
  143. data/lib/purecloud/api_client.rb +1 -1
  144. data/lib/purecloud/models/agent_activity_entity_listing.rb +11 -11
  145. data/lib/purecloud/models/attribute_entity_listing.rb +11 -11
  146. data/lib/purecloud/models/available_topic_entity_listing.rb +11 -11
  147. data/lib/purecloud/models/calibration_entity_listing.rb +11 -11
  148. data/lib/purecloud/models/call.rb +15 -5
  149. data/lib/purecloud/models/call_conversation_entity_listing.rb +11 -11
  150. data/lib/purecloud/models/call_media_participant.rb +13 -2
  151. data/lib/purecloud/models/callable_time_set_entity_listing.rb +11 -11
  152. data/lib/purecloud/models/callback.rb +1 -1
  153. data/lib/purecloud/models/callback_conversation_entity_listing.rb +11 -11
  154. data/lib/purecloud/models/callback_media_participant.rb +1 -1
  155. data/lib/purecloud/models/campaign.rb +12 -1
  156. data/lib/purecloud/models/campaign_entity_listing.rb +11 -11
  157. data/lib/purecloud/models/campaign_sequence_entity_listing.rb +11 -11
  158. data/lib/purecloud/models/certificate_authority_entity_listing.rb +11 -11
  159. data/lib/purecloud/models/channel_entity_listing.rb +11 -11
  160. data/lib/purecloud/models/channel_topic_entity_listing.rb +11 -11
  161. data/lib/purecloud/models/chat_conversation_entity_listing.rb +11 -11
  162. data/lib/purecloud/models/chat_media_participant.rb +1 -1
  163. data/lib/purecloud/models/command_status_entity_listing.rb +11 -11
  164. data/lib/purecloud/models/contact_list_entity_listing.rb +11 -11
  165. data/lib/purecloud/models/conversation_entity_listing.rb +11 -11
  166. data/lib/purecloud/models/create_queue_request.rb +397 -0
  167. data/lib/purecloud/models/dialer_contact_entity_listing.rb +11 -11
  168. data/lib/purecloud/models/did.rb +1 -0
  169. data/lib/purecloud/models/did_entity_listing.rb +11 -11
  170. data/lib/purecloud/models/did_pool.rb +1 -0
  171. data/lib/purecloud/models/did_pool_entity_listing.rb +11 -11
  172. data/lib/purecloud/models/dnc_list_entity_listing.rb +11 -11
  173. data/lib/purecloud/models/document.rb +11 -11
  174. data/lib/purecloud/models/document_audit_entity_listing.rb +11 -11
  175. data/lib/purecloud/models/document_entity_listing.rb +11 -11
  176. data/lib/purecloud/models/document_thumbnail.rb +24 -4
  177. data/lib/purecloud/models/domain_certificate_authority.rb +1 -0
  178. data/lib/purecloud/models/domain_entity_listing.rb +11 -11
  179. data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +11 -11
  180. data/lib/purecloud/models/domain_entity_listing_query_result.rb +11 -11
  181. data/lib/purecloud/models/domain_logical_interface.rb +1 -0
  182. data/lib/purecloud/models/domain_physical_interface.rb +103 -1
  183. data/lib/purecloud/models/domain_schema_reference.rb +103 -1
  184. data/lib/purecloud/models/download_response.rb +16 -4
  185. data/lib/purecloud/models/edge.rb +1 -0
  186. data/lib/purecloud/models/edge_entity_listing.rb +11 -11
  187. data/lib/purecloud/models/edge_group.rb +1 -0
  188. data/lib/purecloud/models/edge_group_entity_listing.rb +11 -11
  189. data/lib/purecloud/models/edge_line.rb +103 -1
  190. data/lib/purecloud/models/edge_line_entity_listing.rb +11 -11
  191. data/lib/purecloud/models/edge_logs_job.rb +103 -1
  192. data/lib/purecloud/models/edge_logs_job_file.rb +103 -1
  193. data/lib/purecloud/models/edge_logs_job_response.rb +103 -1
  194. data/lib/purecloud/models/edge_logs_job_upload_request.rb +1 -0
  195. data/lib/purecloud/models/email.rb +1 -1
  196. data/lib/purecloud/models/email_conversation_entity_listing.rb +11 -11
  197. data/lib/purecloud/models/email_media_participant.rb +1 -1
  198. data/lib/purecloud/models/email_message_listing.rb +11 -11
  199. data/lib/purecloud/models/encryption_key_entity_listing.rb +11 -11
  200. data/lib/purecloud/models/endpoint_entity_listing.rb +11 -11
  201. data/lib/purecloud/models/evaluation_entity_listing.rb +11 -11
  202. data/lib/purecloud/models/evaluation_form_entity_listing.rb +11 -11
  203. data/lib/purecloud/models/evaluator_activity_entity_listing.rb +11 -11
  204. data/lib/purecloud/models/extension.rb +1 -0
  205. data/lib/purecloud/models/extension_entity_listing.rb +11 -11
  206. data/lib/purecloud/models/extension_pool.rb +1 -0
  207. data/lib/purecloud/models/extension_pool_entity_listing.rb +11 -11
  208. data/lib/purecloud/models/fax_document.rb +11 -11
  209. data/lib/purecloud/models/fax_document_entity_listing.rb +11 -11
  210. data/lib/purecloud/models/fax_status.rb +235 -0
  211. data/lib/purecloud/models/group_entity_listing.rb +11 -11
  212. data/lib/purecloud/models/inbound_domain_entity_listing.rb +11 -11
  213. data/lib/purecloud/models/inbound_route_entity_listing.rb +11 -11
  214. data/lib/purecloud/models/interaction_stats_alert_container.rb +11 -11
  215. data/lib/purecloud/models/interaction_stats_rule_container.rb +11 -11
  216. data/lib/purecloud/models/json_node.rb +25 -25
  217. data/lib/purecloud/models/keyword.rb +34 -4
  218. data/lib/purecloud/models/keyword_set_entity_listing.rb +11 -11
  219. data/lib/purecloud/models/language_entity_listing.rb +11 -11
  220. data/lib/purecloud/models/library_entity_listing.rb +11 -11
  221. data/lib/purecloud/models/line.rb +1 -0
  222. data/lib/purecloud/models/line_base.rb +103 -1
  223. data/lib/purecloud/models/line_base_entity_listing.rb +11 -11
  224. data/lib/purecloud/models/line_entity_listing.rb +11 -11
  225. data/lib/purecloud/models/location.rb +13 -1
  226. data/lib/purecloud/models/logical_interface_entity_listing.rb +11 -11
  227. data/lib/purecloud/models/metabase.rb +93 -1
  228. data/lib/purecloud/models/number_plan.rb +1 -10
  229. data/lib/purecloud/models/o_auth_client_entity_listing.rb +11 -11
  230. data/lib/purecloud/models/o_auth_provider_entity_listing.rb +11 -11
  231. data/lib/purecloud/models/organization_presence_entity_listing.rb +11 -11
  232. data/lib/purecloud/models/organization_role_entity_listing.rb +11 -11
  233. data/lib/purecloud/models/orphan_recording_listing.rb +11 -11
  234. data/lib/purecloud/models/outbound_route.rb +2 -1
  235. data/lib/purecloud/models/outbound_route_entity_listing.rb +11 -11
  236. data/lib/purecloud/models/permission_collection_entity_listing.rb +11 -11
  237. data/lib/purecloud/models/phone.rb +2 -1
  238. data/lib/purecloud/models/phone_base.rb +105 -3
  239. data/lib/purecloud/models/phone_base_entity_listing.rb +11 -11
  240. data/lib/purecloud/models/phone_entity_listing.rb +11 -11
  241. data/lib/purecloud/models/phone_meta_base_entity_listing.rb +11 -11
  242. data/lib/purecloud/models/physical_interface_entity_listing.rb +11 -11
  243. data/lib/purecloud/models/policy_entity_listing.rb +11 -11
  244. data/lib/purecloud/models/quality_audit_page.rb +11 -11
  245. data/lib/purecloud/models/queue.rb +7 -0
  246. data/lib/purecloud/models/queue_entity_listing.rb +11 -11
  247. data/lib/purecloud/models/report_meta_data_entity_listing.rb +11 -11
  248. data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +11 -11
  249. data/lib/purecloud/models/report_schedule_entity_listing.rb +11 -11
  250. data/lib/purecloud/models/response_entity_list.rb +11 -11
  251. data/lib/purecloud/models/response_entity_listing.rb +11 -11
  252. data/lib/purecloud/models/response_set_entity_listing.rb +11 -11
  253. data/lib/purecloud/models/rule_set_entity_listing.rb +11 -11
  254. data/lib/purecloud/models/schema_category.rb +103 -1
  255. data/lib/purecloud/models/schema_category_entity_listing.rb +11 -11
  256. data/lib/purecloud/models/schema_reference_entity_listing.rb +11 -11
  257. data/lib/purecloud/models/security_profile_entity_listing.rb +11 -11
  258. data/lib/purecloud/models/share_entity_listing.rb +11 -11
  259. data/lib/purecloud/models/site.rb +1 -0
  260. data/lib/purecloud/models/site_entity_listing.rb +11 -11
  261. data/lib/purecloud/models/skill_entity_listing.rb +11 -11
  262. data/lib/purecloud/models/social_expression.rb +1 -1
  263. data/lib/purecloud/models/station_entity_listing.rb +11 -11
  264. data/lib/purecloud/models/tag_value_entity_listing.rb +11 -11
  265. data/lib/purecloud/models/time_zone_entity_listing.rb +11 -11
  266. data/lib/purecloud/models/trunk.rb +1 -0
  267. data/lib/purecloud/models/trunk_base.rb +1 -0
  268. data/lib/purecloud/models/trunk_entity_listing.rb +11 -11
  269. data/lib/purecloud/models/trunk_metabase_entity_listing.rb +11 -11
  270. data/lib/purecloud/models/user.rb +14 -1
  271. data/lib/purecloud/models/user_entity_listing.rb +11 -11
  272. data/lib/purecloud/models/user_me.rb +14 -1
  273. data/lib/purecloud/models/user_queue.rb +7 -0
  274. data/lib/purecloud/models/user_queue_entity_listing.rb +11 -11
  275. data/lib/purecloud/models/user_recording_entity_listing.rb +11 -11
  276. data/lib/purecloud/models/user_skill_entity_listing.rb +11 -11
  277. data/lib/purecloud/models/users_entity_listing.rb +11 -11
  278. data/lib/purecloud/models/validate_address_request.rb +1 -0
  279. data/lib/purecloud/models/video.rb +1 -1
  280. data/lib/purecloud/models/workspace_entity_listing.rb +11 -11
  281. data/lib/purecloud/models/workspace_member_entity_listing.rb +11 -11
  282. data/lib/purecloud/models/wrapup_code_entity_listing.rb +11 -11
  283. data/lib/purecloud/version.rb +1 -1
  284. data/newVersion.md +1 -1
  285. data/swagger.json +1 -1
  286. data/version.json +1 -1
  287. metadata +6 -2
@@ -0,0 +1,397 @@
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 CreateQueueRequest
21
+ # The globally unique identifier for the object.
22
+ attr_accessor :id
23
+
24
+ attr_accessor :name
25
+
26
+ attr_accessor :description
27
+
28
+ attr_accessor :version
29
+
30
+ # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
31
+ attr_accessor :date_created
32
+
33
+ # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
34
+ attr_accessor :date_modified
35
+
36
+ attr_accessor :modified_by
37
+
38
+ attr_accessor :created_by
39
+
40
+ attr_accessor :state
41
+
42
+ attr_accessor :modified_by_app
43
+
44
+ attr_accessor :created_by_app
45
+
46
+ # The media settings for the queue.
47
+ attr_accessor :media_settings
48
+
49
+ # The bulls-eye settings for the queue.
50
+ attr_accessor :bullseye
51
+
52
+ # The ACW settings for the queue.
53
+ attr_accessor :acw_settings
54
+
55
+ # The skill evaluation method to use when routing conversations.
56
+ attr_accessor :skill_evaluation_method
57
+
58
+ # The in-queue flow to use for conversations waiting in queue.
59
+ attr_accessor :queue_flow
60
+
61
+ # The name to use for caller identification for outbound calls from this queue.
62
+ attr_accessor :calling_party_name
63
+
64
+ # The phone number to use for caller identification for outbound calls from this queue.
65
+ attr_accessor :calling_party_number
66
+
67
+ # The id of an existing queue to copy the settings from when creating a new queue.
68
+ attr_accessor :source_queue_id
69
+
70
+ attr_accessor :member_count
71
+
72
+ # The URI for this object
73
+ attr_accessor :self_uri
74
+
75
+ # Attribute mapping from ruby-style variable name to JSON key.
76
+ def self.attribute_map
77
+ {
78
+
79
+ :'id' => :'id',
80
+
81
+ :'name' => :'name',
82
+
83
+ :'description' => :'description',
84
+
85
+ :'version' => :'version',
86
+
87
+ :'date_created' => :'dateCreated',
88
+
89
+ :'date_modified' => :'dateModified',
90
+
91
+ :'modified_by' => :'modifiedBy',
92
+
93
+ :'created_by' => :'createdBy',
94
+
95
+ :'state' => :'state',
96
+
97
+ :'modified_by_app' => :'modifiedByApp',
98
+
99
+ :'created_by_app' => :'createdByApp',
100
+
101
+ :'media_settings' => :'mediaSettings',
102
+
103
+ :'bullseye' => :'bullseye',
104
+
105
+ :'acw_settings' => :'acwSettings',
106
+
107
+ :'skill_evaluation_method' => :'skillEvaluationMethod',
108
+
109
+ :'queue_flow' => :'queueFlow',
110
+
111
+ :'calling_party_name' => :'callingPartyName',
112
+
113
+ :'calling_party_number' => :'callingPartyNumber',
114
+
115
+ :'source_queue_id' => :'sourceQueueId',
116
+
117
+ :'member_count' => :'memberCount',
118
+
119
+ :'self_uri' => :'selfUri'
120
+
121
+ }
122
+ end
123
+
124
+ # Attribute type mapping.
125
+ def self.swagger_types
126
+ {
127
+ :'id' => :'String',
128
+ :'name' => :'String',
129
+ :'description' => :'String',
130
+ :'version' => :'Integer',
131
+ :'date_created' => :'DateTime',
132
+ :'date_modified' => :'DateTime',
133
+ :'modified_by' => :'String',
134
+ :'created_by' => :'String',
135
+ :'state' => :'String',
136
+ :'modified_by_app' => :'String',
137
+ :'created_by_app' => :'String',
138
+ :'media_settings' => :'Hash<String, MediaSetting>',
139
+ :'bullseye' => :'Bullseye',
140
+ :'acw_settings' => :'AcwSettings',
141
+ :'skill_evaluation_method' => :'String',
142
+ :'queue_flow' => :'UriReference',
143
+ :'calling_party_name' => :'String',
144
+ :'calling_party_number' => :'String',
145
+ :'source_queue_id' => :'String',
146
+ :'member_count' => :'Integer',
147
+ :'self_uri' => :'String'
148
+
149
+ }
150
+ end
151
+
152
+ def initialize(attributes = {})
153
+ return unless attributes.is_a?(Hash)
154
+
155
+ # convert string to symbol for hash key
156
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
157
+
158
+
159
+ if attributes[:'id']
160
+ self.id = attributes[:'id']
161
+ end
162
+
163
+ if attributes[:'name']
164
+ self.name = attributes[:'name']
165
+ end
166
+
167
+ if attributes[:'description']
168
+ self.description = attributes[:'description']
169
+ end
170
+
171
+ if attributes[:'version']
172
+ self.version = attributes[:'version']
173
+ end
174
+
175
+ if attributes[:'dateCreated']
176
+ self.date_created = attributes[:'dateCreated']
177
+ end
178
+
179
+ if attributes[:'dateModified']
180
+ self.date_modified = attributes[:'dateModified']
181
+ end
182
+
183
+ if attributes[:'modifiedBy']
184
+ self.modified_by = attributes[:'modifiedBy']
185
+ end
186
+
187
+ if attributes[:'createdBy']
188
+ self.created_by = attributes[:'createdBy']
189
+ end
190
+
191
+ if attributes[:'state']
192
+ self.state = attributes[:'state']
193
+ end
194
+
195
+ if attributes[:'modifiedByApp']
196
+ self.modified_by_app = attributes[:'modifiedByApp']
197
+ end
198
+
199
+ if attributes[:'createdByApp']
200
+ self.created_by_app = attributes[:'createdByApp']
201
+ end
202
+
203
+ if attributes[:'mediaSettings']
204
+ if (value = attributes[:'mediaSettings']).is_a?(Array)
205
+ self.media_settings = value
206
+ end
207
+ end
208
+
209
+ if attributes[:'bullseye']
210
+ self.bullseye = attributes[:'bullseye']
211
+ end
212
+
213
+ if attributes[:'acwSettings']
214
+ self.acw_settings = attributes[:'acwSettings']
215
+ end
216
+
217
+ if attributes[:'skillEvaluationMethod']
218
+ self.skill_evaluation_method = attributes[:'skillEvaluationMethod']
219
+ end
220
+
221
+ if attributes[:'queueFlow']
222
+ self.queue_flow = attributes[:'queueFlow']
223
+ end
224
+
225
+ if attributes[:'callingPartyName']
226
+ self.calling_party_name = attributes[:'callingPartyName']
227
+ end
228
+
229
+ if attributes[:'callingPartyNumber']
230
+ self.calling_party_number = attributes[:'callingPartyNumber']
231
+ end
232
+
233
+ if attributes[:'sourceQueueId']
234
+ self.source_queue_id = attributes[:'sourceQueueId']
235
+ end
236
+
237
+ if attributes[:'memberCount']
238
+ self.member_count = attributes[:'memberCount']
239
+ end
240
+
241
+ if attributes[:'selfUri']
242
+ self.self_uri = attributes[:'selfUri']
243
+ end
244
+
245
+ end
246
+
247
+ # Custom attribute writer method checking allowed values (enum).
248
+ def state=(state)
249
+ allowed_values = ["active", "inactive", "deleted"]
250
+ if state && !allowed_values.include?(state)
251
+ fail "invalid value for 'state', must be one of #{allowed_values}"
252
+ end
253
+ @state = state
254
+ end
255
+
256
+ # Custom attribute writer method checking allowed values (enum).
257
+ def skill_evaluation_method=(skill_evaluation_method)
258
+ allowed_values = ["NONE", "BEST", "ALL"]
259
+ if skill_evaluation_method && !allowed_values.include?(skill_evaluation_method)
260
+ fail "invalid value for 'skill_evaluation_method', must be one of #{allowed_values}"
261
+ end
262
+ @skill_evaluation_method = skill_evaluation_method
263
+ end
264
+
265
+ # Check equality by comparing each attribute.
266
+ def ==(o)
267
+ return true if self.equal?(o)
268
+ self.class == o.class &&
269
+ id == o.id &&
270
+ name == o.name &&
271
+ description == o.description &&
272
+ version == o.version &&
273
+ date_created == o.date_created &&
274
+ date_modified == o.date_modified &&
275
+ modified_by == o.modified_by &&
276
+ created_by == o.created_by &&
277
+ state == o.state &&
278
+ modified_by_app == o.modified_by_app &&
279
+ created_by_app == o.created_by_app &&
280
+ media_settings == o.media_settings &&
281
+ bullseye == o.bullseye &&
282
+ acw_settings == o.acw_settings &&
283
+ skill_evaluation_method == o.skill_evaluation_method &&
284
+ queue_flow == o.queue_flow &&
285
+ calling_party_name == o.calling_party_name &&
286
+ calling_party_number == o.calling_party_number &&
287
+ source_queue_id == o.source_queue_id &&
288
+ member_count == o.member_count &&
289
+ self_uri == o.self_uri
290
+ end
291
+
292
+ # @see the `==` method
293
+ def eql?(o)
294
+ self == o
295
+ end
296
+
297
+ # Calculate hash code according to all attributes.
298
+ def hash
299
+ [id, name, description, version, date_created, date_modified, modified_by, created_by, state, modified_by_app, created_by_app, media_settings, bullseye, acw_settings, skill_evaluation_method, queue_flow, calling_party_name, calling_party_number, source_queue_id, member_count, self_uri].hash
300
+ end
301
+
302
+ # build the object from hash
303
+ def build_from_hash(attributes)
304
+ return nil unless attributes.is_a?(Hash)
305
+ self.class.swagger_types.each_pair do |key, type|
306
+ if type =~ /^Array<(.*)>/i
307
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
308
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
309
+ else
310
+ #TODO show warning in debug mode
311
+ end
312
+ elsif !attributes[self.class.attribute_map[key]].nil?
313
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
314
+ else
315
+ # data not found in attributes(hash), not an issue as the data can be optional
316
+ end
317
+ end
318
+
319
+ self
320
+ end
321
+
322
+ def _deserialize(type, value)
323
+ case type.to_sym
324
+ when :DateTime
325
+ DateTime.parse(value)
326
+ when :Date
327
+ Date.parse(value)
328
+ when :String
329
+ value.to_s
330
+ when :Integer
331
+ value.to_i
332
+ when :Float
333
+ value.to_f
334
+ when :BOOLEAN
335
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
336
+ true
337
+ else
338
+ false
339
+ end
340
+ when :Object
341
+ # generic object (usually a Hash), return directly
342
+ value
343
+ when /\AArray<(?<inner_type>.+)>\z/
344
+ inner_type = Regexp.last_match[:inner_type]
345
+ value.map { |v| _deserialize(inner_type, v) }
346
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
347
+ k_type = Regexp.last_match[:k_type]
348
+ v_type = Regexp.last_match[:v_type]
349
+ {}.tap do |hash|
350
+ value.each do |k, v|
351
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
352
+ end
353
+ end
354
+ else # model
355
+ _model = Object.const_get("PureCloud").const_get(type).new
356
+ _model.build_from_hash(value)
357
+ end
358
+ end
359
+
360
+ def to_s
361
+ to_hash.to_s
362
+ end
363
+
364
+ # to_body is an alias to to_body (backward compatibility))
365
+ def to_body
366
+ to_hash
367
+ end
368
+
369
+ # return the object in the form of hash
370
+ def to_hash
371
+ hash = {}
372
+ self.class.attribute_map.each_pair do |attr, param|
373
+ value = self.send(attr)
374
+ next if value.nil?
375
+ hash[param] = _to_hash(value)
376
+ end
377
+ hash
378
+ end
379
+
380
+ # Method to output non-array value in the form of hash
381
+ # For object, use to_hash. Otherwise, just return the value
382
+ def _to_hash(value)
383
+ if value.is_a?(Array)
384
+ value.compact.map{ |v| _to_hash(v) }
385
+ elsif value.is_a?(Hash)
386
+ {}.tap do |hash|
387
+ value.each { |k, v| hash[k] = _to_hash(v) }
388
+ end
389
+ elsif value.respond_to? :to_hash
390
+ value.to_hash
391
+ else
392
+ value
393
+ end
394
+ end
395
+
396
+ end
397
+ end
@@ -32,10 +32,10 @@ module PureCloud
32
32
 
33
33
  attr_accessor :previous_uri
34
34
 
35
- attr_accessor :last_uri
36
-
37
35
  attr_accessor :next_uri
38
36
 
37
+ attr_accessor :last_uri
38
+
39
39
  attr_accessor :page_count
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -56,10 +56,10 @@ module PureCloud
56
56
 
57
57
  :'previous_uri' => :'previousUri',
58
58
 
59
- :'last_uri' => :'lastUri',
60
-
61
59
  :'next_uri' => :'nextUri',
62
60
 
61
+ :'last_uri' => :'lastUri',
62
+
63
63
  :'page_count' => :'pageCount'
64
64
 
65
65
  }
@@ -75,8 +75,8 @@ module PureCloud
75
75
  :'self_uri' => :'String',
76
76
  :'first_uri' => :'String',
77
77
  :'previous_uri' => :'String',
78
- :'last_uri' => :'String',
79
78
  :'next_uri' => :'String',
79
+ :'last_uri' => :'String',
80
80
  :'page_count' => :'Integer'
81
81
 
82
82
  }
@@ -119,14 +119,14 @@ module PureCloud
119
119
  self.previous_uri = attributes[:'previousUri']
120
120
  end
121
121
 
122
- if attributes[:'lastUri']
123
- self.last_uri = attributes[:'lastUri']
124
- end
125
-
126
122
  if attributes[:'nextUri']
127
123
  self.next_uri = attributes[:'nextUri']
128
124
  end
129
125
 
126
+ if attributes[:'lastUri']
127
+ self.last_uri = attributes[:'lastUri']
128
+ end
129
+
130
130
  if attributes[:'pageCount']
131
131
  self.page_count = attributes[:'pageCount']
132
132
  end
@@ -144,8 +144,8 @@ module PureCloud
144
144
  self_uri == o.self_uri &&
145
145
  first_uri == o.first_uri &&
146
146
  previous_uri == o.previous_uri &&
147
- last_uri == o.last_uri &&
148
147
  next_uri == o.next_uri &&
148
+ last_uri == o.last_uri &&
149
149
  page_count == o.page_count
150
150
  end
151
151
 
@@ -156,7 +156,7 @@ module PureCloud
156
156
 
157
157
  # Calculate hash code according to all attributes.
158
158
  def hash
159
- [page_size, page_number, total, entities, self_uri, first_uri, previous_uri, last_uri, next_uri, page_count].hash
159
+ [page_size, page_number, total, entities, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
160
160
  end
161
161
 
162
162
  # build the object from hash