purecloudplatformclientv2 3.1.7 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/AgentActivityEntityListing.md +1 -1
- data/docs/AnalyticsApi.md +3 -4
- data/docs/ArchitectApi.md +14 -15
- data/docs/AttemptLimitsEntityListing.md +1 -1
- data/docs/AttributeEntityListing.md +1 -1
- data/docs/AuthorizationApi.md +2 -0
- 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/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/CertificateDetails.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/ContactListFilterNotification.md +22 -0
- data/docs/ContactListFilterNotificationClauses.md +15 -0
- data/docs/ContactListFilterNotificationFilterClause.md +15 -0
- data/docs/ContactListFilterNotificationFilterPredicate.md +18 -0
- data/docs/ContactListFilterNotificationPredicates.md +18 -0
- data/docs/ContactListFilterNotificationRange.md +18 -0
- data/docs/ContactListFilterNotificationUriReference.md +14 -0
- data/docs/ContactListNotification.md +1 -1
- data/docs/ContactListing.md +1 -1
- data/docs/ConversationAssociation.md +1 -0
- data/docs/ConversationEntityListing.md +1 -1
- data/docs/ConversationsApi.md +6 -8
- data/docs/DIDEntityListing.md +1 -1
- data/docs/DIDPoolEntityListing.md +1 -1
- data/docs/DataSchema.md +20 -0
- data/docs/DependencyObjectEntityListing.md +1 -1
- data/docs/DependencyTrackingBuildNotificationNotification.md +15 -0
- data/docs/DependencyTrackingBuildNotificationNotificationUser.md +14 -0
- data/docs/DependencyTypeEntityListing.md +1 -1
- data/docs/DncListEntityListing.md +1 -1
- data/docs/Document.md +1 -1
- data/docs/DocumentAuditEntityListing.md +1 -1
- data/docs/DocumentDataV2Notification.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/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/ExternalContactsApi.md +228 -37
- data/docs/ExternalOrganizationListing.md +1 -1
- data/docs/FaxDataV2Notification.md +1 -1
- data/docs/FaxDocument.md +1 -1
- data/docs/FaxDocumentEntityListing.md +1 -1
- data/docs/FlowEntityListing.md +1 -1
- data/docs/FlowNotificationNotification.md +20 -0
- data/docs/FlowNotificationNotificationArchitectOperation.md +21 -0
- data/docs/FlowNotificationNotificationErrorDetail.md +16 -0
- data/docs/FlowNotificationNotificationErrorMessageParams.md +13 -0
- data/docs/FlowNotificationNotificationFlowVersion.md +13 -0
- data/docs/{DocumentDataV2NotificationCreatedBy.md → FlowNotificationNotificationUser.md} +2 -2
- data/docs/FlowVersionEntityListing.md +1 -1
- data/docs/GreetingListing.md +1 -1
- 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 +6 -6
- 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/LogicalInterfaceEntityListing.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/OutboundApi.md +33 -44
- 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/PromptNotificationNotification.md +16 -0
- data/docs/PromptNotificationNotificationArchitectOperation.md +21 -0
- data/docs/PromptNotificationNotificationCurrentOperation.md +21 -0
- data/docs/PromptNotificationNotificationCurrentOperationErrorDetails.md +16 -0
- data/docs/PromptNotificationNotificationCurrentOperationErrorMessageParams.md +13 -0
- data/docs/PromptNotificationNotificationErrorDetail.md +16 -0
- data/docs/PromptNotificationNotificationErrorMessageParams.md +13 -0
- data/docs/PromptNotificationNotificationUser.md +14 -0
- data/docs/PromptResourceNotificationNotification.md +18 -0
- data/docs/PublishFlowNotificationNotification.md +16 -0
- data/docs/QualityApi.md +8 -10
- data/docs/QualityAuditPage.md +1 -1
- data/docs/QueueEntityListing.md +1 -1
- data/docs/QueueMemberEntityListing.md +1 -1
- data/docs/RecordingApi.md +6 -8
- 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/RoutingApi.md +27 -36
- 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/Station.md +2 -1
- data/docs/StationEntityListing.md +1 -1
- data/docs/StationsApi.md +5 -4
- data/docs/SystemPromptAssetEntityListing.md +1 -1
- data/docs/SystemPromptEntityListing.md +1 -1
- data/docs/SystemPromptResourceNotificationNotification.md +18 -0
- data/docs/TagValueEntityListing.md +1 -1
- data/docs/TelephonyProvidersEdgeApi.md +41 -54
- data/docs/TimeZoneEntityListing.md +1 -1
- data/docs/TokensApi.md +3 -4
- data/docs/TrunkBaseEntityListing.md +1 -1
- data/docs/TrunkConnectedStatus.md +14 -0
- data/docs/TrunkEntityListing.md +1 -1
- data/docs/TrunkErrorInfo.md +15 -0
- data/docs/TrunkErrorInfoDetails.md +15 -0
- data/docs/TrunkMetabaseEntityListing.md +1 -1
- data/docs/TrunkMetricsNetworkTypeIp.md +14 -0
- data/docs/TrunkMetricsOptions.md +16 -0
- data/docs/TrunkMetricsRegisters.md +16 -0
- data/docs/UpdateUser.md +28 -0
- data/docs/UserEntityListing.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/UsersApi.md +5 -6
- data/docs/VideoConversationNotificationParticipants.md +1 -1
- data/docs/VideoConversationNotificationVideoMediaParticipant.md +1 -1
- data/docs/VoicemailApi.md +6 -8
- data/docs/VoicemailGroupPolicy.md +2 -0
- 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 +34 -1
- data/lib/purecloudplatformclientv2/api/analytics_api.rb +5 -6
- data/lib/purecloudplatformclientv2/api/architect_api.rb +19 -20
- data/lib/purecloudplatformclientv2/api/authorization_api.rb +3 -0
- data/lib/purecloudplatformclientv2/api/conversations_api.rb +10 -12
- data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +242 -58
- data/lib/purecloudplatformclientv2/api/outbound_api.rb +55 -66
- data/lib/purecloudplatformclientv2/api/quality_api.rb +12 -14
- data/lib/purecloudplatformclientv2/api/recording_api.rb +10 -12
- data/lib/purecloudplatformclientv2/api/routing_api.rb +45 -54
- data/lib/purecloudplatformclientv2/api/stations_api.rb +8 -6
- data/lib/purecloudplatformclientv2/api/telephony_providers_edge_api.rb +68 -81
- data/lib/purecloudplatformclientv2/api/tokens_api.rb +5 -6
- data/lib/purecloudplatformclientv2/api/users_api.rb +5 -6
- data/lib/purecloudplatformclientv2/api/voicemail_api.rb +10 -12
- data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/aggregate_metric_data.rb +2 -2
- data/lib/purecloudplatformclientv2/models/analytics_query_predicate.rb +2 -2
- 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_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/certificate_details.rb +13 -13
- 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_notification.rb +277 -0
- data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_clauses.rb +212 -0
- data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_filter_clause.rb +212 -0
- data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_filter_predicate.rb +251 -0
- data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_predicates.rb +251 -0
- data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_range.rb +225 -0
- data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_uri_reference.rb +187 -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 +11 -1
- data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/data_schema.rb +258 -0
- data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/dependency_tracking_build_notification_notification.rb +196 -0
- data/lib/purecloudplatformclientv2/models/dependency_tracking_build_notification_notification_user.rb +187 -0
- data/lib/purecloudplatformclientv2/models/dependency_type_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.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_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/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.rb +10 -10
- data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/flow_notification_notification.rb +241 -0
- data/lib/purecloudplatformclientv2/models/flow_notification_notification_architect_operation.rb +280 -0
- data/lib/purecloudplatformclientv2/models/flow_notification_notification_error_detail.rb +205 -0
- data/lib/purecloudplatformclientv2/models/flow_notification_notification_error_message_params.rb +180 -0
- data/lib/purecloudplatformclientv2/models/flow_notification_notification_flow_version.rb +178 -0
- data/lib/purecloudplatformclientv2/models/{document_data_v2_notification_created_by.rb → flow_notification_notification_user.rb} +1 -1
- data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/greeting_listing.rb +10 -10
- 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 +43 -43
- 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/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_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/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/prompt_asset_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification.rb +205 -0
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_architect_operation.rb +280 -0
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_current_operation.rb +280 -0
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_current_operation_error_details.rb +205 -0
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_current_operation_error_message_params.rb +180 -0
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_error_detail.rb +205 -0
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_error_message_params.rb +180 -0
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_user.rb +187 -0
- data/lib/purecloudplatformclientv2/models/prompt_resource_notification_notification.rb +223 -0
- data/lib/purecloudplatformclientv2/models/publish_flow_notification_notification.rb +205 -0
- 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.rb +12 -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/system_prompt_resource_notification_notification.rb +223 -0
- 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_connected_status.rb +188 -0
- data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/trunk_error_info.rb +196 -0
- data/lib/purecloudplatformclientv2/models/trunk_error_info_details.rb +196 -0
- data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +10 -10
- data/lib/purecloudplatformclientv2/models/trunk_metrics_network_type_ip.rb +189 -0
- data/lib/purecloudplatformclientv2/models/trunk_metrics_options.rb +207 -0
- data/lib/purecloudplatformclientv2/models/trunk_metrics_registers.rb +208 -0
- data/lib/purecloudplatformclientv2/models/update_user.rb +332 -0
- data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +10 -10
- 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_group_policy.rb +38 -4
- 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 +70 -4
@@ -26,10 +26,10 @@ module PureCloud
|
|
26
26
|
|
27
27
|
attr_accessor :total
|
28
28
|
|
29
|
-
attr_accessor :first_uri
|
30
|
-
|
31
29
|
attr_accessor :self_uri
|
32
30
|
|
31
|
+
attr_accessor :first_uri
|
32
|
+
|
33
33
|
attr_accessor :previous_uri
|
34
34
|
|
35
35
|
attr_accessor :next_uri
|
@@ -45,8 +45,8 @@ module PureCloud
|
|
45
45
|
:'page_size' => :'pageSize',
|
46
46
|
:'page_number' => :'pageNumber',
|
47
47
|
:'total' => :'total',
|
48
|
-
:'first_uri' => :'firstUri',
|
49
48
|
:'self_uri' => :'selfUri',
|
49
|
+
:'first_uri' => :'firstUri',
|
50
50
|
:'previous_uri' => :'previousUri',
|
51
51
|
:'next_uri' => :'nextUri',
|
52
52
|
:'last_uri' => :'lastUri',
|
@@ -61,8 +61,8 @@ module PureCloud
|
|
61
61
|
:'page_size' => :'Integer',
|
62
62
|
:'page_number' => :'Integer',
|
63
63
|
:'total' => :'Integer',
|
64
|
-
:'first_uri' => :'String',
|
65
64
|
:'self_uri' => :'String',
|
65
|
+
:'first_uri' => :'String',
|
66
66
|
:'previous_uri' => :'String',
|
67
67
|
:'next_uri' => :'String',
|
68
68
|
:'last_uri' => :'String',
|
@@ -96,14 +96,14 @@ module PureCloud
|
|
96
96
|
self.total = attributes[:'total']
|
97
97
|
end
|
98
98
|
|
99
|
-
if attributes.has_key?(:'firstUri')
|
100
|
-
self.first_uri = attributes[:'firstUri']
|
101
|
-
end
|
102
|
-
|
103
99
|
if attributes.has_key?(:'selfUri')
|
104
100
|
self.self_uri = attributes[:'selfUri']
|
105
101
|
end
|
106
102
|
|
103
|
+
if attributes.has_key?(:'firstUri')
|
104
|
+
self.first_uri = attributes[:'firstUri']
|
105
|
+
end
|
106
|
+
|
107
107
|
if attributes.has_key?(:'previousUri')
|
108
108
|
self.previous_uri = attributes[:'previousUri']
|
109
109
|
end
|
@@ -143,8 +143,8 @@ module PureCloud
|
|
143
143
|
page_size == o.page_size &&
|
144
144
|
page_number == o.page_number &&
|
145
145
|
total == o.total &&
|
146
|
-
first_uri == o.first_uri &&
|
147
146
|
self_uri == o.self_uri &&
|
147
|
+
first_uri == o.first_uri &&
|
148
148
|
previous_uri == o.previous_uri &&
|
149
149
|
next_uri == o.next_uri &&
|
150
150
|
last_uri == o.last_uri &&
|
@@ -160,7 +160,7 @@ module PureCloud
|
|
160
160
|
# Calculates hash code according to all attributes.
|
161
161
|
# @return [Fixnum] Hash code
|
162
162
|
def hash
|
163
|
-
[entities, page_size, page_number, total,
|
163
|
+
[entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
|
164
164
|
end
|
165
165
|
|
166
166
|
# build the object from hash
|
@@ -0,0 +1,277 @@
|
|
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 ContactListFilterNotification
|
21
|
+
attr_accessor :id
|
22
|
+
|
23
|
+
attr_accessor :name
|
24
|
+
|
25
|
+
attr_accessor :date_created
|
26
|
+
|
27
|
+
attr_accessor :date_modified
|
28
|
+
|
29
|
+
attr_accessor :version
|
30
|
+
|
31
|
+
attr_accessor :contact_list
|
32
|
+
|
33
|
+
attr_accessor :contact_list_columns
|
34
|
+
|
35
|
+
attr_accessor :clauses
|
36
|
+
|
37
|
+
attr_accessor :filter_type
|
38
|
+
|
39
|
+
attr_accessor :additional_properties
|
40
|
+
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
+
def self.attribute_map
|
43
|
+
{
|
44
|
+
:'id' => :'id',
|
45
|
+
:'name' => :'name',
|
46
|
+
:'date_created' => :'dateCreated',
|
47
|
+
:'date_modified' => :'dateModified',
|
48
|
+
:'version' => :'version',
|
49
|
+
:'contact_list' => :'contactList',
|
50
|
+
:'contact_list_columns' => :'contactListColumns',
|
51
|
+
:'clauses' => :'clauses',
|
52
|
+
:'filter_type' => :'filterType',
|
53
|
+
:'additional_properties' => :'additionalProperties'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Attribute type mapping.
|
58
|
+
def self.swagger_types
|
59
|
+
{
|
60
|
+
:'id' => :'String',
|
61
|
+
:'name' => :'String',
|
62
|
+
:'date_created' => :'DateTime',
|
63
|
+
:'date_modified' => :'DateTime',
|
64
|
+
:'version' => :'Integer',
|
65
|
+
:'contact_list' => :'DependencyTrackingBuildNotificationNotificationUser',
|
66
|
+
:'contact_list_columns' => :'Array<String>',
|
67
|
+
:'clauses' => :'Array<ContactListFilterNotificationClauses>',
|
68
|
+
:'filter_type' => :'String',
|
69
|
+
:'additional_properties' => :'Object'
|
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?(:'id')
|
82
|
+
self.id = attributes[:'id']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.has_key?(:'name')
|
86
|
+
self.name = attributes[:'name']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.has_key?(:'dateCreated')
|
90
|
+
self.date_created = attributes[:'dateCreated']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.has_key?(:'dateModified')
|
94
|
+
self.date_modified = attributes[:'dateModified']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.has_key?(:'version')
|
98
|
+
self.version = attributes[:'version']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.has_key?(:'contactList')
|
102
|
+
self.contact_list = attributes[:'contactList']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.has_key?(:'contactListColumns')
|
106
|
+
if (value = attributes[:'contactListColumns']).is_a?(Array)
|
107
|
+
self.contact_list_columns = value
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.has_key?(:'clauses')
|
112
|
+
if (value = attributes[:'clauses']).is_a?(Array)
|
113
|
+
self.clauses = value
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.has_key?(:'filterType')
|
118
|
+
self.filter_type = attributes[:'filterType']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.has_key?(:'additionalProperties')
|
122
|
+
self.additional_properties = attributes[:'additionalProperties']
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
126
|
+
|
127
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
128
|
+
# @return Array for valid properies with the reasons
|
129
|
+
def list_invalid_properties
|
130
|
+
invalid_properties = Array.new
|
131
|
+
return invalid_properties
|
132
|
+
end
|
133
|
+
|
134
|
+
# Check to see if the all the properties in the model are valid
|
135
|
+
# @return true if the model is valid
|
136
|
+
def valid?
|
137
|
+
allowed_values = ["AND", "OR"]
|
138
|
+
if @filter_type && !allowed_values.include?(@filter_type)
|
139
|
+
return false
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# Custom attribute writer method checking allowed values (enum).
|
144
|
+
# @param [Object] filter_type Object to be assigned
|
145
|
+
def filter_type=(filter_type)
|
146
|
+
allowed_values = ["AND", "OR"]
|
147
|
+
if filter_type && !allowed_values.include?(filter_type)
|
148
|
+
fail ArgumentError, "invalid value for 'filter_type', must be one of #{allowed_values}."
|
149
|
+
end
|
150
|
+
@filter_type = filter_type
|
151
|
+
end
|
152
|
+
|
153
|
+
# Checks equality by comparing each attribute.
|
154
|
+
# @param [Object] Object to be compared
|
155
|
+
def ==(o)
|
156
|
+
return true if self.equal?(o)
|
157
|
+
self.class == o.class &&
|
158
|
+
id == o.id &&
|
159
|
+
name == o.name &&
|
160
|
+
date_created == o.date_created &&
|
161
|
+
date_modified == o.date_modified &&
|
162
|
+
version == o.version &&
|
163
|
+
contact_list == o.contact_list &&
|
164
|
+
contact_list_columns == o.contact_list_columns &&
|
165
|
+
clauses == o.clauses &&
|
166
|
+
filter_type == o.filter_type &&
|
167
|
+
additional_properties == o.additional_properties
|
168
|
+
end
|
169
|
+
|
170
|
+
# @see the `==` method
|
171
|
+
# @param [Object] Object to be compared
|
172
|
+
def eql?(o)
|
173
|
+
self == o
|
174
|
+
end
|
175
|
+
|
176
|
+
# Calculates hash code according to all attributes.
|
177
|
+
# @return [Fixnum] Hash code
|
178
|
+
def hash
|
179
|
+
[id, name, date_created, date_modified, version, contact_list, contact_list_columns, clauses, filter_type, additional_properties].hash
|
180
|
+
end
|
181
|
+
|
182
|
+
# build the object from hash
|
183
|
+
def build_from_hash(attributes)
|
184
|
+
return nil unless attributes.is_a?(Hash)
|
185
|
+
self.class.swagger_types.each_pair do |key, type|
|
186
|
+
if type =~ /^Array<(.*)>/i
|
187
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
188
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
189
|
+
else
|
190
|
+
#TODO show warning in debug mode
|
191
|
+
end
|
192
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
193
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
194
|
+
else
|
195
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
self
|
200
|
+
end
|
201
|
+
|
202
|
+
def _deserialize(type, value)
|
203
|
+
case type.to_sym
|
204
|
+
when :DateTime
|
205
|
+
DateTime.parse(value)
|
206
|
+
when :Date
|
207
|
+
Date.parse(value)
|
208
|
+
when :String
|
209
|
+
value.to_s
|
210
|
+
when :Integer
|
211
|
+
value.to_i
|
212
|
+
when :Float
|
213
|
+
value.to_f
|
214
|
+
when :BOOLEAN
|
215
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
216
|
+
true
|
217
|
+
else
|
218
|
+
false
|
219
|
+
end
|
220
|
+
when :Object
|
221
|
+
# generic object (usually a Hash), return directly
|
222
|
+
value
|
223
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
224
|
+
inner_type = Regexp.last_match[:inner_type]
|
225
|
+
value.map { |v| _deserialize(inner_type, v) }
|
226
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
227
|
+
k_type = Regexp.last_match[:k_type]
|
228
|
+
v_type = Regexp.last_match[:v_type]
|
229
|
+
{}.tap do |hash|
|
230
|
+
value.each do |k, v|
|
231
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
232
|
+
end
|
233
|
+
end
|
234
|
+
else # model
|
235
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
236
|
+
_model.build_from_hash(value)
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
def to_s
|
241
|
+
to_hash.to_s
|
242
|
+
end
|
243
|
+
|
244
|
+
# to_body is an alias to to_body (backward compatibility))
|
245
|
+
def to_body
|
246
|
+
to_hash
|
247
|
+
end
|
248
|
+
|
249
|
+
# return the object in the form of hash
|
250
|
+
def to_hash
|
251
|
+
hash = {}
|
252
|
+
self.class.attribute_map.each_pair do |attr, param|
|
253
|
+
value = self.send(attr)
|
254
|
+
next if value.nil?
|
255
|
+
hash[param] = _to_hash(value)
|
256
|
+
end
|
257
|
+
hash
|
258
|
+
end
|
259
|
+
|
260
|
+
# Method to output non-array value in the form of hash
|
261
|
+
# For object, use to_hash. Otherwise, just return the value
|
262
|
+
def _to_hash(value)
|
263
|
+
if value.is_a?(Array)
|
264
|
+
value.compact.map{ |v| _to_hash(v) }
|
265
|
+
elsif value.is_a?(Hash)
|
266
|
+
{}.tap do |hash|
|
267
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
268
|
+
end
|
269
|
+
elsif value.respond_to? :to_hash
|
270
|
+
value.to_hash
|
271
|
+
else
|
272
|
+
value
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
end
|
277
|
+
end
|
@@ -0,0 +1,212 @@
|
|
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 ContactListFilterNotificationClauses
|
21
|
+
attr_accessor :filter_type
|
22
|
+
|
23
|
+
attr_accessor :predicates
|
24
|
+
|
25
|
+
attr_accessor :additional_properties
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'filter_type' => :'filterType',
|
31
|
+
:'predicates' => :'predicates',
|
32
|
+
:'additional_properties' => :'additionalProperties'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.swagger_types
|
38
|
+
{
|
39
|
+
:'filter_type' => :'String',
|
40
|
+
:'predicates' => :'Array<ContactListFilterNotificationPredicates>',
|
41
|
+
:'additional_properties' => :'Object'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
return unless attributes.is_a?(Hash)
|
49
|
+
|
50
|
+
# convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
52
|
+
|
53
|
+
if attributes.has_key?(:'filterType')
|
54
|
+
self.filter_type = attributes[:'filterType']
|
55
|
+
end
|
56
|
+
|
57
|
+
if attributes.has_key?(:'predicates')
|
58
|
+
if (value = attributes[:'predicates']).is_a?(Array)
|
59
|
+
self.predicates = value
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
if attributes.has_key?(:'additionalProperties')
|
64
|
+
self.additional_properties = attributes[:'additionalProperties']
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|
68
|
+
|
69
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
70
|
+
# @return Array for valid properies with the reasons
|
71
|
+
def list_invalid_properties
|
72
|
+
invalid_properties = Array.new
|
73
|
+
return invalid_properties
|
74
|
+
end
|
75
|
+
|
76
|
+
# Check to see if the all the properties in the model are valid
|
77
|
+
# @return true if the model is valid
|
78
|
+
def valid?
|
79
|
+
allowed_values = ["AND", "OR"]
|
80
|
+
if @filter_type && !allowed_values.include?(@filter_type)
|
81
|
+
return false
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Custom attribute writer method checking allowed values (enum).
|
86
|
+
# @param [Object] filter_type Object to be assigned
|
87
|
+
def filter_type=(filter_type)
|
88
|
+
allowed_values = ["AND", "OR"]
|
89
|
+
if filter_type && !allowed_values.include?(filter_type)
|
90
|
+
fail ArgumentError, "invalid value for 'filter_type', must be one of #{allowed_values}."
|
91
|
+
end
|
92
|
+
@filter_type = filter_type
|
93
|
+
end
|
94
|
+
|
95
|
+
# Checks equality by comparing each attribute.
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def ==(o)
|
98
|
+
return true if self.equal?(o)
|
99
|
+
self.class == o.class &&
|
100
|
+
filter_type == o.filter_type &&
|
101
|
+
predicates == o.predicates &&
|
102
|
+
additional_properties == o.additional_properties
|
103
|
+
end
|
104
|
+
|
105
|
+
# @see the `==` method
|
106
|
+
# @param [Object] Object to be compared
|
107
|
+
def eql?(o)
|
108
|
+
self == o
|
109
|
+
end
|
110
|
+
|
111
|
+
# Calculates hash code according to all attributes.
|
112
|
+
# @return [Fixnum] Hash code
|
113
|
+
def hash
|
114
|
+
[filter_type, predicates, additional_properties].hash
|
115
|
+
end
|
116
|
+
|
117
|
+
# build the object from hash
|
118
|
+
def build_from_hash(attributes)
|
119
|
+
return nil unless attributes.is_a?(Hash)
|
120
|
+
self.class.swagger_types.each_pair do |key, type|
|
121
|
+
if type =~ /^Array<(.*)>/i
|
122
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
123
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
124
|
+
else
|
125
|
+
#TODO show warning in debug mode
|
126
|
+
end
|
127
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
128
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
129
|
+
else
|
130
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
self
|
135
|
+
end
|
136
|
+
|
137
|
+
def _deserialize(type, value)
|
138
|
+
case type.to_sym
|
139
|
+
when :DateTime
|
140
|
+
DateTime.parse(value)
|
141
|
+
when :Date
|
142
|
+
Date.parse(value)
|
143
|
+
when :String
|
144
|
+
value.to_s
|
145
|
+
when :Integer
|
146
|
+
value.to_i
|
147
|
+
when :Float
|
148
|
+
value.to_f
|
149
|
+
when :BOOLEAN
|
150
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
151
|
+
true
|
152
|
+
else
|
153
|
+
false
|
154
|
+
end
|
155
|
+
when :Object
|
156
|
+
# generic object (usually a Hash), return directly
|
157
|
+
value
|
158
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
159
|
+
inner_type = Regexp.last_match[:inner_type]
|
160
|
+
value.map { |v| _deserialize(inner_type, v) }
|
161
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
162
|
+
k_type = Regexp.last_match[:k_type]
|
163
|
+
v_type = Regexp.last_match[:v_type]
|
164
|
+
{}.tap do |hash|
|
165
|
+
value.each do |k, v|
|
166
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
else # model
|
170
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
171
|
+
_model.build_from_hash(value)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
def to_s
|
176
|
+
to_hash.to_s
|
177
|
+
end
|
178
|
+
|
179
|
+
# to_body is an alias to to_body (backward compatibility))
|
180
|
+
def to_body
|
181
|
+
to_hash
|
182
|
+
end
|
183
|
+
|
184
|
+
# return the object in the form of hash
|
185
|
+
def to_hash
|
186
|
+
hash = {}
|
187
|
+
self.class.attribute_map.each_pair do |attr, param|
|
188
|
+
value = self.send(attr)
|
189
|
+
next if value.nil?
|
190
|
+
hash[param] = _to_hash(value)
|
191
|
+
end
|
192
|
+
hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Method to output non-array value in the form of hash
|
196
|
+
# For object, use to_hash. Otherwise, just return the value
|
197
|
+
def _to_hash(value)
|
198
|
+
if value.is_a?(Array)
|
199
|
+
value.compact.map{ |v| _to_hash(v) }
|
200
|
+
elsif value.is_a?(Hash)
|
201
|
+
{}.tap do |hash|
|
202
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
203
|
+
end
|
204
|
+
elsif value.respond_to? :to_hash
|
205
|
+
value.to_hash
|
206
|
+
else
|
207
|
+
value
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
end
|
212
|
+
end
|