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
@@ -0,0 +1,251 @@
|
|
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 ContactListFilterNotificationPredicates
|
21
|
+
attr_accessor :column
|
22
|
+
|
23
|
+
attr_accessor :column_type
|
24
|
+
|
25
|
+
attr_accessor :operator
|
26
|
+
|
27
|
+
attr_accessor :value
|
28
|
+
|
29
|
+
attr_accessor :range
|
30
|
+
|
31
|
+
attr_accessor :additional_properties
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'column' => :'column',
|
37
|
+
:'column_type' => :'columnType',
|
38
|
+
:'operator' => :'operator',
|
39
|
+
:'value' => :'value',
|
40
|
+
:'range' => :'range',
|
41
|
+
:'additional_properties' => :'additionalProperties'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.swagger_types
|
47
|
+
{
|
48
|
+
:'column' => :'String',
|
49
|
+
:'column_type' => :'String',
|
50
|
+
:'operator' => :'String',
|
51
|
+
:'value' => :'String',
|
52
|
+
:'range' => :'ContactListFilterNotificationRange',
|
53
|
+
:'additional_properties' => :'Object'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
def initialize(attributes = {})
|
60
|
+
return unless attributes.is_a?(Hash)
|
61
|
+
|
62
|
+
# convert string to symbol for hash key
|
63
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
64
|
+
|
65
|
+
if attributes.has_key?(:'column')
|
66
|
+
self.column = attributes[:'column']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'columnType')
|
70
|
+
self.column_type = attributes[:'columnType']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'operator')
|
74
|
+
self.operator = attributes[:'operator']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'value')
|
78
|
+
self.value = attributes[:'value']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'range')
|
82
|
+
self.range = attributes[:'range']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.has_key?(:'additionalProperties')
|
86
|
+
self.additional_properties = attributes[:'additionalProperties']
|
87
|
+
end
|
88
|
+
|
89
|
+
end
|
90
|
+
|
91
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
92
|
+
# @return Array for valid properies with the reasons
|
93
|
+
def list_invalid_properties
|
94
|
+
invalid_properties = Array.new
|
95
|
+
return invalid_properties
|
96
|
+
end
|
97
|
+
|
98
|
+
# Check to see if the all the properties in the model are valid
|
99
|
+
# @return true if the model is valid
|
100
|
+
def valid?
|
101
|
+
allowed_values = ["NUMERIC", "ALPHABETIC"]
|
102
|
+
if @column_type && !allowed_values.include?(@column_type)
|
103
|
+
return false
|
104
|
+
end
|
105
|
+
allowed_values = ["EQUALS", "LESS_THAN", "LESS_THAN_EQUALS", "GREATER_THAN", "GREATER_THAN_EQUALS", "CONTAINS", "BEGINS_WITH", "ENDS_WITH", "BEFORE", "AFTER", "BETWEEN", "IN"]
|
106
|
+
if @operator && !allowed_values.include?(@operator)
|
107
|
+
return false
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# Custom attribute writer method checking allowed values (enum).
|
112
|
+
# @param [Object] column_type Object to be assigned
|
113
|
+
def column_type=(column_type)
|
114
|
+
allowed_values = ["NUMERIC", "ALPHABETIC"]
|
115
|
+
if column_type && !allowed_values.include?(column_type)
|
116
|
+
fail ArgumentError, "invalid value for 'column_type', must be one of #{allowed_values}."
|
117
|
+
end
|
118
|
+
@column_type = column_type
|
119
|
+
end
|
120
|
+
|
121
|
+
# Custom attribute writer method checking allowed values (enum).
|
122
|
+
# @param [Object] operator Object to be assigned
|
123
|
+
def operator=(operator)
|
124
|
+
allowed_values = ["EQUALS", "LESS_THAN", "LESS_THAN_EQUALS", "GREATER_THAN", "GREATER_THAN_EQUALS", "CONTAINS", "BEGINS_WITH", "ENDS_WITH", "BEFORE", "AFTER", "BETWEEN", "IN"]
|
125
|
+
if operator && !allowed_values.include?(operator)
|
126
|
+
fail ArgumentError, "invalid value for 'operator', must be one of #{allowed_values}."
|
127
|
+
end
|
128
|
+
@operator = operator
|
129
|
+
end
|
130
|
+
|
131
|
+
# Checks equality by comparing each attribute.
|
132
|
+
# @param [Object] Object to be compared
|
133
|
+
def ==(o)
|
134
|
+
return true if self.equal?(o)
|
135
|
+
self.class == o.class &&
|
136
|
+
column == o.column &&
|
137
|
+
column_type == o.column_type &&
|
138
|
+
operator == o.operator &&
|
139
|
+
value == o.value &&
|
140
|
+
range == o.range &&
|
141
|
+
additional_properties == o.additional_properties
|
142
|
+
end
|
143
|
+
|
144
|
+
# @see the `==` method
|
145
|
+
# @param [Object] Object to be compared
|
146
|
+
def eql?(o)
|
147
|
+
self == o
|
148
|
+
end
|
149
|
+
|
150
|
+
# Calculates hash code according to all attributes.
|
151
|
+
# @return [Fixnum] Hash code
|
152
|
+
def hash
|
153
|
+
[column, column_type, operator, value, range, additional_properties].hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# build the object from hash
|
157
|
+
def build_from_hash(attributes)
|
158
|
+
return nil unless attributes.is_a?(Hash)
|
159
|
+
self.class.swagger_types.each_pair do |key, type|
|
160
|
+
if type =~ /^Array<(.*)>/i
|
161
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
162
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
163
|
+
else
|
164
|
+
#TODO show warning in debug mode
|
165
|
+
end
|
166
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
167
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
168
|
+
else
|
169
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
self
|
174
|
+
end
|
175
|
+
|
176
|
+
def _deserialize(type, value)
|
177
|
+
case type.to_sym
|
178
|
+
when :DateTime
|
179
|
+
DateTime.parse(value)
|
180
|
+
when :Date
|
181
|
+
Date.parse(value)
|
182
|
+
when :String
|
183
|
+
value.to_s
|
184
|
+
when :Integer
|
185
|
+
value.to_i
|
186
|
+
when :Float
|
187
|
+
value.to_f
|
188
|
+
when :BOOLEAN
|
189
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
190
|
+
true
|
191
|
+
else
|
192
|
+
false
|
193
|
+
end
|
194
|
+
when :Object
|
195
|
+
# generic object (usually a Hash), return directly
|
196
|
+
value
|
197
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
198
|
+
inner_type = Regexp.last_match[:inner_type]
|
199
|
+
value.map { |v| _deserialize(inner_type, v) }
|
200
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
201
|
+
k_type = Regexp.last_match[:k_type]
|
202
|
+
v_type = Regexp.last_match[:v_type]
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each do |k, v|
|
205
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
else # model
|
209
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
210
|
+
_model.build_from_hash(value)
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
def to_s
|
215
|
+
to_hash.to_s
|
216
|
+
end
|
217
|
+
|
218
|
+
# to_body is an alias to to_body (backward compatibility))
|
219
|
+
def to_body
|
220
|
+
to_hash
|
221
|
+
end
|
222
|
+
|
223
|
+
# return the object in the form of hash
|
224
|
+
def to_hash
|
225
|
+
hash = {}
|
226
|
+
self.class.attribute_map.each_pair do |attr, param|
|
227
|
+
value = self.send(attr)
|
228
|
+
next if value.nil?
|
229
|
+
hash[param] = _to_hash(value)
|
230
|
+
end
|
231
|
+
hash
|
232
|
+
end
|
233
|
+
|
234
|
+
# Method to output non-array value in the form of hash
|
235
|
+
# For object, use to_hash. Otherwise, just return the value
|
236
|
+
def _to_hash(value)
|
237
|
+
if value.is_a?(Array)
|
238
|
+
value.compact.map{ |v| _to_hash(v) }
|
239
|
+
elsif value.is_a?(Hash)
|
240
|
+
{}.tap do |hash|
|
241
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
242
|
+
end
|
243
|
+
elsif value.respond_to? :to_hash
|
244
|
+
value.to_hash
|
245
|
+
else
|
246
|
+
value
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
end
|
251
|
+
end
|
@@ -0,0 +1,225 @@
|
|
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 ContactListFilterNotificationRange
|
21
|
+
attr_accessor :gt
|
22
|
+
|
23
|
+
attr_accessor :gte
|
24
|
+
|
25
|
+
attr_accessor :lt
|
26
|
+
|
27
|
+
attr_accessor :lte
|
28
|
+
|
29
|
+
attr_accessor :in_set
|
30
|
+
|
31
|
+
attr_accessor :additional_properties
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'gt' => :'gt',
|
37
|
+
:'gte' => :'gte',
|
38
|
+
:'lt' => :'lt',
|
39
|
+
:'lte' => :'lte',
|
40
|
+
:'in_set' => :'inSet',
|
41
|
+
:'additional_properties' => :'additionalProperties'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.swagger_types
|
47
|
+
{
|
48
|
+
:'gt' => :'String',
|
49
|
+
:'gte' => :'String',
|
50
|
+
:'lt' => :'String',
|
51
|
+
:'lte' => :'String',
|
52
|
+
:'in_set' => :'Array<String>',
|
53
|
+
:'additional_properties' => :'Object'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
def initialize(attributes = {})
|
60
|
+
return unless attributes.is_a?(Hash)
|
61
|
+
|
62
|
+
# convert string to symbol for hash key
|
63
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
64
|
+
|
65
|
+
if attributes.has_key?(:'gt')
|
66
|
+
self.gt = attributes[:'gt']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'gte')
|
70
|
+
self.gte = attributes[:'gte']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'lt')
|
74
|
+
self.lt = attributes[:'lt']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'lte')
|
78
|
+
self.lte = attributes[:'lte']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'inSet')
|
82
|
+
if (value = attributes[:'inSet']).is_a?(Array)
|
83
|
+
self.in_set = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.has_key?(:'additionalProperties')
|
88
|
+
self.additional_properties = attributes[:'additionalProperties']
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
92
|
+
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
94
|
+
# @return Array for valid properies with the reasons
|
95
|
+
def list_invalid_properties
|
96
|
+
invalid_properties = Array.new
|
97
|
+
return invalid_properties
|
98
|
+
end
|
99
|
+
|
100
|
+
# Check to see if the all the properties in the model are valid
|
101
|
+
# @return true if the model is valid
|
102
|
+
def valid?
|
103
|
+
end
|
104
|
+
|
105
|
+
# Checks equality by comparing each attribute.
|
106
|
+
# @param [Object] Object to be compared
|
107
|
+
def ==(o)
|
108
|
+
return true if self.equal?(o)
|
109
|
+
self.class == o.class &&
|
110
|
+
gt == o.gt &&
|
111
|
+
gte == o.gte &&
|
112
|
+
lt == o.lt &&
|
113
|
+
lte == o.lte &&
|
114
|
+
in_set == o.in_set &&
|
115
|
+
additional_properties == o.additional_properties
|
116
|
+
end
|
117
|
+
|
118
|
+
# @see the `==` method
|
119
|
+
# @param [Object] Object to be compared
|
120
|
+
def eql?(o)
|
121
|
+
self == o
|
122
|
+
end
|
123
|
+
|
124
|
+
# Calculates hash code according to all attributes.
|
125
|
+
# @return [Fixnum] Hash code
|
126
|
+
def hash
|
127
|
+
[gt, gte, lt, lte, in_set, additional_properties].hash
|
128
|
+
end
|
129
|
+
|
130
|
+
# build the object from hash
|
131
|
+
def build_from_hash(attributes)
|
132
|
+
return nil unless attributes.is_a?(Hash)
|
133
|
+
self.class.swagger_types.each_pair do |key, type|
|
134
|
+
if type =~ /^Array<(.*)>/i
|
135
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
136
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
137
|
+
else
|
138
|
+
#TODO show warning in debug mode
|
139
|
+
end
|
140
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
141
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
142
|
+
else
|
143
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
self
|
148
|
+
end
|
149
|
+
|
150
|
+
def _deserialize(type, value)
|
151
|
+
case type.to_sym
|
152
|
+
when :DateTime
|
153
|
+
DateTime.parse(value)
|
154
|
+
when :Date
|
155
|
+
Date.parse(value)
|
156
|
+
when :String
|
157
|
+
value.to_s
|
158
|
+
when :Integer
|
159
|
+
value.to_i
|
160
|
+
when :Float
|
161
|
+
value.to_f
|
162
|
+
when :BOOLEAN
|
163
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
164
|
+
true
|
165
|
+
else
|
166
|
+
false
|
167
|
+
end
|
168
|
+
when :Object
|
169
|
+
# generic object (usually a Hash), return directly
|
170
|
+
value
|
171
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
172
|
+
inner_type = Regexp.last_match[:inner_type]
|
173
|
+
value.map { |v| _deserialize(inner_type, v) }
|
174
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
175
|
+
k_type = Regexp.last_match[:k_type]
|
176
|
+
v_type = Regexp.last_match[:v_type]
|
177
|
+
{}.tap do |hash|
|
178
|
+
value.each do |k, v|
|
179
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
else # model
|
183
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
184
|
+
_model.build_from_hash(value)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
def to_s
|
189
|
+
to_hash.to_s
|
190
|
+
end
|
191
|
+
|
192
|
+
# to_body is an alias to to_body (backward compatibility))
|
193
|
+
def to_body
|
194
|
+
to_hash
|
195
|
+
end
|
196
|
+
|
197
|
+
# return the object in the form of hash
|
198
|
+
def to_hash
|
199
|
+
hash = {}
|
200
|
+
self.class.attribute_map.each_pair do |attr, param|
|
201
|
+
value = self.send(attr)
|
202
|
+
next if value.nil?
|
203
|
+
hash[param] = _to_hash(value)
|
204
|
+
end
|
205
|
+
hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Method to output non-array value in the form of hash
|
209
|
+
# For object, use to_hash. Otherwise, just return the value
|
210
|
+
def _to_hash(value)
|
211
|
+
if value.is_a?(Array)
|
212
|
+
value.compact.map{ |v| _to_hash(v) }
|
213
|
+
elsif value.is_a?(Hash)
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
216
|
+
end
|
217
|
+
elsif value.respond_to? :to_hash
|
218
|
+
value.to_hash
|
219
|
+
else
|
220
|
+
value
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
end
|
225
|
+
end
|