purecloud 0.66.1 → 0.67.1

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 (278) 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 +3 -3
  5. data/doc_out/AttemptLimitsEntityListing.html.md +3 -3
  6. data/doc_out/AttributeEntityListing.html.md +3 -3
  7. data/doc_out/CalibrationEntityListing.html.md +3 -3
  8. data/doc_out/CallConversationEntityListing.html.md +3 -3
  9. data/doc_out/CallableTimeSetEntityListing.html.md +3 -3
  10. data/doc_out/CallbackConversationEntityListing.html.md +3 -3
  11. data/doc_out/CampaignEntityListing.html.md +3 -3
  12. data/doc_out/CampaignInteractions.html.md +1 -0
  13. data/doc_out/CampaignRuleEntityListing.html.md +3 -3
  14. data/doc_out/CampaignSequenceEntityListing.html.md +3 -3
  15. data/doc_out/CertificateAuthorityEntityListing.html.md +3 -3
  16. data/doc_out/ChannelEntityListing.html.md +3 -3
  17. data/doc_out/ChatConversationEntityListing.html.md +3 -3
  18. data/doc_out/CobrowseConversationEntityListing.html.md +3 -3
  19. data/doc_out/CommandStatusEntityListing.html.md +3 -3
  20. data/doc_out/ContactListEntityListing.html.md +3 -3
  21. data/doc_out/ContentManagementApi.html.md +4 -3
  22. data/doc_out/ConversationEntityListing.html.md +3 -3
  23. data/doc_out/ConversationsApi.html.md +20 -15
  24. data/doc_out/DIDEntityListing.html.md +3 -3
  25. data/doc_out/DIDPoolEntityListing.html.md +3 -3
  26. data/doc_out/DecisionsFileMetadataEntityListing.html.md +3 -3
  27. data/doc_out/DncListEntityListing.html.md +3 -3
  28. data/doc_out/Document.html.md +1 -1
  29. data/doc_out/DocumentAuditEntityListing.html.md +3 -3
  30. data/doc_out/DocumentEntityListing.html.md +3 -3
  31. data/doc_out/DomainEdgeSoftwareVersionDtoEntityListing.html.md +3 -3
  32. data/doc_out/DomainEntityListing.html.md +3 -3
  33. data/doc_out/DomainEntityListingEvaluationForm.html.md +3 -3
  34. data/doc_out/DomainEntityListingQueryResult.html.md +3 -3
  35. data/doc_out/EdgeEntityListing.html.md +3 -3
  36. data/doc_out/EdgeGroupEntityListing.html.md +3 -3
  37. data/doc_out/EdgeLineEntityListing.html.md +3 -3
  38. data/doc_out/EdgeMetrics.html.md +20 -0
  39. data/doc_out/EdgeMetricsDisk.html.md +15 -0
  40. data/doc_out/EdgeMetricsMemory.html.md +15 -0
  41. data/doc_out/EdgeMetricsNetwork.html.md +17 -0
  42. data/doc_out/EdgeMetricsProcessor.html.md +17 -0
  43. data/doc_out/EdgeMetricsSubsystem.html.md +15 -0
  44. data/doc_out/EmailConversationEntityListing.html.md +3 -3
  45. data/doc_out/EmailMessageListing.html.md +3 -3
  46. data/doc_out/Empty.html.md +12 -0
  47. data/doc_out/EncryptionKeyEntityListing.html.md +3 -3
  48. data/doc_out/EndpointEntityListing.html.md +3 -3
  49. data/doc_out/EvaluationEntityListing.html.md +3 -3
  50. data/doc_out/EvaluationFormEntityListing.html.md +3 -3
  51. data/doc_out/EvaluatorActivityEntityListing.html.md +3 -3
  52. data/doc_out/ExtensionEntityListing.html.md +3 -3
  53. data/doc_out/ExtensionPoolEntityListing.html.md +3 -3
  54. data/doc_out/FaxDocument.html.md +1 -1
  55. data/doc_out/FaxDocumentEntityListing.html.md +3 -3
  56. data/doc_out/FieldConfigs.html.md +16 -0
  57. data/doc_out/GreetingListing.html.md +3 -3
  58. data/doc_out/Group.html.md +1 -1
  59. data/doc_out/GroupContact.html.md +16 -0
  60. data/doc_out/GroupEntityListing.html.md +3 -3
  61. data/doc_out/GroupUpdate.html.md +1 -1
  62. data/doc_out/GroupsApi.html.md +8 -6
  63. data/doc_out/HeartBeatAlertContainer.html.md +3 -3
  64. data/doc_out/HeartBeatRuleContainer.html.md +3 -3
  65. data/doc_out/InboundDomainEntityListing.html.md +3 -3
  66. data/doc_out/InboundRouteEntityListing.html.md +3 -3
  67. data/doc_out/InteractionStatsAlertContainer.html.md +3 -3
  68. data/doc_out/InteractionStatsRuleContainer.html.md +3 -3
  69. data/doc_out/KeywordSetEntityListing.html.md +3 -3
  70. data/doc_out/LanguageEntityListing.html.md +3 -3
  71. data/doc_out/LibraryEntityListing.html.md +3 -3
  72. data/doc_out/LineBaseEntityListing.html.md +3 -3
  73. data/doc_out/LineEntityListing.html.md +3 -3
  74. data/doc_out/LocalEncryptionConfigurationListing.html.md +3 -3
  75. data/doc_out/LogicalInterfaceEntityListing.html.md +3 -3
  76. data/doc_out/OAuthClientEntityListing.html.md +3 -3
  77. data/doc_out/OAuthProviderEntityListing.html.md +3 -3
  78. data/doc_out/OrganizationPresenceEntityListing.html.md +3 -3
  79. data/doc_out/OrganizationRoleEntityListing.html.md +3 -3
  80. data/doc_out/OrphanRecordingListing.html.md +3 -3
  81. data/doc_out/OutboundApi.html.md +3 -4
  82. data/doc_out/OutboundRouteBaseEntityListing.html.md +3 -3
  83. data/doc_out/OutboundRouteEntityListing.html.md +3 -3
  84. data/doc_out/PermissionCollectionEntityListing.html.md +3 -3
  85. data/doc_out/PhoneBaseEntityListing.html.md +3 -3
  86. data/doc_out/PhoneEntityListing.html.md +3 -3
  87. data/doc_out/PhoneMetaBaseEntityListing.html.md +3 -3
  88. data/doc_out/PhysicalInterfaceEntityListing.html.md +3 -3
  89. data/doc_out/PolicyEntityListing.html.md +3 -3
  90. data/doc_out/QualityAuditPage.html.md +3 -3
  91. data/doc_out/QueueEntityListing.html.md +3 -3
  92. data/doc_out/QueueMemberEntityListing.html.md +3 -3
  93. data/doc_out/ReportMetaDataEntityListing.html.md +3 -3
  94. data/doc_out/ReportRunEntryEntityDomainListing.html.md +3 -3
  95. data/doc_out/ReportScheduleEntityListing.html.md +3 -3
  96. data/doc_out/ResponseEntityList.html.md +3 -3
  97. data/doc_out/ResponseEntityListing.html.md +3 -3
  98. data/doc_out/ResponseSetEntityListing.html.md +3 -3
  99. data/doc_out/RoutingStatusAlertContainer.html.md +3 -3
  100. data/doc_out/RoutingStatusRuleContainer.html.md +3 -3
  101. data/doc_out/RuleSetEntityListing.html.md +3 -3
  102. data/doc_out/SchemaCategoryEntityListing.html.md +3 -3
  103. data/doc_out/SchemaReferenceEntityListing.html.md +3 -3
  104. data/doc_out/ScreenRecordingSessionListing.html.md +3 -3
  105. data/doc_out/ScriptEntityListing.html.md +3 -3
  106. data/doc_out/SecurityProfileEntityListing.html.md +3 -3
  107. data/doc_out/ShareEntityListing.html.md +3 -3
  108. data/doc_out/SharedResponse.html.md +17 -0
  109. data/doc_out/SiteEntityListing.html.md +3 -3
  110. data/doc_out/SkillEntityListing.html.md +3 -3
  111. data/doc_out/StationEntityListing.html.md +3 -3
  112. data/doc_out/TagValueEntityListing.html.md +3 -3
  113. data/doc_out/TelephonyProvidersEdgeApi.html.md +117 -1
  114. data/doc_out/TimeZoneEntityListing.html.md +3 -3
  115. data/doc_out/TrunkBaseEntityListing.html.md +3 -3
  116. data/doc_out/TrunkEntityListing.html.md +3 -3
  117. data/doc_out/TrunkMetabaseEntityListing.html.md +3 -3
  118. data/doc_out/UserEntityListing.html.md +3 -3
  119. data/doc_out/UserMe.html.md +1 -0
  120. data/doc_out/UserPresenceAlertContainer.html.md +3 -3
  121. data/doc_out/UserPresenceRuleContainer.html.md +3 -3
  122. data/doc_out/UserQueueEntityListing.html.md +3 -3
  123. data/doc_out/UserRecordingEntityListing.html.md +3 -3
  124. data/doc_out/UserSkillEntityListing.html.md +3 -3
  125. data/doc_out/VoicemailMessageEntityListing.html.md +3 -3
  126. data/doc_out/VoicemailOrganizationPolicy.html.md +4 -13
  127. data/doc_out/VoicemailUserPolicy.html.md +4 -11
  128. data/doc_out/WorkforceManagementApi.html.md +4 -4
  129. data/doc_out/WorkspaceEntityListing.html.md +3 -3
  130. data/doc_out/WorkspaceMemberEntityListing.html.md +3 -3
  131. data/doc_out/WrapupCodeEntityListing.html.md +3 -3
  132. data/doc_out/index.html.md +3 -3
  133. data/lib/purecloud.rb +10 -0
  134. data/lib/purecloud/api/content_management_api.rb +6 -5
  135. data/lib/purecloud/api/conversations_api.rb +30 -25
  136. data/lib/purecloud/api/groups_api.rb +14 -12
  137. data/lib/purecloud/api/organization_api.rb +2 -2
  138. data/lib/purecloud/api/outbound_api.rb +5 -6
  139. data/lib/purecloud/api/telephony_providers_edge_api.rb +124 -0
  140. data/lib/purecloud/api/users_api.rb +2 -2
  141. data/lib/purecloud/api/workforce_management_api.rb +5 -5
  142. data/lib/purecloud/api_client.rb +1 -1
  143. data/lib/purecloud/models/agent_activity_entity_listing.rb +23 -23
  144. data/lib/purecloud/models/attempt_limits_entity_listing.rb +23 -23
  145. data/lib/purecloud/models/attribute_entity_listing.rb +23 -23
  146. data/lib/purecloud/models/calibration_entity_listing.rb +23 -23
  147. data/lib/purecloud/models/call.rb +1 -1
  148. data/lib/purecloud/models/call_conversation_entity_listing.rb +23 -23
  149. data/lib/purecloud/models/callable_time_set_entity_listing.rb +23 -23
  150. data/lib/purecloud/models/callback.rb +1 -1
  151. data/lib/purecloud/models/callback_conversation_entity_listing.rb +23 -23
  152. data/lib/purecloud/models/campaign_entity_listing.rb +23 -23
  153. data/lib/purecloud/models/campaign_interactions.rb +16 -4
  154. data/lib/purecloud/models/campaign_rule_entity_listing.rb +23 -23
  155. data/lib/purecloud/models/campaign_sequence_entity_listing.rb +23 -23
  156. data/lib/purecloud/models/certificate_authority_entity_listing.rb +23 -23
  157. data/lib/purecloud/models/channel_entity_listing.rb +23 -23
  158. data/lib/purecloud/models/chat_conversation_entity_listing.rb +23 -23
  159. data/lib/purecloud/models/cobrowse_conversation_entity_listing.rb +23 -23
  160. data/lib/purecloud/models/cobrowsesession.rb +1 -1
  161. data/lib/purecloud/models/command_status_entity_listing.rb +23 -23
  162. data/lib/purecloud/models/contact_list_entity_listing.rb +23 -23
  163. data/lib/purecloud/models/conversation_chat.rb +1 -1
  164. data/lib/purecloud/models/conversation_entity_listing.rb +23 -23
  165. data/lib/purecloud/models/decisions_file_metadata_entity_listing.rb +23 -23
  166. data/lib/purecloud/models/did_entity_listing.rb +23 -23
  167. data/lib/purecloud/models/did_pool_entity_listing.rb +23 -23
  168. data/lib/purecloud/models/dnc_list_entity_listing.rb +23 -23
  169. data/lib/purecloud/models/document.rb +11 -11
  170. data/lib/purecloud/models/document_audit_entity_listing.rb +23 -23
  171. data/lib/purecloud/models/document_entity_listing.rb +23 -23
  172. data/lib/purecloud/models/domain_edge_software_version_dto_entity_listing.rb +23 -23
  173. data/lib/purecloud/models/domain_entity_listing.rb +23 -23
  174. data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +23 -23
  175. data/lib/purecloud/models/domain_entity_listing_query_result.rb +23 -23
  176. data/lib/purecloud/models/edge_entity_listing.rb +23 -23
  177. data/lib/purecloud/models/edge_group_entity_listing.rb +23 -23
  178. data/lib/purecloud/models/edge_line_entity_listing.rb +23 -23
  179. data/lib/purecloud/models/edge_metrics.rb +246 -0
  180. data/lib/purecloud/models/edge_metrics_disk.rb +188 -0
  181. data/lib/purecloud/models/edge_metrics_memory.rb +188 -0
  182. data/lib/purecloud/models/edge_metrics_network.rb +210 -0
  183. data/lib/purecloud/models/edge_metrics_processor.rb +210 -0
  184. data/lib/purecloud/models/edge_metrics_subsystem.rb +188 -0
  185. data/lib/purecloud/models/email.rb +1 -1
  186. data/lib/purecloud/models/email_conversation_entity_listing.rb +23 -23
  187. data/lib/purecloud/models/email_message_listing.rb +23 -23
  188. data/lib/purecloud/models/empty.rb +155 -0
  189. data/lib/purecloud/models/encryption_key_entity_listing.rb +23 -23
  190. data/lib/purecloud/models/endpoint_entity_listing.rb +23 -23
  191. data/lib/purecloud/models/evaluation_entity_listing.rb +23 -23
  192. data/lib/purecloud/models/evaluation_form_entity_listing.rb +23 -23
  193. data/lib/purecloud/models/evaluator_activity_entity_listing.rb +23 -23
  194. data/lib/purecloud/models/extension_entity_listing.rb +23 -23
  195. data/lib/purecloud/models/extension_pool_entity_listing.rb +23 -23
  196. data/lib/purecloud/models/fax_document.rb +11 -11
  197. data/lib/purecloud/models/fax_document_entity_listing.rb +23 -23
  198. data/lib/purecloud/models/field_config.rb +1 -1
  199. data/lib/purecloud/models/field_configs.rb +195 -0
  200. data/lib/purecloud/models/greeting_listing.rb +23 -23
  201. data/lib/purecloud/models/group.rb +1 -1
  202. data/lib/purecloud/models/group_contact.rb +217 -0
  203. data/lib/purecloud/models/group_entity_listing.rb +23 -23
  204. data/lib/purecloud/models/group_update.rb +1 -1
  205. data/lib/purecloud/models/heart_beat_alert_container.rb +23 -23
  206. data/lib/purecloud/models/heart_beat_rule_container.rb +23 -23
  207. data/lib/purecloud/models/inbound_domain_entity_listing.rb +23 -23
  208. data/lib/purecloud/models/inbound_route_entity_listing.rb +23 -23
  209. data/lib/purecloud/models/interaction_stats_alert_container.rb +23 -23
  210. data/lib/purecloud/models/interaction_stats_rule_container.rb +23 -23
  211. data/lib/purecloud/models/keyword_set_entity_listing.rb +23 -23
  212. data/lib/purecloud/models/language_entity_listing.rb +23 -23
  213. data/lib/purecloud/models/library_entity_listing.rb +23 -23
  214. data/lib/purecloud/models/line_base_entity_listing.rb +23 -23
  215. data/lib/purecloud/models/line_entity_listing.rb +23 -23
  216. data/lib/purecloud/models/local_encryption_configuration_listing.rb +23 -23
  217. data/lib/purecloud/models/logical_interface_entity_listing.rb +23 -23
  218. data/lib/purecloud/models/o_auth_client_entity_listing.rb +23 -23
  219. data/lib/purecloud/models/o_auth_provider_entity_listing.rb +23 -23
  220. data/lib/purecloud/models/organization_presence_entity_listing.rb +23 -23
  221. data/lib/purecloud/models/organization_role_entity_listing.rb +23 -23
  222. data/lib/purecloud/models/orphan_recording_listing.rb +23 -23
  223. data/lib/purecloud/models/outbound_route_base_entity_listing.rb +23 -23
  224. data/lib/purecloud/models/outbound_route_entity_listing.rb +23 -23
  225. data/lib/purecloud/models/permission_collection_entity_listing.rb +23 -23
  226. data/lib/purecloud/models/phone_base_entity_listing.rb +23 -23
  227. data/lib/purecloud/models/phone_entity_listing.rb +23 -23
  228. data/lib/purecloud/models/phone_meta_base_entity_listing.rb +23 -23
  229. data/lib/purecloud/models/physical_interface_entity_listing.rb +23 -23
  230. data/lib/purecloud/models/policy_entity_listing.rb +23 -23
  231. data/lib/purecloud/models/quality_audit_page.rb +23 -23
  232. data/lib/purecloud/models/queue_entity_listing.rb +23 -23
  233. data/lib/purecloud/models/queue_member_entity_listing.rb +23 -23
  234. data/lib/purecloud/models/report_meta_data_entity_listing.rb +23 -23
  235. data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +23 -23
  236. data/lib/purecloud/models/report_schedule_entity_listing.rb +23 -23
  237. data/lib/purecloud/models/response_entity_list.rb +23 -23
  238. data/lib/purecloud/models/response_entity_listing.rb +23 -23
  239. data/lib/purecloud/models/response_set_entity_listing.rb +23 -23
  240. data/lib/purecloud/models/routing_status_alert_container.rb +23 -23
  241. data/lib/purecloud/models/routing_status_rule_container.rb +23 -23
  242. data/lib/purecloud/models/rule_set_entity_listing.rb +23 -23
  243. data/lib/purecloud/models/schema_category_entity_listing.rb +23 -23
  244. data/lib/purecloud/models/schema_reference_entity_listing.rb +23 -23
  245. data/lib/purecloud/models/screen_recording_session_listing.rb +23 -23
  246. data/lib/purecloud/models/screenshare.rb +1 -1
  247. data/lib/purecloud/models/script_entity_listing.rb +23 -23
  248. data/lib/purecloud/models/security_profile_entity_listing.rb +23 -23
  249. data/lib/purecloud/models/share_entity_listing.rb +23 -23
  250. data/lib/purecloud/models/shared_response.rb +205 -0
  251. data/lib/purecloud/models/site_entity_listing.rb +23 -23
  252. data/lib/purecloud/models/skill_entity_listing.rb +23 -23
  253. data/lib/purecloud/models/social_expression.rb +1 -1
  254. data/lib/purecloud/models/station_entity_listing.rb +23 -23
  255. data/lib/purecloud/models/tag_value_entity_listing.rb +23 -23
  256. data/lib/purecloud/models/time_zone_entity_listing.rb +23 -23
  257. data/lib/purecloud/models/trunk_base_entity_listing.rb +23 -23
  258. data/lib/purecloud/models/trunk_entity_listing.rb +23 -23
  259. data/lib/purecloud/models/trunk_metabase_entity_listing.rb +23 -23
  260. data/lib/purecloud/models/user_entity_listing.rb +23 -23
  261. data/lib/purecloud/models/user_me.rb +12 -1
  262. data/lib/purecloud/models/user_presence_alert_container.rb +23 -23
  263. data/lib/purecloud/models/user_presence_rule_container.rb +23 -23
  264. data/lib/purecloud/models/user_queue_entity_listing.rb +23 -23
  265. data/lib/purecloud/models/user_recording_entity_listing.rb +23 -23
  266. data/lib/purecloud/models/user_skill_entity_listing.rb +23 -23
  267. data/lib/purecloud/models/video.rb +1 -1
  268. data/lib/purecloud/models/voicemail_message_entity_listing.rb +23 -23
  269. data/lib/purecloud/models/voicemail_organization_policy.rb +18 -106
  270. data/lib/purecloud/models/voicemail_user_policy.rb +5 -73
  271. data/lib/purecloud/models/workspace_entity_listing.rb +23 -23
  272. data/lib/purecloud/models/workspace_member_entity_listing.rb +23 -23
  273. data/lib/purecloud/models/wrapup_code_entity_listing.rb +23 -23
  274. data/lib/purecloud/version.rb +1 -1
  275. data/newVersion.md +1 -1
  276. data/swagger.json +1 -1
  277. data/version.json +1 -1
  278. metadata +22 -2
