purecloudplatformclientv2 6.0.0 → 7.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 +2 -2
- data/docs/AttemptLimitsEntityListing.md +2 -2
- data/docs/AttributeEntityListing.md +2 -2
- data/docs/CalibrationEntityListing.md +2 -2
- data/docs/Call.md +1 -0
- data/docs/CallBasic.md +1 -0
- data/docs/CallConversationEntityListing.md +2 -2
- data/docs/CallConversationNotificationCallMediaParticipant.md +1 -0
- data/docs/CallConversationNotificationParticipants.md +1 -0
- data/docs/CallMediaParticipant.md +1 -0
- data/docs/CallableTimeSetEntityListing.md +2 -2
- data/docs/Callback.md +2 -0
- data/docs/CallbackBasic.md +2 -0
- data/docs/CallbackConversationEntityListing.md +2 -2
- data/docs/CallbackConversationNotificationCallbackMediaParticipant.md +1 -0
- data/docs/CallbackConversationNotificationParticipants.md +1 -0
- data/docs/CallbackMediaParticipant.md +2 -0
- data/docs/CampaignEntityListing.md +2 -2
- data/docs/CampaignRuleEntityListing.md +2 -2
- data/docs/CampaignSequenceEntityListing.md +2 -2
- data/docs/CertificateAuthorityEntityListing.md +2 -2
- data/docs/ChatConversationEntityListing.md +2 -2
- data/docs/ChatConversationNotificationChatMediaParticipant.md +1 -0
- data/docs/ChatConversationNotificationParticipants.md +1 -0
- data/docs/ChatMediaParticipant.md +1 -0
- data/docs/CobrowseConversationEntityListing.md +2 -2
- data/docs/CobrowseConversationNotificationCobrowseMediaParticipant.md +1 -0
- data/docs/CobrowseConversationNotificationParticipants.md +1 -0
- data/docs/CobrowseMediaParticipant.md +1 -0
- data/docs/Cobrowsesession.md +1 -0
- data/docs/CommandStatusEntityListing.md +2 -2
- data/docs/Condition.md +1 -1
- data/docs/ConsumedResourcesEntityListing.md +2 -2
- data/docs/ConsumingResourcesEntityListing.md +2 -2
- data/docs/Contact.md +1 -0
- data/docs/ContactListEntityListing.md +2 -2
- data/docs/ContactListFilterNotificationFilterPredicate.md +1 -0
- data/docs/ContactListFilterNotificationPredicates.md +1 -0
- data/docs/ContactListing.md +2 -2
- data/docs/ConversationChat.md +1 -0
- data/docs/ConversationEntityListing.md +2 -2
- data/docs/ConversationNotificationCall.md +1 -0
- data/docs/ConversationNotificationCallback.md +1 -0
- data/docs/ConversationNotificationCallbacks.md +1 -0
- data/docs/ConversationNotificationCalls.md +1 -0
- data/docs/ConversationNotificationChat.md +1 -0
- data/docs/ConversationNotificationChats.md +1 -0
- data/docs/ConversationNotificationCobrowse.md +1 -0
- data/docs/ConversationNotificationCobrowsesessions.md +1 -0
- data/docs/ConversationNotificationEmail.md +2 -0
- data/docs/ConversationNotificationEmails.md +2 -0
- data/docs/ConversationNotificationScreenshare.md +1 -0
- data/docs/ConversationNotificationScreenshares.md +1 -0
- data/docs/ConversationNotificationSocialExpression.md +1 -0
- data/docs/ConversationNotificationSocialExpressions.md +1 -0
- data/docs/ConversationNotificationVideo.md +1 -0
- data/docs/ConversationNotificationVideos.md +1 -0
- data/docs/DIDEntityListing.md +2 -2
- data/docs/DIDPoolEntityListing.md +2 -2
- data/docs/DependencyObjectEntityListing.md +2 -2
- data/docs/DependencyTypeEntityListing.md +2 -2
- data/docs/DialerEventEntityListing.md +2 -2
- data/docs/DncListEntityListing.md +2 -2
- data/docs/DocumentAuditEntityListing.md +2 -2
- data/docs/DocumentEntityListing.md +2 -2
- data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +2 -2
- data/docs/DomainEntityListing.md +2 -2
- data/docs/DomainEntityListingEvaluationForm.md +2 -2
- data/docs/DomainEntityListingQueryResult.md +2 -2
- data/docs/DomainOrganizationRole.md +1 -1
- data/docs/DomainOrganizationRoleCreate.md +1 -1
- data/docs/DomainOrganizationRoleUpdate.md +1 -1
- data/docs/Edge.md +1 -1
- data/docs/EdgeEntityListing.md +2 -2
- data/docs/EdgeGroupEntityListing.md +2 -2
- data/docs/EdgeLineEntityListing.md +2 -2
- data/docs/Email.md +1 -0
- data/docs/EmailConversationEntityListing.md +2 -2
- data/docs/EmailConversationNotificationEmailMediaParticipant.md +2 -0
- data/docs/EmailConversationNotificationParticipants.md +2 -0
- data/docs/EmailMediaParticipant.md +1 -0
- data/docs/EmailMessageListing.md +2 -2
- data/docs/EncryptionKey.md +1 -0
- data/docs/EncryptionKeyEntityListing.md +2 -2
- data/docs/EndpointEntityListing.md +2 -2
- data/docs/EvaluationEntityListing.md +2 -2
- data/docs/EvaluationFormEntityListing.md +2 -2
- data/docs/EvaluatorActivityEntityListing.md +2 -2
- data/docs/ExtensionEntityListing.md +2 -2
- data/docs/ExtensionPoolEntityListing.md +2 -2
- data/docs/ExternalOrganizationListing.md +2 -2
- data/docs/FaxDocumentEntityListing.md +2 -2
- data/docs/Flow.md +2 -2
- data/docs/FlowEntityListing.md +2 -2
- data/docs/FlowVersion.md +1 -1
- data/docs/FlowVersionEntityListing.md +2 -2
- data/docs/GreetingListing.md +2 -2
- data/docs/GroupEntityListing.md +2 -2
- data/docs/HeartBeatAlertContainer.md +2 -2
- data/docs/HeartBeatRuleContainer.md +2 -2
- data/docs/InboundDomainEntityListing.md +2 -2
- data/docs/InboundRouteEntityListing.md +2 -2
- data/docs/InteractionStatsAlertContainer.md +2 -2
- data/docs/InteractionStatsRuleContainer.md +2 -2
- data/docs/JsonNode.md +4 -4
- data/docs/JsonSchemaDocument.md +1 -1
- data/docs/KeywordSetEntityListing.md +2 -2
- data/docs/LanguageEntityListing.md +2 -2
- data/docs/LibraryEntityListing.md +2 -2
- data/docs/LicenseDefinitionListing.md +2 -2
- data/docs/LineBaseEntityListing.md +2 -2
- data/docs/LineEntityListing.md +2 -2
- data/docs/LocationEntityListing.md +22 -0
- data/docs/LocationsApi.md +2 -2
- data/docs/LogicalInterfaceEntityListing.md +2 -2
- data/docs/ManagementUnit.md +1 -0
- data/docs/NoteListing.md +2 -2
- data/docs/OAuthClientEntityListing.md +2 -2
- data/docs/OAuthProviderEntityListing.md +2 -2
- data/docs/OrganizationPresenceEntityListing.md +2 -2
- data/docs/OrganizationRoleEntityListing.md +2 -2
- data/docs/OrphanRecordingListing.md +2 -2
- data/docs/OutboundRouteBaseEntityListing.md +2 -2
- data/docs/OutboundRouteEntityListing.md +2 -2
- data/docs/PermissionCollectionEntityListing.md +2 -2
- data/docs/PhoneBaseEntityListing.md +2 -2
- data/docs/PhoneEntityListing.md +2 -2
- data/docs/PhoneMetaBaseEntityListing.md +2 -2
- data/docs/PhysicalInterfaceEntityListing.md +2 -2
- data/docs/PolicyEntityListing.md +2 -2
- data/docs/PromptAssetEntityListing.md +2 -2
- data/docs/PromptEntityListing.md +2 -2
- data/docs/QualityAuditPage.md +2 -2
- data/docs/QueueEntityListing.md +2 -2
- data/docs/QueueMemberEntityListing.md +2 -2
- data/docs/RelationshipListing.md +2 -2
- data/docs/ReportMetaDataEntityListing.md +2 -2
- data/docs/ReportRunEntryEntityDomainListing.md +2 -2
- data/docs/ReportScheduleEntityListing.md +2 -2
- data/docs/ResponseEntityList.md +2 -2
- data/docs/ResponseEntityListing.md +2 -2
- data/docs/ResponseSetEntityListing.md +2 -2
- data/docs/RoutingStatusAlertContainer.md +2 -2
- data/docs/RoutingStatusRuleContainer.md +2 -2
- data/docs/RuleSetEntityListing.md +2 -2
- data/docs/SchemaCategoryEntityListing.md +2 -2
- data/docs/SchemaReferenceEntityListing.md +2 -2
- data/docs/ScreenRecordingSessionListing.md +2 -2
- data/docs/ScreenShareConversationNotificationParticipants.md +1 -0
- data/docs/ScreenShareConversationNotificationScreenShareMediaParticipant.md +1 -0
- data/docs/Screenshare.md +1 -0
- data/docs/ScriptEntityListing.md +2 -2
- data/docs/SecurityProfileEntityListing.md +2 -2
- data/docs/ShareEntityListing.md +2 -2
- data/docs/SiteEntityListing.md +2 -2
- data/docs/SkillEntityListing.md +2 -2
- data/docs/SocialConversationNotificationParticipants.md +1 -0
- data/docs/SocialConversationNotificationSocialMediaParticipant.md +1 -0
- data/docs/SocialExpression.md +1 -0
- data/docs/StationEntityListing.md +2 -2
- data/docs/SystemPromptAssetEntityListing.md +2 -2
- data/docs/SystemPromptEntityListing.md +2 -2
- data/docs/TagValueEntityListing.md +2 -2
- data/docs/TelephonyProvidersEdgeApi.md +74 -0
- data/docs/TimeZoneEntityListing.md +2 -2
- data/docs/TrunkBaseEntityListing.md +2 -2
- data/docs/TrunkEntityListing.md +2 -2
- data/docs/TrunkMetabaseEntityListing.md +2 -2
- data/docs/UpdateUser.md +2 -1
- data/docs/UserEntityListing.md +2 -2
- data/docs/UserPresenceAlertContainer.md +2 -2
- data/docs/UserPresenceRuleContainer.md +2 -2
- data/docs/UserQueueEntityListing.md +2 -2
- data/docs/UserRecordingEntityListing.md +2 -2
- data/docs/UserSkillEntityListing.md +2 -2
- data/docs/UsersApi.md +3 -1
- data/docs/Video.md +1 -0
- data/docs/VideoConversationNotificationParticipants.md +1 -0
- data/docs/VideoConversationNotificationVideoMediaParticipant.md +1 -0
- data/docs/Voicemail.md +13 -0
- data/docs/VoicemailMediaInfo.md +1 -0
- data/docs/VoicemailMessageEntityListing.md +2 -2
- data/docs/WorkforceManagementApi.md +14 -14
- data/docs/WorkspaceEntityListing.md +2 -2
- data/docs/WorkspaceMemberEntityListing.md +2 -2
- data/docs/WrapupCodeEntityListing.md +2 -2
- data/lib/purecloudplatformclientv2.rb +2 -0
- data/lib/purecloudplatformclientv2/api/locations_api.rb +3 -3
- data/lib/purecloudplatformclientv2/api/telephony_providers_edge_api.rb +78 -0
- data/lib/purecloudplatformclientv2/api/users_api.rb +6 -0
- data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +14 -14
- data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/call.rb +14 -4
- data/lib/purecloudplatformclientv2/models/call_basic.rb +14 -4
- data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/call_conversation_notification_call_media_participant.rb +10 -1
- data/lib/purecloudplatformclientv2/models/call_conversation_notification_participants.rb +10 -1
- data/lib/purecloudplatformclientv2/models/call_media_participant.rb +11 -1
- data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/callback.rb +24 -4
- data/lib/purecloudplatformclientv2/models/callback_basic.rb +24 -4
- data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/callback_conversation_notification_callback_media_participant.rb +10 -1
- data/lib/purecloudplatformclientv2/models/callback_conversation_notification_participants.rb +10 -1
- data/lib/purecloudplatformclientv2/models/callback_media_participant.rb +21 -1
- data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/chat_conversation_notification_chat_media_participant.rb +10 -1
- data/lib/purecloudplatformclientv2/models/chat_conversation_notification_participants.rb +10 -1
- data/lib/purecloudplatformclientv2/models/chat_media_participant.rb +11 -1
- data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_cobrowse_media_participant.rb +10 -1
- data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_participants.rb +10 -1
- data/lib/purecloudplatformclientv2/models/cobrowse_media_participant.rb +11 -1
- data/lib/purecloudplatformclientv2/models/cobrowsesession.rb +11 -1
- data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/condition.rb +3 -3
- data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/contact.rb +14 -4
- data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_filter_predicate.rb +10 -1
- data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_predicates.rb +10 -1
- data/lib/purecloudplatformclientv2/models/contact_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/conversation_chat.rb +14 -4
- data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/conversation_notification_call.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_callback.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_callbacks.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_calls.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_chat.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_chats.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_cobrowse.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_cobrowsesessions.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_email.rb +19 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_emails.rb +19 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_screenshare.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_screenshares.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_social_expression.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_social_expressions.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_video.rb +10 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_videos.rb +10 -1
- data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +16 -16
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +16 -16
- 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.rb +1 -0
- data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/email.rb +14 -4
- data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/email_conversation_notification_email_media_participant.rb +22 -4
- data/lib/purecloudplatformclientv2/models/email_conversation_notification_participants.rb +22 -4
- data/lib/purecloudplatformclientv2/models/email_media_participant.rb +11 -1
- data/lib/purecloudplatformclientv2/models/email_message_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/encryption_key.rb +11 -1
- data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/flow.rb +2 -2
- data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/flow_version.rb +1 -1
- data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/greeting_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/heart_beat_alert_container.rb +16 -16
- data/lib/purecloudplatformclientv2/models/heart_beat_rule_container.rb +16 -16
- data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +16 -16
- data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +16 -16
- data/lib/purecloudplatformclientv2/models/json_node.rb +37 -37
- data/lib/purecloudplatformclientv2/models/json_schema_document.rb +13 -13
- data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/license_definition_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +261 -0
- data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/management_unit.rb +11 -1
- data/lib/purecloudplatformclientv2/models/note_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +16 -16
- data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/relationship_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/response_entity_list.rb +16 -16
- data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/routing_status_alert_container.rb +16 -16
- data/lib/purecloudplatformclientv2/models/routing_status_rule_container.rb +16 -16
- data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_participants.rb +10 -1
- data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_screen_share_media_participant.rb +10 -1
- data/lib/purecloudplatformclientv2/models/screenshare.rb +11 -1
- data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/social_conversation_notification_participants.rb +10 -1
- data/lib/purecloudplatformclientv2/models/social_conversation_notification_social_media_participant.rb +10 -1
- data/lib/purecloudplatformclientv2/models/social_expression.rb +14 -4
- data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/update_user.rb +30 -2
- data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/user_presence_alert_container.rb +16 -16
- data/lib/purecloudplatformclientv2/models/user_presence_rule_container.rb +16 -16
- data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/video.rb +14 -4
- data/lib/purecloudplatformclientv2/models/video_conversation_notification_participants.rb +10 -1
- data/lib/purecloudplatformclientv2/models/video_conversation_notification_video_media_participant.rb +10 -1
- data/lib/purecloudplatformclientv2/models/voicemail.rb +179 -0
- data/lib/purecloudplatformclientv2/models/voicemail_media_info.rb +15 -4
- data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +16 -16
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +6 -2
@@ -26,16 +26,16 @@ module PureCloud
|
|
26
26
|
|
27
27
|
attr_accessor :total
|
28
28
|
|
29
|
+
attr_accessor :first_uri
|
30
|
+
|
29
31
|
attr_accessor :self_uri
|
30
32
|
|
31
|
-
attr_accessor :
|
33
|
+
attr_accessor :previous_uri
|
32
34
|
|
33
35
|
attr_accessor :next_uri
|
34
36
|
|
35
37
|
attr_accessor :last_uri
|
36
38
|
|
37
|
-
attr_accessor :previous_uri
|
38
|
-
|
39
39
|
attr_accessor :page_count
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -45,11 +45,11 @@ module PureCloud
|
|
45
45
|
:'page_size' => :'pageSize',
|
46
46
|
:'page_number' => :'pageNumber',
|
47
47
|
:'total' => :'total',
|
48
|
-
:'self_uri' => :'selfUri',
|
49
48
|
:'first_uri' => :'firstUri',
|
49
|
+
:'self_uri' => :'selfUri',
|
50
|
+
:'previous_uri' => :'previousUri',
|
50
51
|
:'next_uri' => :'nextUri',
|
51
52
|
:'last_uri' => :'lastUri',
|
52
|
-
:'previous_uri' => :'previousUri',
|
53
53
|
:'page_count' => :'pageCount'
|
54
54
|
}
|
55
55
|
end
|
@@ -61,11 +61,11 @@ module PureCloud
|
|
61
61
|
:'page_size' => :'Integer',
|
62
62
|
:'page_number' => :'Integer',
|
63
63
|
:'total' => :'Integer',
|
64
|
-
:'self_uri' => :'String',
|
65
64
|
:'first_uri' => :'String',
|
65
|
+
:'self_uri' => :'String',
|
66
|
+
:'previous_uri' => :'String',
|
66
67
|
:'next_uri' => :'String',
|
67
68
|
:'last_uri' => :'String',
|
68
|
-
:'previous_uri' => :'String',
|
69
69
|
:'page_count' => :'Integer'
|
70
70
|
}
|
71
71
|
end
|
@@ -96,12 +96,16 @@ module PureCloud
|
|
96
96
|
self.total = attributes[:'total']
|
97
97
|
end
|
98
98
|
|
99
|
+
if attributes.has_key?(:'firstUri')
|
100
|
+
self.first_uri = attributes[:'firstUri']
|
101
|
+
end
|
102
|
+
|
99
103
|
if attributes.has_key?(:'selfUri')
|
100
104
|
self.self_uri = attributes[:'selfUri']
|
101
105
|
end
|
102
106
|
|
103
|
-
if attributes.has_key?(:'
|
104
|
-
self.
|
107
|
+
if attributes.has_key?(:'previousUri')
|
108
|
+
self.previous_uri = attributes[:'previousUri']
|
105
109
|
end
|
106
110
|
|
107
111
|
if attributes.has_key?(:'nextUri')
|
@@ -112,10 +116,6 @@ module PureCloud
|
|
112
116
|
self.last_uri = attributes[:'lastUri']
|
113
117
|
end
|
114
118
|
|
115
|
-
if attributes.has_key?(:'previousUri')
|
116
|
-
self.previous_uri = attributes[:'previousUri']
|
117
|
-
end
|
118
|
-
|
119
119
|
if attributes.has_key?(:'pageCount')
|
120
120
|
self.page_count = attributes[:'pageCount']
|
121
121
|
end
|
@@ -143,11 +143,11 @@ module PureCloud
|
|
143
143
|
page_size == o.page_size &&
|
144
144
|
page_number == o.page_number &&
|
145
145
|
total == o.total &&
|
146
|
-
self_uri == o.self_uri &&
|
147
146
|
first_uri == o.first_uri &&
|
147
|
+
self_uri == o.self_uri &&
|
148
|
+
previous_uri == o.previous_uri &&
|
148
149
|
next_uri == o.next_uri &&
|
149
150
|
last_uri == o.last_uri &&
|
150
|
-
previous_uri == o.previous_uri &&
|
151
151
|
page_count == o.page_count
|
152
152
|
end
|
153
153
|
|
@@ -160,7 +160,7 @@ module PureCloud
|
|
160
160
|
# Calculates hash code according to all attributes.
|
161
161
|
# @return [Fixnum] Hash code
|
162
162
|
def hash
|
163
|
-
[entities, page_size, page_number, total, self_uri,
|
163
|
+
[entities, page_size, page_number, total, first_uri, self_uri, previous_uri, next_uri, last_uri, page_count].hash
|
164
164
|
end
|
165
165
|
|
166
166
|
# build the object from hash
|
@@ -26,16 +26,16 @@ module PureCloud
|
|
26
26
|
|
27
27
|
attr_accessor :total
|
28
28
|
|
29
|
+
attr_accessor :first_uri
|
30
|
+
|
29
31
|
attr_accessor :self_uri
|
30
32
|
|
31
|
-
attr_accessor :
|
33
|
+
attr_accessor :previous_uri
|
32
34
|
|
33
35
|
attr_accessor :next_uri
|
34
36
|
|
35
37
|
attr_accessor :last_uri
|
36
38
|
|
37
|
-
attr_accessor :previous_uri
|
38
|
-
|
39
39
|
attr_accessor :page_count
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -45,11 +45,11 @@ module PureCloud
|
|
45
45
|
:'page_size' => :'pageSize',
|
46
46
|
:'page_number' => :'pageNumber',
|
47
47
|
:'total' => :'total',
|
48
|
-
:'self_uri' => :'selfUri',
|
49
48
|
:'first_uri' => :'firstUri',
|
49
|
+
:'self_uri' => :'selfUri',
|
50
|
+
:'previous_uri' => :'previousUri',
|
50
51
|
:'next_uri' => :'nextUri',
|
51
52
|
:'last_uri' => :'lastUri',
|
52
|
-
:'previous_uri' => :'previousUri',
|
53
53
|
:'page_count' => :'pageCount'
|
54
54
|
}
|
55
55
|
end
|
@@ -61,11 +61,11 @@ module PureCloud
|
|
61
61
|
:'page_size' => :'Integer',
|
62
62
|
:'page_number' => :'Integer',
|
63
63
|
:'total' => :'Integer',
|
64
|
-
:'self_uri' => :'String',
|
65
64
|
:'first_uri' => :'String',
|
65
|
+
:'self_uri' => :'String',
|
66
|
+
:'previous_uri' => :'String',
|
66
67
|
:'next_uri' => :'String',
|
67
68
|
:'last_uri' => :'String',
|
68
|
-
:'previous_uri' => :'String',
|
69
69
|
:'page_count' => :'Integer'
|
70
70
|
}
|
71
71
|
end
|
@@ -96,12 +96,16 @@ module PureCloud
|
|
96
96
|
self.total = attributes[:'total']
|
97
97
|
end
|
98
98
|
|
99
|
+
if attributes.has_key?(:'firstUri')
|
100
|
+
self.first_uri = attributes[:'firstUri']
|
101
|
+
end
|
102
|
+
|
99
103
|
if attributes.has_key?(:'selfUri')
|
100
104
|
self.self_uri = attributes[:'selfUri']
|
101
105
|
end
|
102
106
|
|
103
|
-
if attributes.has_key?(:'
|
104
|
-
self.
|
107
|
+
if attributes.has_key?(:'previousUri')
|
108
|
+
self.previous_uri = attributes[:'previousUri']
|
105
109
|
end
|
106
110
|
|
107
111
|
if attributes.has_key?(:'nextUri')
|
@@ -112,10 +116,6 @@ module PureCloud
|
|
112
116
|
self.last_uri = attributes[:'lastUri']
|
113
117
|
end
|
114
118
|
|
115
|
-
if attributes.has_key?(:'previousUri')
|
116
|
-
self.previous_uri = attributes[:'previousUri']
|
117
|
-
end
|
118
|
-
|
119
119
|
if attributes.has_key?(:'pageCount')
|
120
120
|
self.page_count = attributes[:'pageCount']
|
121
121
|
end
|
@@ -143,11 +143,11 @@ module PureCloud
|
|
143
143
|
page_size == o.page_size &&
|
144
144
|
page_number == o.page_number &&
|
145
145
|
total == o.total &&
|
146
|
-
self_uri == o.self_uri &&
|
147
146
|
first_uri == o.first_uri &&
|
147
|
+
self_uri == o.self_uri &&
|
148
|
+
previous_uri == o.previous_uri &&
|
148
149
|
next_uri == o.next_uri &&
|
149
150
|
last_uri == o.last_uri &&
|
150
|
-
previous_uri == o.previous_uri &&
|
151
151
|
page_count == o.page_count
|
152
152
|
end
|
153
153
|
|
@@ -160,7 +160,7 @@ module PureCloud
|
|
160
160
|
# Calculates hash code according to all attributes.
|
161
161
|
# @return [Fixnum] Hash code
|
162
162
|
def hash
|
163
|
-
[entities, page_size, page_number, total, self_uri,
|
163
|
+
[entities, page_size, page_number, total, first_uri, self_uri, previous_uri, next_uri, last_uri, page_count].hash
|
164
164
|
end
|
165
165
|
|
166
166
|
# build the object from hash
|
@@ -51,6 +51,9 @@ module PureCloud
|
|
51
51
|
# The source provider for the video.
|
52
52
|
attr_accessor :provider
|
53
53
|
|
54
|
+
# The id of the peer communication corresponding to a matching leg for this communication.
|
55
|
+
attr_accessor :peer_id
|
56
|
+
|
54
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
58
|
def self.attribute_map
|
56
59
|
{
|
@@ -64,7 +67,8 @@ module PureCloud
|
|
64
67
|
:'disconnect_type' => :'disconnectType',
|
65
68
|
:'connected_time' => :'connectedTime',
|
66
69
|
:'disconnected_time' => :'disconnectedTime',
|
67
|
-
:'provider' => :'provider'
|
70
|
+
:'provider' => :'provider',
|
71
|
+
:'peer_id' => :'peerId'
|
68
72
|
}
|
69
73
|
end
|
70
74
|
|
@@ -81,7 +85,8 @@ module PureCloud
|
|
81
85
|
:'disconnect_type' => :'String',
|
82
86
|
:'connected_time' => :'DateTime',
|
83
87
|
:'disconnected_time' => :'DateTime',
|
84
|
-
:'provider' => :'String'
|
88
|
+
:'provider' => :'String',
|
89
|
+
:'peer_id' => :'String'
|
85
90
|
}
|
86
91
|
end
|
87
92
|
|
@@ -137,6 +142,10 @@ module PureCloud
|
|
137
142
|
self.provider = attributes[:'provider']
|
138
143
|
end
|
139
144
|
|
145
|
+
if attributes.has_key?(:'peerId')
|
146
|
+
self.peer_id = attributes[:'peerId']
|
147
|
+
end
|
148
|
+
|
140
149
|
end
|
141
150
|
|
142
151
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -194,7 +203,8 @@ module PureCloud
|
|
194
203
|
disconnect_type == o.disconnect_type &&
|
195
204
|
connected_time == o.connected_time &&
|
196
205
|
disconnected_time == o.disconnected_time &&
|
197
|
-
provider == o.provider
|
206
|
+
provider == o.provider &&
|
207
|
+
peer_id == o.peer_id
|
198
208
|
end
|
199
209
|
|
200
210
|
# @see the `==` method
|
@@ -206,7 +216,7 @@ module PureCloud
|
|
206
216
|
# Calculates hash code according to all attributes.
|
207
217
|
# @return [Fixnum] Hash code
|
208
218
|
def hash
|
209
|
-
[state, id, context, audio_muted, video_muted, sharing_screen, peer_count, disconnect_type, connected_time, disconnected_time, provider].hash
|
219
|
+
[state, id, context, audio_muted, video_muted, sharing_screen, peer_count, disconnect_type, connected_time, disconnected_time, provider, peer_id].hash
|
210
220
|
end
|
211
221
|
|
212
222
|
# build the object from hash
|
@@ -68,6 +68,8 @@ module PureCloud
|
|
68
68
|
|
69
69
|
attr_accessor :wrapup
|
70
70
|
|
71
|
+
attr_accessor :peer
|
72
|
+
|
71
73
|
attr_accessor :audio_muted
|
72
74
|
|
73
75
|
attr_accessor :video_muted
|
@@ -106,6 +108,7 @@ module PureCloud
|
|
106
108
|
:'external_contact' => :'externalContact',
|
107
109
|
:'external_organization' => :'externalOrganization',
|
108
110
|
:'wrapup' => :'wrapup',
|
111
|
+
:'peer' => :'peer',
|
109
112
|
:'audio_muted' => :'audioMuted',
|
110
113
|
:'video_muted' => :'videoMuted',
|
111
114
|
:'sharing_screen' => :'sharingScreen',
|
@@ -142,6 +145,7 @@ module PureCloud
|
|
142
145
|
:'external_contact' => :'VideoConversationNotificationUriReference',
|
143
146
|
:'external_organization' => :'VideoConversationNotificationUriReference',
|
144
147
|
:'wrapup' => :'ConversationNotificationWrapup',
|
148
|
+
:'peer' => :'String',
|
145
149
|
:'audio_muted' => :'BOOLEAN',
|
146
150
|
:'video_muted' => :'BOOLEAN',
|
147
151
|
:'sharing_screen' => :'BOOLEAN',
|
@@ -260,6 +264,10 @@ module PureCloud
|
|
260
264
|
self.wrapup = attributes[:'wrapup']
|
261
265
|
end
|
262
266
|
|
267
|
+
if attributes.has_key?(:'peer')
|
268
|
+
self.peer = attributes[:'peer']
|
269
|
+
end
|
270
|
+
|
263
271
|
if attributes.has_key?(:'audioMuted')
|
264
272
|
self.audio_muted = attributes[:'audioMuted']
|
265
273
|
end
|
@@ -366,6 +374,7 @@ module PureCloud
|
|
366
374
|
external_contact == o.external_contact &&
|
367
375
|
external_organization == o.external_organization &&
|
368
376
|
wrapup == o.wrapup &&
|
377
|
+
peer == o.peer &&
|
369
378
|
audio_muted == o.audio_muted &&
|
370
379
|
video_muted == o.video_muted &&
|
371
380
|
sharing_screen == o.sharing_screen &&
|
@@ -382,7 +391,7 @@ module PureCloud
|
|
382
391
|
# Calculates hash code according to all attributes.
|
383
392
|
# @return [Fixnum] Hash code
|
384
393
|
def hash
|
385
|
-
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, wrapup, audio_muted, video_muted, sharing_screen, peer_count, context].hash
|
394
|
+
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, wrapup, peer, audio_muted, video_muted, sharing_screen, peer_count, context].hash
|
386
395
|
end
|
387
396
|
|
388
397
|
# build the object from hash
|
data/lib/purecloudplatformclientv2/models/video_conversation_notification_video_media_participant.rb
CHANGED
@@ -68,6 +68,8 @@ module PureCloud
|
|
68
68
|
|
69
69
|
attr_accessor :wrapup
|
70
70
|
|
71
|
+
attr_accessor :peer
|
72
|
+
|
71
73
|
attr_accessor :audio_muted
|
72
74
|
|
73
75
|
attr_accessor :video_muted
|
@@ -106,6 +108,7 @@ module PureCloud
|
|
106
108
|
:'external_contact' => :'externalContact',
|
107
109
|
:'external_organization' => :'externalOrganization',
|
108
110
|
:'wrapup' => :'wrapup',
|
111
|
+
:'peer' => :'peer',
|
109
112
|
:'audio_muted' => :'audioMuted',
|
110
113
|
:'video_muted' => :'videoMuted',
|
111
114
|
:'sharing_screen' => :'sharingScreen',
|
@@ -142,6 +145,7 @@ module PureCloud
|
|
142
145
|
:'external_contact' => :'VideoConversationNotificationUriReference',
|
143
146
|
:'external_organization' => :'VideoConversationNotificationUriReference',
|
144
147
|
:'wrapup' => :'ConversationNotificationWrapup',
|
148
|
+
:'peer' => :'String',
|
145
149
|
:'audio_muted' => :'BOOLEAN',
|
146
150
|
:'video_muted' => :'BOOLEAN',
|
147
151
|
:'sharing_screen' => :'BOOLEAN',
|
@@ -260,6 +264,10 @@ module PureCloud
|
|
260
264
|
self.wrapup = attributes[:'wrapup']
|
261
265
|
end
|
262
266
|
|
267
|
+
if attributes.has_key?(:'peer')
|
268
|
+
self.peer = attributes[:'peer']
|
269
|
+
end
|
270
|
+
|
263
271
|
if attributes.has_key?(:'audioMuted')
|
264
272
|
self.audio_muted = attributes[:'audioMuted']
|
265
273
|
end
|
@@ -366,6 +374,7 @@ module PureCloud
|
|
366
374
|
external_contact == o.external_contact &&
|
367
375
|
external_organization == o.external_organization &&
|
368
376
|
wrapup == o.wrapup &&
|
377
|
+
peer == o.peer &&
|
369
378
|
audio_muted == o.audio_muted &&
|
370
379
|
video_muted == o.video_muted &&
|
371
380
|
sharing_screen == o.sharing_screen &&
|
@@ -382,7 +391,7 @@ module PureCloud
|
|
382
391
|
# Calculates hash code according to all attributes.
|
383
392
|
# @return [Fixnum] Hash code
|
384
393
|
def hash
|
385
|
-
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, wrapup, audio_muted, video_muted, sharing_screen, peer_count, context].hash
|
394
|
+
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, wrapup, peer, audio_muted, video_muted, sharing_screen, peer_count, context].hash
|
386
395
|
end
|
387
396
|
|
388
397
|
# build the object from hash
|
@@ -0,0 +1,179 @@
|
|
1
|
+
=begin
|
2
|
+
PureCloud Platform API
|
3
|
+
|
4
|
+
With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: DeveloperEvangelists@genesys.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
License: ININ
|
11
|
+
http://www.inin.com
|
12
|
+
|
13
|
+
Terms of Service: https://developer.mypurecloud.com/tos
|
14
|
+
|
15
|
+
=end
|
16
|
+
|
17
|
+
require 'date'
|
18
|
+
|
19
|
+
module PureCloud
|
20
|
+
class Voicemail
|
21
|
+
# The voicemail id
|
22
|
+
attr_accessor :id
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'id' => :'id'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.swagger_types
|
33
|
+
{
|
34
|
+
:'id' => :'String'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Initializes the object
|
39
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
40
|
+
def initialize(attributes = {})
|
41
|
+
return unless attributes.is_a?(Hash)
|
42
|
+
|
43
|
+
# convert string to symbol for hash key
|
44
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
45
|
+
|
46
|
+
if attributes.has_key?(:'id')
|
47
|
+
self.id = attributes[:'id']
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
53
|
+
# @return Array for valid properies with the reasons
|
54
|
+
def list_invalid_properties
|
55
|
+
invalid_properties = Array.new
|
56
|
+
return invalid_properties
|
57
|
+
end
|
58
|
+
|
59
|
+
# Check to see if the all the properties in the model are valid
|
60
|
+
# @return true if the model is valid
|
61
|
+
def valid?
|
62
|
+
end
|
63
|
+
|
64
|
+
# Checks equality by comparing each attribute.
|
65
|
+
# @param [Object] Object to be compared
|
66
|
+
def ==(o)
|
67
|
+
return true if self.equal?(o)
|
68
|
+
self.class == o.class &&
|
69
|
+
id == o.id
|
70
|
+
end
|
71
|
+
|
72
|
+
# @see the `==` method
|
73
|
+
# @param [Object] Object to be compared
|
74
|
+
def eql?(o)
|
75
|
+
self == o
|
76
|
+
end
|
77
|
+
|
78
|
+
# Calculates hash code according to all attributes.
|
79
|
+
# @return [Fixnum] Hash code
|
80
|
+
def hash
|
81
|
+
[id].hash
|
82
|
+
end
|
83
|
+
|
84
|
+
# build the object from hash
|
85
|
+
def build_from_hash(attributes)
|
86
|
+
return nil unless attributes.is_a?(Hash)
|
87
|
+
self.class.swagger_types.each_pair do |key, type|
|
88
|
+
if type =~ /^Array<(.*)>/i
|
89
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
90
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
91
|
+
else
|
92
|
+
#TODO show warning in debug mode
|
93
|
+
end
|
94
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
95
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
96
|
+
else
|
97
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
self
|
102
|
+
end
|
103
|
+
|
104
|
+
def _deserialize(type, value)
|
105
|
+
case type.to_sym
|
106
|
+
when :DateTime
|
107
|
+
DateTime.parse(value)
|
108
|
+
when :Date
|
109
|
+
Date.parse(value)
|
110
|
+
when :String
|
111
|
+
value.to_s
|
112
|
+
when :Integer
|
113
|
+
value.to_i
|
114
|
+
when :Float
|
115
|
+
value.to_f
|
116
|
+
when :BOOLEAN
|
117
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
118
|
+
true
|
119
|
+
else
|
120
|
+
false
|
121
|
+
end
|
122
|
+
when :Object
|
123
|
+
# generic object (usually a Hash), return directly
|
124
|
+
value
|
125
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
126
|
+
inner_type = Regexp.last_match[:inner_type]
|
127
|
+
value.map { |v| _deserialize(inner_type, v) }
|
128
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
129
|
+
k_type = Regexp.last_match[:k_type]
|
130
|
+
v_type = Regexp.last_match[:v_type]
|
131
|
+
{}.tap do |hash|
|
132
|
+
value.each do |k, v|
|
133
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
else # model
|
137
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
138
|
+
_model.build_from_hash(value)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
def to_s
|
143
|
+
to_hash.to_s
|
144
|
+
end
|
145
|
+
|
146
|
+
# to_body is an alias to to_body (backward compatibility))
|
147
|
+
def to_body
|
148
|
+
to_hash
|
149
|
+
end
|
150
|
+
|
151
|
+
# return the object in the form of hash
|
152
|
+
def to_hash
|
153
|
+
hash = {}
|
154
|
+
self.class.attribute_map.each_pair do |attr, param|
|
155
|
+
value = self.send(attr)
|
156
|
+
next if value.nil?
|
157
|
+
hash[param] = _to_hash(value)
|
158
|
+
end
|
159
|
+
hash
|
160
|
+
end
|
161
|
+
|
162
|
+
# Method to output non-array value in the form of hash
|
163
|
+
# For object, use to_hash. Otherwise, just return the value
|
164
|
+
def _to_hash(value)
|
165
|
+
if value.is_a?(Array)
|
166
|
+
value.compact.map{ |v| _to_hash(v) }
|
167
|
+
elsif value.is_a?(Hash)
|
168
|
+
{}.tap do |hash|
|
169
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
170
|
+
end
|
171
|
+
elsif value.respond_to? :to_hash
|
172
|
+
value.to_hash
|
173
|
+
else
|
174
|
+
value
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
end
|
179
|
+
end
|