purecloudplatformclientv2 91.0.0 → 96.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/AfterCallWork.md +15 -0
- data/docs/AmazonLexRequest.md +14 -0
- data/docs/AnalyticsApi.md +67 -1
- data/docs/AnalyticsProposedAgent.md +14 -0
- data/docs/AnalyticsSession.md +6 -0
- data/docs/ArchitectApi.md +51 -49
- data/docs/ArrayNode.md +4 -4
- data/docs/AuditApi.md +130 -0
- data/docs/AuditRealtimeQueryRequest.md +18 -0
- data/docs/AuditRealtimeQueryResultsResponse.md +17 -0
- data/docs/AvailableTopic.md +1 -0
- data/docs/Biography.md +1 -0
- data/docs/BuAgentSchedulesQueryResponse.md +1 -0
- data/docs/ButtonComponent.md +16 -0
- data/docs/Call.md +1 -0
- data/docs/CallBasic.md +1 -0
- data/docs/Callback.md +1 -0
- data/docs/CallbackBasic.md +1 -0
- data/docs/CoachingApi.md +115 -30
- data/docs/CoachingAppointmentAggregateRequest.md +16 -0
- data/docs/CoachingAppointmentAggregateResponse.md +13 -0
- data/docs/CoachingAppointmentResponse.md +1 -0
- data/docs/CoachingNotification.md +1 -1
- data/docs/Cobrowsesession.md +1 -0
- data/docs/CommonCampaign.md +17 -0
- data/docs/CommonCampaignDivisionView.md +17 -0
- data/docs/CommonCampaignDivisionViewEntityListing.md +22 -0
- data/docs/CommonCampaignEntityListing.md +22 -0
- data/docs/Contact.md +1 -0
- data/docs/ContentActions.md +17 -0
- data/docs/ContentAttachment.md +19 -0
- data/docs/ContentGeneric.md +19 -0
- data/docs/ContentList.md +19 -0
- data/docs/ContentLocation.md +17 -0
- data/docs/ContentNotificationTemplate.md +17 -0
- data/docs/ContentQuickReply.md +16 -0
- data/docs/ConversationAssociation.md +1 -1
- data/docs/ConversationChat.md +1 -0
- data/docs/ConversationEventTopicAfterCallWork.md +15 -0
- data/docs/ConversationEventTopicCall.md +1 -0
- data/docs/ConversationEventTopicCallback.md +1 -0
- data/docs/ConversationEventTopicChat.md +1 -0
- data/docs/ConversationEventTopicCobrowse.md +1 -0
- data/docs/ConversationEventTopicEmail.md +1 -0
- data/docs/ConversationEventTopicMessage.md +2 -0
- data/docs/ConversationEventTopicScreenshare.md +1 -0
- data/docs/ConversationEventTopicSocialExpression.md +1 -0
- data/docs/ConversationEventTopicVideo.md +1 -0
- data/docs/ConversationMetrics.md +15 -0
- data/docs/ConversationsApi.md +73 -4
- data/docs/CreateCoachingAppointmentRequest.md +1 -1
- data/docs/CursorContactListing.md +16 -0
- data/docs/CursorNoteListing.md +16 -0
- data/docs/CursorOrganizationListing.md +16 -0
- data/docs/CursorRelationshipListing.md +16 -0
- data/docs/EdgeGroup.md +1 -0
- data/docs/Education.md +17 -0
- data/docs/Email.md +1 -0
- data/docs/EntityListing.md +1 -5
- data/docs/ExternalContactsApi.md +285 -9
- data/docs/ExternalOrganizationTrustorLink.md +1 -2
- data/docs/FacebookIntegrationUpdateRequest.md +14 -0
- data/docs/GoogleDialogflowCustomSettings.md +13 -0
- data/docs/HistoricalAdherenceActuals.md +15 -0
- data/docs/HistoricalAdherenceDayMetrics.md +23 -0
- data/docs/HistoricalAdherenceExceptionInfo.md +21 -0
- data/docs/HistoricalAdherenceQueryResult.md +21 -0
- data/docs/JourneyAggregateDataContainer.md +14 -0
- data/docs/JourneyAggregateQueryClause.md +14 -0
- data/docs/JourneyAggregateQueryFilter.md +15 -0
- data/docs/JourneyAggregateQueryPredicate.md +17 -0
- data/docs/JourneyAggregateQueryResponse.md +13 -0
- data/docs/JourneyAggregationQuery.md +21 -0
- data/docs/JourneyAggregationView.md +16 -0
- data/docs/JourneyApi.md +78 -0
- data/docs/JsonNode.md +4 -4
- data/docs/KnowledgeSearchRequest.md +3 -3
- data/docs/LanguageUnderstandingApi.md +165 -31
- data/docs/ListItemComponent.md +19 -0
- data/docs/Message.md +1 -0
- data/docs/MessageContent.md +19 -0
- data/docs/MessagingCampaign.md +28 -0
- data/docs/MessagingCampaignDivisionView.md +16 -0
- data/docs/MessagingCampaignDivisionViewEntityListing.md +22 -0
- data/docs/MessagingCampaignEntityListing.md +22 -0
- data/docs/NluDomainVersion.md +2 -1
- data/docs/NotificationTemplateBody.md +14 -0
- data/docs/NotificationTemplateFooter.md +13 -0
- data/docs/NotificationTemplateHeader.md +16 -0
- data/docs/NotificationTemplateParameter.md +14 -0
- data/docs/NotificationsApi.md +1 -1
- data/docs/OAuthClient.md +2 -0
- data/docs/OAuthClientListing.md +2 -0
- data/docs/OAuthClientRequest.md +2 -0
- data/docs/ObservationValue.md +3 -1
- data/docs/OrgOAuthClient.md +2 -0
- data/docs/OutboundApi.md +881 -76
- data/docs/Permissions.md +0 -2
- data/docs/PhoneCapabilities.md +1 -0
- data/docs/PostTextMessage.md +15 -0
- data/docs/PostTextRequest.md +23 -0
- data/docs/PostTextResponse.md +20 -0
- data/docs/PresenceApi.md +206 -6
- data/docs/PresenceExpand.md +17 -0
- data/docs/QueryRequestClause.md +14 -0
- data/docs/QueryRequestFilter.md +14 -0
- data/docs/QueryRequestPredicate.md +14 -0
- data/docs/QueryResponseData.md +14 -0
- data/docs/QueryResponseGroupedData.md +14 -0
- data/docs/QueryResponseMetric.md +14 -0
- data/docs/QueryResponseStats.md +13 -0
- data/docs/QueueConversationEventTopicAfterCallWork.md +15 -0
- data/docs/QueueConversationEventTopicCall.md +1 -0
- data/docs/QueueConversationEventTopicCallback.md +1 -0
- data/docs/QueueConversationEventTopicChat.md +1 -0
- data/docs/QueueConversationEventTopicCobrowse.md +1 -0
- data/docs/QueueConversationEventTopicEmail.md +1 -0
- data/docs/QueueConversationEventTopicMessage.md +2 -0
- data/docs/QueueConversationEventTopicScreenshare.md +1 -0
- data/docs/QueueConversationEventTopicSocialExpression.md +1 -0
- data/docs/QueueConversationEventTopicVideo.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicAfterCallWork.md +15 -0
- data/docs/QueueConversationSocialExpressionEventTopicCall.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicCallback.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicChat.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicCobrowse.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicEmail.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicMessage.md +2 -0
- data/docs/QueueConversationSocialExpressionEventTopicScreenshare.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicSocialExpression.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicVideo.md +1 -0
- data/docs/QueueConversationVideoEventTopicAfterCallWork.md +15 -0
- data/docs/QueueConversationVideoEventTopicCall.md +1 -0
- data/docs/QueueConversationVideoEventTopicCallback.md +1 -0
- data/docs/QueueConversationVideoEventTopicChat.md +1 -0
- data/docs/QueueConversationVideoEventTopicCobrowse.md +1 -0
- data/docs/QueueConversationVideoEventTopicEmail.md +1 -0
- data/docs/QueueConversationVideoEventTopicMessage.md +2 -0
- data/docs/QueueConversationVideoEventTopicScreenshare.md +1 -0
- data/docs/QueueConversationVideoEventTopicSocialExpression.md +1 -0
- data/docs/QueueConversationVideoEventTopicVideo.md +1 -0
- data/docs/Recording.md +1 -0
- data/docs/RecordingApi.md +2 -2
- data/docs/ReportingDataExportTopicDataExportNotification.md +1 -0
- data/docs/ReportingExportJobRequest.md +2 -0
- data/docs/ReportingExportJobResponse.md +4 -0
- data/docs/RoutingApi.md +14 -14
- data/docs/SCIMApi.md +92 -104
- data/docs/ScimConfigResourceType.md +2 -2
- data/docs/ScimGenesysUserExternalId.md +14 -0
- data/docs/ScimMetadata.md +2 -2
- data/docs/ScimUserExtensions.md +3 -2
- data/docs/ScimUserRole.md +1 -1
- data/docs/ScimUserRoutingLanguage.md +2 -2
- data/docs/ScimUserRoutingSkill.md +2 -2
- data/docs/ScimV2CreateUser.md +3 -3
- data/docs/ScimV2Group.md +1 -1
- data/docs/ScimV2SchemaAttribute.md +11 -11
- data/docs/ScimV2SchemaDefinition.md +5 -5
- data/docs/ScimV2SchemaListResponse.md +1 -1
- data/docs/ScimV2User.md +4 -4
- data/docs/Screenshare.md +1 -0
- data/docs/SearchApi.md +5 -2
- data/docs/SmsConfig.md +15 -0
- data/docs/SmsPhoneNumberRef.md +14 -0
- data/docs/SocialExpression.md +1 -0
- data/docs/SpeechTextAnalyticsApi.md +147 -0
- data/docs/StatEventFlowOutcomeTopicDatum.md +14 -0
- data/docs/StatEventFlowOutcomeTopicMetric.md +15 -0
- data/docs/StatEventFlowOutcomeTopicStatsNotification.md +14 -0
- data/docs/StatEventFlowTopicDatum.md +14 -0
- data/docs/StatEventFlowTopicMetric.md +15 -0
- data/docs/StatEventFlowTopicStatsNotification.md +14 -0
- data/docs/StatEventWrapUpCodeTopicDatum.md +14 -0
- data/docs/StatEventWrapUpCodeTopicMetric.md +15 -0
- data/docs/StatEventWrapUpCodeTopicStatsNotification.md +14 -0
- data/docs/SurveyForm.md +0 -2
- data/docs/TelephonyProvidersEdgeApi.md +6 -2
- data/docs/TextbotsApi.md +78 -0
- data/docs/TranscriptUrl.md +13 -0
- data/docs/UpdateCoachingAppointmentRequest.md +2 -1
- data/docs/UserRoutingLanguage.md +3 -3
- data/docs/UserRoutingLanguagePost.md +1 -1
- data/docs/UserRoutingSkill.md +1 -1
- data/docs/UserScheduleAdherence.md +1 -0
- data/docs/UserSearchRequest.md +2 -0
- data/docs/UsersApi.md +19 -6
- data/docs/Video.md +1 -0
- data/docs/ViewFilter.md +2 -0
- data/docs/VoicemailUserPolicy.md +1 -0
- data/docs/WemCoachingAppointmentTopicCoachingAppointmentNotification.md +1 -0
- data/docs/WfmBusinessUnitReference.md +14 -0
- data/docs/WfmHistoricalAdherenceResponse.md +1 -0
- data/docs/WfmHistoricalAdherenceResultWrapper.md +15 -0
- data/docs/WfmHistoricalDataUploadPurgeRequestStatusTopicHistoricalDataUploadPurgeRequestUpdate.md +13 -0
- data/docs/WfmHistoricalDataUploadRequestStatusTopicDateTime.md +16 -0
- data/docs/WfmHistoricalDataUploadRequestStatusTopicHistoricalDataUploadRequestUpdate.md +20 -0
- data/docs/WfmScheduleReference.md +16 -0
- data/docs/WfmUserScheduleAdherenceUpdatedMuTopicUriReference.md +14 -0
- data/docs/WfmUserScheduleAdherenceUpdatedMuTopicUserScheduleAdherenceUpdate.md +1 -0
- data/docs/WfmUserScheduleAdherenceUpdatedTeamTopicQueueReference.md +13 -0
- data/docs/WfmUserScheduleAdherenceUpdatedTeamTopicUriReference.md +14 -0
- data/docs/WfmUserScheduleAdherenceUpdatedTeamTopicUserReference.md +13 -0
- data/docs/WfmUserScheduleAdherenceUpdatedTeamTopicUserScheduleAdherenceUpdate.md +28 -0
- data/docs/WfmUserScheduleAdherenceUpdatedTopicUriReference.md +14 -0
- data/docs/WfmUserScheduleAdherenceUpdatedTopicUserScheduleAdherenceUpdate.md +1 -0
- data/lib/purecloudplatformclientv2.rb +91 -0
- data/lib/purecloudplatformclientv2/api/analytics_api.rb +67 -2
- data/lib/purecloudplatformclientv2/api/architect_api.rb +15 -6
- data/lib/purecloudplatformclientv2/api/audit_api.rb +129 -0
- data/lib/purecloudplatformclientv2/api/coaching_api.rb +155 -9
- data/lib/purecloudplatformclientv2/api/conversations_api.rb +79 -4
- data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +305 -13
- data/lib/purecloudplatformclientv2/api/journey_api.rb +92 -0
- data/lib/purecloudplatformclientv2/api/language_understanding_api.rb +191 -32
- data/lib/purecloudplatformclientv2/api/outbound_api.rb +1215 -155
- data/lib/purecloudplatformclientv2/api/presence_api.rb +213 -8
- data/lib/purecloudplatformclientv2/api/recording_api.rb +3 -3
- data/lib/purecloudplatformclientv2/api/routing_api.rb +2 -2
- data/lib/purecloudplatformclientv2/api/scim_api.rb +74 -74
- data/lib/purecloudplatformclientv2/api/search_api.rb +13 -0
- data/lib/purecloudplatformclientv2/api/speech_text_analytics_api.rb +167 -0
- data/lib/purecloudplatformclientv2/api/telephony_providers_edge_api.rb +18 -0
- data/lib/purecloudplatformclientv2/api/textbots_api.rb +92 -0
- data/lib/purecloudplatformclientv2/api/users_api.rb +78 -0
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/acw_settings.rb +2 -2
- data/lib/purecloudplatformclientv2/models/after_call_work.rb +267 -0
- data/lib/purecloudplatformclientv2/models/amazon_lex_request.rb +232 -0
- data/lib/purecloudplatformclientv2/models/analytics_proposed_agent.rb +228 -0
- data/lib/purecloudplatformclientv2/models/analytics_session.rb +178 -4
- data/lib/purecloudplatformclientv2/models/array_node.rb +54 -54
- data/lib/purecloudplatformclientv2/models/audit_log_message.rb +6 -6
- data/lib/purecloudplatformclientv2/models/audit_query_entity.rb +2 -2
- data/lib/purecloudplatformclientv2/models/audit_query_execution_status_response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/audit_query_request.rb +2 -2
- data/lib/purecloudplatformclientv2/models/audit_query_service.rb +2 -2
- data/lib/purecloudplatformclientv2/models/audit_realtime_query_request.rb +360 -0
- data/lib/purecloudplatformclientv2/models/audit_realtime_query_results_response.rb +303 -0
- data/lib/purecloudplatformclientv2/models/available_topic.rb +32 -4
- data/lib/purecloudplatformclientv2/models/biography.rb +32 -4
- data/lib/purecloudplatformclientv2/models/bu_agent_schedules_query_response.rb +30 -4
- data/lib/purecloudplatformclientv2/models/button_component.rb +281 -0
- data/lib/purecloudplatformclientv2/models/call.rb +30 -4
- data/lib/purecloudplatformclientv2/models/call_basic.rb +30 -4
- data/lib/purecloudplatformclientv2/models/callback.rb +30 -4
- data/lib/purecloudplatformclientv2/models/callback_basic.rb +30 -4
- data/lib/purecloudplatformclientv2/models/coaching_appointment_aggregate_request.rb +294 -0
- data/lib/purecloudplatformclientv2/models/coaching_appointment_aggregate_response.rb +204 -0
- data/lib/purecloudplatformclientv2/models/coaching_appointment_response.rb +27 -1
- data/lib/purecloudplatformclientv2/models/coaching_notification.rb +1 -1
- data/lib/purecloudplatformclientv2/models/cobrowsesession.rb +30 -4
- data/lib/purecloudplatformclientv2/models/common_campaign.rb +320 -0
- data/lib/purecloudplatformclientv2/models/common_campaign_division_view.rb +320 -0
- data/lib/purecloudplatformclientv2/models/common_campaign_division_view_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/common_campaign_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/contact.rb +29 -4
- data/lib/purecloudplatformclientv2/models/content_actions.rb +309 -0
- data/lib/purecloudplatformclientv2/models/content_attachment.rb +378 -0
- data/lib/purecloudplatformclientv2/models/content_generic.rb +361 -0
- data/lib/purecloudplatformclientv2/models/content_list.rb +375 -0
- data/lib/purecloudplatformclientv2/models/content_location.rb +307 -0
- data/lib/purecloudplatformclientv2/models/content_notification_template.rb +312 -0
- data/lib/purecloudplatformclientv2/models/content_quick_reply.rb +300 -0
- data/lib/purecloudplatformclientv2/models/conversation_aggregate_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/conversation_association.rb +1 -1
- data/lib/purecloudplatformclientv2/models/conversation_chat.rb +30 -4
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_after_call_work.rb +265 -0
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_call.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_chat.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_cobrowse.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_email.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_message.rb +53 -3
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_screenshare.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_social_expression.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_video.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_message_event_topic_message_media_participant.rb +2 -2
- data/lib/purecloudplatformclientv2/models/conversation_metrics.rb +254 -0
- data/lib/purecloudplatformclientv2/models/create_coaching_appointment_request.rb +1 -1
- data/lib/purecloudplatformclientv2/models/create_outbound_messaging_conversation_request.rb +2 -2
- data/lib/purecloudplatformclientv2/models/cursor_contact_listing.rb +278 -0
- data/lib/purecloudplatformclientv2/models/cursor_note_listing.rb +278 -0
- data/lib/purecloudplatformclientv2/models/cursor_organization_listing.rb +278 -0
- data/lib/purecloudplatformclientv2/models/cursor_relationship_listing.rb +278 -0
- data/lib/purecloudplatformclientv2/models/dependency.rb +2 -2
- data/lib/purecloudplatformclientv2/models/dependency_object.rb +2 -2
- data/lib/purecloudplatformclientv2/models/edge_group.rb +27 -1
- data/lib/purecloudplatformclientv2/models/education.rb +304 -0
- data/lib/purecloudplatformclientv2/models/email.rb +30 -4
- data/lib/purecloudplatformclientv2/models/entity_listing.rb +4 -104
- data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/external_organization_trustor_link.rb +8 -34
- data/lib/purecloudplatformclientv2/models/facebook_integration_update_request.rb +228 -0
- data/lib/purecloudplatformclientv2/models/flow_aggregate_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/google_dialogflow_custom_settings.rb +202 -0
- data/lib/purecloudplatformclientv2/models/historical_adherence_actuals.rb +268 -0
- data/lib/purecloudplatformclientv2/models/historical_adherence_day_metrics.rb +462 -0
- data/lib/purecloudplatformclientv2/models/historical_adherence_exception_info.rb +466 -0
- data/lib/purecloudplatformclientv2/models/historical_adherence_query_result.rb +430 -0
- data/lib/purecloudplatformclientv2/models/intent_feedback.rb +2 -2
- data/lib/purecloudplatformclientv2/models/ip_address_range.rb +2 -2
- data/lib/purecloudplatformclientv2/models/journey_aggregate_data_container.rb +231 -0
- data/lib/purecloudplatformclientv2/models/journey_aggregate_query_clause.rb +254 -0
- data/lib/purecloudplatformclientv2/models/journey_aggregate_query_filter.rb +277 -0
- data/lib/purecloudplatformclientv2/models/journey_aggregate_query_predicate.rb +348 -0
- data/lib/purecloudplatformclientv2/models/journey_aggregate_query_response.rb +203 -0
- data/lib/purecloudplatformclientv2/models/journey_aggregation_query.rb +435 -0
- data/lib/purecloudplatformclientv2/models/journey_aggregation_view.rb +323 -0
- data/lib/purecloudplatformclientv2/models/json_node.rb +54 -54
- data/lib/purecloudplatformclientv2/models/knowledge_search_request.rb +0 -15
- data/lib/purecloudplatformclientv2/models/library.rb +2 -2
- data/lib/purecloudplatformclientv2/models/list_item_component.rb +373 -0
- data/lib/purecloudplatformclientv2/models/message.rb +32 -6
- data/lib/purecloudplatformclientv2/models/message_content.rb +378 -0
- data/lib/purecloudplatformclientv2/models/message_data.rb +2 -2
- data/lib/purecloudplatformclientv2/models/message_media_participant.rb +2 -2
- data/lib/purecloudplatformclientv2/models/messaging_campaign.rb +621 -0
- data/lib/purecloudplatformclientv2/models/messaging_campaign_division_view.rb +279 -0
- data/lib/purecloudplatformclientv2/models/messaging_campaign_division_view_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/messaging_campaign_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/messaging_integration.rb +2 -2
- data/lib/purecloudplatformclientv2/models/messaging_sticker.rb +2 -2
- data/lib/purecloudplatformclientv2/models/nlu_domain_version.rb +32 -1
- data/lib/purecloudplatformclientv2/models/notification_template_body.rb +236 -0
- data/lib/purecloudplatformclientv2/models/notification_template_footer.rb +203 -0
- data/lib/purecloudplatformclientv2/models/notification_template_header.rb +302 -0
- data/lib/purecloudplatformclientv2/models/notification_template_parameter.rb +234 -0
- data/lib/purecloudplatformclientv2/models/o_auth_client.rb +67 -1
- data/lib/purecloudplatformclientv2/models/o_auth_client_listing.rb +67 -1
- data/lib/purecloudplatformclientv2/models/o_auth_client_request.rb +70 -4
- data/lib/purecloudplatformclientv2/models/observation_value.rb +70 -2
- data/lib/purecloudplatformclientv2/models/org_o_auth_client.rb +67 -1
- data/lib/purecloudplatformclientv2/models/participant.rb +2 -2
- data/lib/purecloudplatformclientv2/models/participant_basic.rb +2 -2
- data/lib/purecloudplatformclientv2/models/permissions.rb +1 -52
- data/lib/purecloudplatformclientv2/models/phone_capabilities.rb +29 -4
- data/lib/purecloudplatformclientv2/models/post_text_message.rb +275 -0
- data/lib/purecloudplatformclientv2/models/post_text_request.rb +482 -0
- data/lib/purecloudplatformclientv2/models/post_text_response.rb +413 -0
- data/lib/purecloudplatformclientv2/models/presence_expand.rb +309 -0
- data/lib/purecloudplatformclientv2/models/query_request_clause.rb +254 -0
- data/lib/purecloudplatformclientv2/models/query_request_filter.rb +254 -0
- data/lib/purecloudplatformclientv2/models/query_request_predicate.rb +252 -0
- data/lib/purecloudplatformclientv2/models/query_response_data.rb +230 -0
- data/lib/purecloudplatformclientv2/models/query_response_grouped_data.rb +232 -0
- data/lib/purecloudplatformclientv2/models/query_response_metric.rb +242 -0
- data/lib/purecloudplatformclientv2/models/query_response_stats.rb +202 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_after_call_work.rb +265 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_call.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_chat.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_cobrowse.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_email.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_message.rb +53 -3
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_screenshare.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_social_expression.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_video.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_message_event_topic_message_media_participant.rb +2 -2
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_after_call_work.rb +265 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_call.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_chat.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_cobrowse.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_email.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_message.rb +53 -3
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_screenshare.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_social_expression.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_video.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_after_call_work.rb +265 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_call.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_chat.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_cobrowse.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_email.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_message.rb +53 -3
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_screenshare.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_social_expression.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_video.rb +26 -1
- data/lib/purecloudplatformclientv2/models/recipient.rb +2 -2
- data/lib/purecloudplatformclientv2/models/recording.rb +41 -1
- data/lib/purecloudplatformclientv2/models/reporting_data_export_topic_data_export_notification.rb +26 -1
- data/lib/purecloudplatformclientv2/models/reporting_export_job_request.rb +53 -1
- data/lib/purecloudplatformclientv2/models/reporting_export_job_response.rb +109 -1
- data/lib/purecloudplatformclientv2/models/response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/schedule_generation_message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/scim_config_resource_type.rb +2 -2
- data/lib/purecloudplatformclientv2/models/scim_genesys_user_external_id.rb +229 -0
- data/lib/purecloudplatformclientv2/models/scim_metadata.rb +2 -2
- data/lib/purecloudplatformclientv2/models/scim_phone_number.rb +2 -2
- data/lib/purecloudplatformclientv2/models/scim_user_extensions.rb +35 -7
- data/lib/purecloudplatformclientv2/models/scim_user_role.rb +1 -1
- data/lib/purecloudplatformclientv2/models/scim_user_routing_language.rb +3 -3
- data/lib/purecloudplatformclientv2/models/scim_user_routing_skill.rb +3 -3
- data/lib/purecloudplatformclientv2/models/scim_v2_create_user.rb +3 -2
- data/lib/purecloudplatformclientv2/models/scim_v2_enterprise_user.rb +1 -1
- data/lib/purecloudplatformclientv2/models/scim_v2_group.rb +1 -1
- data/lib/purecloudplatformclientv2/models/scim_v2_schema_attribute.rb +12 -12
- data/lib/purecloudplatformclientv2/models/scim_v2_schema_definition.rb +6 -6
- data/lib/purecloudplatformclientv2/models/scim_v2_schema_list_response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/scim_v2_user.rb +4 -3
- data/lib/purecloudplatformclientv2/models/screenshare.rb +30 -4
- data/lib/purecloudplatformclientv2/models/segment_detail_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/send_agentless_outbound_message_request.rb +2 -2
- data/lib/purecloudplatformclientv2/models/send_agentless_outbound_message_response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/sms_config.rb +269 -0
- data/lib/purecloudplatformclientv2/models/sms_phone_number_ref.rb +232 -0
- data/lib/purecloudplatformclientv2/models/social_expression.rb +30 -4
- data/lib/purecloudplatformclientv2/models/stat_event_flow_outcome_topic_datum.rb +228 -0
- data/lib/purecloudplatformclientv2/models/stat_event_flow_outcome_topic_metric.rb +253 -0
- data/lib/purecloudplatformclientv2/models/stat_event_flow_outcome_topic_stats_notification.rb +230 -0
- data/lib/purecloudplatformclientv2/models/stat_event_flow_topic_datum.rb +228 -0
- data/lib/purecloudplatformclientv2/models/stat_event_flow_topic_metric.rb +253 -0
- data/lib/purecloudplatformclientv2/models/stat_event_flow_topic_stats_notification.rb +230 -0
- data/lib/purecloudplatformclientv2/models/stat_event_wrap_up_code_topic_datum.rb +228 -0
- data/lib/purecloudplatformclientv2/models/stat_event_wrap_up_code_topic_metric.rb +253 -0
- data/lib/purecloudplatformclientv2/models/stat_event_wrap_up_code_topic_stats_notification.rb +230 -0
- data/lib/purecloudplatformclientv2/models/survey_form.rb +1 -53
- data/lib/purecloudplatformclientv2/models/transcript_url.rb +202 -0
- data/lib/purecloudplatformclientv2/models/update_coaching_appointment_request.rb +45 -5
- data/lib/purecloudplatformclientv2/models/user_routing_language.rb +4 -4
- data/lib/purecloudplatformclientv2/models/user_routing_language_post.rb +1 -1
- data/lib/purecloudplatformclientv2/models/user_routing_skill.rb +1 -1
- data/lib/purecloudplatformclientv2/models/user_schedule_adherence.rb +27 -1
- data/lib/purecloudplatformclientv2/models/user_search_request.rb +70 -4
- data/lib/purecloudplatformclientv2/models/video.rb +30 -4
- data/lib/purecloudplatformclientv2/models/view_filter.rb +60 -4
- data/lib/purecloudplatformclientv2/models/voicemail_user_policy.rb +30 -4
- data/lib/purecloudplatformclientv2/models/wem_coaching_appointment_topic_coaching_appointment_notification.rb +33 -8
- data/lib/purecloudplatformclientv2/models/wfm_business_unit_reference.rb +233 -0
- data/lib/purecloudplatformclientv2/models/wfm_historical_adherence_response.rb +27 -1
- data/lib/purecloudplatformclientv2/models/wfm_historical_adherence_result_wrapper.rb +258 -0
- data/lib/purecloudplatformclientv2/models/wfm_historical_data_upload_purge_request_status_topic_historical_data_upload_purge_request_update.rb +215 -0
- data/lib/purecloudplatformclientv2/models/wfm_historical_data_upload_request_status_topic_date_time.rb +276 -0
- data/lib/purecloudplatformclientv2/models/wfm_historical_data_upload_request_status_topic_historical_data_upload_request_update.rb +390 -0
- data/lib/purecloudplatformclientv2/models/wfm_schedule_reference.rb +295 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_mu_topic_uri_reference.rb +226 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_mu_topic_user_schedule_adherence_update.rb +26 -1
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_team_topic_queue_reference.rb +201 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_team_topic_uri_reference.rb +226 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_team_topic_user_reference.rb +201 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_team_topic_user_schedule_adherence_update.rb +606 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_topic_uri_reference.rb +226 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_topic_user_schedule_adherence_update.rb +26 -1
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +185 -3
@@ -0,0 +1,378 @@
|
|
1
|
+
=begin
|
2
|
+
PureCloud Platform API
|
3
|
+
|
4
|
+
With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: DeveloperEvangelists@genesys.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
License: UNLICENSED
|
11
|
+
https://help.mypurecloud.com/articles/terms-and-conditions/
|
12
|
+
|
13
|
+
Terms of Service: https://help.mypurecloud.com/articles/terms-and-conditions/
|
14
|
+
|
15
|
+
=end
|
16
|
+
|
17
|
+
require 'date'
|
18
|
+
|
19
|
+
module PureCloud
|
20
|
+
# Message content element
|
21
|
+
class MessageContent
|
22
|
+
# Type of this content element. If contentType = \"Attachment\" only one item is allowed.
|
23
|
+
attr_accessor :content_type
|
24
|
+
|
25
|
+
# Location object
|
26
|
+
attr_accessor :location
|
27
|
+
|
28
|
+
# Attachment object
|
29
|
+
attr_accessor :attachment
|
30
|
+
|
31
|
+
# Quick reply object
|
32
|
+
attr_accessor :quick_reply
|
33
|
+
|
34
|
+
# Generic content object
|
35
|
+
attr_accessor :generic
|
36
|
+
|
37
|
+
# List content object
|
38
|
+
attr_accessor :list
|
39
|
+
|
40
|
+
# Template notification object
|
41
|
+
attr_accessor :template
|
42
|
+
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
44
|
+
def self.attribute_map
|
45
|
+
{
|
46
|
+
|
47
|
+
:'content_type' => :'contentType',
|
48
|
+
|
49
|
+
:'location' => :'location',
|
50
|
+
|
51
|
+
:'attachment' => :'attachment',
|
52
|
+
|
53
|
+
:'quick_reply' => :'quickReply',
|
54
|
+
|
55
|
+
:'generic' => :'generic',
|
56
|
+
|
57
|
+
:'list' => :'list',
|
58
|
+
|
59
|
+
:'template' => :'template'
|
60
|
+
|
61
|
+
}
|
62
|
+
end
|
63
|
+
|
64
|
+
# Attribute type mapping.
|
65
|
+
def self.swagger_types
|
66
|
+
{
|
67
|
+
|
68
|
+
:'content_type' => :'String',
|
69
|
+
|
70
|
+
:'location' => :'ContentLocation',
|
71
|
+
|
72
|
+
:'attachment' => :'ContentAttachment',
|
73
|
+
|
74
|
+
:'quick_reply' => :'ContentQuickReply',
|
75
|
+
|
76
|
+
:'generic' => :'ContentGeneric',
|
77
|
+
|
78
|
+
:'list' => :'ContentList',
|
79
|
+
|
80
|
+
:'template' => :'ContentNotificationTemplate'
|
81
|
+
|
82
|
+
}
|
83
|
+
end
|
84
|
+
|
85
|
+
# Initializes the object
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
+
def initialize(attributes = {})
|
88
|
+
return unless attributes.is_a?(Hash)
|
89
|
+
|
90
|
+
# convert string to symbol for hash key
|
91
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
92
|
+
|
93
|
+
|
94
|
+
if attributes.has_key?(:'contentType')
|
95
|
+
|
96
|
+
|
97
|
+
self.content_type = attributes[:'contentType']
|
98
|
+
|
99
|
+
|
100
|
+
end
|
101
|
+
|
102
|
+
|
103
|
+
if attributes.has_key?(:'location')
|
104
|
+
|
105
|
+
|
106
|
+
self.location = attributes[:'location']
|
107
|
+
|
108
|
+
|
109
|
+
end
|
110
|
+
|
111
|
+
|
112
|
+
if attributes.has_key?(:'attachment')
|
113
|
+
|
114
|
+
|
115
|
+
self.attachment = attributes[:'attachment']
|
116
|
+
|
117
|
+
|
118
|
+
end
|
119
|
+
|
120
|
+
|
121
|
+
if attributes.has_key?(:'quickReply')
|
122
|
+
|
123
|
+
|
124
|
+
self.quick_reply = attributes[:'quickReply']
|
125
|
+
|
126
|
+
|
127
|
+
end
|
128
|
+
|
129
|
+
|
130
|
+
if attributes.has_key?(:'generic')
|
131
|
+
|
132
|
+
|
133
|
+
self.generic = attributes[:'generic']
|
134
|
+
|
135
|
+
|
136
|
+
end
|
137
|
+
|
138
|
+
|
139
|
+
if attributes.has_key?(:'list')
|
140
|
+
|
141
|
+
|
142
|
+
self.list = attributes[:'list']
|
143
|
+
|
144
|
+
|
145
|
+
end
|
146
|
+
|
147
|
+
|
148
|
+
if attributes.has_key?(:'template')
|
149
|
+
|
150
|
+
|
151
|
+
self.template = attributes[:'template']
|
152
|
+
|
153
|
+
|
154
|
+
end
|
155
|
+
|
156
|
+
|
157
|
+
end
|
158
|
+
|
159
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
160
|
+
# @return Array for valid properies with the reasons
|
161
|
+
def list_invalid_properties
|
162
|
+
invalid_properties = Array.new
|
163
|
+
|
164
|
+
|
165
|
+
return invalid_properties
|
166
|
+
end
|
167
|
+
|
168
|
+
# Check to see if the all the properties in the model are valid
|
169
|
+
# @return true if the model is valid
|
170
|
+
def valid?
|
171
|
+
|
172
|
+
|
173
|
+
if @content_type.nil?
|
174
|
+
return false
|
175
|
+
end
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
allowed_values = ["Attachment", "Location", "QuickReply", "Notification", "GenericTemplate", "ListTemplate"]
|
180
|
+
if @content_type && !allowed_values.include?(@content_type)
|
181
|
+
return false
|
182
|
+
end
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
end
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
# Custom attribute writer method checking allowed values (enum).
|
215
|
+
# @param [Object] content_type Object to be assigned
|
216
|
+
def content_type=(content_type)
|
217
|
+
allowed_values = ["Attachment", "Location", "QuickReply", "Notification", "GenericTemplate", "ListTemplate"]
|
218
|
+
if content_type && !allowed_values.include?(content_type)
|
219
|
+
fail ArgumentError, "invalid value for 'content_type', must be one of #{allowed_values}."
|
220
|
+
end
|
221
|
+
@content_type = content_type
|
222
|
+
end
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
# Checks equality by comparing each attribute.
|
258
|
+
# @param [Object] Object to be compared
|
259
|
+
def ==(o)
|
260
|
+
return true if self.equal?(o)
|
261
|
+
self.class == o.class &&
|
262
|
+
content_type == o.content_type &&
|
263
|
+
location == o.location &&
|
264
|
+
attachment == o.attachment &&
|
265
|
+
quick_reply == o.quick_reply &&
|
266
|
+
generic == o.generic &&
|
267
|
+
list == o.list &&
|
268
|
+
template == o.template
|
269
|
+
end
|
270
|
+
|
271
|
+
# @see the `==` method
|
272
|
+
# @param [Object] Object to be compared
|
273
|
+
def eql?(o)
|
274
|
+
self == o
|
275
|
+
end
|
276
|
+
|
277
|
+
# Calculates hash code according to all attributes.
|
278
|
+
# @return [Fixnum] Hash code
|
279
|
+
def hash
|
280
|
+
[content_type, location, attachment, quick_reply, generic, list, template].hash
|
281
|
+
end
|
282
|
+
|
283
|
+
# build the object from hash
|
284
|
+
def build_from_hash(attributes)
|
285
|
+
return nil unless attributes.is_a?(Hash)
|
286
|
+
self.class.swagger_types.each_pair do |key, type|
|
287
|
+
if type =~ /^Array<(.*)>/i
|
288
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
289
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
290
|
+
else
|
291
|
+
#TODO show warning in debug mode
|
292
|
+
end
|
293
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
294
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
295
|
+
else
|
296
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
self
|
301
|
+
end
|
302
|
+
|
303
|
+
def _deserialize(type, value)
|
304
|
+
case type.to_sym
|
305
|
+
when :DateTime
|
306
|
+
DateTime.parse(value)
|
307
|
+
when :Date
|
308
|
+
Date.parse(value)
|
309
|
+
when :String
|
310
|
+
value.to_s
|
311
|
+
when :Integer
|
312
|
+
value.to_i
|
313
|
+
when :Float
|
314
|
+
value.to_f
|
315
|
+
when :BOOLEAN
|
316
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
317
|
+
true
|
318
|
+
else
|
319
|
+
false
|
320
|
+
end
|
321
|
+
when :Object
|
322
|
+
# generic object (usually a Hash), return directly
|
323
|
+
value
|
324
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
325
|
+
inner_type = Regexp.last_match[:inner_type]
|
326
|
+
value.map { |v| _deserialize(inner_type, v) }
|
327
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
328
|
+
k_type = Regexp.last_match[:k_type]
|
329
|
+
v_type = Regexp.last_match[:v_type]
|
330
|
+
{}.tap do |hash|
|
331
|
+
value.each do |k, v|
|
332
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
333
|
+
end
|
334
|
+
end
|
335
|
+
else # model
|
336
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
337
|
+
_model.build_from_hash(value)
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
def to_s
|
342
|
+
to_hash.to_s
|
343
|
+
end
|
344
|
+
|
345
|
+
# to_body is an alias to to_body (backward compatibility))
|
346
|
+
def to_body
|
347
|
+
to_hash
|
348
|
+
end
|
349
|
+
|
350
|
+
# return the object in the form of hash
|
351
|
+
def to_hash
|
352
|
+
hash = {}
|
353
|
+
self.class.attribute_map.each_pair do |attr, param|
|
354
|
+
value = self.send(attr)
|
355
|
+
next if value.nil?
|
356
|
+
hash[param] = _to_hash(value)
|
357
|
+
end
|
358
|
+
hash
|
359
|
+
end
|
360
|
+
|
361
|
+
# Method to output non-array value in the form of hash
|
362
|
+
# For object, use to_hash. Otherwise, just return the value
|
363
|
+
def _to_hash(value)
|
364
|
+
if value.is_a?(Array)
|
365
|
+
value.compact.map{ |v| _to_hash(v) }
|
366
|
+
elsif value.is_a?(Hash)
|
367
|
+
{}.tap do |hash|
|
368
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
369
|
+
end
|
370
|
+
elsif value.respond_to? :to_hash
|
371
|
+
value.to_hash
|
372
|
+
else
|
373
|
+
value
|
374
|
+
end
|
375
|
+
end
|
376
|
+
|
377
|
+
end
|
378
|
+
end
|
@@ -323,7 +323,7 @@ module PureCloud
|
|
323
323
|
|
324
324
|
|
325
325
|
|
326
|
-
allowed_values = ["sms", "facebook", "twitter", "line", "whatsapp"]
|
326
|
+
allowed_values = ["sms", "facebook", "twitter", "line", "whatsapp", "webmessaging"]
|
327
327
|
if @messenger_type && !allowed_values.include?(@messenger_type)
|
328
328
|
return false
|
329
329
|
end
|
@@ -420,7 +420,7 @@ module PureCloud
|
|
420
420
|
# Custom attribute writer method checking allowed values (enum).
|
421
421
|
# @param [Object] messenger_type Object to be assigned
|
422
422
|
def messenger_type=(messenger_type)
|
423
|
-
allowed_values = ["sms", "facebook", "twitter", "line", "whatsapp"]
|
423
|
+
allowed_values = ["sms", "facebook", "twitter", "line", "whatsapp", "webmessaging"]
|
424
424
|
if messenger_type && !allowed_values.include?(messenger_type)
|
425
425
|
fail ArgumentError, "invalid value for 'messenger_type', must be one of #{allowed_values}."
|
426
426
|
end
|
@@ -850,7 +850,7 @@ module PureCloud
|
|
850
850
|
|
851
851
|
|
852
852
|
|
853
|
-
allowed_values = ["sms", "twitter", "facebook", "line", "whatsapp", "telegram", "kakao"]
|
853
|
+
allowed_values = ["unknown", "sms", "twitter", "facebook", "line", "whatsapp", "telegram", "kakao", "webmessaging"]
|
854
854
|
if @type && !allowed_values.include?(@type)
|
855
855
|
return false
|
856
856
|
end
|
@@ -1088,7 +1088,7 @@ module PureCloud
|
|
1088
1088
|
# Custom attribute writer method checking allowed values (enum).
|
1089
1089
|
# @param [Object] type Object to be assigned
|
1090
1090
|
def type=(type)
|
1091
|
-
allowed_values = ["sms", "twitter", "facebook", "line", "whatsapp", "telegram", "kakao"]
|
1091
|
+
allowed_values = ["unknown", "sms", "twitter", "facebook", "line", "whatsapp", "telegram", "kakao", "webmessaging"]
|
1092
1092
|
if type && !allowed_values.include?(type)
|
1093
1093
|
fail ArgumentError, "invalid value for 'type', must be one of #{allowed_values}."
|
1094
1094
|
end
|
@@ -0,0 +1,621 @@
|
|
1
|
+
=begin
|
2
|
+
PureCloud Platform API
|
3
|
+
|
4
|
+
With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: DeveloperEvangelists@genesys.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
License: UNLICENSED
|
11
|
+
https://help.mypurecloud.com/articles/terms-and-conditions/
|
12
|
+
|
13
|
+
Terms of Service: https://help.mypurecloud.com/articles/terms-and-conditions/
|
14
|
+
|
15
|
+
=end
|
16
|
+
|
17
|
+
require 'date'
|
18
|
+
|
19
|
+
module PureCloud
|
20
|
+
class MessagingCampaign
|
21
|
+
# The globally unique identifier for the object.
|
22
|
+
attr_accessor :id
|
23
|
+
|
24
|
+
attr_accessor :name
|
25
|
+
|
26
|
+
# Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
27
|
+
attr_accessor :date_created
|
28
|
+
|
29
|
+
# Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
30
|
+
attr_accessor :date_modified
|
31
|
+
|
32
|
+
# Required for updates, must match the version number of the most recent update
|
33
|
+
attr_accessor :version
|
34
|
+
|
35
|
+
# The division this entity belongs to.
|
36
|
+
attr_accessor :division
|
37
|
+
|
38
|
+
# The current status of the messaging campaign. A messaging campaign may be turned 'on' or 'off'.
|
39
|
+
attr_accessor :campaign_status
|
40
|
+
|
41
|
+
# The callable time set for this messaging campaign.
|
42
|
+
attr_accessor :callable_time_set
|
43
|
+
|
44
|
+
# The contact list that this messaging campaign will send messages for.
|
45
|
+
attr_accessor :contact_list
|
46
|
+
|
47
|
+
# The dnc lists to check before sending a message for this messaging campaign.
|
48
|
+
attr_accessor :dnc_lists
|
49
|
+
|
50
|
+
# Whether this messaging campaign is always running
|
51
|
+
attr_accessor :always_running
|
52
|
+
|
53
|
+
# The order in which to sort contacts for dialing, based on up to four columns.
|
54
|
+
attr_accessor :contact_sorts
|
55
|
+
|
56
|
+
# How many messages this messaging campaign will send per minute.
|
57
|
+
attr_accessor :messages_per_minute
|
58
|
+
|
59
|
+
# A list of current error conditions associated with this messaging campaign.
|
60
|
+
attr_accessor :errors
|
61
|
+
|
62
|
+
# Configuration for this messaging campaign to send SMS messages.
|
63
|
+
attr_accessor :sms_config
|
64
|
+
|
65
|
+
# The URI for this object
|
66
|
+
attr_accessor :self_uri
|
67
|
+
|
68
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
69
|
+
def self.attribute_map
|
70
|
+
{
|
71
|
+
|
72
|
+
:'id' => :'id',
|
73
|
+
|
74
|
+
:'name' => :'name',
|
75
|
+
|
76
|
+
:'date_created' => :'dateCreated',
|
77
|
+
|
78
|
+
:'date_modified' => :'dateModified',
|
79
|
+
|
80
|
+
:'version' => :'version',
|
81
|
+
|
82
|
+
:'division' => :'division',
|
83
|
+
|
84
|
+
:'campaign_status' => :'campaignStatus',
|
85
|
+
|
86
|
+
:'callable_time_set' => :'callableTimeSet',
|
87
|
+
|
88
|
+
:'contact_list' => :'contactList',
|
89
|
+
|
90
|
+
:'dnc_lists' => :'dncLists',
|
91
|
+
|
92
|
+
:'always_running' => :'alwaysRunning',
|
93
|
+
|
94
|
+
:'contact_sorts' => :'contactSorts',
|
95
|
+
|
96
|
+
:'messages_per_minute' => :'messagesPerMinute',
|
97
|
+
|
98
|
+
:'errors' => :'errors',
|
99
|
+
|
100
|
+
:'sms_config' => :'smsConfig',
|
101
|
+
|
102
|
+
:'self_uri' => :'selfUri'
|
103
|
+
|
104
|
+
}
|
105
|
+
end
|
106
|
+
|
107
|
+
# Attribute type mapping.
|
108
|
+
def self.swagger_types
|
109
|
+
{
|
110
|
+
|
111
|
+
:'id' => :'String',
|
112
|
+
|
113
|
+
:'name' => :'String',
|
114
|
+
|
115
|
+
:'date_created' => :'DateTime',
|
116
|
+
|
117
|
+
:'date_modified' => :'DateTime',
|
118
|
+
|
119
|
+
:'version' => :'Integer',
|
120
|
+
|
121
|
+
:'division' => :'DomainEntityRef',
|
122
|
+
|
123
|
+
:'campaign_status' => :'String',
|
124
|
+
|
125
|
+
:'callable_time_set' => :'DomainEntityRef',
|
126
|
+
|
127
|
+
:'contact_list' => :'DomainEntityRef',
|
128
|
+
|
129
|
+
:'dnc_lists' => :'Array<DomainEntityRef>',
|
130
|
+
|
131
|
+
:'always_running' => :'BOOLEAN',
|
132
|
+
|
133
|
+
:'contact_sorts' => :'Array<ContactSort>',
|
134
|
+
|
135
|
+
:'messages_per_minute' => :'Integer',
|
136
|
+
|
137
|
+
:'errors' => :'Array<RestErrorDetail>',
|
138
|
+
|
139
|
+
:'sms_config' => :'SmsConfig',
|
140
|
+
|
141
|
+
:'self_uri' => :'String'
|
142
|
+
|
143
|
+
}
|
144
|
+
end
|
145
|
+
|
146
|
+
# Initializes the object
|
147
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
148
|
+
def initialize(attributes = {})
|
149
|
+
return unless attributes.is_a?(Hash)
|
150
|
+
|
151
|
+
# convert string to symbol for hash key
|
152
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
153
|
+
|
154
|
+
|
155
|
+
if attributes.has_key?(:'id')
|
156
|
+
|
157
|
+
|
158
|
+
self.id = attributes[:'id']
|
159
|
+
|
160
|
+
|
161
|
+
end
|
162
|
+
|
163
|
+
|
164
|
+
if attributes.has_key?(:'name')
|
165
|
+
|
166
|
+
|
167
|
+
self.name = attributes[:'name']
|
168
|
+
|
169
|
+
|
170
|
+
end
|
171
|
+
|
172
|
+
|
173
|
+
if attributes.has_key?(:'dateCreated')
|
174
|
+
|
175
|
+
|
176
|
+
self.date_created = attributes[:'dateCreated']
|
177
|
+
|
178
|
+
|
179
|
+
end
|
180
|
+
|
181
|
+
|
182
|
+
if attributes.has_key?(:'dateModified')
|
183
|
+
|
184
|
+
|
185
|
+
self.date_modified = attributes[:'dateModified']
|
186
|
+
|
187
|
+
|
188
|
+
end
|
189
|
+
|
190
|
+
|
191
|
+
if attributes.has_key?(:'version')
|
192
|
+
|
193
|
+
|
194
|
+
self.version = attributes[:'version']
|
195
|
+
|
196
|
+
|
197
|
+
end
|
198
|
+
|
199
|
+
|
200
|
+
if attributes.has_key?(:'division')
|
201
|
+
|
202
|
+
|
203
|
+
self.division = attributes[:'division']
|
204
|
+
|
205
|
+
|
206
|
+
end
|
207
|
+
|
208
|
+
|
209
|
+
if attributes.has_key?(:'campaignStatus')
|
210
|
+
|
211
|
+
|
212
|
+
self.campaign_status = attributes[:'campaignStatus']
|
213
|
+
|
214
|
+
|
215
|
+
end
|
216
|
+
|
217
|
+
|
218
|
+
if attributes.has_key?(:'callableTimeSet')
|
219
|
+
|
220
|
+
|
221
|
+
self.callable_time_set = attributes[:'callableTimeSet']
|
222
|
+
|
223
|
+
|
224
|
+
end
|
225
|
+
|
226
|
+
|
227
|
+
if attributes.has_key?(:'contactList')
|
228
|
+
|
229
|
+
|
230
|
+
self.contact_list = attributes[:'contactList']
|
231
|
+
|
232
|
+
|
233
|
+
end
|
234
|
+
|
235
|
+
|
236
|
+
if attributes.has_key?(:'dncLists')
|
237
|
+
|
238
|
+
if (value = attributes[:'dncLists']).is_a?(Array)
|
239
|
+
self.dnc_lists = value
|
240
|
+
end
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
end
|
245
|
+
|
246
|
+
|
247
|
+
if attributes.has_key?(:'alwaysRunning')
|
248
|
+
|
249
|
+
|
250
|
+
self.always_running = attributes[:'alwaysRunning']
|
251
|
+
|
252
|
+
|
253
|
+
end
|
254
|
+
|
255
|
+
|
256
|
+
if attributes.has_key?(:'contactSorts')
|
257
|
+
|
258
|
+
if (value = attributes[:'contactSorts']).is_a?(Array)
|
259
|
+
self.contact_sorts = value
|
260
|
+
end
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
end
|
265
|
+
|
266
|
+
|
267
|
+
if attributes.has_key?(:'messagesPerMinute')
|
268
|
+
|
269
|
+
|
270
|
+
self.messages_per_minute = attributes[:'messagesPerMinute']
|
271
|
+
|
272
|
+
|
273
|
+
end
|
274
|
+
|
275
|
+
|
276
|
+
if attributes.has_key?(:'errors')
|
277
|
+
|
278
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
279
|
+
self.errors = value
|
280
|
+
end
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
end
|
285
|
+
|
286
|
+
|
287
|
+
if attributes.has_key?(:'smsConfig')
|
288
|
+
|
289
|
+
|
290
|
+
self.sms_config = attributes[:'smsConfig']
|
291
|
+
|
292
|
+
|
293
|
+
end
|
294
|
+
|
295
|
+
|
296
|
+
if attributes.has_key?(:'selfUri')
|
297
|
+
|
298
|
+
|
299
|
+
self.self_uri = attributes[:'selfUri']
|
300
|
+
|
301
|
+
|
302
|
+
end
|
303
|
+
|
304
|
+
|
305
|
+
end
|
306
|
+
|
307
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
308
|
+
# @return Array for valid properies with the reasons
|
309
|
+
def list_invalid_properties
|
310
|
+
invalid_properties = Array.new
|
311
|
+
|
312
|
+
|
313
|
+
return invalid_properties
|
314
|
+
end
|
315
|
+
|
316
|
+
# Check to see if the all the properties in the model are valid
|
317
|
+
# @return true if the model is valid
|
318
|
+
def valid?
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
allowed_values = ["on", "stopping", "off", "complete", "invalid"]
|
347
|
+
if @campaign_status && !allowed_values.include?(@campaign_status)
|
348
|
+
return false
|
349
|
+
end
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
if @contact_list.nil?
|
359
|
+
return false
|
360
|
+
end
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
if @messages_per_minute.nil?
|
380
|
+
return false
|
381
|
+
end
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
end
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
# Custom attribute writer method checking allowed values (enum).
|
434
|
+
# @param [Object] campaign_status Object to be assigned
|
435
|
+
def campaign_status=(campaign_status)
|
436
|
+
allowed_values = ["on", "stopping", "off", "complete", "invalid"]
|
437
|
+
if campaign_status && !allowed_values.include?(campaign_status)
|
438
|
+
fail ArgumentError, "invalid value for 'campaign_status', must be one of #{allowed_values}."
|
439
|
+
end
|
440
|
+
@campaign_status = campaign_status
|
441
|
+
end
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
# Checks equality by comparing each attribute.
|
492
|
+
# @param [Object] Object to be compared
|
493
|
+
def ==(o)
|
494
|
+
return true if self.equal?(o)
|
495
|
+
self.class == o.class &&
|
496
|
+
id == o.id &&
|
497
|
+
name == o.name &&
|
498
|
+
date_created == o.date_created &&
|
499
|
+
date_modified == o.date_modified &&
|
500
|
+
version == o.version &&
|
501
|
+
division == o.division &&
|
502
|
+
campaign_status == o.campaign_status &&
|
503
|
+
callable_time_set == o.callable_time_set &&
|
504
|
+
contact_list == o.contact_list &&
|
505
|
+
dnc_lists == o.dnc_lists &&
|
506
|
+
always_running == o.always_running &&
|
507
|
+
contact_sorts == o.contact_sorts &&
|
508
|
+
messages_per_minute == o.messages_per_minute &&
|
509
|
+
errors == o.errors &&
|
510
|
+
sms_config == o.sms_config &&
|
511
|
+
self_uri == o.self_uri
|
512
|
+
end
|
513
|
+
|
514
|
+
# @see the `==` method
|
515
|
+
# @param [Object] Object to be compared
|
516
|
+
def eql?(o)
|
517
|
+
self == o
|
518
|
+
end
|
519
|
+
|
520
|
+
# Calculates hash code according to all attributes.
|
521
|
+
# @return [Fixnum] Hash code
|
522
|
+
def hash
|
523
|
+
[id, name, date_created, date_modified, version, division, campaign_status, callable_time_set, contact_list, dnc_lists, always_running, contact_sorts, messages_per_minute, errors, sms_config, self_uri].hash
|
524
|
+
end
|
525
|
+
|
526
|
+
# build the object from hash
|
527
|
+
def build_from_hash(attributes)
|
528
|
+
return nil unless attributes.is_a?(Hash)
|
529
|
+
self.class.swagger_types.each_pair do |key, type|
|
530
|
+
if type =~ /^Array<(.*)>/i
|
531
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
532
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
533
|
+
else
|
534
|
+
#TODO show warning in debug mode
|
535
|
+
end
|
536
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
537
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
538
|
+
else
|
539
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
540
|
+
end
|
541
|
+
end
|
542
|
+
|
543
|
+
self
|
544
|
+
end
|
545
|
+
|
546
|
+
def _deserialize(type, value)
|
547
|
+
case type.to_sym
|
548
|
+
when :DateTime
|
549
|
+
DateTime.parse(value)
|
550
|
+
when :Date
|
551
|
+
Date.parse(value)
|
552
|
+
when :String
|
553
|
+
value.to_s
|
554
|
+
when :Integer
|
555
|
+
value.to_i
|
556
|
+
when :Float
|
557
|
+
value.to_f
|
558
|
+
when :BOOLEAN
|
559
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
560
|
+
true
|
561
|
+
else
|
562
|
+
false
|
563
|
+
end
|
564
|
+
when :Object
|
565
|
+
# generic object (usually a Hash), return directly
|
566
|
+
value
|
567
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
568
|
+
inner_type = Regexp.last_match[:inner_type]
|
569
|
+
value.map { |v| _deserialize(inner_type, v) }
|
570
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
571
|
+
k_type = Regexp.last_match[:k_type]
|
572
|
+
v_type = Regexp.last_match[:v_type]
|
573
|
+
{}.tap do |hash|
|
574
|
+
value.each do |k, v|
|
575
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
576
|
+
end
|
577
|
+
end
|
578
|
+
else # model
|
579
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
580
|
+
_model.build_from_hash(value)
|
581
|
+
end
|
582
|
+
end
|
583
|
+
|
584
|
+
def to_s
|
585
|
+
to_hash.to_s
|
586
|
+
end
|
587
|
+
|
588
|
+
# to_body is an alias to to_body (backward compatibility))
|
589
|
+
def to_body
|
590
|
+
to_hash
|
591
|
+
end
|
592
|
+
|
593
|
+
# return the object in the form of hash
|
594
|
+
def to_hash
|
595
|
+
hash = {}
|
596
|
+
self.class.attribute_map.each_pair do |attr, param|
|
597
|
+
value = self.send(attr)
|
598
|
+
next if value.nil?
|
599
|
+
hash[param] = _to_hash(value)
|
600
|
+
end
|
601
|
+
hash
|
602
|
+
end
|
603
|
+
|
604
|
+
# Method to output non-array value in the form of hash
|
605
|
+
# For object, use to_hash. Otherwise, just return the value
|
606
|
+
def _to_hash(value)
|
607
|
+
if value.is_a?(Array)
|
608
|
+
value.compact.map{ |v| _to_hash(v) }
|
609
|
+
elsif value.is_a?(Hash)
|
610
|
+
{}.tap do |hash|
|
611
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
612
|
+
end
|
613
|
+
elsif value.respond_to? :to_hash
|
614
|
+
value.to_hash
|
615
|
+
else
|
616
|
+
value
|
617
|
+
end
|
618
|
+
end
|
619
|
+
|
620
|
+
end
|
621
|
+
end
|