@@ -0,0 +1,188 @@
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 EdgeMetricsDisk
21
+ # Available memory in bytes.
22
+ attr_accessor :available_bytes
23
+
24
+ # Disk partition name.
25
+ attr_accessor :partition_name
26
+
27
+ # Total memory in bytes.
28
+ attr_accessor :total_bytes
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+
34
+ :'available_bytes' => :'availableBytes',
35
+
36
+ :'partition_name' => :'partitionName',
37
+
38
+ :'total_bytes' => :'totalBytes'
39
+
40
+ }
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ def self.swagger_types
45
+ {
46
+ :'available_bytes' => :'Float',
47
+ :'partition_name' => :'String',
48
+ :'total_bytes' => :'Float'
49
+
50
+ }
51
+ end
52
+
53
+ def initialize(attributes = {})
54
+ return unless attributes.is_a?(Hash)
55
+
56
+ # convert string to symbol for hash key
57
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
58
+
59
+
60
+ if attributes[:'availableBytes']
61
+ self.available_bytes = attributes[:'availableBytes']
62
+ end
63
+
64
+ if attributes[:'partitionName']
65
+ self.partition_name = attributes[:'partitionName']
66
+ end
67
+
68
+ if attributes[:'totalBytes']
69
+ self.total_bytes = attributes[:'totalBytes']
70
+ end
71
+
72
+ end
73
+
74
+ # Check equality by comparing each attribute.
75
+ def ==(o)
76
+ return true if self.equal?(o)
77
+ self.class == o.class &&
78
+ available_bytes == o.available_bytes &&
79
+ partition_name == o.partition_name &&
80
+ total_bytes == o.total_bytes
81
+ end
82
+
83
+ # @see the `==` method
84
+ def eql?(o)
85
+ self == o
86
+ end
87
+
88
+ # Calculate hash code according to all attributes.
89
+ def hash
90
+ [available_bytes, partition_name, total_bytes].hash
91
+ end
92
+
93
+ # build the object from hash
94
+ def build_from_hash(attributes)
95
+ return nil unless attributes.is_a?(Hash)
96
+ self.class.swagger_types.each_pair do |key, type|
97
+ if type =~ /^Array<(.*)>/i
98
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
99
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
100
+ else
101
+ #TODO show warning in debug mode
102
+ end
103
+ elsif !attributes[self.class.attribute_map[key]].nil?
104
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
105
+ else
106
+ # data not found in attributes(hash), not an issue as the data can be optional
107
+ end
108
+ end
109
+
110
+ self
111
+ end
112
+
113
+ def _deserialize(type, value)
114
+ case type.to_sym
115
+ when :DateTime
116
+ DateTime.parse(value)
117
+ when :Date
118
+ Date.parse(value)
119
+ when :String
120
+ value.to_s
121
+ when :Integer
122
+ value.to_i
123
+ when :Float
124
+ value.to_f
125
+ when :BOOLEAN
126
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
127
+ true
128
+ else
129
+ false
130
+ end
131
+ when :Object
132
+ # generic object (usually a Hash), return directly
133
+ value
134
+ when /\AArray<(?<inner_type>.+)>\z/
135
+ inner_type = Regexp.last_match[:inner_type]
136
+ value.map { |v| _deserialize(inner_type, v) }
137
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
138
+ k_type = Regexp.last_match[:k_type]
139
+ v_type = Regexp.last_match[:v_type]
140
+ {}.tap do |hash|
141
+ value.each do |k, v|
142
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
143
+ end
144
+ end
145
+ else # model
146
+ _model = Object.const_get("PureCloud").const_get(type).new
147
+ _model.build_from_hash(value)
148
+ end
149
+ end
150
+
151
+ def to_s
152
+ to_hash.to_s
153
+ end
154
+
155
+ # to_body is an alias to to_body (backward compatibility))
156
+ def to_body
157
+ to_hash
158
+ end
159
+
160
+ # return the object in the form of hash
161
+ def to_hash
162
+ hash = {}
163
+ self.class.attribute_map.each_pair do |attr, param|
164
+ value = self.send(attr)
165
+ next if value.nil?
166
+ hash[param] = _to_hash(value)
167
+ end
168
+ hash
169
+ end
170
+
171
+ # Method to output non-array value in the form of hash
172
+ # For object, use to_hash. Otherwise, just return the value
173
+ def _to_hash(value)
174
+ if value.is_a?(Array)
175
+ value.compact.map{ |v| _to_hash(v) }
176
+ elsif value.is_a?(Hash)
177
+ {}.tap do |hash|
178
+ value.each { |k, v| hash[k] = _to_hash(v) }
179
+ end
180
+ elsif value.respond_to? :to_hash
181
+ value.to_hash
182
+ else
183
+ value
184
+ end
185
+ end
186
+
187
+ end
188
+ end
@@ -0,0 +1,188 @@
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 EdgeMetricsMemory
21
+ # Available memory in bytes.
22
+ attr_accessor :available_bytes
23
+
24
+ # Type of memory. Virtual or physical.
25
+ attr_accessor :type
26
+
27
+ # Total memory in bytes.
28
+ attr_accessor :total_bytes
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+
34
+ :'available_bytes' => :'availableBytes',
35
+
36
+ :'type' => :'type',
37
+
38
+ :'total_bytes' => :'totalBytes'
39
+
40
+ }
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ def self.swagger_types
45
+ {
46
+ :'available_bytes' => :'Float',
47
+ :'type' => :'String',
48
+ :'total_bytes' => :'Float'
49
+
50
+ }
51
+ end
52
+
53
+ def initialize(attributes = {})
54
+ return unless attributes.is_a?(Hash)
55
+
56
+ # convert string to symbol for hash key
57
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
58
+
59
+
60
+ if attributes[:'availableBytes']
61
+ self.available_bytes = attributes[:'availableBytes']
62
+ end
63
+
64
+ if attributes[:'type']
65
+ self.type = attributes[:'type']
66
+ end
67
+
68
+ if attributes[:'totalBytes']
69
+ self.total_bytes = attributes[:'totalBytes']
70
+ end
71
+
72
+ end
73
+
74
+ # Check equality by comparing each attribute.
75
+ def ==(o)
76
+ return true if self.equal?(o)
77
+ self.class == o.class &&
78
+ available_bytes == o.available_bytes &&
79
+ type == o.type &&
80
+ total_bytes == o.total_bytes
81
+ end
82
+
83
+ # @see the `==` method
84
+ def eql?(o)
85
+ self == o
86
+ end
87
+
88
+ # Calculate hash code according to all attributes.
89
+ def hash
90
+ [available_bytes, type, total_bytes].hash
91
+ end
92
+
93
+ # build the object from hash
94
+ def build_from_hash(attributes)
95
+ return nil unless attributes.is_a?(Hash)
96
+ self.class.swagger_types.each_pair do |key, type|
97
+ if type =~ /^Array<(.*)>/i
98
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
99
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
100
+ else
101
+ #TODO show warning in debug mode
102
+ end
103
+ elsif !attributes[self.class.attribute_map[key]].nil?
104
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
105
+ else
106
+ # data not found in attributes(hash), not an issue as the data can be optional
107
+ end
108
+ end
109
+
110
+ self
111
+ end
112
+
113
+ def _deserialize(type, value)
114
+ case type.to_sym
115
+ when :DateTime
116
+ DateTime.parse(value)
117
+ when :Date
118
+ Date.parse(value)
119
+ when :String
120
+ value.to_s
121
+ when :Integer
122
+ value.to_i
123
+ when :Float
124
+ value.to_f
125
+ when :BOOLEAN
126
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
127
+ true
128
+ else
129
+ false
130
+ end
131
+ when :Object
132
+ # generic object (usually a Hash), return directly
133
+ value
134
+ when /\AArray<(?<inner_type>.+)>\z/
135
+ inner_type = Regexp.last_match[:inner_type]
136
+ value.map { |v| _deserialize(inner_type, v) }
137
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
138
+ k_type = Regexp.last_match[:k_type]
139
+ v_type = Regexp.last_match[:v_type]
140
+ {}.tap do |hash|
141
+ value.each do |k, v|
142
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
143
+ end
144
+ end
145
+ else # model
146
+ _model = Object.const_get("PureCloud").const_get(type).new
147
+ _model.build_from_hash(value)
148
+ end
149
+ end
150
+
151
+ def to_s
152
+ to_hash.to_s
153
+ end
154
+
155
+ # to_body is an alias to to_body (backward compatibility))
156
+ def to_body
157
+ to_hash
158
+ end
159
+
160
+ # return the object in the form of hash
161
+ def to_hash
162
+ hash = {}
163
+ self.class.attribute_map.each_pair do |attr, param|
164
+ value = self.send(attr)
165
+ next if value.nil?
166
+ hash[param] = _to_hash(value)
167
+ end
168
+ hash
169
+ end
170
+
171
+ # Method to output non-array value in the form of hash
172
+ # For object, use to_hash. Otherwise, just return the value
173
+ def _to_hash(value)
174
+ if value.is_a?(Array)
175
+ value.compact.map{ |v| _to_hash(v) }
176
+ elsif value.is_a?(Hash)
177
+ {}.tap do |hash|
178
+ value.each { |k, v| hash[k] = _to_hash(v) }
179
+ end
180
+ elsif value.respond_to? :to_hash
181
+ value.to_hash
182
+ else
183
+ value
184
+ end
185
+ end
186
+
187
+ end
188
+ end
@@ -0,0 +1,210 @@
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 EdgeMetricsNetwork
21
+ # Identifier for the network adapter.
22
+ attr_accessor :ifname
23
+
24
+ # Number of byes sent per second.
25
+ attr_accessor :sent_bytes_per_sec
26
+
27
+ # Number of byes received per second.
28
+ attr_accessor :received_bytes_per_sec
29
+
30
+ # Total bandwidth of the adapter in bits per second.
31
+ attr_accessor :bandwidth_bits_per_sec
32
+
33
+ # Percent utilization of the network adapter.
34
+ attr_accessor :utilization_pct
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+
40
+ :'ifname' => :'ifname',
41
+
42
+ :'sent_bytes_per_sec' => :'sentBytesPerSec',
43
+
44
+ :'received_bytes_per_sec' => :'receivedBytesPerSec',
45
+
46
+ :'bandwidth_bits_per_sec' => :'bandwidthBitsPerSec',
47
+
48
+ :'utilization_pct' => :'utilizationPct'
49
+
50
+ }
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.swagger_types
55
+ {
56
+ :'ifname' => :'String',
57
+ :'sent_bytes_per_sec' => :'Integer',
58
+ :'received_bytes_per_sec' => :'Integer',
59
+ :'bandwidth_bits_per_sec' => :'Float',
60
+ :'utilization_pct' => :'Float'
61
+
62
+ }
63
+ end
64
+
65
+ def initialize(attributes = {})
66
+ return unless attributes.is_a?(Hash)
67
+
68
+ # convert string to symbol for hash key
69
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
70
+
71
+
72
+ if attributes[:'ifname']
73
+ self.ifname = attributes[:'ifname']
74
+ end
75
+
76
+ if attributes[:'sentBytesPerSec']
77
+ self.sent_bytes_per_sec = attributes[:'sentBytesPerSec']
78
+ end
79
+
80
+ if attributes[:'receivedBytesPerSec']
81
+ self.received_bytes_per_sec = attributes[:'receivedBytesPerSec']
82
+ end
83
+
84
+ if attributes[:'bandwidthBitsPerSec']
85
+ self.bandwidth_bits_per_sec = attributes[:'bandwidthBitsPerSec']
86
+ end
87
+
88
+ if attributes[:'utilizationPct']
89
+ self.utilization_pct = attributes[:'utilizationPct']
90
+ end
91
+
92
+ end
93
+
94
+ # Check equality by comparing each attribute.
95
+ def ==(o)
96
+ return true if self.equal?(o)
97
+ self.class == o.class &&
98
+ ifname == o.ifname &&
99
+ sent_bytes_per_sec == o.sent_bytes_per_sec &&
100
+ received_bytes_per_sec == o.received_bytes_per_sec &&
101
+ bandwidth_bits_per_sec == o.bandwidth_bits_per_sec &&
102
+ utilization_pct == o.utilization_pct
103
+ end
104
+
105
+ # @see the `==` method
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculate hash code according to all attributes.
111
+ def hash
112
+ [ifname, sent_bytes_per_sec, received_bytes_per_sec, bandwidth_bits_per_sec, utilization_pct].hash
113
+ end
114
+
115
+ # build the object from hash
116
+ def build_from_hash(attributes)
117
+ return nil unless attributes.is_a?(Hash)
118
+ self.class.swagger_types.each_pair do |key, type|
119
+ if type =~ /^Array<(.*)>/i
120
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
121
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
122
+ else
123
+ #TODO show warning in debug mode
124
+ end
125
+ elsif !attributes[self.class.attribute_map[key]].nil?
126
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
127
+ else
128
+ # data not found in attributes(hash), not an issue as the data can be optional
129
+ end
130
+ end
131
+
132
+ self
133
+ end
134
+
135
+ def _deserialize(type, value)
136
+ case type.to_sym
137
+ when :DateTime
138
+ DateTime.parse(value)
139
+ when :Date
140
+ Date.parse(value)
141
+ when :String
142
+ value.to_s
143
+ when :Integer
144
+ value.to_i
145
+ when :Float
146
+ value.to_f
147
+ when :BOOLEAN
148
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
149
+ true
150
+ else
151
+ false
152
+ end
153
+ when :Object
154
+ # generic object (usually a Hash), return directly
155
+ value
156
+ when /\AArray<(?<inner_type>.+)>\z/
157
+ inner_type = Regexp.last_match[:inner_type]
158
+ value.map { |v| _deserialize(inner_type, v) }
159
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
160
+ k_type = Regexp.last_match[:k_type]
161
+ v_type = Regexp.last_match[:v_type]
162
+ {}.tap do |hash|
163
+ value.each do |k, v|
164
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
165
+ end
166
+ end
167
+ else # model
168
+ _model = Object.const_get("PureCloud").const_get(type).new
169
+ _model.build_from_hash(value)
170
+ end
171
+ end
172
+
173
+ def to_s
174
+ to_hash.to_s
175
+ end
176
+
177
+ # to_body is an alias to to_body (backward compatibility))
178
+ def to_body
179
+ to_hash
180
+ end
181
+
182
+ # return the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ next if value.nil?
188
+ hash[param] = _to_hash(value)
189
+ end
190
+ hash
191
+ end
192
+
193
+ # Method to output non-array value in the form of hash
194
+ # For object, use to_hash. Otherwise, just return the value
195
+ def _to_hash(value)
196
+ if value.is_a?(Array)
197
+ value.compact.map{ |v| _to_hash(v) }
198
+ elsif value.is_a?(Hash)
199
+ {}.tap do |hash|
200
+ value.each { |k, v| hash[k] = _to_hash(v) }
201
+ end
202
+ elsif value.respond_to? :to_hash
203
+ value.to_hash
204
+ else
205
+ value
206
+ end
207
+ end
208
+
209
+ end
210
+ end