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