purecloudplatformclientv2 13.1.0 → 14.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/ArchitectApi.md +966 -33
- data/docs/AttemptLimitsEntityListing.md +2 -2
- data/docs/AttributeEntityListing.md +2 -2
- data/docs/AuditQueryResponse.md +12 -0
- data/docs/AuthorizationApi.md +2 -0
- 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/CallableTimeSetEntityListing.md +2 -2
- data/docs/CallbackConversationEntityListing.md +2 -2
- 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/CobrowseConversationEntityListing.md +2 -2
- data/docs/CommandStatusEntityListing.md +2 -2
- data/docs/ConsumedResourcesEntityListing.md +2 -2
- data/docs/ConsumingResourcesEntityListing.md +2 -2
- data/docs/ContactListEntityListing.md +2 -2
- data/docs/ContactListFilterEntityListing.md +2 -2
- data/docs/ContactListing.md +2 -2
- data/docs/ConversationChat.md +1 -0
- data/docs/ConversationEntityListing.md +2 -2
- data/docs/ConversationsApi.md +71 -2
- data/docs/CreateCallbackOnConversationCommand.md +20 -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/DocumentationSearchRequest.md +1 -0
- 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/EdgeEntityListing.md +2 -2
- data/docs/EdgeGroupEntityListing.md +2 -2
- data/docs/EdgeLineEntityListing.md +2 -2
- data/docs/Email.md +2 -0
- data/docs/EmailConversationEntityListing.md +2 -2
- data/docs/EmailMessageListing.md +2 -2
- 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/ExternalContactsApi.md +2 -2
- data/docs/ExternalOrganizationListing.md +2 -2
- data/docs/Facet.md +14 -0
- data/docs/FaxDocumentEntityListing.md +2 -2
- data/docs/Filter.md +16 -0
- data/docs/FlowEntityListing.md +2 -2
- data/docs/FlowVersionEntityListing.md +2 -2
- data/docs/GreetingListing.md +2 -2
- data/docs/GroupEntityListing.md +2 -2
- data/docs/GroupSearchRequest.md +1 -0
- data/docs/HistoryListing.md +10 -5
- data/docs/IVR.md +28 -0
- data/docs/IVREntityListing.md +22 -0
- 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/KeywordSetEntityListing.md +2 -2
- data/docs/LanguageEntityListing.md +2 -2
- data/docs/LibraryEntityListing.md +2 -2
- data/docs/LineBaseEntityListing.md +2 -2
- data/docs/LineEntityListing.md +2 -2
- data/docs/LocationEntityListing.md +2 -2
- data/docs/LocationSearchRequest.md +1 -0
- data/docs/LogicalInterfaceEntityListing.md +2 -2
- data/docs/NoteListing.md +2 -2
- data/docs/OAuthClientEntityListing.md +2 -2
- data/docs/OAuthProviderEntityListing.md +2 -2
- data/docs/OrganizationAuthorizationApi.md +1458 -0
- 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/Participant.md +1 -0
- data/docs/ParticipantBasic.md +1 -0
- 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/RoutingApi.md +1 -1
- data/docs/RuleSetEntityListing.md +2 -2
- data/docs/Schedule.md +27 -0
- data/docs/ScheduleEntityListing.md +22 -0
- data/docs/ScheduleGroup.md +27 -0
- data/docs/ScheduleGroupEntityListing.md +22 -0
- data/docs/SchemaCategoryEntityListing.md +2 -2
- data/docs/SchemaReferenceEntityListing.md +2 -2
- data/docs/ScreenRecordingSession.md +1 -1
- data/docs/ScreenRecordingSessionListing.md +2 -2
- data/docs/ScriptEntityListing.md +2 -2
- data/docs/SearchRequest.md +1 -0
- data/docs/SearchSort.md +14 -0
- data/docs/SecurityProfileEntityListing.md +2 -2
- data/docs/SetUuiDataRequest.md +13 -0
- data/docs/ShareEntityListing.md +2 -2
- data/docs/SiteEntityListing.md +2 -2
- data/docs/SkillEntityListing.md +2 -2
- 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/TimeZoneEntityListing.md +2 -2
- data/docs/TrunkBaseEntityListing.md +2 -2
- data/docs/TrunkEntityListing.md +2 -2
- data/docs/TrunkMetabaseEntityListing.md +2 -2
- data/docs/TrustCreate.md +15 -0
- data/docs/TrustEntityListing.md +22 -0
- data/docs/TrustRequest.md +18 -0
- data/docs/TrustRequestCreate.md +13 -0
- data/docs/TrustUser.md +36 -0
- data/docs/TrustUserCreate.md +14 -0
- data/docs/TrustUserDetails.md +14 -0
- data/docs/TrustUserEntityListing.md +22 -0
- data/docs/Trustee.md +18 -0
- data/docs/TrusteeAuditQueryRequest.md +19 -0
- data/docs/TrustorAuditQueryRequest.md +19 -0
- data/docs/TrustorEntityListing.md +22 -0
- data/docs/UserEntityListing.md +2 -2
- data/docs/UserMe.md +1 -0
- data/docs/UserQueueEntityListing.md +2 -2
- data/docs/UserRecordingEntityListing.md +2 -2
- data/docs/UserSearchRequest.md +1 -0
- data/docs/UserSkillEntityListing.md +2 -2
- data/docs/UsersApi.md +1 -1
- data/docs/VoicemailMessageEntityListing.md +2 -2
- data/docs/VoicemailSearchRequest.md +1 -0
- data/docs/WorkspaceEntityListing.md +2 -2
- data/docs/WorkspaceMemberEntityListing.md +2 -2
- data/docs/WrapupCodeEntityListing.md +2 -2
- data/lib/purecloudplatformclientv2.rb +25 -1
- data/lib/purecloudplatformclientv2/api/architect_api.rb +1216 -148
- data/lib/purecloudplatformclientv2/api/authorization_api.rb +9 -0
- data/lib/purecloudplatformclientv2/api/conversations_api.rb +97 -2
- data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +2 -2
- data/lib/purecloudplatformclientv2/api/organization_authorization_api.rb +1751 -0
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/audit_query_response.rb +176 -0
- data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/call.rb +30 -4
- data/lib/purecloudplatformclientv2/models/call_basic.rb +30 -4
- data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/campaign.rb +15 -1
- data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/contact_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/conversation_chat.rb +27 -1
- data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/create_callback_on_conversation_command.rb +393 -0
- data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/documentation_search_request.rb +29 -1
- data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +25 -25
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +25 -25
- data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/email.rb +56 -4
- data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/email_message_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/facet.rb +238 -0
- data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/filter.rb +302 -0
- data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/greeting_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/group_search_request.rb +29 -1
- data/lib/purecloudplatformclientv2/models/history_listing.rb +197 -38
- data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +25 -25
- data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +25 -25
- data/lib/purecloudplatformclientv2/models/ivr.rb +607 -0
- data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/location_search_request.rb +29 -1
- data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/note_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/participant.rb +44 -4
- data/lib/purecloudplatformclientv2/models/participant_basic.rb +44 -4
- data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +25 -25
- data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/reaction.rb +2 -2
- data/lib/purecloudplatformclientv2/models/relationship_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/response_entity_list.rb +25 -25
- data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/schedule.rb +578 -0
- data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/schedule_group.rb +577 -0
- data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/screen_recording_session.rb +8 -8
- data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/search_request.rb +29 -1
- data/lib/purecloudplatformclientv2/models/search_sort.rb +242 -0
- data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/set_uui_data_request.rb +202 -0
- data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/social_expression.rb +27 -1
- data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/trust_create.rb +271 -0
- data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/trust_request.rb +344 -0
- data/lib/purecloudplatformclientv2/models/trust_request_create.rb +209 -0
- data/lib/purecloudplatformclientv2/models/trust_user.rb +822 -0
- data/lib/purecloudplatformclientv2/models/trust_user_create.rb +240 -0
- data/lib/purecloudplatformclientv2/models/trust_user_details.rb +228 -0
- data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/{history_entry.rb → trustee.rb} +66 -46
- data/lib/purecloudplatformclientv2/models/trustee_audit_query_request.rb +376 -0
- data/lib/purecloudplatformclientv2/models/trustor_audit_query_request.rb +374 -0
- data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/user_me.rb +29 -1
- data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/user_search_request.rb +29 -1
- data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/voicemail_search_request.rb +29 -1
- data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +25 -25
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +52 -4
- data/docs/HistoryEntry.md +0 -17
@@ -26,16 +26,16 @@ module PureCloud
|
|
26
26
|
|
27
27
|
attr_accessor :total
|
28
28
|
|
29
|
+
attr_accessor :self_uri
|
30
|
+
|
31
|
+
attr_accessor :first_uri
|
32
|
+
|
29
33
|
attr_accessor :previous_uri
|
30
34
|
|
31
35
|
attr_accessor :next_uri
|
32
36
|
|
33
37
|
attr_accessor :last_uri
|
34
38
|
|
35
|
-
attr_accessor :self_uri
|
36
|
-
|
37
|
-
attr_accessor :first_uri
|
38
|
-
|
39
39
|
attr_accessor :page_count
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -50,16 +50,16 @@ module PureCloud
|
|
50
50
|
|
51
51
|
:'total' => :'total',
|
52
52
|
|
53
|
+
:'self_uri' => :'selfUri',
|
54
|
+
|
55
|
+
:'first_uri' => :'firstUri',
|
56
|
+
|
53
57
|
:'previous_uri' => :'previousUri',
|
54
58
|
|
55
59
|
:'next_uri' => :'nextUri',
|
56
60
|
|
57
61
|
:'last_uri' => :'lastUri',
|
58
62
|
|
59
|
-
:'self_uri' => :'selfUri',
|
60
|
-
|
61
|
-
:'first_uri' => :'firstUri',
|
62
|
-
|
63
63
|
:'page_count' => :'pageCount'
|
64
64
|
|
65
65
|
}
|
@@ -77,16 +77,16 @@ module PureCloud
|
|
77
77
|
|
78
78
|
:'total' => :'Integer',
|
79
79
|
|
80
|
+
:'self_uri' => :'String',
|
81
|
+
|
82
|
+
:'first_uri' => :'String',
|
83
|
+
|
80
84
|
:'previous_uri' => :'String',
|
81
85
|
|
82
86
|
:'next_uri' => :'String',
|
83
87
|
|
84
88
|
:'last_uri' => :'String',
|
85
89
|
|
86
|
-
:'self_uri' => :'String',
|
87
|
-
|
88
|
-
:'first_uri' => :'String',
|
89
|
-
|
90
90
|
:'page_count' => :'Integer'
|
91
91
|
|
92
92
|
}
|
@@ -139,46 +139,46 @@ module PureCloud
|
|
139
139
|
end
|
140
140
|
|
141
141
|
|
142
|
-
if attributes.has_key?(:'
|
142
|
+
if attributes.has_key?(:'selfUri')
|
143
143
|
|
144
144
|
|
145
|
-
self.
|
145
|
+
self.self_uri = attributes[:'selfUri']
|
146
146
|
|
147
147
|
|
148
148
|
end
|
149
149
|
|
150
150
|
|
151
|
-
if attributes.has_key?(:'
|
151
|
+
if attributes.has_key?(:'firstUri')
|
152
152
|
|
153
153
|
|
154
|
-
self.
|
154
|
+
self.first_uri = attributes[:'firstUri']
|
155
155
|
|
156
156
|
|
157
157
|
end
|
158
158
|
|
159
159
|
|
160
|
-
if attributes.has_key?(:'
|
160
|
+
if attributes.has_key?(:'previousUri')
|
161
161
|
|
162
162
|
|
163
|
-
self.
|
163
|
+
self.previous_uri = attributes[:'previousUri']
|
164
164
|
|
165
165
|
|
166
166
|
end
|
167
167
|
|
168
168
|
|
169
|
-
if attributes.has_key?(:'
|
169
|
+
if attributes.has_key?(:'nextUri')
|
170
170
|
|
171
171
|
|
172
|
-
self.
|
172
|
+
self.next_uri = attributes[:'nextUri']
|
173
173
|
|
174
174
|
|
175
175
|
end
|
176
176
|
|
177
177
|
|
178
|
-
if attributes.has_key?(:'
|
178
|
+
if attributes.has_key?(:'lastUri')
|
179
179
|
|
180
180
|
|
181
|
-
self.
|
181
|
+
self.last_uri = attributes[:'lastUri']
|
182
182
|
|
183
183
|
|
184
184
|
end
|
@@ -310,11 +310,11 @@ module PureCloud
|
|
310
310
|
page_size == o.page_size &&
|
311
311
|
page_number == o.page_number &&
|
312
312
|
total == o.total &&
|
313
|
+
self_uri == o.self_uri &&
|
314
|
+
first_uri == o.first_uri &&
|
313
315
|
previous_uri == o.previous_uri &&
|
314
316
|
next_uri == o.next_uri &&
|
315
317
|
last_uri == o.last_uri &&
|
316
|
-
self_uri == o.self_uri &&
|
317
|
-
first_uri == o.first_uri &&
|
318
318
|
page_count == o.page_count
|
319
319
|
end
|
320
320
|
|
@@ -327,7 +327,7 @@ module PureCloud
|
|
327
327
|
# Calculates hash code according to all attributes.
|
328
328
|
# @return [Fixnum] Hash code
|
329
329
|
def hash
|
330
|
-
[entities, page_size, page_number, total,
|
330
|
+
[entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
|
331
331
|
end
|
332
332
|
|
333
333
|
# build the object from hash
|
@@ -26,16 +26,16 @@ module PureCloud
|
|
26
26
|
|
27
27
|
attr_accessor :total
|
28
28
|
|
29
|
+
attr_accessor :self_uri
|
30
|
+
|
31
|
+
attr_accessor :first_uri
|
32
|
+
|
29
33
|
attr_accessor :previous_uri
|
30
34
|
|
31
35
|
attr_accessor :next_uri
|
32
36
|
|
33
37
|
attr_accessor :last_uri
|
34
38
|
|
35
|
-
attr_accessor :self_uri
|
36
|
-
|
37
|
-
attr_accessor :first_uri
|
38
|
-
|
39
39
|
attr_accessor :page_count
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -50,16 +50,16 @@ module PureCloud
|
|
50
50
|
|
51
51
|
:'total' => :'total',
|
52
52
|
|
53
|
+
:'self_uri' => :'selfUri',
|
54
|
+
|
55
|
+
:'first_uri' => :'firstUri',
|
56
|
+
|
53
57
|
:'previous_uri' => :'previousUri',
|
54
58
|
|
55
59
|
:'next_uri' => :'nextUri',
|
56
60
|
|
57
61
|
:'last_uri' => :'lastUri',
|
58
62
|
|
59
|
-
:'self_uri' => :'selfUri',
|
60
|
-
|
61
|
-
:'first_uri' => :'firstUri',
|
62
|
-
|
63
63
|
:'page_count' => :'pageCount'
|
64
64
|
|
65
65
|
}
|
@@ -77,16 +77,16 @@ module PureCloud
|
|
77
77
|
|
78
78
|
:'total' => :'Integer',
|
79
79
|
|
80
|
+
:'self_uri' => :'String',
|
81
|
+
|
82
|
+
:'first_uri' => :'String',
|
83
|
+
|
80
84
|
:'previous_uri' => :'String',
|
81
85
|
|
82
86
|
:'next_uri' => :'String',
|
83
87
|
|
84
88
|
:'last_uri' => :'String',
|
85
89
|
|
86
|
-
:'self_uri' => :'String',
|
87
|
-
|
88
|
-
:'first_uri' => :'String',
|
89
|
-
|
90
90
|
:'page_count' => :'Integer'
|
91
91
|
|
92
92
|
}
|
@@ -139,46 +139,46 @@ module PureCloud
|
|
139
139
|
end
|
140
140
|
|
141
141
|
|
142
|
-
if attributes.has_key?(:'
|
142
|
+
if attributes.has_key?(:'selfUri')
|
143
143
|
|
144
144
|
|
145
|
-
self.
|
145
|
+
self.self_uri = attributes[:'selfUri']
|
146
146
|
|
147
147
|
|
148
148
|
end
|
149
149
|
|
150
150
|
|
151
|
-
if attributes.has_key?(:'
|
151
|
+
if attributes.has_key?(:'firstUri')
|
152
152
|
|
153
153
|
|
154
|
-
self.
|
154
|
+
self.first_uri = attributes[:'firstUri']
|
155
155
|
|
156
156
|
|
157
157
|
end
|
158
158
|
|
159
159
|
|
160
|
-
if attributes.has_key?(:'
|
160
|
+
if attributes.has_key?(:'previousUri')
|
161
161
|
|
162
162
|
|
163
|
-
self.
|
163
|
+
self.previous_uri = attributes[:'previousUri']
|
164
164
|
|
165
165
|
|
166
166
|
end
|
167
167
|
|
168
168
|
|
169
|
-
if attributes.has_key?(:'
|
169
|
+
if attributes.has_key?(:'nextUri')
|
170
170
|
|
171
171
|
|
172
|
-
self.
|
172
|
+
self.next_uri = attributes[:'nextUri']
|
173
173
|
|
174
174
|
|
175
175
|
end
|
176
176
|
|
177
177
|
|
178
|
-
if attributes.has_key?(:'
|
178
|
+
if attributes.has_key?(:'lastUri')
|
179
179
|
|
180
180
|
|
181
|
-
self.
|
181
|
+
self.last_uri = attributes[:'lastUri']
|
182
182
|
|
183
183
|
|
184
184
|
end
|
@@ -310,11 +310,11 @@ module PureCloud
|
|
310
310
|
page_size == o.page_size &&
|
311
311
|
page_number == o.page_number &&
|
312
312
|
total == o.total &&
|
313
|
+
self_uri == o.self_uri &&
|
314
|
+
first_uri == o.first_uri &&
|
313
315
|
previous_uri == o.previous_uri &&
|
314
316
|
next_uri == o.next_uri &&
|
315
317
|
last_uri == o.last_uri &&
|
316
|
-
self_uri == o.self_uri &&
|
317
|
-
first_uri == o.first_uri &&
|
318
318
|
page_count == o.page_count
|
319
319
|
end
|
320
320
|
|
@@ -327,7 +327,7 @@ module PureCloud
|
|
327
327
|
# Calculates hash code according to all attributes.
|
328
328
|
# @return [Fixnum] Hash code
|
329
329
|
def hash
|
330
|
-
[entities, page_size, page_number, total,
|
330
|
+
[entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
|
331
331
|
end
|
332
332
|
|
333
333
|
# build the object from hash
|
@@ -26,16 +26,16 @@ module PureCloud
|
|
26
26
|
|
27
27
|
attr_accessor :total
|
28
28
|
|
29
|
+
attr_accessor :self_uri
|
30
|
+
|
31
|
+
attr_accessor :first_uri
|
32
|
+
|
29
33
|
attr_accessor :previous_uri
|
30
34
|
|
31
35
|
attr_accessor :next_uri
|
32
36
|
|
33
37
|
attr_accessor :last_uri
|
34
38
|
|
35
|
-
attr_accessor :self_uri
|
36
|
-
|
37
|
-
attr_accessor :first_uri
|
38
|
-
|
39
39
|
attr_accessor :page_count
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -50,16 +50,16 @@ module PureCloud
|
|
50
50
|
|
51
51
|
:'total' => :'total',
|
52
52
|
|
53
|
+
:'self_uri' => :'selfUri',
|
54
|
+
|
55
|
+
:'first_uri' => :'firstUri',
|
56
|
+
|
53
57
|
:'previous_uri' => :'previousUri',
|
54
58
|
|
55
59
|
:'next_uri' => :'nextUri',
|
56
60
|
|
57
61
|
:'last_uri' => :'lastUri',
|
58
62
|
|
59
|
-
:'self_uri' => :'selfUri',
|
60
|
-
|
61
|
-
:'first_uri' => :'firstUri',
|
62
|
-
|
63
63
|
:'page_count' => :'pageCount'
|
64
64
|
|
65
65
|
}
|
@@ -77,16 +77,16 @@ module PureCloud
|
|
77
77
|
|
78
78
|
:'total' => :'Integer',
|
79
79
|
|
80
|
+
:'self_uri' => :'String',
|
81
|
+
|
82
|
+
:'first_uri' => :'String',
|
83
|
+
|
80
84
|
:'previous_uri' => :'String',
|
81
85
|
|
82
86
|
:'next_uri' => :'String',
|
83
87
|
|
84
88
|
:'last_uri' => :'String',
|
85
89
|
|
86
|
-
:'self_uri' => :'String',
|
87
|
-
|
88
|
-
:'first_uri' => :'String',
|
89
|
-
|
90
90
|
:'page_count' => :'Integer'
|
91
91
|
|
92
92
|
}
|
@@ -139,46 +139,46 @@ module PureCloud
|
|
139
139
|
end
|
140
140
|
|
141
141
|
|
142
|
-
if attributes.has_key?(:'
|
142
|
+
if attributes.has_key?(:'selfUri')
|
143
143
|
|
144
144
|
|
145
|
-
self.
|
145
|
+
self.self_uri = attributes[:'selfUri']
|
146
146
|
|
147
147
|
|
148
148
|
end
|
149
149
|
|
150
150
|
|
151
|
-
if attributes.has_key?(:'
|
151
|
+
if attributes.has_key?(:'firstUri')
|
152
152
|
|
153
153
|
|
154
|
-
self.
|
154
|
+
self.first_uri = attributes[:'firstUri']
|
155
155
|
|
156
156
|
|
157
157
|
end
|
158
158
|
|
159
159
|
|
160
|
-
if attributes.has_key?(:'
|
160
|
+
if attributes.has_key?(:'previousUri')
|
161
161
|
|
162
162
|
|
163
|
-
self.
|
163
|
+
self.previous_uri = attributes[:'previousUri']
|
164
164
|
|
165
165
|
|
166
166
|
end
|
167
167
|
|
168
168
|
|
169
|
-
if attributes.has_key?(:'
|
169
|
+
if attributes.has_key?(:'nextUri')
|
170
170
|
|
171
171
|
|
172
|
-
self.
|
172
|
+
self.next_uri = attributes[:'nextUri']
|
173
173
|
|
174
174
|
|
175
175
|
end
|
176
176
|
|
177
177
|
|
178
|
-
if attributes.has_key?(:'
|
178
|
+
if attributes.has_key?(:'lastUri')
|
179
179
|
|
180
180
|
|
181
|
-
self.
|
181
|
+
self.last_uri = attributes[:'lastUri']
|
182
182
|
|
183
183
|
|
184
184
|
end
|
@@ -310,11 +310,11 @@ module PureCloud
|
|
310
310
|
page_size == o.page_size &&
|
311
311
|
page_number == o.page_number &&
|
312
312
|
total == o.total &&
|
313
|
+
self_uri == o.self_uri &&
|
314
|
+
first_uri == o.first_uri &&
|
313
315
|
previous_uri == o.previous_uri &&
|
314
316
|
next_uri == o.next_uri &&
|
315
317
|
last_uri == o.last_uri &&
|
316
|
-
self_uri == o.self_uri &&
|
317
|
-
first_uri == o.first_uri &&
|
318
318
|
page_count == o.page_count
|
319
319
|
end
|
320
320
|
|
@@ -327,7 +327,7 @@ module PureCloud
|
|
327
327
|
# Calculates hash code according to all attributes.
|
328
328
|
# @return [Fixnum] Hash code
|
329
329
|
def hash
|
330
|
-
[entities, page_size, page_number, total,
|
330
|
+
[entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
|
331
331
|
end
|
332
332
|
|
333
333
|
# build the object from hash
|
@@ -0,0 +1,607 @@
|
|
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
|
+
# Defines the phone numbers, operating hours, and the Architect flows to execute for an IVR.
|
21
|
+
class IVR
|
22
|
+
# The globally unique identifier for the object.
|
23
|
+
attr_accessor :id
|
24
|
+
|
25
|
+
# The name of the entity.
|
26
|
+
attr_accessor :name
|
27
|
+
|
28
|
+
attr_accessor :description
|
29
|
+
|
30
|
+
attr_accessor :version
|
31
|
+
|
32
|
+
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
33
|
+
attr_accessor :date_created
|
34
|
+
|
35
|
+
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
36
|
+
attr_accessor :date_modified
|
37
|
+
|
38
|
+
attr_accessor :modified_by
|
39
|
+
|
40
|
+
attr_accessor :created_by
|
41
|
+
|
42
|
+
attr_accessor :state
|
43
|
+
|
44
|
+
attr_accessor :modified_by_app
|
45
|
+
|
46
|
+
attr_accessor :created_by_app
|
47
|
+
|
48
|
+
# The phone number(s) to contact the IVR by. Each phone number must be unique and not in use by another resource. For example, a user and an iVR cannot have the same phone number.
|
49
|
+
attr_accessor :dnis
|
50
|
+
|
51
|
+
# The Architect flow to execute during the hours an organization is open.
|
52
|
+
attr_accessor :open_hours_flow
|
53
|
+
|
54
|
+
# The Architect flow to execute during the hours an organization is closed.
|
55
|
+
attr_accessor :closed_hours_flow
|
56
|
+
|
57
|
+
# The schedule group defining the open and closed hours for an organization. If this is provided, an open flow and a closed flow must be specified as well.
|
58
|
+
attr_accessor :schedule_group
|
59
|
+
|
60
|
+
# The URI for this object
|
61
|
+
attr_accessor :self_uri
|
62
|
+
|
63
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
64
|
+
def self.attribute_map
|
65
|
+
{
|
66
|
+
|
67
|
+
:'id' => :'id',
|
68
|
+
|
69
|
+
:'name' => :'name',
|
70
|
+
|
71
|
+
:'description' => :'description',
|
72
|
+
|
73
|
+
:'version' => :'version',
|
74
|
+
|
75
|
+
:'date_created' => :'dateCreated',
|
76
|
+
|
77
|
+
:'date_modified' => :'dateModified',
|
78
|
+
|
79
|
+
:'modified_by' => :'modifiedBy',
|
80
|
+
|
81
|
+
:'created_by' => :'createdBy',
|
82
|
+
|
83
|
+
:'state' => :'state',
|
84
|
+
|
85
|
+
:'modified_by_app' => :'modifiedByApp',
|
86
|
+
|
87
|
+
:'created_by_app' => :'createdByApp',
|
88
|
+
|
89
|
+
:'dnis' => :'dnis',
|
90
|
+
|
91
|
+
:'open_hours_flow' => :'openHoursFlow',
|
92
|
+
|
93
|
+
:'closed_hours_flow' => :'closedHoursFlow',
|
94
|
+
|
95
|
+
:'schedule_group' => :'scheduleGroup',
|
96
|
+
|
97
|
+
:'self_uri' => :'selfUri'
|
98
|
+
|
99
|
+
}
|
100
|
+
end
|
101
|
+
|
102
|
+
# Attribute type mapping.
|
103
|
+
def self.swagger_types
|
104
|
+
{
|
105
|
+
|
106
|
+
:'id' => :'String',
|
107
|
+
|
108
|
+
:'name' => :'String',
|
109
|
+
|
110
|
+
:'description' => :'String',
|
111
|
+
|
112
|
+
:'version' => :'Integer',
|
113
|
+
|
114
|
+
:'date_created' => :'DateTime',
|
115
|
+
|
116
|
+
:'date_modified' => :'DateTime',
|
117
|
+
|
118
|
+
:'modified_by' => :'String',
|
119
|
+
|
120
|
+
:'created_by' => :'String',
|
121
|
+
|
122
|
+
:'state' => :'String',
|
123
|
+
|
124
|
+
:'modified_by_app' => :'String',
|
125
|
+
|
126
|
+
:'created_by_app' => :'String',
|
127
|
+
|
128
|
+
:'dnis' => :'Array<String>',
|
129
|
+
|
130
|
+
:'open_hours_flow' => :'UriReference',
|
131
|
+
|
132
|
+
:'closed_hours_flow' => :'UriReference',
|
133
|
+
|
134
|
+
:'schedule_group' => :'UriReference',
|
135
|
+
|
136
|
+
:'self_uri' => :'String'
|
137
|
+
|
138
|
+
}
|
139
|
+
end
|
140
|
+
|
141
|
+
# Initializes the object
|
142
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
143
|
+
def initialize(attributes = {})
|
144
|
+
return unless attributes.is_a?(Hash)
|
145
|
+
|
146
|
+
# convert string to symbol for hash key
|
147
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
148
|
+
|
149
|
+
|
150
|
+
if attributes.has_key?(:'id')
|
151
|
+
|
152
|
+
|
153
|
+
self.id = attributes[:'id']
|
154
|
+
|
155
|
+
|
156
|
+
end
|
157
|
+
|
158
|
+
|
159
|
+
if attributes.has_key?(:'name')
|
160
|
+
|
161
|
+
|
162
|
+
self.name = attributes[:'name']
|
163
|
+
|
164
|
+
|
165
|
+
end
|
166
|
+
|
167
|
+
|
168
|
+
if attributes.has_key?(:'description')
|
169
|
+
|
170
|
+
|
171
|
+
self.description = attributes[:'description']
|
172
|
+
|
173
|
+
|
174
|
+
end
|
175
|
+
|
176
|
+
|
177
|
+
if attributes.has_key?(:'version')
|
178
|
+
|
179
|
+
|
180
|
+
self.version = attributes[:'version']
|
181
|
+
|
182
|
+
|
183
|
+
end
|
184
|
+
|
185
|
+
|
186
|
+
if attributes.has_key?(:'dateCreated')
|
187
|
+
|
188
|
+
|
189
|
+
self.date_created = attributes[:'dateCreated']
|
190
|
+
|
191
|
+
|
192
|
+
end
|
193
|
+
|
194
|
+
|
195
|
+
if attributes.has_key?(:'dateModified')
|
196
|
+
|
197
|
+
|
198
|
+
self.date_modified = attributes[:'dateModified']
|
199
|
+
|
200
|
+
|
201
|
+
end
|
202
|
+
|
203
|
+
|
204
|
+
if attributes.has_key?(:'modifiedBy')
|
205
|
+
|
206
|
+
|
207
|
+
self.modified_by = attributes[:'modifiedBy']
|
208
|
+
|
209
|
+
|
210
|
+
end
|
211
|
+
|
212
|
+
|
213
|
+
if attributes.has_key?(:'createdBy')
|
214
|
+
|
215
|
+
|
216
|
+
self.created_by = attributes[:'createdBy']
|
217
|
+
|
218
|
+
|
219
|
+
end
|
220
|
+
|
221
|
+
|
222
|
+
if attributes.has_key?(:'state')
|
223
|
+
|
224
|
+
|
225
|
+
self.state = attributes[:'state']
|
226
|
+
|
227
|
+
|
228
|
+
end
|
229
|
+
|
230
|
+
|
231
|
+
if attributes.has_key?(:'modifiedByApp')
|
232
|
+
|
233
|
+
|
234
|
+
self.modified_by_app = attributes[:'modifiedByApp']
|
235
|
+
|
236
|
+
|
237
|
+
end
|
238
|
+
|
239
|
+
|
240
|
+
if attributes.has_key?(:'createdByApp')
|
241
|
+
|
242
|
+
|
243
|
+
self.created_by_app = attributes[:'createdByApp']
|
244
|
+
|
245
|
+
|
246
|
+
end
|
247
|
+
|
248
|
+
|
249
|
+
if attributes.has_key?(:'dnis')
|
250
|
+
|
251
|
+
if (value = attributes[:'dnis']).is_a?(Array)
|
252
|
+
self.dnis = value
|
253
|
+
end
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
end
|
258
|
+
|
259
|
+
|
260
|
+
if attributes.has_key?(:'openHoursFlow')
|
261
|
+
|
262
|
+
|
263
|
+
self.open_hours_flow = attributes[:'openHoursFlow']
|
264
|
+
|
265
|
+
|
266
|
+
end
|
267
|
+
|
268
|
+
|
269
|
+
if attributes.has_key?(:'closedHoursFlow')
|
270
|
+
|
271
|
+
|
272
|
+
self.closed_hours_flow = attributes[:'closedHoursFlow']
|
273
|
+
|
274
|
+
|
275
|
+
end
|
276
|
+
|
277
|
+
|
278
|
+
if attributes.has_key?(:'scheduleGroup')
|
279
|
+
|
280
|
+
|
281
|
+
self.schedule_group = attributes[:'scheduleGroup']
|
282
|
+
|
283
|
+
|
284
|
+
end
|
285
|
+
|
286
|
+
|
287
|
+
if attributes.has_key?(:'selfUri')
|
288
|
+
|
289
|
+
|
290
|
+
self.self_uri = attributes[:'selfUri']
|
291
|
+
|
292
|
+
|
293
|
+
end
|
294
|
+
|
295
|
+
|
296
|
+
end
|
297
|
+
|
298
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
299
|
+
# @return Array for valid properies with the reasons
|
300
|
+
def list_invalid_properties
|
301
|
+
invalid_properties = Array.new
|
302
|
+
|
303
|
+
|
304
|
+
return invalid_properties
|
305
|
+
end
|
306
|
+
|
307
|
+
# Check to see if the all the properties in the model are valid
|
308
|
+
# @return true if the model is valid
|
309
|
+
def valid?
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
if @name.nil?
|
317
|
+
return false
|
318
|
+
end
|
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
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
allowed_values = ["active", "inactive", "deleted"]
|
351
|
+
if @state && !allowed_values.include?(@state)
|
352
|
+
return false
|
353
|
+
end
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
end
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
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
|
+
# Custom attribute writer method checking allowed values (enum).
|
430
|
+
# @param [Object] state Object to be assigned
|
431
|
+
def state=(state)
|
432
|
+
allowed_values = ["active", "inactive", "deleted"]
|
433
|
+
if state && !allowed_values.include?(state)
|
434
|
+
fail ArgumentError, "invalid value for 'state', must be one of #{allowed_values}."
|
435
|
+
end
|
436
|
+
@state = state
|
437
|
+
end
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
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
|
+
# Checks equality by comparing each attribute.
|
478
|
+
# @param [Object] Object to be compared
|
479
|
+
def ==(o)
|
480
|
+
return true if self.equal?(o)
|
481
|
+
self.class == o.class &&
|
482
|
+
id == o.id &&
|
483
|
+
name == o.name &&
|
484
|
+
description == o.description &&
|
485
|
+
version == o.version &&
|
486
|
+
date_created == o.date_created &&
|
487
|
+
date_modified == o.date_modified &&
|
488
|
+
modified_by == o.modified_by &&
|
489
|
+
created_by == o.created_by &&
|
490
|
+
state == o.state &&
|
491
|
+
modified_by_app == o.modified_by_app &&
|
492
|
+
created_by_app == o.created_by_app &&
|
493
|
+
dnis == o.dnis &&
|
494
|
+
open_hours_flow == o.open_hours_flow &&
|
495
|
+
closed_hours_flow == o.closed_hours_flow &&
|
496
|
+
schedule_group == o.schedule_group &&
|
497
|
+
self_uri == o.self_uri
|
498
|
+
end
|
499
|
+
|
500
|
+
# @see the `==` method
|
501
|
+
# @param [Object] Object to be compared
|
502
|
+
def eql?(o)
|
503
|
+
self == o
|
504
|
+
end
|
505
|
+
|
506
|
+
# Calculates hash code according to all attributes.
|
507
|
+
# @return [Fixnum] Hash code
|
508
|
+
def hash
|
509
|
+
[id, name, description, version, date_created, date_modified, modified_by, created_by, state, modified_by_app, created_by_app, dnis, open_hours_flow, closed_hours_flow, schedule_group, self_uri].hash
|
510
|
+
end
|
511
|
+
|
512
|
+
# build the object from hash
|
513
|
+
def build_from_hash(attributes)
|
514
|
+
return nil unless attributes.is_a?(Hash)
|
515
|
+
self.class.swagger_types.each_pair do |key, type|
|
516
|
+
if type =~ /^Array<(.*)>/i
|
517
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
518
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
519
|
+
else
|
520
|
+
#TODO show warning in debug mode
|
521
|
+
end
|
522
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
523
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
524
|
+
else
|
525
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
526
|
+
end
|
527
|
+
end
|
528
|
+
|
529
|
+
self
|
530
|
+
end
|
531
|
+
|
532
|
+
def _deserialize(type, value)
|
533
|
+
case type.to_sym
|
534
|
+
when :DateTime
|
535
|
+
DateTime.parse(value)
|
536
|
+
when :Date
|
537
|
+
Date.parse(value)
|
538
|
+
when :String
|
539
|
+
value.to_s
|
540
|
+
when :Integer
|
541
|
+
value.to_i
|
542
|
+
when :Float
|
543
|
+
value.to_f
|
544
|
+
when :BOOLEAN
|
545
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
546
|
+
true
|
547
|
+
else
|
548
|
+
false
|
549
|
+
end
|
550
|
+
when :Object
|
551
|
+
# generic object (usually a Hash), return directly
|
552
|
+
value
|
553
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
554
|
+
inner_type = Regexp.last_match[:inner_type]
|
555
|
+
value.map { |v| _deserialize(inner_type, v) }
|
556
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
557
|
+
k_type = Regexp.last_match[:k_type]
|
558
|
+
v_type = Regexp.last_match[:v_type]
|
559
|
+
{}.tap do |hash|
|
560
|
+
value.each do |k, v|
|
561
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
562
|
+
end
|
563
|
+
end
|
564
|
+
else # model
|
565
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
566
|
+
_model.build_from_hash(value)
|
567
|
+
end
|
568
|
+
end
|
569
|
+
|
570
|
+
def to_s
|
571
|
+
to_hash.to_s
|
572
|
+
end
|
573
|
+
|
574
|
+
# to_body is an alias to to_body (backward compatibility))
|
575
|
+
def to_body
|
576
|
+
to_hash
|
577
|
+
end
|
578
|
+
|
579
|
+
# return the object in the form of hash
|
580
|
+
def to_hash
|
581
|
+
hash = {}
|
582
|
+
self.class.attribute_map.each_pair do |attr, param|
|
583
|
+
value = self.send(attr)
|
584
|
+
next if value.nil?
|
585
|
+
hash[param] = _to_hash(value)
|
586
|
+
end
|
587
|
+
hash
|
588
|
+
end
|
589
|
+
|
590
|
+
# Method to output non-array value in the form of hash
|
591
|
+
# For object, use to_hash. Otherwise, just return the value
|
592
|
+
def _to_hash(value)
|
593
|
+
if value.is_a?(Array)
|
594
|
+
value.compact.map{ |v| _to_hash(v) }
|
595
|
+
elsif value.is_a?(Hash)
|
596
|
+
{}.tap do |hash|
|
597
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
598
|
+
end
|
599
|
+
elsif value.respond_to? :to_hash
|
600
|
+
value.to_hash
|
601
|
+
else
|
602
|
+
value
|
603
|
+
end
|
604
|
+
end
|
605
|
+
|
606
|
+
end
|
607
|
+
end
|