purecloudplatformclientv2 7.0.0 → 8.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/AgentActivityEntityListing.md +1 -1
- 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/CallConversationNotificationCallMediaParticipant.md +1 -1
- data/docs/CallConversationNotificationParticipants.md +1 -1
- data/docs/CallableTimeSetEntityListing.md +1 -1
- data/docs/CallbackConversationEntityListing.md +1 -1
- data/docs/CallbackConversationNotificationCallbackMediaParticipant.md +1 -1
- data/docs/CallbackConversationNotificationParticipants.md +1 -1
- data/docs/Campaign.md +1 -0
- data/docs/CampaignEntityListing.md +1 -1
- data/docs/CampaignNotification.md +1 -1
- data/docs/CampaignProgressNotification.md +1 -1
- data/docs/CampaignRuleEntityListing.md +1 -1
- data/docs/CampaignRuleNotificationCampaignRuleEntities.md +1 -1
- data/docs/CampaignScheduleNotification.md +1 -1
- data/docs/CampaignSequenceEntityListing.md +1 -1
- data/docs/CampaignSequenceNotification.md +1 -1
- data/docs/CertificateAuthorityEntityListing.md +1 -1
- data/docs/ChatConversationEntityListing.md +1 -1
- data/docs/ChatConversationNotificationChatMediaParticipant.md +1 -1
- data/docs/ChatConversationNotificationParticipants.md +1 -1
- data/docs/CobrowseConversationEntityListing.md +1 -1
- data/docs/CobrowseConversationNotificationCobrowseMediaParticipant.md +1 -1
- data/docs/CobrowseConversationNotificationParticipants.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/ContactListFilter.md +21 -0
- data/docs/ContactListFilterClause.md +14 -0
- data/docs/ContactListFilterEntityListing.md +22 -0
- data/docs/ContactListFilterNotification.md +1 -1
- data/docs/ContactListFilterPredicate.md +18 -0
- data/docs/ContactListFilterRange.md +17 -0
- data/docs/ContactListNotification.md +1 -1
- data/docs/ContactListing.md +1 -1
- data/docs/ConversationAssociation.md +1 -1
- data/docs/ConversationEntityListing.md +1 -1
- data/docs/DIDEntityListing.md +1 -1
- data/docs/DIDPoolEntityListing.md +1 -1
- data/docs/DependencyObjectEntityListing.md +1 -1
- data/docs/DependencyTrackingBuildNotificationNotificationHomeOrganization.md +15 -0
- data/docs/DependencyTrackingBuildNotificationNotificationUser.md +1 -0
- data/docs/DependencyTrackingBuildNotificationNotificationUserHomeOrg.md +15 -0
- data/docs/DependencyTypeEntityListing.md +1 -1
- data/docs/DialerEventEntityListing.md +1 -1
- data/docs/DncListEntityListing.md +1 -1
- data/docs/DocumentAuditEntityListing.md +1 -1
- data/docs/DocumentDataV2Notification.md +1 -1
- data/docs/DocumentDataV2NotificationCreatedBy.md +14 -0
- 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/EmailConversationNotificationEmailMediaParticipant.md +1 -1
- data/docs/EmailConversationNotificationParticipants.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/FaxDataV2Notification.md +1 -1
- data/docs/FaxDocumentEntityListing.md +1 -1
- data/docs/FilterPreviewResponse.md +15 -0
- data/docs/FlowEntityListing.md +1 -1
- data/docs/FlowNotificationNotificationHomeOrganization.md +15 -0
- data/docs/FlowNotificationNotificationUser.md +1 -0
- data/docs/FlowVersionEntityListing.md +1 -1
- data/docs/GreetingListing.md +1 -1
- data/docs/GreetingNotification.md +19 -0
- data/docs/GreetingNotificationGreetingAudioFile.md +14 -0
- data/docs/GreetingNotificationGreetingOwner.md +13 -0
- data/docs/GroupEntityListing.md +1 -1
- data/docs/HeartBeatAlertContainer.md +1 -1
- data/docs/HeartBeatRuleContainer.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/LicenseDefinitionListing.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/NoteListing.md +1 -1
- data/docs/OAuthClientEntityListing.md +1 -1
- data/docs/OAuthProviderEntityListing.md +1 -1
- data/docs/Organization.md +1 -0
- data/docs/OrganizationPresenceEntityListing.md +1 -1
- data/docs/OrganizationRoleEntityListing.md +1 -1
- data/docs/OrphanRecordingListing.md +1 -1
- data/docs/OutOfOfficeNotification.md +0 -1
- data/docs/OutboundApi.md +375 -0
- 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/PresenceDefinition.md +15 -0
- data/docs/PromptAssetEntityListing.md +1 -1
- data/docs/PromptEntityListing.md +1 -1
- data/docs/PromptNotificationNotificationHomeOrganization.md +15 -0
- data/docs/PromptNotificationNotificationUser.md +1 -0
- data/docs/QualityAuditPage.md +1 -1
- data/docs/QueueEntityListing.md +1 -1
- data/docs/QueueMemberEntityListing.md +1 -1
- data/docs/RecordingDataV2Notification.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/RoutingStatusAlertContainer.md +1 -1
- data/docs/RoutingStatusRuleContainer.md +1 -1
- data/docs/RuleSetEntityListing.md +1 -1
- data/docs/RuleSetNotification.md +1 -1
- data/docs/SchemaCategoryEntityListing.md +1 -1
- data/docs/SchemaReferenceEntityListing.md +1 -1
- data/docs/ScreenRecordingSessionListing.md +1 -1
- data/docs/ScreenShareConversationNotificationParticipants.md +1 -1
- data/docs/ScreenShareConversationNotificationScreenShareMediaParticipant.md +1 -1
- data/docs/ScriptEntityListing.md +1 -1
- data/docs/SecurityProfileEntityListing.md +1 -1
- data/docs/SequenceScheduleNotification.md +1 -1
- data/docs/ShareEntityListing.md +1 -1
- data/docs/SiteEntityListing.md +1 -1
- data/docs/SkillEntityListing.md +1 -1
- data/docs/SocialConversationNotificationParticipants.md +1 -1
- data/docs/SocialConversationNotificationSocialMediaParticipant.md +1 -1
- data/docs/StationEntityListing.md +1 -1
- data/docs/StationsApi.md +2 -0
- 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/UserEntityListing.md +1 -1
- data/docs/UserPresence.md +1 -1
- data/docs/UserPresenceAlertContainer.md +1 -1
- data/docs/UserPresenceRuleContainer.md +1 -1
- data/docs/UserQueueEntityListing.md +1 -1
- data/docs/UserRecordingEntityListing.md +1 -1
- data/docs/UserSkillEntityListing.md +1 -1
- data/docs/VideoConversationNotificationParticipants.md +1 -1
- data/docs/VideoConversationNotificationVideoMediaParticipant.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 +15 -0
- data/lib/purecloudplatformclientv2/api/outbound_api.rb +368 -0
- data/lib/purecloudplatformclientv2/api/stations_api.rb +3 -0
- data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/call_conversation_notification_call_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/call_conversation_notification_participants.rb +1 -1
- data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/callback_conversation_notification_callback_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/callback_conversation_notification_participants.rb +1 -1
- data/lib/purecloudplatformclientv2/models/campaign.rb +13 -1
- data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/campaign_notification.rb +1 -1
- data/lib/purecloudplatformclientv2/models/campaign_progress_notification.rb +1 -1
- data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/campaign_rule_notification_campaign_rule_entities.rb +1 -1
- data/lib/purecloudplatformclientv2/models/campaign_schedule_notification.rb +1 -1
- data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/campaign_sequence_notification.rb +1 -1
- data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/chat_conversation_notification_chat_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/chat_conversation_notification_participants.rb +1 -1
- data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_cobrowse_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_participants.rb +1 -1
- data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/contact_list_filter.rb +277 -0
- data/lib/purecloudplatformclientv2/models/contact_list_filter_clause.rb +204 -0
- data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +261 -0
- data/lib/purecloudplatformclientv2/models/contact_list_filter_notification.rb +1 -1
- data/lib/purecloudplatformclientv2/models/contact_list_filter_predicate.rb +256 -0
- data/lib/purecloudplatformclientv2/models/contact_list_filter_range.rb +216 -0
- data/lib/purecloudplatformclientv2/models/contact_list_notification.rb +1 -1
- data/lib/purecloudplatformclientv2/models/contact_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/conversation_association.rb +1 -1
- data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/dependency_tracking_build_notification_notification_home_organization.rb +196 -0
- data/lib/purecloudplatformclientv2/models/dependency_tracking_build_notification_notification_user.rb +13 -4
- data/lib/purecloudplatformclientv2/models/dependency_tracking_build_notification_notification_user_home_org.rb +196 -0
- data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/document_data_v2_notification.rb +1 -1
- data/lib/purecloudplatformclientv2/models/document_data_v2_notification_created_by.rb +187 -0
- data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +10 -10
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +10 -10
- data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +10 -10
- data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +10 -10
- data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +10 -10
- data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/email_conversation_notification_email_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/email_conversation_notification_participants.rb +1 -1
- data/lib/purecloudplatformclientv2/models/email_message_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/event_log.rb +2 -2
- data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/fax_data_v2_notification.rb +1 -1
- data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/filter_preview_response.rb +198 -0
- data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/flow_notification_notification_home_organization.rb +196 -0
- data/lib/purecloudplatformclientv2/models/flow_notification_notification_user.rb +13 -4
- data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/greeting_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/greeting_notification.rb +232 -0
- data/lib/purecloudplatformclientv2/models/greeting_notification_greeting_audio_file.rb +187 -0
- data/lib/purecloudplatformclientv2/models/greeting_notification_greeting_owner.rb +178 -0
- data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/heart_beat_alert_container.rb +10 -10
- data/lib/purecloudplatformclientv2/models/heart_beat_rule_container.rb +10 -10
- data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +10 -10
- data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +10 -10
- data/lib/purecloudplatformclientv2/models/json_node.rb +37 -37
- data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/license_definition_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/note_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/organization.rb +11 -1
- data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/out_of_office_notification.rb +4 -13
- data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/presence_definition.rb +198 -0
- data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_home_organization.rb +196 -0
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_user.rb +13 -4
- data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +10 -10
- data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/recording_data_v2_notification.rb +1 -1
- data/lib/purecloudplatformclientv2/models/relationship_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/response_entity_list.rb +10 -10
- data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/routing_status_alert_container.rb +10 -10
- data/lib/purecloudplatformclientv2/models/routing_status_rule_container.rb +10 -10
- data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/rule_set_notification.rb +1 -1
- data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_participants.rb +1 -1
- data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_screen_share_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/sequence_schedule_notification.rb +1 -1
- data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/social_conversation_notification_participants.rb +1 -1
- data/lib/purecloudplatformclientv2/models/social_conversation_notification_social_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/user_presence.rb +1 -1
- data/lib/purecloudplatformclientv2/models/user_presence_alert_container.rb +10 -10
- data/lib/purecloudplatformclientv2/models/user_presence_rule_container.rb +10 -10
- data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/video_conversation_notification_participants.rb +1 -1
- data/lib/purecloudplatformclientv2/models/video_conversation_notification_video_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +32 -2
|
@@ -0,0 +1,261 @@
|
|
|
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 ContactListFilterEntityListing
|
|
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
|
+
:'entities' => :'entities',
|
|
45
|
+
:'page_size' => :'pageSize',
|
|
46
|
+
:'page_number' => :'pageNumber',
|
|
47
|
+
:'total' => :'total',
|
|
48
|
+
:'self_uri' => :'selfUri',
|
|
49
|
+
:'first_uri' => :'firstUri',
|
|
50
|
+
:'previous_uri' => :'previousUri',
|
|
51
|
+
:'next_uri' => :'nextUri',
|
|
52
|
+
:'last_uri' => :'lastUri',
|
|
53
|
+
:'page_count' => :'pageCount'
|
|
54
|
+
}
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Attribute type mapping.
|
|
58
|
+
def self.swagger_types
|
|
59
|
+
{
|
|
60
|
+
:'entities' => :'Array<ContactListFilter>',
|
|
61
|
+
:'page_size' => :'Integer',
|
|
62
|
+
:'page_number' => :'Integer',
|
|
63
|
+
:'total' => :'Integer',
|
|
64
|
+
:'self_uri' => :'String',
|
|
65
|
+
:'first_uri' => :'String',
|
|
66
|
+
:'previous_uri' => :'String',
|
|
67
|
+
:'next_uri' => :'String',
|
|
68
|
+
:'last_uri' => :'String',
|
|
69
|
+
:'page_count' => :'Integer'
|
|
70
|
+
}
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Initializes the object
|
|
74
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
75
|
+
def initialize(attributes = {})
|
|
76
|
+
return unless attributes.is_a?(Hash)
|
|
77
|
+
|
|
78
|
+
# convert string to symbol for hash key
|
|
79
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
80
|
+
|
|
81
|
+
if attributes.has_key?(:'entities')
|
|
82
|
+
if (value = attributes[:'entities']).is_a?(Array)
|
|
83
|
+
self.entities = value
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.has_key?(:'pageSize')
|
|
88
|
+
self.page_size = attributes[:'pageSize']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.has_key?(:'pageNumber')
|
|
92
|
+
self.page_number = attributes[:'pageNumber']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.has_key?(:'total')
|
|
96
|
+
self.total = attributes[:'total']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.has_key?(:'selfUri')
|
|
100
|
+
self.self_uri = attributes[:'selfUri']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.has_key?(:'firstUri')
|
|
104
|
+
self.first_uri = attributes[:'firstUri']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.has_key?(:'previousUri')
|
|
108
|
+
self.previous_uri = attributes[:'previousUri']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.has_key?(:'nextUri')
|
|
112
|
+
self.next_uri = attributes[:'nextUri']
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.has_key?(:'lastUri')
|
|
116
|
+
self.last_uri = attributes[:'lastUri']
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.has_key?(:'pageCount')
|
|
120
|
+
self.page_count = attributes[:'pageCount']
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
126
|
+
# @return Array for valid properies with the reasons
|
|
127
|
+
def list_invalid_properties
|
|
128
|
+
invalid_properties = Array.new
|
|
129
|
+
return invalid_properties
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Check to see if the all the properties in the model are valid
|
|
133
|
+
# @return true if the model is valid
|
|
134
|
+
def valid?
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Checks equality by comparing each attribute.
|
|
138
|
+
# @param [Object] Object to be compared
|
|
139
|
+
def ==(o)
|
|
140
|
+
return true if self.equal?(o)
|
|
141
|
+
self.class == o.class &&
|
|
142
|
+
entities == o.entities &&
|
|
143
|
+
page_size == o.page_size &&
|
|
144
|
+
page_number == o.page_number &&
|
|
145
|
+
total == o.total &&
|
|
146
|
+
self_uri == o.self_uri &&
|
|
147
|
+
first_uri == o.first_uri &&
|
|
148
|
+
previous_uri == o.previous_uri &&
|
|
149
|
+
next_uri == o.next_uri &&
|
|
150
|
+
last_uri == o.last_uri &&
|
|
151
|
+
page_count == o.page_count
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# @see the `==` method
|
|
155
|
+
# @param [Object] Object to be compared
|
|
156
|
+
def eql?(o)
|
|
157
|
+
self == o
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Calculates hash code according to all attributes.
|
|
161
|
+
# @return [Fixnum] Hash code
|
|
162
|
+
def hash
|
|
163
|
+
[entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# build the object from hash
|
|
167
|
+
def build_from_hash(attributes)
|
|
168
|
+
return nil unless attributes.is_a?(Hash)
|
|
169
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
170
|
+
if type =~ /^Array<(.*)>/i
|
|
171
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
172
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
173
|
+
else
|
|
174
|
+
#TODO show warning in debug mode
|
|
175
|
+
end
|
|
176
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
177
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
178
|
+
else
|
|
179
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
self
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
def _deserialize(type, value)
|
|
187
|
+
case type.to_sym
|
|
188
|
+
when :DateTime
|
|
189
|
+
DateTime.parse(value)
|
|
190
|
+
when :Date
|
|
191
|
+
Date.parse(value)
|
|
192
|
+
when :String
|
|
193
|
+
value.to_s
|
|
194
|
+
when :Integer
|
|
195
|
+
value.to_i
|
|
196
|
+
when :Float
|
|
197
|
+
value.to_f
|
|
198
|
+
when :BOOLEAN
|
|
199
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
|
200
|
+
true
|
|
201
|
+
else
|
|
202
|
+
false
|
|
203
|
+
end
|
|
204
|
+
when :Object
|
|
205
|
+
# generic object (usually a Hash), return directly
|
|
206
|
+
value
|
|
207
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
208
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
209
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
210
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
|
211
|
+
k_type = Regexp.last_match[:k_type]
|
|
212
|
+
v_type = Regexp.last_match[:v_type]
|
|
213
|
+
{}.tap do |hash|
|
|
214
|
+
value.each do |k, v|
|
|
215
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
else # model
|
|
219
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
|
220
|
+
_model.build_from_hash(value)
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
def to_s
|
|
225
|
+
to_hash.to_s
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# to_body is an alias to to_body (backward compatibility))
|
|
229
|
+
def to_body
|
|
230
|
+
to_hash
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# return the object in the form of hash
|
|
234
|
+
def to_hash
|
|
235
|
+
hash = {}
|
|
236
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
237
|
+
value = self.send(attr)
|
|
238
|
+
next if value.nil?
|
|
239
|
+
hash[param] = _to_hash(value)
|
|
240
|
+
end
|
|
241
|
+
hash
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Method to output non-array value in the form of hash
|
|
245
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
246
|
+
def _to_hash(value)
|
|
247
|
+
if value.is_a?(Array)
|
|
248
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
249
|
+
elsif value.is_a?(Hash)
|
|
250
|
+
{}.tap do |hash|
|
|
251
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
252
|
+
end
|
|
253
|
+
elsif value.respond_to? :to_hash
|
|
254
|
+
value.to_hash
|
|
255
|
+
else
|
|
256
|
+
value
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
end
|
|
261
|
+
end
|
|
@@ -62,7 +62,7 @@ module PureCloud
|
|
|
62
62
|
:'date_created' => :'DateTime',
|
|
63
63
|
:'date_modified' => :'DateTime',
|
|
64
64
|
:'version' => :'Integer',
|
|
65
|
-
:'contact_list' => :'
|
|
65
|
+
:'contact_list' => :'DocumentDataV2NotificationCreatedBy',
|
|
66
66
|
:'contact_list_columns' => :'Array<String>',
|
|
67
67
|
:'clauses' => :'Array<ContactListFilterNotificationClauses>',
|
|
68
68
|
:'filter_type' => :'String',
|
|
@@ -0,0 +1,256 @@
|
|
|
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 ContactListFilterPredicate
|
|
21
|
+
# Contact List column that must match a contact list column in the ContactListFilter's contactList object
|
|
22
|
+
attr_accessor :column
|
|
23
|
+
|
|
24
|
+
# Whether the contact column contains numeric or alphabetic data
|
|
25
|
+
attr_accessor :column_type
|
|
26
|
+
|
|
27
|
+
attr_accessor :operator
|
|
28
|
+
|
|
29
|
+
# Contact List value to operate on. This could be text, a number, or a relative time. A value for relative time should follow the format PxxDTyyHzzM, where xx, yy, and zz specify the days, hours and minutes. For example, a value of P01DT08H30M corresponds to 1 day, 8 hours, and 30 minutes from now. To specify a time in the past, include a negative sign before each numeric value. For example, a value of P-01DT-08H-30M corresponds to 1 day, 8 hours, and 30 minutes in the past. You can also do things like P01DT00H-30M, which would correspond to 23 hours and 30 minutes from now (1 day - 30 minutes).
|
|
30
|
+
attr_accessor :value
|
|
31
|
+
|
|
32
|
+
# Range is only required for ContactListFilterComparisonOperator's BETWEEN and IN
|
|
33
|
+
attr_accessor :range
|
|
34
|
+
|
|
35
|
+
# Inverts the result of the predicate (i.e., if the predicate returns true, inverting it will return false).
|
|
36
|
+
attr_accessor :inverted
|
|
37
|
+
|
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
|
+
def self.attribute_map
|
|
40
|
+
{
|
|
41
|
+
:'column' => :'column',
|
|
42
|
+
:'column_type' => :'columnType',
|
|
43
|
+
:'operator' => :'operator',
|
|
44
|
+
:'value' => :'value',
|
|
45
|
+
:'range' => :'range',
|
|
46
|
+
:'inverted' => :'inverted'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Attribute type mapping.
|
|
51
|
+
def self.swagger_types
|
|
52
|
+
{
|
|
53
|
+
:'column' => :'String',
|
|
54
|
+
:'column_type' => :'String',
|
|
55
|
+
:'operator' => :'String',
|
|
56
|
+
:'value' => :'String',
|
|
57
|
+
:'range' => :'ContactListFilterRange',
|
|
58
|
+
:'inverted' => :'BOOLEAN'
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
return unless attributes.is_a?(Hash)
|
|
66
|
+
|
|
67
|
+
# convert string to symbol for hash key
|
|
68
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
69
|
+
|
|
70
|
+
if attributes.has_key?(:'column')
|
|
71
|
+
self.column = attributes[:'column']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.has_key?(:'columnType')
|
|
75
|
+
self.column_type = attributes[:'columnType']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.has_key?(:'operator')
|
|
79
|
+
self.operator = attributes[:'operator']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.has_key?(:'value')
|
|
83
|
+
self.value = attributes[:'value']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.has_key?(:'range')
|
|
87
|
+
self.range = attributes[:'range']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.has_key?(:'inverted')
|
|
91
|
+
self.inverted = attributes[:'inverted']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
97
|
+
# @return Array for valid properies with the reasons
|
|
98
|
+
def list_invalid_properties
|
|
99
|
+
invalid_properties = Array.new
|
|
100
|
+
return invalid_properties
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Check to see if the all the properties in the model are valid
|
|
104
|
+
# @return true if the model is valid
|
|
105
|
+
def valid?
|
|
106
|
+
allowed_values = ["numeric", "alphabetic"]
|
|
107
|
+
if @column_type && !allowed_values.include?(@column_type)
|
|
108
|
+
return false
|
|
109
|
+
end
|
|
110
|
+
allowed_values = ["EQUALS", "LESS_THAN", "LESS_THAN_EQUALS", "GREATER_THAN", "GREATER_THAN_EQUALS", "CONTAINS", "BEGINS_WITH", "ENDS_WITH", "BEFORE", "AFTER", "BETWEEN", "IN"]
|
|
111
|
+
if @operator && !allowed_values.include?(@operator)
|
|
112
|
+
return false
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
117
|
+
# @param [Object] column_type Object to be assigned
|
|
118
|
+
def column_type=(column_type)
|
|
119
|
+
allowed_values = ["numeric", "alphabetic"]
|
|
120
|
+
if column_type && !allowed_values.include?(column_type)
|
|
121
|
+
fail ArgumentError, "invalid value for 'column_type', must be one of #{allowed_values}."
|
|
122
|
+
end
|
|
123
|
+
@column_type = column_type
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
127
|
+
# @param [Object] operator Object to be assigned
|
|
128
|
+
def operator=(operator)
|
|
129
|
+
allowed_values = ["EQUALS", "LESS_THAN", "LESS_THAN_EQUALS", "GREATER_THAN", "GREATER_THAN_EQUALS", "CONTAINS", "BEGINS_WITH", "ENDS_WITH", "BEFORE", "AFTER", "BETWEEN", "IN"]
|
|
130
|
+
if operator && !allowed_values.include?(operator)
|
|
131
|
+
fail ArgumentError, "invalid value for 'operator', must be one of #{allowed_values}."
|
|
132
|
+
end
|
|
133
|
+
@operator = operator
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Checks equality by comparing each attribute.
|
|
137
|
+
# @param [Object] Object to be compared
|
|
138
|
+
def ==(o)
|
|
139
|
+
return true if self.equal?(o)
|
|
140
|
+
self.class == o.class &&
|
|
141
|
+
column == o.column &&
|
|
142
|
+
column_type == o.column_type &&
|
|
143
|
+
operator == o.operator &&
|
|
144
|
+
value == o.value &&
|
|
145
|
+
range == o.range &&
|
|
146
|
+
inverted == o.inverted
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# @see the `==` method
|
|
150
|
+
# @param [Object] Object to be compared
|
|
151
|
+
def eql?(o)
|
|
152
|
+
self == o
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Calculates hash code according to all attributes.
|
|
156
|
+
# @return [Fixnum] Hash code
|
|
157
|
+
def hash
|
|
158
|
+
[column, column_type, operator, value, range, inverted].hash
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# build the object from hash
|
|
162
|
+
def build_from_hash(attributes)
|
|
163
|
+
return nil unless attributes.is_a?(Hash)
|
|
164
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
165
|
+
if type =~ /^Array<(.*)>/i
|
|
166
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
167
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
168
|
+
else
|
|
169
|
+
#TODO show warning in debug mode
|
|
170
|
+
end
|
|
171
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
172
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
173
|
+
else
|
|
174
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
self
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
def _deserialize(type, value)
|
|
182
|
+
case type.to_sym
|
|
183
|
+
when :DateTime
|
|
184
|
+
DateTime.parse(value)
|
|
185
|
+
when :Date
|
|
186
|
+
Date.parse(value)
|
|
187
|
+
when :String
|
|
188
|
+
value.to_s
|
|
189
|
+
when :Integer
|
|
190
|
+
value.to_i
|
|
191
|
+
when :Float
|
|
192
|
+
value.to_f
|
|
193
|
+
when :BOOLEAN
|
|
194
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
|
195
|
+
true
|
|
196
|
+
else
|
|
197
|
+
false
|
|
198
|
+
end
|
|
199
|
+
when :Object
|
|
200
|
+
# generic object (usually a Hash), return directly
|
|
201
|
+
value
|
|
202
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
203
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
204
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
205
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
|
206
|
+
k_type = Regexp.last_match[:k_type]
|
|
207
|
+
v_type = Regexp.last_match[:v_type]
|
|
208
|
+
{}.tap do |hash|
|
|
209
|
+
value.each do |k, v|
|
|
210
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
else # model
|
|
214
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
|
215
|
+
_model.build_from_hash(value)
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
def to_s
|
|
220
|
+
to_hash.to_s
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# to_body is an alias to to_body (backward compatibility))
|
|
224
|
+
def to_body
|
|
225
|
+
to_hash
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# return the object in the form of hash
|
|
229
|
+
def to_hash
|
|
230
|
+
hash = {}
|
|
231
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
232
|
+
value = self.send(attr)
|
|
233
|
+
next if value.nil?
|
|
234
|
+
hash[param] = _to_hash(value)
|
|
235
|
+
end
|
|
236
|
+
hash
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Method to output non-array value in the form of hash
|
|
240
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
241
|
+
def _to_hash(value)
|
|
242
|
+
if value.is_a?(Array)
|
|
243
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
244
|
+
elsif value.is_a?(Hash)
|
|
245
|
+
{}.tap do |hash|
|
|
246
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
247
|
+
end
|
|
248
|
+
elsif value.respond_to? :to_hash
|
|
249
|
+
value.to_hash
|
|
250
|
+
else
|
|
251
|
+
value
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
end
|
|
256
|
+
end
|