purecloud 0.56.1 → 0.57.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) 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 +2 -2
  5. data/doc_out/AttemptLimitsEntityListing.html.md +2 -2
  6. data/doc_out/AttributeEntityListing.html.md +2 -2
  7. data/doc_out/CalibrationEntityListing.html.md +2 -2
  8. data/doc_out/CallConversationEntityListing.html.md +2 -2
  9. data/doc_out/CallableTimeSetEntityListing.html.md +2 -2
  10. data/doc_out/CallbackConversationEntityListing.html.md +2 -2
  11. data/doc_out/CampaignEntityListing.html.md +2 -2
  12. data/doc_out/CampaignSequenceEntityListing.html.md +2 -2
  13. data/doc_out/CertificateAuthorityEntityListing.html.md +2 -2
  14. data/doc_out/ChannelEntityListing.html.md +2 -2
  15. data/doc_out/ChatConversationEntityListing.html.md +2 -2
  16. data/doc_out/CobrowseConversationEntityListing.html.md +2 -2
  17. data/doc_out/Cobrowsesession.html.md +1 -0
  18. data/doc_out/CommandStatusEntityListing.html.md +2 -2
  19. data/doc_out/ContactListEntityListing.html.md +2 -2
  20. data/doc_out/ConversationEntityListing.html.md +2 -2
  21. data/doc_out/DIDEntityListing.html.md +2 -2
  22. data/doc_out/DIDPoolEntityListing.html.md +2 -2
  23. data/doc_out/DncListEntityListing.html.md +2 -2
  24. data/doc_out/DocumentAuditEntityListing.html.md +2 -2
  25. data/doc_out/DocumentEntityListing.html.md +2 -2
  26. data/doc_out/DomainEdgeSoftwareVersionDtoEntityListing.html.md +2 -2
  27. data/doc_out/DomainEntityListing.html.md +2 -2
  28. data/doc_out/DomainEntityListingEvaluationForm.html.md +2 -2
  29. data/doc_out/DomainEntityListingQueryResult.html.md +2 -2
  30. data/doc_out/EdgeEntityListing.html.md +2 -2
  31. data/doc_out/EdgeGroupEntityListing.html.md +2 -2
  32. data/doc_out/EdgeLineEntityListing.html.md +2 -2
  33. data/doc_out/EmailConversationEntityListing.html.md +2 -2
  34. data/doc_out/EmailMessageListing.html.md +2 -2
  35. data/doc_out/EncryptionKey.html.md +4 -4
  36. data/doc_out/EncryptionKeyEntityListing.html.md +2 -2
  37. data/doc_out/EndpointEntityListing.html.md +2 -2
  38. data/doc_out/EvaluationEntityListing.html.md +2 -2
  39. data/doc_out/EvaluationFormEntityListing.html.md +2 -2
  40. data/doc_out/EvaluatorActivityEntityListing.html.md +2 -2
  41. data/doc_out/ExtensionEntityListing.html.md +2 -2
  42. data/doc_out/ExtensionPoolEntityListing.html.md +2 -2
  43. data/doc_out/FaxDocumentEntityListing.html.md +2 -2
  44. data/doc_out/ForecastCreation.html.md +1 -0
  45. data/doc_out/ForecastCreationCompletion.html.md +2 -1
  46. data/doc_out/GroupEntityListing.html.md +2 -2
  47. data/doc_out/HeartBeatAlertContainer.html.md +2 -2
  48. data/doc_out/HeartBeatRuleContainer.html.md +2 -2
  49. data/doc_out/InboundDomainEntityListing.html.md +2 -2
  50. data/doc_out/InboundRouteEntityListing.html.md +2 -2
  51. data/doc_out/InteractionStatsAlertContainer.html.md +2 -2
  52. data/doc_out/InteractionStatsRuleContainer.html.md +2 -2
  53. data/doc_out/KeywordSetEntityListing.html.md +2 -2
  54. data/doc_out/LanguageEntityListing.html.md +2 -2
  55. data/doc_out/LibraryEntityListing.html.md +2 -2
  56. data/doc_out/LineBaseEntityListing.html.md +2 -2
  57. data/doc_out/LineEntityListing.html.md +2 -2
  58. data/doc_out/LocalEncryptionConfiguration.html.md +18 -0
  59. data/doc_out/{ForecastMetadataEntityListing.html.md → LocalEncryptionConfigurationListing.html.md} +5 -5
  60. data/doc_out/LocalEncryptionKeyRequest.html.md +15 -0
  61. data/doc_out/LogicalInterfaceEntityListing.html.md +2 -2
  62. data/doc_out/OAuthClientEntityListing.html.md +2 -2
  63. data/doc_out/OAuthProviderEntityListing.html.md +2 -2
  64. data/doc_out/OrganizationPresenceEntityListing.html.md +2 -2
  65. data/doc_out/OrganizationRoleEntityListing.html.md +2 -2
  66. data/doc_out/OrphanRecordingListing.html.md +2 -2
  67. data/doc_out/OutboundRouteEntityListing.html.md +2 -2
  68. data/doc_out/PermissionCollectionEntityListing.html.md +2 -2
  69. data/doc_out/PhoneBaseEntityListing.html.md +2 -2
  70. data/doc_out/PhoneEntityListing.html.md +2 -2
  71. data/doc_out/PhoneMetaBaseEntityListing.html.md +2 -2
  72. data/doc_out/PhysicalInterfaceEntityListing.html.md +2 -2
  73. data/doc_out/PolicyEntityListing.html.md +2 -2
  74. data/doc_out/QualityAuditPage.html.md +2 -2
  75. data/doc_out/QueueEntityListing.html.md +2 -2
  76. data/doc_out/QueueMemberEntityListing.html.md +2 -2
  77. data/doc_out/RecordingApi.html.md +501 -0
  78. data/doc_out/ReportMetaDataEntityListing.html.md +2 -2
  79. data/doc_out/ReportRunEntryEntityDomainListing.html.md +2 -2
  80. data/doc_out/ReportScheduleEntityListing.html.md +2 -2
  81. data/doc_out/ResponseEntityList.html.md +2 -2
  82. data/doc_out/ResponseEntityListing.html.md +2 -2
  83. data/doc_out/ResponseSetEntityListing.html.md +2 -2
  84. data/doc_out/RuleSetEntityListing.html.md +2 -2
  85. data/doc_out/SchemaCategoryEntityListing.html.md +2 -2
  86. data/doc_out/SchemaReferenceEntityListing.html.md +2 -2
  87. data/doc_out/ScreenRecordingSessionListing.html.md +2 -2
  88. data/doc_out/Screenshare.html.md +1 -0
  89. data/doc_out/SecurityProfileEntityListing.html.md +2 -2
  90. data/doc_out/ShareEntityListing.html.md +2 -2
  91. data/doc_out/SiteEntityListing.html.md +2 -2
  92. data/doc_out/SkillEntityListing.html.md +2 -2
  93. data/doc_out/StationEntityListing.html.md +2 -2
  94. data/doc_out/TagValueEntityListing.html.md +2 -2
  95. data/doc_out/TimeZoneEntityListing.html.md +2 -2
  96. data/doc_out/TrunkBaseEntityListing.html.md +2 -2
  97. data/doc_out/TrunkEntityListing.html.md +2 -2
  98. data/doc_out/TrunkMetabaseEntityListing.html.md +2 -2
  99. data/doc_out/User.html.md +1 -0
  100. data/doc_out/UserEntityListing.html.md +2 -2
  101. data/doc_out/UserMe.html.md +2 -0
  102. data/doc_out/UserQueueEntityListing.html.md +2 -2
  103. data/doc_out/UserRecordingEntityListing.html.md +2 -2
  104. data/doc_out/UserSkillEntityListing.html.md +2 -2
  105. data/doc_out/UsersEntityListing.html.md +2 -2
  106. data/doc_out/WorkforceManagementApi.html.md +0 -406
  107. data/doc_out/WorkspaceEntityListing.html.md +2 -2
  108. data/doc_out/WorkspaceMemberEntityListing.html.md +2 -2
  109. data/doc_out/WrapupCodeEntityListing.html.md +2 -2
  110. data/doc_out/index.html.md +3 -3
  111. data/lib/purecloud.rb +3 -11
  112. data/lib/purecloud/api/recording_api.rb +531 -0
  113. data/lib/purecloud/api/workforce_management_api.rb +0 -433
  114. data/lib/purecloud/api_client.rb +1 -1
  115. data/lib/purecloud/models/agent_activity_entity_listing.rb +17 -17
  116. data/lib/purecloud/models/analytics_query_predicate.rb +1 -1
  117. data/lib/purecloud/models/attempt_limits_entity_listing.rb +17 -17
  118. data/lib/purecloud/models/attribute_entity_listing.rb +17 -17
  119. data/lib/purecloud/models/calibration_entity_listing.rb +17 -17
  120. data/lib/purecloud/models/call_conversation_entity_listing.rb +17 -17
  121. data/lib/purecloud/models/callable_time_set_entity_listing.rb +17 -17
  122. data/lib/purecloud/models/callback_conversation_entity_listing.rb +17 -17
  123. data/lib/purecloud/models/campaign_entity_listing.rb +17 -17
  124. data/lib/purecloud/models/campaign_sequence_entity_listing.rb +17 -17
  125. data/lib/purecloud/models/certificate_authority_entity_listing.rb +17 -17
  126. data/lib/purecloud/models/channel_entity_listing.rb +17 -17
  127. data/lib/purecloud/models/chat_conversation_entity_listing.rb +17 -17
  128. data/lib/purecloud/models/cobrowse_conversation_entity_listing.rb +17 -17
  129. data/lib/purecloud/models/cobrowsesession.rb +17 -4
  130. data/lib/purecloud/models/command_status_entity_listing.rb +17 -17
  131. data/lib/purecloud/models/contact_list_entity_listing.rb +17 -17
  132. data/lib/purecloud/models/conversation_entity_listing.rb +17 -17
  133. data/lib/purecloud/models/dialer_action.rb +1 -1
  134. data/lib/purecloud/models/did_entity_listing.rb +17 -17
  135. data/lib/purecloud/models/did_pool_entity_listing.rb +17 -17
  136. data/lib/purecloud/models/dnc_list_entity_listing.rb +17 -17
  137. data/lib/purecloud/models/document_audit_entity_listing.rb +17 -17
  138. data/lib/purecloud/models/document_entity_listing.rb +17 -17
  139. data/lib/purecloud/models/domain_edge_software_version_dto_entity_listing.rb +17 -17
  140. data/lib/purecloud/models/domain_entity_listing.rb +17 -17
  141. data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +17 -17
  142. data/lib/purecloud/models/domain_entity_listing_query_result.rb +17 -17
  143. data/lib/purecloud/models/edge_entity_listing.rb +17 -17
  144. data/lib/purecloud/models/edge_group_entity_listing.rb +17 -17
  145. data/lib/purecloud/models/edge_line_entity_listing.rb +17 -17
  146. data/lib/purecloud/models/email_conversation_entity_listing.rb +17 -17
  147. data/lib/purecloud/models/email_message_listing.rb +17 -17
  148. data/lib/purecloud/models/encryption_key.rb +4 -1
  149. data/lib/purecloud/models/encryption_key_entity_listing.rb +17 -17
  150. data/lib/purecloud/models/endpoint_entity_listing.rb +17 -17
  151. data/lib/purecloud/models/evaluation_entity_listing.rb +17 -17
  152. data/lib/purecloud/models/evaluation_form_entity_listing.rb +17 -17
  153. data/lib/purecloud/models/evaluator_activity_entity_listing.rb +17 -17
  154. data/lib/purecloud/models/extension_entity_listing.rb +17 -17
  155. data/lib/purecloud/models/extension_pool_entity_listing.rb +17 -17
  156. data/lib/purecloud/models/fax_document_entity_listing.rb +17 -17
  157. data/lib/purecloud/models/forecast_creation.rb +15 -4
  158. data/lib/purecloud/models/forecast_creation_completion.rb +18 -7
  159. data/lib/purecloud/models/group_entity_listing.rb +17 -17
  160. data/lib/purecloud/models/heart_beat_alert_container.rb +17 -17
  161. data/lib/purecloud/models/heart_beat_rule_container.rb +17 -17
  162. data/lib/purecloud/models/inbound_domain_entity_listing.rb +17 -17
  163. data/lib/purecloud/models/inbound_route_entity_listing.rb +17 -17
  164. data/lib/purecloud/models/interaction_stats_alert_container.rb +17 -17
  165. data/lib/purecloud/models/interaction_stats_rule_container.rb +17 -17
  166. data/lib/purecloud/models/keyword_set_entity_listing.rb +17 -17
  167. data/lib/purecloud/models/language_entity_listing.rb +17 -17
  168. data/lib/purecloud/models/library_entity_listing.rb +17 -17
  169. data/lib/purecloud/models/line_base_entity_listing.rb +17 -17
  170. data/lib/purecloud/models/line_entity_listing.rb +17 -17
  171. data/lib/purecloud/models/{forecast.rb → local_encryption_configuration.rb} +51 -32
  172. data/lib/purecloud/models/{forecast_metadata_entity_listing.rb → local_encryption_configuration_listing.rb} +19 -19
  173. data/lib/purecloud/models/{forecast_filter_attributes.rb → local_encryption_key_request.rb} +23 -26
  174. data/lib/purecloud/models/logical_interface_entity_listing.rb +17 -17
  175. data/lib/purecloud/models/o_auth_client_entity_listing.rb +17 -17
  176. data/lib/purecloud/models/o_auth_provider_entity_listing.rb +17 -17
  177. data/lib/purecloud/models/organization_presence_entity_listing.rb +17 -17
  178. data/lib/purecloud/models/organization_role_entity_listing.rb +17 -17
  179. data/lib/purecloud/models/orphan_recording_listing.rb +17 -17
  180. data/lib/purecloud/models/outbound_route_entity_listing.rb +17 -17
  181. data/lib/purecloud/models/permission_collection_entity_listing.rb +17 -17
  182. data/lib/purecloud/models/phone_base_entity_listing.rb +17 -17
  183. data/lib/purecloud/models/phone_entity_listing.rb +17 -17
  184. data/lib/purecloud/models/phone_meta_base_entity_listing.rb +17 -17
  185. data/lib/purecloud/models/physical_interface_entity_listing.rb +17 -17
  186. data/lib/purecloud/models/policy_entity_listing.rb +17 -17
  187. data/lib/purecloud/models/quality_audit_page.rb +17 -17
  188. data/lib/purecloud/models/queue_entity_listing.rb +17 -17
  189. data/lib/purecloud/models/queue_member_entity_listing.rb +17 -17
  190. data/lib/purecloud/models/report_meta_data_entity_listing.rb +17 -17
  191. data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +17 -17
  192. data/lib/purecloud/models/report_schedule_entity_listing.rb +17 -17
  193. data/lib/purecloud/models/response_entity_list.rb +17 -17
  194. data/lib/purecloud/models/response_entity_listing.rb +17 -17
  195. data/lib/purecloud/models/response_set_entity_listing.rb +17 -17
  196. data/lib/purecloud/models/rule_set_entity_listing.rb +17 -17
  197. data/lib/purecloud/models/schema_category_entity_listing.rb +17 -17
  198. data/lib/purecloud/models/schema_reference_entity_listing.rb +17 -17
  199. data/lib/purecloud/models/screen_recording_session_listing.rb +17 -17
  200. data/lib/purecloud/models/screenshare.rb +17 -4
  201. data/lib/purecloud/models/security_profile_entity_listing.rb +17 -17
  202. data/lib/purecloud/models/share_entity_listing.rb +17 -17
  203. data/lib/purecloud/models/site_entity_listing.rb +17 -17
  204. data/lib/purecloud/models/skill_entity_listing.rb +17 -17
  205. data/lib/purecloud/models/station_entity_listing.rb +17 -17
  206. data/lib/purecloud/models/tag_value_entity_listing.rb +17 -17
  207. data/lib/purecloud/models/time_zone_entity_listing.rb +17 -17
  208. data/lib/purecloud/models/trunk_base_entity_listing.rb +17 -17
  209. data/lib/purecloud/models/trunk_entity_listing.rb +17 -17
  210. data/lib/purecloud/models/trunk_metabase_entity_listing.rb +17 -17
  211. data/lib/purecloud/models/user.rb +11 -1
  212. data/lib/purecloud/models/user_entity_listing.rb +17 -17
  213. data/lib/purecloud/models/user_me.rb +24 -1
  214. data/lib/purecloud/models/user_queue_entity_listing.rb +17 -17
  215. data/lib/purecloud/models/user_recording_entity_listing.rb +17 -17
  216. data/lib/purecloud/models/user_skill_entity_listing.rb +17 -17
  217. data/lib/purecloud/models/users_entity_listing.rb +17 -17
  218. data/lib/purecloud/models/workspace_entity_listing.rb +17 -17
  219. data/lib/purecloud/models/workspace_member_entity_listing.rb +17 -17
  220. data/lib/purecloud/models/wrapup_code_entity_listing.rb +17 -17
  221. data/lib/purecloud/version.rb +1 -1
  222. data/newVersion.md +1 -1
  223. data/swagger.json +1 -1
  224. data/version.json +1 -1
  225. metadata +8 -24
  226. data/doc_out/ConfigurationApi.html.md +0 -231
  227. data/doc_out/Forecast.html.md +0 -16
  228. data/doc_out/ForecastDimensions.html.md +0 -15
  229. data/doc_out/ForecastEntry.html.md +0 -15
  230. data/doc_out/ForecastFilterAttributes.html.md +0 -15
  231. data/doc_out/ForecastMetadata.html.md +0 -22
  232. data/doc_out/ForecastModification.html.md +0 -27
  233. data/doc_out/ForecastModificationCreation.html.md +0 -25
  234. data/doc_out/ForecastSearchCriteria.html.md +0 -20
  235. data/doc_out/ForecastSearchRequest.html.md +0 -20
  236. data/lib/purecloud/api/configuration_api.rb +0 -258
  237. data/lib/purecloud/models/forecast_dimensions.rb +0 -197
  238. data/lib/purecloud/models/forecast_entry.rb +0 -199
  239. data/lib/purecloud/models/forecast_metadata.rb +0 -284
  240. data/lib/purecloud/models/forecast_modification.rb +0 -339
  241. data/lib/purecloud/models/forecast_modification_creation.rb +0 -317
  242. data/lib/purecloud/models/forecast_search_criteria.rb +0 -267
  243. data/lib/purecloud/models/forecast_search_request.rb +0 -259
