purecloudplatformclientv2 16.0.0 → 17.0.0
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/ActionEntityListing.md +1 -1
- data/docs/AgentActivityEntityListing.md +1 -1
- data/docs/ArchitectApi.md +14 -14
- data/docs/AttemptLimitsEntityListing.md +1 -1
- data/docs/AttributeEntityListing.md +1 -1
- data/docs/CalibrationEntityListing.md +1 -1
- data/docs/CallConversationEntityListing.md +1 -1
- data/docs/CallHistoryConversation.md +21 -0
- data/docs/CallHistoryConversationEntityListing.md +22 -0
- data/docs/CallHistoryParticipant.md +27 -0
- data/docs/CallableTimeSetEntityListing.md +1 -1
- data/docs/CallbackConversationEntityListing.md +1 -1
- data/docs/CampaignEntityListing.md +1 -1
- data/docs/CampaignRuleEntityListing.md +1 -1
- data/docs/CampaignSequenceEntityListing.md +1 -1
- data/docs/CertificateAuthorityEntityListing.md +1 -1
- data/docs/ChatConversationEntityListing.md +1 -1
- data/docs/CobrowseConversationEntityListing.md +1 -1
- data/docs/CommandStatusEntityListing.md +1 -1
- data/docs/ConsumedResourcesEntityListing.md +1 -1
- data/docs/ConsumingResourcesEntityListing.md +1 -1
- data/docs/ContactListEntityListing.md +1 -1
- data/docs/ContactListFilterEntityListing.md +1 -1
- data/docs/ContactListing.md +1 -1
- data/docs/ConversationEntityListing.md +1 -1
- data/docs/ConversationsApi.md +2 -2
- data/docs/DIDEntityListing.md +1 -1
- data/docs/DIDPoolEntityListing.md +1 -1
- data/docs/DependencyObjectEntityListing.md +1 -1
- data/docs/DependencyTypeEntityListing.md +1 -1
- data/docs/DialerEventEntityListing.md +1 -1
- data/docs/DncListEntityListing.md +1 -1
- data/docs/Document.md +1 -1
- data/docs/DocumentAuditEntityListing.md +1 -1
- data/docs/DocumentEntityListing.md +1 -1
- data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +1 -1
- data/docs/DomainEntityListing.md +1 -1
- data/docs/DomainEntityListingEvaluationForm.md +1 -1
- data/docs/DomainEntityListingQueryResult.md +1 -1
- data/docs/DomainOrganizationRole.md +1 -1
- data/docs/DomainOrganizationRoleCreate.md +1 -1
- data/docs/DomainOrganizationRoleUpdate.md +1 -1
- data/docs/EdgeEntityListing.md +1 -1
- data/docs/EdgeGroupEntityListing.md +1 -1
- data/docs/EdgeLineEntityListing.md +1 -1
- data/docs/EmailConversationEntityListing.md +1 -1
- data/docs/EmailMessageListing.md +1 -1
- data/docs/EncryptionKeyEntityListing.md +1 -1
- data/docs/EndpointEntityListing.md +1 -1
- data/docs/EvaluationEntityListing.md +1 -1
- data/docs/EvaluationFormEntityListing.md +1 -1
- data/docs/EvaluatorActivityEntityListing.md +1 -1
- data/docs/ExtensionEntityListing.md +1 -1
- data/docs/ExtensionPoolEntityListing.md +1 -1
- data/docs/ExternalOrganizationListing.md +1 -1
- data/docs/FaxDocument.md +1 -1
- data/docs/FaxDocumentEntityListing.md +1 -1
- data/docs/FlowEntityListing.md +1 -1
- data/docs/FlowVersionEntityListing.md +1 -1
- data/docs/GreetingListing.md +1 -1
- data/docs/GroupEntityListing.md +1 -1
- data/docs/IVREntityListing.md +1 -1
- data/docs/InboundDomainEntityListing.md +1 -1
- data/docs/InboundRouteEntityListing.md +1 -1
- data/docs/InteractionStatsAlertContainer.md +1 -1
- data/docs/InteractionStatsRuleContainer.md +1 -1
- data/docs/JsonNode.md +4 -4
- data/docs/KeywordSetEntityListing.md +1 -1
- data/docs/LanguageEntityListing.md +1 -1
- data/docs/LibraryEntityListing.md +1 -1
- data/docs/LineBaseEntityListing.md +1 -1
- data/docs/LineEntityListing.md +1 -1
- data/docs/LocationEntityListing.md +1 -1
- data/docs/LogicalInterfaceEntityListing.md +1 -1
- data/docs/ManagementUnitListing.md +1 -1
- data/docs/NoteListing.md +1 -1
- data/docs/OAuthClientEntityListing.md +1 -1
- data/docs/OAuthProviderEntityListing.md +1 -1
- data/docs/OrganizationPresenceEntityListing.md +1 -1
- data/docs/OrganizationRoleEntityListing.md +1 -1
- data/docs/OrphanRecordingListing.md +1 -1
- data/docs/OutboundRouteBaseEntityListing.md +1 -1
- data/docs/OutboundRouteEntityListing.md +1 -1
- data/docs/PermissionCollectionEntityListing.md +1 -1
- data/docs/PhoneBaseEntityListing.md +1 -1
- data/docs/PhoneEntityListing.md +1 -1
- data/docs/PhoneMetaBaseEntityListing.md +1 -1
- data/docs/PhysicalInterfaceEntityListing.md +1 -1
- data/docs/PolicyEntityListing.md +1 -1
- data/docs/PromptAssetEntityListing.md +1 -1
- data/docs/PromptEntityListing.md +1 -1
- data/docs/QualityAuditPage.md +1 -1
- data/docs/QueueEntityListing.md +1 -1
- data/docs/QueueMemberEntityListing.md +1 -1
- data/docs/RelationshipListing.md +1 -1
- data/docs/ReportMetaDataEntityListing.md +1 -1
- data/docs/ReportRunEntryEntityDomainListing.md +1 -1
- data/docs/ReportScheduleEntityListing.md +1 -1
- data/docs/ResponseEntityList.md +1 -1
- data/docs/ResponseEntityListing.md +1 -1
- data/docs/ResponseSetEntityListing.md +1 -1
- data/docs/RuleSetEntityListing.md +1 -1
- data/docs/ScheduleEntityListing.md +1 -1
- data/docs/ScheduleGroupEntityListing.md +1 -1
- data/docs/SchemaCategoryEntityListing.md +1 -1
- data/docs/SchemaReferenceEntityListing.md +1 -1
- data/docs/ScreenRecordingSessionListing.md +1 -1
- data/docs/ScriptEntityListing.md +1 -1
- data/docs/SecurityProfileEntityListing.md +1 -1
- data/docs/ShareEntityListing.md +1 -1
- data/docs/SiteEntityListing.md +1 -1
- data/docs/SkillEntityListing.md +1 -1
- data/docs/StationEntityListing.md +1 -1
- data/docs/SystemPromptAssetEntityListing.md +1 -1
- data/docs/SystemPromptEntityListing.md +1 -1
- data/docs/TagValueEntityListing.md +1 -1
- data/docs/TimeZoneEntityListing.md +1 -1
- data/docs/TrunkBaseEntityListing.md +1 -1
- data/docs/TrunkEntityListing.md +1 -1
- data/docs/TrunkMetabaseEntityListing.md +1 -1
- data/docs/TrustEntityListing.md +1 -1
- data/docs/TrustUserEntityListing.md +1 -1
- data/docs/TrustorEntityListing.md +1 -1
- data/docs/UserEntityListing.md +1 -1
- data/docs/UserQueueEntityListing.md +1 -1
- data/docs/UserRecordingEntityListing.md +1 -1
- data/docs/UserRoutingStatusNotification.md +1 -0
- data/docs/UserRoutingStatusNotificationErrorInfo.md +18 -0
- data/docs/UserRoutingStatusNotificationErrorInfoUserParams.md +15 -0
- data/docs/UserRoutingStatusNotificationUserParam.md +15 -0
- data/docs/UserSkillEntityListing.md +1 -1
- data/docs/VoicemailMessageEntityListing.md +1 -1
- data/docs/WorkspaceEntityListing.md +1 -1
- data/docs/WorkspaceMemberEntityListing.md +1 -1
- data/docs/WrapupCodeEntityListing.md +1 -1
- data/lib/purecloudplatformclientv2.rb +6 -0
- data/lib/purecloudplatformclientv2/api/architect_api.rb +6 -6
- data/lib/purecloudplatformclientv2/api/conversations_api.rb +3 -3
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/call_history_conversation.rb +425 -0
- data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/call_history_participant.rb +594 -0
- data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/contact_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/dependency.rb +2 -2
- data/lib/purecloudplatformclientv2/models/dependency_object.rb +2 -2
- data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/document.rb +12 -12
- data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
- data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/email_message_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/fax_document.rb +12 -12
- data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/greeting_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/interaction_stat_alert_notification.rb +2 -2
- data/lib/purecloudplatformclientv2/models/interaction_stat_rule_notification.rb +2 -2
- data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +12 -12
- data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +12 -12
- data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/json_node.rb +72 -72
- data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/note_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +12 -12
- data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/relationship_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/response_entity_list.rb +12 -12
- data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/user_routing_status_notification.rb +29 -4
- data/lib/purecloudplatformclientv2/models/user_routing_status_notification_error_info.rb +328 -0
- data/lib/purecloudplatformclientv2/models/user_routing_status_notification_error_info_user_params.rb +251 -0
- data/lib/purecloudplatformclientv2/models/user_routing_status_notification_user_param.rb +251 -0
- data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +14 -2
|
@@ -0,0 +1,428 @@
|
|
|
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@genesys.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 CallHistoryConversationEntityListing
|
|
21
|
+
attr_accessor :entities
|
|
22
|
+
|
|
23
|
+
attr_accessor :page_size
|
|
24
|
+
|
|
25
|
+
attr_accessor :page_number
|
|
26
|
+
|
|
27
|
+
attr_accessor :total
|
|
28
|
+
|
|
29
|
+
attr_accessor :self_uri
|
|
30
|
+
|
|
31
|
+
attr_accessor :first_uri
|
|
32
|
+
|
|
33
|
+
attr_accessor :previous_uri
|
|
34
|
+
|
|
35
|
+
attr_accessor :next_uri
|
|
36
|
+
|
|
37
|
+
attr_accessor :last_uri
|
|
38
|
+
|
|
39
|
+
attr_accessor :page_count
|
|
40
|
+
|
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
|
+
def self.attribute_map
|
|
43
|
+
{
|
|
44
|
+
|
|
45
|
+
:'entities' => :'entities',
|
|
46
|
+
|
|
47
|
+
:'page_size' => :'pageSize',
|
|
48
|
+
|
|
49
|
+
:'page_number' => :'pageNumber',
|
|
50
|
+
|
|
51
|
+
:'total' => :'total',
|
|
52
|
+
|
|
53
|
+
:'self_uri' => :'selfUri',
|
|
54
|
+
|
|
55
|
+
:'first_uri' => :'firstUri',
|
|
56
|
+
|
|
57
|
+
:'previous_uri' => :'previousUri',
|
|
58
|
+
|
|
59
|
+
:'next_uri' => :'nextUri',
|
|
60
|
+
|
|
61
|
+
:'last_uri' => :'lastUri',
|
|
62
|
+
|
|
63
|
+
:'page_count' => :'pageCount'
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Attribute type mapping.
|
|
69
|
+
def self.swagger_types
|
|
70
|
+
{
|
|
71
|
+
|
|
72
|
+
:'entities' => :'Array<CallHistoryConversation>',
|
|
73
|
+
|
|
74
|
+
:'page_size' => :'Integer',
|
|
75
|
+
|
|
76
|
+
:'page_number' => :'Integer',
|
|
77
|
+
|
|
78
|
+
:'total' => :'Integer',
|
|
79
|
+
|
|
80
|
+
:'self_uri' => :'String',
|
|
81
|
+
|
|
82
|
+
:'first_uri' => :'String',
|
|
83
|
+
|
|
84
|
+
:'previous_uri' => :'String',
|
|
85
|
+
|
|
86
|
+
:'next_uri' => :'String',
|
|
87
|
+
|
|
88
|
+
:'last_uri' => :'String',
|
|
89
|
+
|
|
90
|
+
:'page_count' => :'Integer'
|
|
91
|
+
|
|
92
|
+
}
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Initializes the object
|
|
96
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
97
|
+
def initialize(attributes = {})
|
|
98
|
+
return unless attributes.is_a?(Hash)
|
|
99
|
+
|
|
100
|
+
# convert string to symbol for hash key
|
|
101
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
if attributes.has_key?(:'entities')
|
|
105
|
+
|
|
106
|
+
if (value = attributes[:'entities']).is_a?(Array)
|
|
107
|
+
self.entities = value
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
if attributes.has_key?(:'pageSize')
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
self.page_size = attributes[:'pageSize']
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
if attributes.has_key?(:'pageNumber')
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
self.page_number = attributes[:'pageNumber']
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
if attributes.has_key?(:'total')
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
self.total = attributes[:'total']
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
if attributes.has_key?(:'selfUri')
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
self.self_uri = attributes[:'selfUri']
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
if attributes.has_key?(:'firstUri')
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
self.first_uri = attributes[:'firstUri']
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
if attributes.has_key?(:'previousUri')
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
self.previous_uri = attributes[:'previousUri']
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
if attributes.has_key?(:'nextUri')
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
self.next_uri = attributes[:'nextUri']
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
if attributes.has_key?(:'lastUri')
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
self.last_uri = attributes[:'lastUri']
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
if attributes.has_key?(:'pageCount')
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
self.page_count = attributes[:'pageCount']
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
199
|
+
# @return Array for valid properies with the reasons
|
|
200
|
+
def list_invalid_properties
|
|
201
|
+
invalid_properties = Array.new
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
return invalid_properties
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Check to see if the all the properties in the model are valid
|
|
208
|
+
# @return true if the model is valid
|
|
209
|
+
def valid?
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
# Checks equality by comparing each attribute.
|
|
305
|
+
# @param [Object] Object to be compared
|
|
306
|
+
def ==(o)
|
|
307
|
+
return true if self.equal?(o)
|
|
308
|
+
self.class == o.class &&
|
|
309
|
+
entities == o.entities &&
|
|
310
|
+
page_size == o.page_size &&
|
|
311
|
+
page_number == o.page_number &&
|
|
312
|
+
total == o.total &&
|
|
313
|
+
self_uri == o.self_uri &&
|
|
314
|
+
first_uri == o.first_uri &&
|
|
315
|
+
previous_uri == o.previous_uri &&
|
|
316
|
+
next_uri == o.next_uri &&
|
|
317
|
+
last_uri == o.last_uri &&
|
|
318
|
+
page_count == o.page_count
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# @see the `==` method
|
|
322
|
+
# @param [Object] Object to be compared
|
|
323
|
+
def eql?(o)
|
|
324
|
+
self == o
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Calculates hash code according to all attributes.
|
|
328
|
+
# @return [Fixnum] Hash code
|
|
329
|
+
def hash
|
|
330
|
+
[entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# build the object from hash
|
|
334
|
+
def build_from_hash(attributes)
|
|
335
|
+
return nil unless attributes.is_a?(Hash)
|
|
336
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
337
|
+
if type =~ /^Array<(.*)>/i
|
|
338
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
339
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
340
|
+
else
|
|
341
|
+
#TODO show warning in debug mode
|
|
342
|
+
end
|
|
343
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
344
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
345
|
+
else
|
|
346
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
|
347
|
+
end
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
self
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
def _deserialize(type, value)
|
|
354
|
+
case type.to_sym
|
|
355
|
+
when :DateTime
|
|
356
|
+
DateTime.parse(value)
|
|
357
|
+
when :Date
|
|
358
|
+
Date.parse(value)
|
|
359
|
+
when :String
|
|
360
|
+
value.to_s
|
|
361
|
+
when :Integer
|
|
362
|
+
value.to_i
|
|
363
|
+
when :Float
|
|
364
|
+
value.to_f
|
|
365
|
+
when :BOOLEAN
|
|
366
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
|
367
|
+
true
|
|
368
|
+
else
|
|
369
|
+
false
|
|
370
|
+
end
|
|
371
|
+
when :Object
|
|
372
|
+
# generic object (usually a Hash), return directly
|
|
373
|
+
value
|
|
374
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
375
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
376
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
377
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
|
378
|
+
k_type = Regexp.last_match[:k_type]
|
|
379
|
+
v_type = Regexp.last_match[:v_type]
|
|
380
|
+
{}.tap do |hash|
|
|
381
|
+
value.each do |k, v|
|
|
382
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
383
|
+
end
|
|
384
|
+
end
|
|
385
|
+
else # model
|
|
386
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
|
387
|
+
_model.build_from_hash(value)
|
|
388
|
+
end
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
def to_s
|
|
392
|
+
to_hash.to_s
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# to_body is an alias to to_body (backward compatibility))
|
|
396
|
+
def to_body
|
|
397
|
+
to_hash
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# return the object in the form of hash
|
|
401
|
+
def to_hash
|
|
402
|
+
hash = {}
|
|
403
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
404
|
+
value = self.send(attr)
|
|
405
|
+
next if value.nil?
|
|
406
|
+
hash[param] = _to_hash(value)
|
|
407
|
+
end
|
|
408
|
+
hash
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# Method to output non-array value in the form of hash
|
|
412
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
413
|
+
def _to_hash(value)
|
|
414
|
+
if value.is_a?(Array)
|
|
415
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
416
|
+
elsif value.is_a?(Hash)
|
|
417
|
+
{}.tap do |hash|
|
|
418
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
419
|
+
end
|
|
420
|
+
elsif value.respond_to? :to_hash
|
|
421
|
+
value.to_hash
|
|
422
|
+
else
|
|
423
|
+
value
|
|
424
|
+
end
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
end
|
|
428
|
+
end
|
|
@@ -0,0 +1,594 @@
|
|
|
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@genesys.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 CallHistoryParticipant
|
|
21
|
+
# The unique participant ID.
|
|
22
|
+
attr_accessor :id
|
|
23
|
+
|
|
24
|
+
# The display friendly name of the participant.
|
|
25
|
+
attr_accessor :name
|
|
26
|
+
|
|
27
|
+
# The participant address.
|
|
28
|
+
attr_accessor :address
|
|
29
|
+
|
|
30
|
+
# The time when this participant first joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
|
31
|
+
attr_accessor :start_time
|
|
32
|
+
|
|
33
|
+
# The time when this participant went disconnected for this media (eg: video disconnected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
|
34
|
+
attr_accessor :end_time
|
|
35
|
+
|
|
36
|
+
# The participant's purpose. Values can be: 'agent', 'user', 'customer', 'external', 'acd', 'ivr
|
|
37
|
+
attr_accessor :purpose
|
|
38
|
+
|
|
39
|
+
# The participant's direction. Values can be: 'inbound' or 'outbound'
|
|
40
|
+
attr_accessor :direction
|
|
41
|
+
|
|
42
|
+
# The call ANI.
|
|
43
|
+
attr_accessor :ani
|
|
44
|
+
|
|
45
|
+
# The call DNIS.
|
|
46
|
+
attr_accessor :dnis
|
|
47
|
+
|
|
48
|
+
# The PureCloud user for this participant.
|
|
49
|
+
attr_accessor :user
|
|
50
|
+
|
|
51
|
+
# The PureCloud queue for this participant.
|
|
52
|
+
attr_accessor :queue
|
|
53
|
+
|
|
54
|
+
# The group involved in the group ring call.
|
|
55
|
+
attr_accessor :group
|
|
56
|
+
|
|
57
|
+
# The reason the participant was disconnected from the conversation.
|
|
58
|
+
attr_accessor :disconnect_type
|
|
59
|
+
|
|
60
|
+
# The PureCloud external contact
|
|
61
|
+
attr_accessor :external_contact
|
|
62
|
+
|
|
63
|
+
# The PureCloud external organization
|
|
64
|
+
attr_accessor :external_organization
|
|
65
|
+
|
|
66
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
67
|
+
def self.attribute_map
|
|
68
|
+
{
|
|
69
|
+
|
|
70
|
+
:'id' => :'id',
|
|
71
|
+
|
|
72
|
+
:'name' => :'name',
|
|
73
|
+
|
|
74
|
+
:'address' => :'address',
|
|
75
|
+
|
|
76
|
+
:'start_time' => :'startTime',
|
|
77
|
+
|
|
78
|
+
:'end_time' => :'endTime',
|
|
79
|
+
|
|
80
|
+
:'purpose' => :'purpose',
|
|
81
|
+
|
|
82
|
+
:'direction' => :'direction',
|
|
83
|
+
|
|
84
|
+
:'ani' => :'ani',
|
|
85
|
+
|
|
86
|
+
:'dnis' => :'dnis',
|
|
87
|
+
|
|
88
|
+
:'user' => :'user',
|
|
89
|
+
|
|
90
|
+
:'queue' => :'queue',
|
|
91
|
+
|
|
92
|
+
:'group' => :'group',
|
|
93
|
+
|
|
94
|
+
:'disconnect_type' => :'disconnectType',
|
|
95
|
+
|
|
96
|
+
:'external_contact' => :'externalContact',
|
|
97
|
+
|
|
98
|
+
:'external_organization' => :'externalOrganization'
|
|
99
|
+
|
|
100
|
+
}
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Attribute type mapping.
|
|
104
|
+
def self.swagger_types
|
|
105
|
+
{
|
|
106
|
+
|
|
107
|
+
:'id' => :'String',
|
|
108
|
+
|
|
109
|
+
:'name' => :'String',
|
|
110
|
+
|
|
111
|
+
:'address' => :'String',
|
|
112
|
+
|
|
113
|
+
:'start_time' => :'DateTime',
|
|
114
|
+
|
|
115
|
+
:'end_time' => :'DateTime',
|
|
116
|
+
|
|
117
|
+
:'purpose' => :'String',
|
|
118
|
+
|
|
119
|
+
:'direction' => :'String',
|
|
120
|
+
|
|
121
|
+
:'ani' => :'String',
|
|
122
|
+
|
|
123
|
+
:'dnis' => :'String',
|
|
124
|
+
|
|
125
|
+
:'user' => :'UriReference',
|
|
126
|
+
|
|
127
|
+
:'queue' => :'UriReference',
|
|
128
|
+
|
|
129
|
+
:'group' => :'UriReference',
|
|
130
|
+
|
|
131
|
+
:'disconnect_type' => :'String',
|
|
132
|
+
|
|
133
|
+
:'external_contact' => :'UriReference',
|
|
134
|
+
|
|
135
|
+
:'external_organization' => :'UriReference'
|
|
136
|
+
|
|
137
|
+
}
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Initializes the object
|
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
142
|
+
def initialize(attributes = {})
|
|
143
|
+
return unless attributes.is_a?(Hash)
|
|
144
|
+
|
|
145
|
+
# convert string to symbol for hash key
|
|
146
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
if attributes.has_key?(:'id')
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
self.id = attributes[:'id']
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
if attributes.has_key?(:'name')
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
self.name = attributes[:'name']
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
if attributes.has_key?(:'address')
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
self.address = attributes[:'address']
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
if attributes.has_key?(:'startTime')
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
self.start_time = attributes[:'startTime']
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
if attributes.has_key?(:'endTime')
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
self.end_time = attributes[:'endTime']
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
if attributes.has_key?(:'purpose')
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
self.purpose = attributes[:'purpose']
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
if attributes.has_key?(:'direction')
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
self.direction = attributes[:'direction']
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
if attributes.has_key?(:'ani')
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
self.ani = attributes[:'ani']
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
if attributes.has_key?(:'dnis')
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
self.dnis = attributes[:'dnis']
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
if attributes.has_key?(:'user')
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
self.user = attributes[:'user']
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
if attributes.has_key?(:'queue')
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
self.queue = attributes[:'queue']
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
if attributes.has_key?(:'group')
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
self.group = attributes[:'group']
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
if attributes.has_key?(:'disconnectType')
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
self.disconnect_type = attributes[:'disconnectType']
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
if attributes.has_key?(:'externalContact')
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
self.external_contact = attributes[:'externalContact']
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
if attributes.has_key?(:'externalOrganization')
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
self.external_organization = attributes[:'externalOrganization']
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
287
|
+
# @return Array for valid properies with the reasons
|
|
288
|
+
def list_invalid_properties
|
|
289
|
+
invalid_properties = Array.new
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
return invalid_properties
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Check to see if the all the properties in the model are valid
|
|
296
|
+
# @return true if the model is valid
|
|
297
|
+
def valid?
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
allowed_values = ["inbound", "outbound"]
|
|
326
|
+
if @direction && !allowed_values.include?(@direction)
|
|
327
|
+
return false
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
allowed_values = ["endpoint", "client", "system", "transfer", "transfer.conference", "transfer.consult", "transfer.forward", "transfer.noanswer", "transfer.notavailable", "transport.failure", "error", "peer", "other", "spam"]
|
|
355
|
+
if @disconnect_type && !allowed_values.include?(@disconnect_type)
|
|
356
|
+
return false
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
404
|
+
# @param [Object] direction Object to be assigned
|
|
405
|
+
def direction=(direction)
|
|
406
|
+
allowed_values = ["inbound", "outbound"]
|
|
407
|
+
if direction && !allowed_values.include?(direction)
|
|
408
|
+
fail ArgumentError, "invalid value for 'direction', must be one of #{allowed_values}."
|
|
409
|
+
end
|
|
410
|
+
@direction = direction
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
443
|
+
# @param [Object] disconnect_type Object to be assigned
|
|
444
|
+
def disconnect_type=(disconnect_type)
|
|
445
|
+
allowed_values = ["endpoint", "client", "system", "transfer", "transfer.conference", "transfer.consult", "transfer.forward", "transfer.noanswer", "transfer.notavailable", "transport.failure", "error", "peer", "other", "spam"]
|
|
446
|
+
if disconnect_type && !allowed_values.include?(disconnect_type)
|
|
447
|
+
fail ArgumentError, "invalid value for 'disconnect_type', must be one of #{allowed_values}."
|
|
448
|
+
end
|
|
449
|
+
@disconnect_type = disconnect_type
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
# Checks equality by comparing each attribute.
|
|
466
|
+
# @param [Object] Object to be compared
|
|
467
|
+
def ==(o)
|
|
468
|
+
return true if self.equal?(o)
|
|
469
|
+
self.class == o.class &&
|
|
470
|
+
id == o.id &&
|
|
471
|
+
name == o.name &&
|
|
472
|
+
address == o.address &&
|
|
473
|
+
start_time == o.start_time &&
|
|
474
|
+
end_time == o.end_time &&
|
|
475
|
+
purpose == o.purpose &&
|
|
476
|
+
direction == o.direction &&
|
|
477
|
+
ani == o.ani &&
|
|
478
|
+
dnis == o.dnis &&
|
|
479
|
+
user == o.user &&
|
|
480
|
+
queue == o.queue &&
|
|
481
|
+
group == o.group &&
|
|
482
|
+
disconnect_type == o.disconnect_type &&
|
|
483
|
+
external_contact == o.external_contact &&
|
|
484
|
+
external_organization == o.external_organization
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
# @see the `==` method
|
|
488
|
+
# @param [Object] Object to be compared
|
|
489
|
+
def eql?(o)
|
|
490
|
+
self == o
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# Calculates hash code according to all attributes.
|
|
494
|
+
# @return [Fixnum] Hash code
|
|
495
|
+
def hash
|
|
496
|
+
[id, name, address, start_time, end_time, purpose, direction, ani, dnis, user, queue, group, disconnect_type, external_contact, external_organization].hash
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
# build the object from hash
|
|
500
|
+
def build_from_hash(attributes)
|
|
501
|
+
return nil unless attributes.is_a?(Hash)
|
|
502
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
503
|
+
if type =~ /^Array<(.*)>/i
|
|
504
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
505
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
506
|
+
else
|
|
507
|
+
#TODO show warning in debug mode
|
|
508
|
+
end
|
|
509
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
510
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
511
|
+
else
|
|
512
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
|
513
|
+
end
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
self
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
def _deserialize(type, value)
|
|
520
|
+
case type.to_sym
|
|
521
|
+
when :DateTime
|
|
522
|
+
DateTime.parse(value)
|
|
523
|
+
when :Date
|
|
524
|
+
Date.parse(value)
|
|
525
|
+
when :String
|
|
526
|
+
value.to_s
|
|
527
|
+
when :Integer
|
|
528
|
+
value.to_i
|
|
529
|
+
when :Float
|
|
530
|
+
value.to_f
|
|
531
|
+
when :BOOLEAN
|
|
532
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
|
533
|
+
true
|
|
534
|
+
else
|
|
535
|
+
false
|
|
536
|
+
end
|
|
537
|
+
when :Object
|
|
538
|
+
# generic object (usually a Hash), return directly
|
|
539
|
+
value
|
|
540
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
541
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
542
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
543
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
|
544
|
+
k_type = Regexp.last_match[:k_type]
|
|
545
|
+
v_type = Regexp.last_match[:v_type]
|
|
546
|
+
{}.tap do |hash|
|
|
547
|
+
value.each do |k, v|
|
|
548
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
549
|
+
end
|
|
550
|
+
end
|
|
551
|
+
else # model
|
|
552
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
|
553
|
+
_model.build_from_hash(value)
|
|
554
|
+
end
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
def to_s
|
|
558
|
+
to_hash.to_s
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
# to_body is an alias to to_body (backward compatibility))
|
|
562
|
+
def to_body
|
|
563
|
+
to_hash
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
# return the object in the form of hash
|
|
567
|
+
def to_hash
|
|
568
|
+
hash = {}
|
|
569
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
570
|
+
value = self.send(attr)
|
|
571
|
+
next if value.nil?
|
|
572
|
+
hash[param] = _to_hash(value)
|
|
573
|
+
end
|
|
574
|
+
hash
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
# Method to output non-array value in the form of hash
|
|
578
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
579
|
+
def _to_hash(value)
|
|
580
|
+
if value.is_a?(Array)
|
|
581
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
582
|
+
elsif value.is_a?(Hash)
|
|
583
|
+
{}.tap do |hash|
|
|
584
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
585
|
+
end
|
|
586
|
+
elsif value.respond_to? :to_hash
|
|
587
|
+
value.to_hash
|
|
588
|
+
else
|
|
589
|
+
value
|
|
590
|
+
end
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
end
|
|
594
|
+
end
|