@@ -1,197 +0,0 @@
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 ForecastDimensions
21
- # The language of the forecast
22
- attr_accessor :language
23
-
24
- # The media of the forecast
25
- attr_accessor :media
26
-
27
- # The queue of the forecast
28
- attr_accessor :queue
29
-
30
- # Attribute mapping from ruby-style variable name to JSON key.
31
- def self.attribute_map
32
- {
33
-
34
- :'language' => :'language',
35
-
36
- :'media' => :'media',
37
-
38
- :'queue' => :'queue'
39
-
40
- }
41
- end
42
-
43
- # Attribute type mapping.
44
- def self.swagger_types
45
- {
46
- :'language' => :'Language',
47
- :'media' => :'String',
48
- :'queue' => :'Queue'
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[:'language']
61
- self.language = attributes[:'language']
62
- end
63
-
64
- if attributes[:'media']
65
- self.media = attributes[:'media']
66
- end
67
-
68
- if attributes[:'queue']
69
- self.queue = attributes[:'queue']
70
- end
71
-
72
- end
73
-
74
- # Custom attribute writer method checking allowed values (enum).
75
- def media=(media)
76
- allowed_values = ["VOICE", "CHAT", "EMAIL"]
77
- if media && !allowed_values.include?(media)
78
- fail "invalid value for 'media', must be one of #{allowed_values}"
79
- end
80
- @media = media
81
- end
82
-
83
- # Check equality by comparing each attribute.
84
- def ==(o)
85
- return true if self.equal?(o)
86
- self.class == o.class &&
87
- language == o.language &&
88
- media == o.media &&
89
- queue == o.queue
90
- end
91
-
92
- # @see the `==` method
93
- def eql?(o)
94
- self == o
95
- end
96
-
97
- # Calculate hash code according to all attributes.
98
- def hash
99
- [language, media, queue].hash
100
- end
101
-
102
- # build the object from hash
103
- def build_from_hash(attributes)
104
- return nil unless attributes.is_a?(Hash)
105
- self.class.swagger_types.each_pair do |key, type|
106
- if type =~ /^Array<(.*)>/i
107
- if attributes[self.class.attribute_map[key]].is_a?(Array)
108
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
109
- else
110
- #TODO show warning in debug mode
111
- end
112
- elsif !attributes[self.class.attribute_map[key]].nil?
113
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
114
- else
115
- # data not found in attributes(hash), not an issue as the data can be optional
116
- end
117
- end
118
-
119
- self
120
- end
121
-
122
- def _deserialize(type, value)
123
- case type.to_sym
124
- when :DateTime
125
- DateTime.parse(value)
126
- when :Date
127
- Date.parse(value)
128
- when :String
129
- value.to_s
130
- when :Integer
131
- value.to_i
132
- when :Float
133
- value.to_f
134
- when :BOOLEAN
135
- if value.to_s =~ /^(true|t|yes|y|1)$/i
136
- true
137
- else
138
- false
139
- end
140
- when :Object
141
- # generic object (usually a Hash), return directly
142
- value
143
- when /\AArray<(?<inner_type>.+)>\z/
144
- inner_type = Regexp.last_match[:inner_type]
145
- value.map { |v| _deserialize(inner_type, v) }
146
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
147
- k_type = Regexp.last_match[:k_type]
148
- v_type = Regexp.last_match[:v_type]
149
- {}.tap do |hash|
150
- value.each do |k, v|
151
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
152
- end
153
- end
154
- else # model
155
- _model = Object.const_get("PureCloud").const_get(type).new
156
- _model.build_from_hash(value)
157
- end
158
- end
159
-
160
- def to_s
161
- to_hash.to_s
162
- end
163
-
164
- # to_body is an alias to to_body (backward compatibility))
165
- def to_body
166
- to_hash
167
- end
168
-
169
- # return the object in the form of hash
170
- def to_hash
171
- hash = {}
172
- self.class.attribute_map.each_pair do |attr, param|
173
- value = self.send(attr)
174
- next if value.nil?
175
- hash[param] = _to_hash(value)
176
- end
177
- hash
178
- end
179
-
180
- # Method to output non-array value in the form of hash
181
- # For object, use to_hash. Otherwise, just return the value
182
- def _to_hash(value)
183
- if value.is_a?(Array)
184
- value.compact.map{ |v| _to_hash(v) }
185
- elsif value.is_a?(Hash)
186
- {}.tap do |hash|
187
- value.each { |k, v| hash[k] = _to_hash(v) }
188
- end
189
- elsif value.respond_to? :to_hash
190
- value.to_hash
191
- else
192
- value
193
- end
194
- end
195
-
196
- end
197
- end
@@ -1,199 +0,0 @@
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 ForecastEntry
21
- # The metric of the entry
22
- attr_accessor :metric
23
-
24
- # The dimensions of the entry
25
- attr_accessor :dimensions
26
-
27
- # The forecasted values
28
- attr_accessor :values
29
-
30
- # Attribute mapping from ruby-style variable name to JSON key.
31
- def self.attribute_map
32
- {
33
-
34
- :'metric' => :'metric',
35
-
36
- :'dimensions' => :'dimensions',
37
-
38
- :'values' => :'values'
39
-
40
- }
41
- end
42
-
43
- # Attribute type mapping.
44
- def self.swagger_types
45
- {
46
- :'metric' => :'String',
47
- :'dimensions' => :'ForecastDimensions',
48
- :'values' => :'Array<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[:'metric']
61
- self.metric = attributes[:'metric']
62
- end
63
-
64
- if attributes[:'dimensions']
65
- self.dimensions = attributes[:'dimensions']
66
- end
67
-
68
- if attributes[:'values']
69
- if (value = attributes[:'values']).is_a?(Array)
70
- self.values = value
71
- end
72
- end
73
-
74
- end
75
-
76
- # Custom attribute writer method checking allowed values (enum).
77
- def metric=(metric)
78
- allowed_values = ["CALL_VOLUME", "ATT", "ACW", "CHAT_VOLUME"]
79
- if metric && !allowed_values.include?(metric)
80
- fail "invalid value for 'metric', must be one of #{allowed_values}"
81
- end
82
- @metric = metric
83
- end
84
-
85
- # Check equality by comparing each attribute.
86
- def ==(o)
87
- return true if self.equal?(o)
88
- self.class == o.class &&
89
- metric == o.metric &&
90
- dimensions == o.dimensions &&
91
- values == o.values
92
- end
93
-
94
- # @see the `==` method
95
- def eql?(o)
96
- self == o
97
- end
98
-
99
- # Calculate hash code according to all attributes.
100
- def hash
101
- [metric, dimensions, values].hash
102
- end
103
-
104
- # build the object from hash
105
- def build_from_hash(attributes)
106
- return nil unless attributes.is_a?(Hash)
107
- self.class.swagger_types.each_pair do |key, type|
108
- if type =~ /^Array<(.*)>/i
109
- if attributes[self.class.attribute_map[key]].is_a?(Array)
110
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
111
- else
112
- #TODO show warning in debug mode
113
- end
114
- elsif !attributes[self.class.attribute_map[key]].nil?
115
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
116
- else
117
- # data not found in attributes(hash), not an issue as the data can be optional
118
- end
119
- end
120
-
121
- self
122
- end
123
-
124
- def _deserialize(type, value)
125
- case type.to_sym
126
- when :DateTime
127
- DateTime.parse(value)
128
- when :Date
129
- Date.parse(value)
130
- when :String
131
- value.to_s
132
- when :Integer
133
- value.to_i
134
- when :Float
135
- value.to_f
136
- when :BOOLEAN
137
- if value.to_s =~ /^(true|t|yes|y|1)$/i
138
- true
139
- else
140
- false
141
- end
142
- when :Object
143
- # generic object (usually a Hash), return directly
144
- value
145
- when /\AArray<(?<inner_type>.+)>\z/
146
- inner_type = Regexp.last_match[:inner_type]
147
- value.map { |v| _deserialize(inner_type, v) }
148
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
149
- k_type = Regexp.last_match[:k_type]
150
- v_type = Regexp.last_match[:v_type]
151
- {}.tap do |hash|
152
- value.each do |k, v|
153
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
154
- end
155
- end
156
- else # model
157
- _model = Object.const_get("PureCloud").const_get(type).new
158
- _model.build_from_hash(value)
159
- end
160
- end
161
-
162
- def to_s
163
- to_hash.to_s
164
- end
165
-
166
- # to_body is an alias to to_body (backward compatibility))
167
- def to_body
168
- to_hash
169
- end
170
-
171
- # return the object in the form of hash
172
- def to_hash
173
- hash = {}
174
- self.class.attribute_map.each_pair do |attr, param|
175
- value = self.send(attr)
176
- next if value.nil?
177
- hash[param] = _to_hash(value)
178
- end
179
- hash
180
- end
181
-
182
- # Method to output non-array value in the form of hash
183
- # For object, use to_hash. Otherwise, just return the value
184
- def _to_hash(value)
185
- if value.is_a?(Array)
186
- value.compact.map{ |v| _to_hash(v) }
187
- elsif value.is_a?(Hash)
188
- {}.tap do |hash|
189
- value.each { |k, v| hash[k] = _to_hash(v) }
190
- end
191
- elsif value.respond_to? :to_hash
192
- value.to_hash
193
- else
194
- value
195
- end
196
- end
197
-
198
- end
199
- end
@@ -1,284 +0,0 @@
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 ForecastMetadata
21
- # The globally unique identifier for the object.
22
- attr_accessor :id
23
-
24
- attr_accessor :name
25
-
26
- # The number of periods to be forecasted for
27
- attr_accessor :number_of_periods
28
-
29
- # The frequency of the period
30
- attr_accessor :period_frequency
31
-
32
- # The description of the forecast to be created
33
- attr_accessor :description
34
-
35
- # The metrics the forecast is for
36
- attr_accessor :metrics
37
-
38
- # The last modified date time of this object. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
39
- attr_accessor :last_modified_date
40
-
41
- # The person who last modified this object
42
- attr_accessor :last_modified_by
43
-
44
- # The status of the creation of the forecast
45
- attr_accessor :status
46
-
47
- # The URI for this object
48
- attr_accessor :self_uri
49
-
50
- # Attribute mapping from ruby-style variable name to JSON key.
51
- def self.attribute_map
52
- {
53
-
54
- :'id' => :'id',
55
-
56
- :'name' => :'name',
57
-
58
- :'number_of_periods' => :'numberOfPeriods',
59
-
60
- :'period_frequency' => :'periodFrequency',
61
-
62
- :'description' => :'description',
63
-
64
- :'metrics' => :'metrics',
65
-
66
- :'last_modified_date' => :'lastModifiedDate',
67
-
68
- :'last_modified_by' => :'lastModifiedBy',
69
-
70
- :'status' => :'status',
71
-
72
- :'self_uri' => :'selfUri'
73
-
74
- }
75
- end
76
-
77
- # Attribute type mapping.
78
- def self.swagger_types
79
- {
80
- :'id' => :'String',
81
- :'name' => :'String',
82
- :'number_of_periods' => :'Integer',
83
- :'period_frequency' => :'String',
84
- :'description' => :'String',
85
- :'metrics' => :'Array<String>',
86
- :'last_modified_date' => :'DateTime',
87
- :'last_modified_by' => :'User',
88
- :'status' => :'String',
89
- :'self_uri' => :'String'
90
-
91
- }
92
- end
93
-
94
- def initialize(attributes = {})
95
- return unless attributes.is_a?(Hash)
96
-
97
- # convert string to symbol for hash key
98
- attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
99
-
100
-
101
- if attributes[:'id']
102
- self.id = attributes[:'id']
103
- end
104
-
105
- if attributes[:'name']
106
- self.name = attributes[:'name']
107
- end
108
-
109
- if attributes[:'numberOfPeriods']
110
- self.number_of_periods = attributes[:'numberOfPeriods']
111
- end
112
-
113
- if attributes[:'periodFrequency']
114
- self.period_frequency = attributes[:'periodFrequency']
115
- end
116
-
117
- if attributes[:'description']
118
- self.description = attributes[:'description']
119
- end
120
-
121
- if attributes[:'metrics']
122
- if (value = attributes[:'metrics']).is_a?(Array)
123
- self.metrics = value
124
- end
125
- end
126
-
127
- if attributes[:'lastModifiedDate']
128
- self.last_modified_date = attributes[:'lastModifiedDate']
129
- end
130
-
131
- if attributes[:'lastModifiedBy']
132
- self.last_modified_by = attributes[:'lastModifiedBy']
133
- end
134
-
135
- if attributes[:'status']
136
- self.status = attributes[:'status']
137
- end
138
-
139
- if attributes[:'selfUri']
140
- self.self_uri = attributes[:'selfUri']
141
- end
142
-
143
- end
144
-
145
- # Custom attribute writer method checking allowed values (enum).
146
- def period_frequency=(period_frequency)
147
- allowed_values = ["WEEK"]
148
- if period_frequency && !allowed_values.include?(period_frequency)
149
- fail "invalid value for 'period_frequency', must be one of #{allowed_values}"
150
- end
151
- @period_frequency = period_frequency
152
- end
153
-
154
- # Custom attribute writer method checking allowed values (enum).
155
- def status=(status)
156
- allowed_values = ["SUCCESS", "FAILED"]
157
- if status && !allowed_values.include?(status)
158
- fail "invalid value for 'status', must be one of #{allowed_values}"
159
- end
160
- @status = status
161
- end
162
-
163
- # Check equality by comparing each attribute.
164
- def ==(o)
165
- return true if self.equal?(o)
166
- self.class == o.class &&
167
- id == o.id &&
168
- name == o.name &&
169
- number_of_periods == o.number_of_periods &&
170
- period_frequency == o.period_frequency &&
171
- description == o.description &&
172
- metrics == o.metrics &&
173
- last_modified_date == o.last_modified_date &&
174
- last_modified_by == o.last_modified_by &&
175
- status == o.status &&
176
- self_uri == o.self_uri
177
- end
178
-
179
- # @see the `==` method
180
- def eql?(o)
181
- self == o
182
- end
183
-
184
- # Calculate hash code according to all attributes.
185
- def hash
186
- [id, name, number_of_periods, period_frequency, description, metrics, last_modified_date, last_modified_by, status, self_uri].hash
187
- end
188
-
189
- # build the object from hash
190
- def build_from_hash(attributes)
191
- return nil unless attributes.is_a?(Hash)
192
- self.class.swagger_types.each_pair do |key, type|
193
- if type =~ /^Array<(.*)>/i
194
- if attributes[self.class.attribute_map[key]].is_a?(Array)
195
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
196
- else
197
- #TODO show warning in debug mode
198
- end
199
- elsif !attributes[self.class.attribute_map[key]].nil?
200
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
201
- else
202
- # data not found in attributes(hash), not an issue as the data can be optional
203
- end
204
- end
205
-
206
- self
207
- end
208
-
209
- def _deserialize(type, value)
210
- case type.to_sym
211
- when :DateTime
212
- DateTime.parse(value)
213
- when :Date
214
- Date.parse(value)
215
- when :String
216
- value.to_s
217
- when :Integer
218
- value.to_i
219
- when :Float
220
- value.to_f
221
- when :BOOLEAN
222
- if value.to_s =~ /^(true|t|yes|y|1)$/i
223
- true
224
- else
225
- false
226
- end
227
- when :Object
228
- # generic object (usually a Hash), return directly
229
- value
230
- when /\AArray<(?<inner_type>.+)>\z/
231
- inner_type = Regexp.last_match[:inner_type]
232
- value.map { |v| _deserialize(inner_type, v) }
233
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
234
- k_type = Regexp.last_match[:k_type]
235
- v_type = Regexp.last_match[:v_type]
236
- {}.tap do |hash|
237
- value.each do |k, v|
238
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
239
- end
240
- end
241
- else # model
242
- _model = Object.const_get("PureCloud").const_get(type).new
243
- _model.build_from_hash(value)
244
- end
245
- end
246
-
247
- def to_s
248
- to_hash.to_s
249
- end
250
-
251
- # to_body is an alias to to_body (backward compatibility))
252
- def to_body
253
- to_hash
254
- end
255
-
256
- # return the object in the form of hash
257
- def to_hash
258
- hash = {}
259
- self.class.attribute_map.each_pair do |attr, param|
260
- value = self.send(attr)
261
- next if value.nil?
262
- hash[param] = _to_hash(value)
263
- end
264
- hash
265
- end
266
-
267
- # Method to output non-array value in the form of hash
268
- # For object, use to_hash. Otherwise, just return the value
269
- def _to_hash(value)
270
- if value.is_a?(Array)
271
- value.compact.map{ |v| _to_hash(v) }
272
- elsif value.is_a?(Hash)
273
- {}.tap do |hash|
274
- value.each { |k, v| hash[k] = _to_hash(v) }
275
- end
276
- elsif value.respond_to? :to_hash
277
- value.to_hash
278
- else
279
- value
280
- end
281
- end
282
-
283
- end
284
- end