purecloud 0.52.1 → 0.53.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/bin/notificationMappings.json +8 -0
- data/config-ruby.json +1 -1
- data/doc_out/AgentActivityEntityListing.html.md +1 -1
- data/doc_out/AttemptLimitsEntityListing.html.md +1 -1
- data/doc_out/AttributeEntityListing.html.md +1 -1
- data/doc_out/CalibrationEntityListing.html.md +1 -1
- data/doc_out/Call.html.md +1 -0
- data/doc_out/CallConversationEntityListing.html.md +1 -1
- data/doc_out/CallConversationNotificationCallMediaParticipant.html.md +1 -0
- data/doc_out/CallConversationNotificationParticipants.html.md +1 -0
- data/doc_out/CallableContactsDiagnostic.html.md +1 -0
- data/doc_out/CallableTimeSetEntityListing.html.md +1 -1
- data/doc_out/Callback.html.md +1 -0
- data/doc_out/CallbackConversationEntityListing.html.md +1 -1
- data/doc_out/CallbackConversationNotificationCallbackMediaParticipant.html.md +1 -0
- data/doc_out/CallbackConversationNotificationParticipants.html.md +1 -0
- data/doc_out/Campaign.html.md +1 -0
- data/doc_out/CampaignEntityListing.html.md +1 -1
- data/doc_out/CampaignSequenceEntityListing.html.md +1 -1
- data/doc_out/CertificateAuthorityEntityListing.html.md +1 -1
- data/doc_out/ChannelEntityListing.html.md +1 -1
- data/doc_out/ChatConversationEntityListing.html.md +1 -1
- data/doc_out/ChatConversationNotificationChatMediaParticipant.html.md +1 -0
- data/doc_out/ChatConversationNotificationParticipants.html.md +1 -0
- data/doc_out/CobrowseConversationEntityListing.html.md +1 -1
- data/doc_out/CobrowseConversationNotificationCobrowseMediaParticipant.html.md +1 -0
- data/doc_out/CobrowseConversationNotificationParticipants.html.md +9 -8
- data/doc_out/Cobrowsesession.html.md +1 -0
- data/doc_out/CommandStatusEntityListing.html.md +1 -1
- data/doc_out/ContactListEntityListing.html.md +1 -1
- data/doc_out/ConversationEntityListing.html.md +1 -1
- data/doc_out/ConversationNotificationCall.html.md +1 -0
- data/doc_out/ConversationNotificationCallback.html.md +1 -0
- data/doc_out/ConversationNotificationCallbacks.html.md +1 -0
- data/doc_out/ConversationNotificationCalls.html.md +1 -0
- data/doc_out/ConversationNotificationChat.html.md +1 -0
- data/doc_out/ConversationNotificationChats.html.md +1 -0
- data/doc_out/ConversationNotificationCobrowse.html.md +1 -0
- data/doc_out/ConversationNotificationCobrowsesessions.html.md +1 -0
- data/doc_out/ConversationNotificationEmail.html.md +1 -0
- data/doc_out/ConversationNotificationEmails.html.md +1 -0
- data/doc_out/ConversationNotificationScreenShare.html.md +1 -0
- data/doc_out/ConversationNotificationScreenShares.html.md +1 -0
- data/doc_out/ConversationNotificationSocialExpression.html.md +1 -0
- data/doc_out/ConversationNotificationSocialExpressions.html.md +2 -1
- data/doc_out/DIDEntityListing.html.md +1 -1
- data/doc_out/DIDPoolEntityListing.html.md +1 -1
- data/doc_out/DncListEntityListing.html.md +1 -1
- data/doc_out/DocumentAuditEntityListing.html.md +1 -1
- data/doc_out/DocumentEntityListing.html.md +1 -1
- data/doc_out/DomainEdgeSoftwareVersionDtoEntityListing.html.md +1 -1
- data/doc_out/DomainEntityListing.html.md +1 -1
- data/doc_out/DomainEntityListingEvaluationForm.html.md +1 -1
- data/doc_out/DomainEntityListingQueryResult.html.md +1 -1
- data/doc_out/DomainOrganizationRole.html.md +1 -0
- data/doc_out/DomainOrganizationRoleCreate.html.md +1 -0
- data/doc_out/EdgeEntityListing.html.md +1 -1
- data/doc_out/EdgeGroupEntityListing.html.md +1 -1
- data/doc_out/EdgeLineEntityListing.html.md +1 -1
- data/doc_out/EmailConversationEntityListing.html.md +1 -1
- data/doc_out/EmailConversationNotificationEmailMediaParticipant.html.md +1 -0
- data/doc_out/EmailConversationNotificationParticipants.html.md +1 -0
- data/doc_out/EmailMessageListing.html.md +1 -1
- data/doc_out/EncryptionKeyEntityListing.html.md +1 -1
- data/doc_out/EndpointEntityListing.html.md +1 -1
- data/doc_out/EvaluationEntityListing.html.md +1 -1
- data/doc_out/EvaluationFormEntityListing.html.md +1 -1
- data/doc_out/EvaluatorActivityEntityListing.html.md +1 -1
- data/doc_out/ExtensionEntityListing.html.md +1 -1
- data/doc_out/ExtensionPoolEntityListing.html.md +1 -1
- data/doc_out/FaxDocumentEntityListing.html.md +1 -1
- data/doc_out/GroupEntityListing.html.md +1 -1
- data/doc_out/GroupSearchCriteria.html.md +7 -7
- data/doc_out/GroupSearchRequest.html.md +6 -6
- data/doc_out/GroupsApi.html.md +6 -6
- data/doc_out/GroupsSearchResponse.html.md +9 -9
- data/doc_out/HeartBeatAlertContainer.html.md +1 -1
- data/doc_out/HeartBeatRuleContainer.html.md +1 -1
- data/doc_out/InboundDomainEntityListing.html.md +1 -1
- data/doc_out/InboundRouteEntityListing.html.md +1 -1
- data/doc_out/InteractionStatsAlertContainer.html.md +1 -1
- data/doc_out/InteractionStatsRuleContainer.html.md +1 -1
- data/doc_out/JsonNode.html.md +3 -3
- data/doc_out/JsonNodeSearchResponse.html.md +9 -9
- data/doc_out/KeywordSetEntityListing.html.md +1 -1
- data/doc_out/LanguageEntityListing.html.md +1 -1
- data/doc_out/LibraryEntityListing.html.md +1 -1
- data/doc_out/LineBaseEntityListing.html.md +1 -1
- data/doc_out/LineEntityListing.html.md +1 -1
- data/doc_out/LocationSearchCriteria.html.md +7 -7
- data/doc_out/LocationSearchRequest.html.md +6 -6
- data/doc_out/LocationsApi.html.md +6 -6
- data/doc_out/LocationsSearchResponse.html.md +9 -9
- data/doc_out/LogicalInterfaceEntityListing.html.md +1 -1
- data/doc_out/ManagementUnit.html.md +18 -0
- data/doc_out/OAuthClientEntityListing.html.md +1 -1
- data/doc_out/OAuthProviderEntityListing.html.md +1 -1
- data/doc_out/OrganizationPresenceEntityListing.html.md +1 -1
- data/doc_out/OrganizationRoleEntityListing.html.md +1 -1
- data/doc_out/OrphanRecordingListing.html.md +1 -1
- data/doc_out/OutboundRouteEntityListing.html.md +1 -1
- data/doc_out/PermissionCollectionEntityListing.html.md +1 -1
- data/doc_out/PhoneBaseEntityListing.html.md +1 -1
- data/doc_out/PhoneEntityListing.html.md +1 -1
- data/doc_out/PhoneMetaBaseEntityListing.html.md +1 -1
- data/doc_out/PhysicalInterfaceEntityListing.html.md +1 -1
- data/doc_out/PolicyEntityListing.html.md +1 -1
- data/doc_out/Predicate.html.md +14 -0
- data/doc_out/QualityAuditPage.html.md +1 -1
- data/doc_out/QuestionGroup.html.md +1 -0
- data/doc_out/QueueEntityListing.html.md +1 -1
- data/doc_out/QueueMemberEntityListing.html.md +1 -1
- data/doc_out/ReportMetaDataEntityListing.html.md +1 -1
- data/doc_out/ReportRunEntryEntityDomainListing.html.md +1 -1
- data/doc_out/ReportScheduleEntityListing.html.md +1 -1
- data/doc_out/ResponseEntityList.html.md +1 -1
- data/doc_out/ResponseEntityListing.html.md +1 -1
- data/doc_out/ResponseSetEntityListing.html.md +1 -1
- data/doc_out/RuleSetEntityListing.html.md +1 -1
- data/doc_out/SchemaCategoryEntityListing.html.md +1 -1
- data/doc_out/SchemaReferenceEntityListing.html.md +1 -1
- data/doc_out/ScreenRecordingSessionListing.html.md +1 -1
- data/doc_out/ScreenShareConversationNotificationParticipants.html.md +10 -9
- data/doc_out/ScreenShareConversationNotificationScreenShareMediaParticipant.html.md +1 -0
- data/doc_out/Screenshare.html.md +1 -0
- data/doc_out/SearchAggregation.html.md +6 -6
- data/doc_out/SearchApi.html.md +30 -30
- data/doc_out/SearchCriteria.html.md +7 -7
- data/doc_out/SearchRequest.html.md +9 -9
- data/doc_out/SecurityProfileEntityListing.html.md +1 -1
- data/doc_out/ShareEntityListing.html.md +1 -1
- data/doc_out/SiteEntityListing.html.md +1 -1
- data/doc_out/SkillEntityListing.html.md +1 -1
- data/doc_out/SocialConversationNotificationParticipants.html.md +11 -10
- data/doc_out/SocialConversationNotificationSocialMediaParticipant.html.md +1 -0
- data/doc_out/SocialExpression.html.md +1 -0
- data/doc_out/StationEntityListing.html.md +1 -1
- data/doc_out/SuggestApi.html.md +12 -12
- data/doc_out/SuggestSearchCriteria.html.md +7 -7
- data/doc_out/SuggestSearchRequest.html.md +2 -2
- data/doc_out/TagValueEntityListing.html.md +1 -1
- data/doc_out/TimeZoneEntityListing.html.md +1 -1
- data/doc_out/TrunkEntityListing.html.md +1 -1
- data/doc_out/TrunkMetabaseEntityListing.html.md +1 -1
- data/doc_out/UserEntityListing.html.md +1 -1
- data/doc_out/UserQueueEntityListing.html.md +1 -1
- data/doc_out/UserRecordingEntityListing.html.md +1 -1
- data/doc_out/UserScheduleAdherence.html.md +26 -0
- data/doc_out/UserSearchCriteria.html.md +7 -7
- data/doc_out/UserSearchRequest.html.md +6 -6
- data/doc_out/UserSkillEntityListing.html.md +1 -1
- data/doc_out/UsersApi.html.md +124 -6
- data/doc_out/UsersEntityListing.html.md +1 -1
- data/doc_out/UsersSearchResponse.html.md +9 -9
- data/doc_out/Video.html.md +1 -0
- data/doc_out/VideoConversationNotificationParticipants.html.md +1 -1
- data/doc_out/VideoConversationNotificationVideoMediaParticipant.html.md +1 -1
- data/doc_out/VisibilityCondition.html.md +14 -0
- data/doc_out/WorkforceManagementApi.html.md +69 -0
- data/doc_out/WorkspaceEntityListing.html.md +1 -1
- data/doc_out/WorkspaceMemberEntityListing.html.md +1 -1
- data/doc_out/WrapupCodeEntityListing.html.md +1 -1
- data/doc_out/index.html.md +3 -3
- data/lib/purecloud.rb +5 -0
- data/lib/purecloud/api/groups_api.rb +4 -4
- data/lib/purecloud/api/locations_api.rb +4 -4
- data/lib/purecloud/api/search_api.rb +20 -20
- data/lib/purecloud/api/suggest_api.rb +8 -8
- data/lib/purecloud/api/users_api.rb +126 -4
- data/lib/purecloud/api/workforce_management_api.rb +88 -0
- data/lib/purecloud/api_client.rb +1 -1
- data/lib/purecloud/models/agent_activity_entity_listing.rb +11 -11
- data/lib/purecloud/models/analytics_query_predicate.rb +1 -1
- data/lib/purecloud/models/attempt_limits_entity_listing.rb +11 -11
- data/lib/purecloud/models/attribute_entity_listing.rb +11 -11
- data/lib/purecloud/models/calibration_entity_listing.rb +11 -11
- data/lib/purecloud/models/call.rb +15 -4
- data/lib/purecloud/models/call_conversation_entity_listing.rb +11 -11
- data/lib/purecloud/models/call_conversation_notification_call_media_participant.rb +11 -1
- data/lib/purecloud/models/call_conversation_notification_participants.rb +11 -1
- data/lib/purecloud/models/callable_contacts_diagnostic.rb +12 -1
- data/lib/purecloud/models/callable_time_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/callback.rb +15 -4
- data/lib/purecloud/models/callback_conversation_entity_listing.rb +11 -11
- data/lib/purecloud/models/callback_conversation_notification_callback_media_participant.rb +11 -1
- data/lib/purecloud/models/callback_conversation_notification_participants.rb +11 -1
- data/lib/purecloud/models/campaign.rb +12 -1
- data/lib/purecloud/models/campaign_entity_listing.rb +11 -11
- data/lib/purecloud/models/campaign_sequence_entity_listing.rb +11 -11
- data/lib/purecloud/models/certificate_authority_entity_listing.rb +11 -11
- data/lib/purecloud/models/channel_entity_listing.rb +11 -11
- data/lib/purecloud/models/chat_conversation_entity_listing.rb +11 -11
- data/lib/purecloud/models/chat_conversation_notification_chat_media_participant.rb +11 -1
- data/lib/purecloud/models/chat_conversation_notification_participants.rb +11 -1
- data/lib/purecloud/models/cobrowse_conversation_entity_listing.rb +11 -11
- data/lib/purecloud/models/cobrowse_conversation_notification_cobrowse_media_participant.rb +11 -1
- data/lib/purecloud/models/cobrowse_conversation_notification_participants.rb +87 -77
- data/lib/purecloud/models/cobrowsesession.rb +15 -4
- data/lib/purecloud/models/command_status_entity_listing.rb +11 -11
- data/lib/purecloud/models/contact_list_entity_listing.rb +11 -11
- data/lib/purecloud/models/conversation_entity_listing.rb +11 -11
- data/lib/purecloud/models/conversation_notification_call.rb +11 -1
- data/lib/purecloud/models/conversation_notification_callback.rb +11 -1
- data/lib/purecloud/models/conversation_notification_callbacks.rb +11 -1
- data/lib/purecloud/models/conversation_notification_calls.rb +11 -1
- data/lib/purecloud/models/conversation_notification_chat.rb +11 -1
- data/lib/purecloud/models/conversation_notification_chats.rb +14 -4
- data/lib/purecloud/models/conversation_notification_cobrowse.rb +11 -1
- data/lib/purecloud/models/conversation_notification_cobrowsesessions.rb +11 -1
- data/lib/purecloud/models/conversation_notification_email.rb +11 -1
- data/lib/purecloud/models/conversation_notification_emails.rb +11 -1
- data/lib/purecloud/models/conversation_notification_screen_share.rb +11 -1
- data/lib/purecloud/models/conversation_notification_screen_shares.rb +11 -1
- data/lib/purecloud/models/conversation_notification_social_expression.rb +11 -1
- data/lib/purecloud/models/conversation_notification_social_expressions.rb +21 -11
- data/lib/purecloud/models/conversation_notification_video.rb +0 -9
- data/lib/purecloud/models/conversation_notification_videos.rb +0 -9
- data/lib/purecloud/models/did_entity_listing.rb +11 -11
- data/lib/purecloud/models/did_pool_entity_listing.rb +11 -11
- data/lib/purecloud/models/dnc_list_entity_listing.rb +11 -11
- data/lib/purecloud/models/document_audit_entity_listing.rb +11 -11
- data/lib/purecloud/models/document_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_edge_software_version_dto_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +11 -11
- data/lib/purecloud/models/domain_entity_listing_query_result.rb +11 -11
- data/lib/purecloud/models/domain_organization_role.rb +13 -1
- data/lib/purecloud/models/domain_organization_role_create.rb +13 -1
- data/lib/purecloud/models/edge_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge_group_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge_line_entity_listing.rb +11 -11
- data/lib/purecloud/models/email_conversation_entity_listing.rb +11 -11
- data/lib/purecloud/models/email_conversation_notification_email_media_participant.rb +11 -1
- data/lib/purecloud/models/email_conversation_notification_participants.rb +11 -1
- data/lib/purecloud/models/email_message_listing.rb +11 -11
- data/lib/purecloud/models/encryption_key_entity_listing.rb +11 -11
- data/lib/purecloud/models/endpoint_entity_listing.rb +11 -11
- data/lib/purecloud/models/evaluation_entity_listing.rb +11 -11
- data/lib/purecloud/models/evaluation_form_entity_listing.rb +11 -11
- data/lib/purecloud/models/evaluator_activity_entity_listing.rb +11 -11
- data/lib/purecloud/models/extension_entity_listing.rb +11 -11
- data/lib/purecloud/models/extension_pool_entity_listing.rb +11 -11
- data/lib/purecloud/models/fax_document_entity_listing.rb +11 -11
- data/lib/purecloud/models/group_entity_listing.rb +11 -11
- data/lib/purecloud/models/group_search_criteria.rb +7 -0
- data/lib/purecloud/models/group_search_request.rb +6 -0
- data/lib/purecloud/models/groups_search_response.rb +9 -0
- data/lib/purecloud/models/heart_beat_alert_container.rb +11 -11
- data/lib/purecloud/models/heart_beat_rule_container.rb +11 -11
- data/lib/purecloud/models/inbound_domain_entity_listing.rb +11 -11
- data/lib/purecloud/models/inbound_route_entity_listing.rb +11 -11
- data/lib/purecloud/models/interaction_stats_alert_container.rb +11 -11
- data/lib/purecloud/models/interaction_stats_rule_container.rb +11 -11
- data/lib/purecloud/models/json_node.rb +40 -40
- data/lib/purecloud/models/json_node_search_response.rb +9 -0
- data/lib/purecloud/models/keyword_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/language_entity_listing.rb +11 -11
- data/lib/purecloud/models/library_entity_listing.rb +11 -11
- data/lib/purecloud/models/line_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/line_entity_listing.rb +11 -11
- data/lib/purecloud/models/location_search_criteria.rb +7 -0
- data/lib/purecloud/models/location_search_request.rb +6 -0
- data/lib/purecloud/models/locations_search_response.rb +9 -0
- data/lib/purecloud/models/logical_interface_entity_listing.rb +11 -11
- data/lib/purecloud/models/management_unit.rb +230 -0
- data/lib/purecloud/models/o_auth_client_entity_listing.rb +11 -11
- data/lib/purecloud/models/o_auth_provider_entity_listing.rb +11 -11
- data/lib/purecloud/models/organization_presence_entity_listing.rb +11 -11
- data/lib/purecloud/models/organization_role_entity_listing.rb +11 -11
- data/lib/purecloud/models/orphan_recording_listing.rb +11 -11
- data/lib/purecloud/models/outbound_route_entity_listing.rb +11 -11
- data/lib/purecloud/models/permission_collection_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone_meta_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/physical_interface_entity_listing.rb +11 -11
- data/lib/purecloud/models/policy_entity_listing.rb +11 -11
- data/lib/purecloud/models/predicate.rb +175 -0
- data/lib/purecloud/models/quality_audit_page.rb +11 -11
- data/lib/purecloud/models/question_group.rb +14 -4
- data/lib/purecloud/models/queue_entity_listing.rb +11 -11
- data/lib/purecloud/models/queue_member_entity_listing.rb +11 -11
- data/lib/purecloud/models/report_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +11 -11
- data/lib/purecloud/models/report_schedule_entity_listing.rb +11 -11
- data/lib/purecloud/models/response_entity_list.rb +11 -11
- data/lib/purecloud/models/response_entity_listing.rb +11 -11
- data/lib/purecloud/models/response_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/rule_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/schema_category_entity_listing.rb +11 -11
- data/lib/purecloud/models/schema_reference_entity_listing.rb +11 -11
- data/lib/purecloud/models/screen_recording_session_listing.rb +11 -11
- data/lib/purecloud/models/screen_share_conversation_notification_participants.rb +89 -79
- data/lib/purecloud/models/screen_share_conversation_notification_screen_share_media_participant.rb +11 -1
- data/lib/purecloud/models/screenshare.rb +15 -4
- data/lib/purecloud/models/search_aggregation.rb +6 -0
- data/lib/purecloud/models/search_criteria.rb +7 -0
- data/lib/purecloud/models/search_request.rb +9 -1
- data/lib/purecloud/models/security_profile_entity_listing.rb +11 -11
- data/lib/purecloud/models/share_entity_listing.rb +11 -11
- data/lib/purecloud/models/site_entity_listing.rb +11 -11
- data/lib/purecloud/models/skill_entity_listing.rb +11 -11
- data/lib/purecloud/models/social_conversation_notification_participants.rb +103 -93
- data/lib/purecloud/models/social_conversation_notification_social_media_participant.rb +11 -1
- data/lib/purecloud/models/social_expression.rb +15 -4
- data/lib/purecloud/models/station_entity_listing.rb +11 -11
- data/lib/purecloud/models/suggest_search_criteria.rb +7 -0
- data/lib/purecloud/models/suggest_search_request.rb +2 -1
- data/lib/purecloud/models/tag_value_entity_listing.rb +11 -11
- data/lib/purecloud/models/time_zone_entity_listing.rb +11 -11
- data/lib/purecloud/models/trunk_entity_listing.rb +11 -11
- data/lib/purecloud/models/trunk_metabase_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_queue_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_recording_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_schedule_adherence.rb +364 -0
- data/lib/purecloud/models/user_search_criteria.rb +7 -0
- data/lib/purecloud/models/user_search_request.rb +6 -0
- data/lib/purecloud/models/user_skill_entity_listing.rb +11 -11
- data/lib/purecloud/models/users_entity_listing.rb +11 -11
- data/lib/purecloud/models/users_search_response.rb +9 -0
- data/lib/purecloud/models/video.rb +15 -4
- data/lib/purecloud/models/video_conversation_notification_participants.rb +13 -22
- data/lib/purecloud/models/video_conversation_notification_video_media_participant.rb +14 -23
- data/lib/purecloud/models/visibility_condition.rb +186 -0
- data/lib/purecloud/models/workspace_entity_listing.rb +11 -11
- data/lib/purecloud/models/workspace_member_entity_listing.rb +11 -11
- data/lib/purecloud/models/wrapup_code_entity_listing.rb +11 -11
- data/lib/purecloud/version.rb +1 -1
- data/newVersion.md +1 -1
- data/swagger.json +1 -1
- data/version.json +1 -1
- metadata +12 -2
@@ -18,16 +18,22 @@ require 'date'
|
|
18
18
|
|
19
19
|
module PureCloud
|
20
20
|
class LocationSearchRequest
|
21
|
+
# The sort order for results
|
21
22
|
attr_accessor :sort_order
|
22
23
|
|
24
|
+
# The field in the resource that you want to sort the results by
|
23
25
|
attr_accessor :sort_by
|
24
26
|
|
27
|
+
# The number of results per page
|
25
28
|
attr_accessor :page_size
|
26
29
|
|
30
|
+
# The page of resources you want to retrieve
|
27
31
|
attr_accessor :page_number
|
28
32
|
|
33
|
+
# A List of strings containing the resource field paths that you want to return
|
29
34
|
attr_accessor :return_fields
|
30
35
|
|
36
|
+
# Provides more details about a specified resource
|
31
37
|
attr_accessor :expand
|
32
38
|
|
33
39
|
attr_accessor :query
|
@@ -18,22 +18,31 @@ require 'date'
|
|
18
18
|
|
19
19
|
module PureCloud
|
20
20
|
class LocationsSearchResponse
|
21
|
+
# The total number of results found
|
21
22
|
attr_accessor :total
|
22
23
|
|
24
|
+
# The total number of pages
|
23
25
|
attr_accessor :page_count
|
24
26
|
|
27
|
+
# The current page size
|
25
28
|
attr_accessor :page_size
|
26
29
|
|
30
|
+
# The current page number
|
27
31
|
attr_accessor :page_number
|
28
32
|
|
33
|
+
# Q64 value for the previous page of results
|
29
34
|
attr_accessor :previous_page
|
30
35
|
|
36
|
+
# Q64 value for the current page of results
|
31
37
|
attr_accessor :current_page
|
32
38
|
|
39
|
+
# Q64 value for the next page of results
|
33
40
|
attr_accessor :next_page
|
34
41
|
|
42
|
+
# Resource types the search was performed against
|
35
43
|
attr_accessor :types
|
36
44
|
|
45
|
+
# Search results
|
37
46
|
attr_accessor :results
|
38
47
|
|
39
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -28,12 +28,12 @@ module PureCloud
|
|
28
28
|
|
29
29
|
attr_accessor :self_uri
|
30
30
|
|
31
|
-
attr_accessor :next_uri
|
32
|
-
|
33
31
|
attr_accessor :first_uri
|
34
32
|
|
35
33
|
attr_accessor :previous_uri
|
36
34
|
|
35
|
+
attr_accessor :next_uri
|
36
|
+
|
37
37
|
attr_accessor :last_uri
|
38
38
|
|
39
39
|
attr_accessor :page_count
|
@@ -52,12 +52,12 @@ module PureCloud
|
|
52
52
|
|
53
53
|
:'self_uri' => :'selfUri',
|
54
54
|
|
55
|
-
:'next_uri' => :'nextUri',
|
56
|
-
|
57
55
|
:'first_uri' => :'firstUri',
|
58
56
|
|
59
57
|
:'previous_uri' => :'previousUri',
|
60
58
|
|
59
|
+
:'next_uri' => :'nextUri',
|
60
|
+
|
61
61
|
:'last_uri' => :'lastUri',
|
62
62
|
|
63
63
|
:'page_count' => :'pageCount'
|
@@ -73,9 +73,9 @@ module PureCloud
|
|
73
73
|
:'page_number' => :'Integer',
|
74
74
|
:'total' => :'Integer',
|
75
75
|
:'self_uri' => :'String',
|
76
|
-
:'next_uri' => :'String',
|
77
76
|
:'first_uri' => :'String',
|
78
77
|
:'previous_uri' => :'String',
|
78
|
+
:'next_uri' => :'String',
|
79
79
|
:'last_uri' => :'String',
|
80
80
|
:'page_count' => :'Integer'
|
81
81
|
|
@@ -111,10 +111,6 @@ module PureCloud
|
|
111
111
|
self.self_uri = attributes[:'selfUri']
|
112
112
|
end
|
113
113
|
|
114
|
-
if attributes[:'nextUri']
|
115
|
-
self.next_uri = attributes[:'nextUri']
|
116
|
-
end
|
117
|
-
|
118
114
|
if attributes[:'firstUri']
|
119
115
|
self.first_uri = attributes[:'firstUri']
|
120
116
|
end
|
@@ -123,6 +119,10 @@ module PureCloud
|
|
123
119
|
self.previous_uri = attributes[:'previousUri']
|
124
120
|
end
|
125
121
|
|
122
|
+
if attributes[:'nextUri']
|
123
|
+
self.next_uri = attributes[:'nextUri']
|
124
|
+
end
|
125
|
+
|
126
126
|
if attributes[:'lastUri']
|
127
127
|
self.last_uri = attributes[:'lastUri']
|
128
128
|
end
|
@@ -142,9 +142,9 @@ module PureCloud
|
|
142
142
|
page_number == o.page_number &&
|
143
143
|
total == o.total &&
|
144
144
|
self_uri == o.self_uri &&
|
145
|
-
next_uri == o.next_uri &&
|
146
145
|
first_uri == o.first_uri &&
|
147
146
|
previous_uri == o.previous_uri &&
|
147
|
+
next_uri == o.next_uri &&
|
148
148
|
last_uri == o.last_uri &&
|
149
149
|
page_count == o.page_count
|
150
150
|
end
|
@@ -156,7 +156,7 @@ module PureCloud
|
|
156
156
|
|
157
157
|
# Calculate hash code according to all attributes.
|
158
158
|
def hash
|
159
|
-
[entities, page_size, page_number, total, self_uri,
|
159
|
+
[entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
|
160
160
|
end
|
161
161
|
|
162
162
|
# build the object from hash
|
@@ -0,0 +1,230 @@
|
|
1
|
+
=begin
|
2
|
+
PureCloud Platform API
|
3
|
+
|
4
|
+
With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: DeveloperEvangelists@inin.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
License: ININ
|
11
|
+
http://www.inin.com
|
12
|
+
|
13
|
+
Terms of Service: https://developer.mypurecloud.com/tos
|
14
|
+
|
15
|
+
=end
|
16
|
+
|
17
|
+
require 'date'
|
18
|
+
|
19
|
+
module PureCloud
|
20
|
+
# Management Unit object for Workforce Management.
|
21
|
+
class ManagementUnit
|
22
|
+
# The globally unique identifier for the object.
|
23
|
+
attr_accessor :id
|
24
|
+
|
25
|
+
attr_accessor :name
|
26
|
+
|
27
|
+
# Start day of week for workforce management planning purposes
|
28
|
+
attr_accessor :start_day_of_week
|
29
|
+
|
30
|
+
# The time zone for the management unit in standard Olson Format (See https://en.wikipedia.org/wiki/Tz_database)
|
31
|
+
attr_accessor :timezone
|
32
|
+
|
33
|
+
# The version of the underlying ManagementUnit object. Useful for handling eventual consistency issues. User must submit the current version they of the ManagementUnit in any write requests
|
34
|
+
attr_accessor :version
|
35
|
+
|
36
|
+
# The URI for this object
|
37
|
+
attr_accessor :self_uri
|
38
|
+
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
|
43
|
+
:'id' => :'id',
|
44
|
+
|
45
|
+
:'name' => :'name',
|
46
|
+
|
47
|
+
:'start_day_of_week' => :'startDayOfWeek',
|
48
|
+
|
49
|
+
:'timezone' => :'timezone',
|
50
|
+
|
51
|
+
:'version' => :'version',
|
52
|
+
|
53
|
+
:'self_uri' => :'selfUri'
|
54
|
+
|
55
|
+
}
|
56
|
+
end
|
57
|
+
|
58
|
+
# Attribute type mapping.
|
59
|
+
def self.swagger_types
|
60
|
+
{
|
61
|
+
:'id' => :'String',
|
62
|
+
:'name' => :'String',
|
63
|
+
:'start_day_of_week' => :'String',
|
64
|
+
:'timezone' => :'String',
|
65
|
+
:'version' => :'Integer',
|
66
|
+
:'self_uri' => :'String'
|
67
|
+
|
68
|
+
}
|
69
|
+
end
|
70
|
+
|
71
|
+
def initialize(attributes = {})
|
72
|
+
return unless attributes.is_a?(Hash)
|
73
|
+
|
74
|
+
# convert string to symbol for hash key
|
75
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
76
|
+
|
77
|
+
|
78
|
+
if attributes[:'id']
|
79
|
+
self.id = attributes[:'id']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes[:'name']
|
83
|
+
self.name = attributes[:'name']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes[:'startDayOfWeek']
|
87
|
+
self.start_day_of_week = attributes[:'startDayOfWeek']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes[:'timezone']
|
91
|
+
self.timezone = attributes[:'timezone']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes[:'version']
|
95
|
+
self.version = attributes[:'version']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes[:'selfUri']
|
99
|
+
self.self_uri = attributes[:'selfUri']
|
100
|
+
end
|
101
|
+
|
102
|
+
end
|
103
|
+
|
104
|
+
# Custom attribute writer method checking allowed values (enum).
|
105
|
+
def start_day_of_week=(start_day_of_week)
|
106
|
+
allowed_values = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
|
107
|
+
if start_day_of_week && !allowed_values.include?(start_day_of_week)
|
108
|
+
fail "invalid value for 'start_day_of_week', must be one of #{allowed_values}"
|
109
|
+
end
|
110
|
+
@start_day_of_week = start_day_of_week
|
111
|
+
end
|
112
|
+
|
113
|
+
# Check equality by comparing each attribute.
|
114
|
+
def ==(o)
|
115
|
+
return true if self.equal?(o)
|
116
|
+
self.class == o.class &&
|
117
|
+
id == o.id &&
|
118
|
+
name == o.name &&
|
119
|
+
start_day_of_week == o.start_day_of_week &&
|
120
|
+
timezone == o.timezone &&
|
121
|
+
version == o.version &&
|
122
|
+
self_uri == o.self_uri
|
123
|
+
end
|
124
|
+
|
125
|
+
# @see the `==` method
|
126
|
+
def eql?(o)
|
127
|
+
self == o
|
128
|
+
end
|
129
|
+
|
130
|
+
# Calculate hash code according to all attributes.
|
131
|
+
def hash
|
132
|
+
[id, name, start_day_of_week, timezone, version, self_uri].hash
|
133
|
+
end
|
134
|
+
|
135
|
+
# build the object from hash
|
136
|
+
def build_from_hash(attributes)
|
137
|
+
return nil unless attributes.is_a?(Hash)
|
138
|
+
self.class.swagger_types.each_pair do |key, type|
|
139
|
+
if type =~ /^Array<(.*)>/i
|
140
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
141
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
142
|
+
else
|
143
|
+
#TODO show warning in debug mode
|
144
|
+
end
|
145
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
146
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
147
|
+
else
|
148
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
self
|
153
|
+
end
|
154
|
+
|
155
|
+
def _deserialize(type, value)
|
156
|
+
case type.to_sym
|
157
|
+
when :DateTime
|
158
|
+
DateTime.parse(value)
|
159
|
+
when :Date
|
160
|
+
Date.parse(value)
|
161
|
+
when :String
|
162
|
+
value.to_s
|
163
|
+
when :Integer
|
164
|
+
value.to_i
|
165
|
+
when :Float
|
166
|
+
value.to_f
|
167
|
+
when :BOOLEAN
|
168
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
169
|
+
true
|
170
|
+
else
|
171
|
+
false
|
172
|
+
end
|
173
|
+
when :Object
|
174
|
+
# generic object (usually a Hash), return directly
|
175
|
+
value
|
176
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
177
|
+
inner_type = Regexp.last_match[:inner_type]
|
178
|
+
value.map { |v| _deserialize(inner_type, v) }
|
179
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
180
|
+
k_type = Regexp.last_match[:k_type]
|
181
|
+
v_type = Regexp.last_match[:v_type]
|
182
|
+
{}.tap do |hash|
|
183
|
+
value.each do |k, v|
|
184
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
else # model
|
188
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
189
|
+
_model.build_from_hash(value)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
def to_s
|
194
|
+
to_hash.to_s
|
195
|
+
end
|
196
|
+
|
197
|
+
# to_body is an alias to to_body (backward compatibility))
|
198
|
+
def to_body
|
199
|
+
to_hash
|
200
|
+
end
|
201
|
+
|
202
|
+
# return the object in the form of hash
|
203
|
+
def to_hash
|
204
|
+
hash = {}
|
205
|
+
self.class.attribute_map.each_pair do |attr, param|
|
206
|
+
value = self.send(attr)
|
207
|
+
next if value.nil?
|
208
|
+
hash[param] = _to_hash(value)
|
209
|
+
end
|
210
|
+
hash
|
211
|
+
end
|
212
|
+
|
213
|
+
# Method to output non-array value in the form of hash
|
214
|
+
# For object, use to_hash. Otherwise, just return the value
|
215
|
+
def _to_hash(value)
|
216
|
+
if value.is_a?(Array)
|
217
|
+
value.compact.map{ |v| _to_hash(v) }
|
218
|
+
elsif value.is_a?(Hash)
|
219
|
+
{}.tap do |hash|
|
220
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
221
|
+
end
|
222
|
+
elsif value.respond_to? :to_hash
|
223
|
+
value.to_hash
|
224
|
+
else
|
225
|
+
value
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
end
|
230
|
+
end
|
@@ -28,12 +28,12 @@ module PureCloud
|
|
28
28
|
|
29
29
|
attr_accessor :self_uri
|
30
30
|
|
31
|
-
attr_accessor :next_uri
|
32
|
-
|
33
31
|
attr_accessor :first_uri
|
34
32
|
|
35
33
|
attr_accessor :previous_uri
|
36
34
|
|
35
|
+
attr_accessor :next_uri
|
36
|
+
|
37
37
|
attr_accessor :last_uri
|
38
38
|
|
39
39
|
attr_accessor :page_count
|
@@ -52,12 +52,12 @@ module PureCloud
|
|
52
52
|
|
53
53
|
:'self_uri' => :'selfUri',
|
54
54
|
|
55
|
-
:'next_uri' => :'nextUri',
|
56
|
-
|
57
55
|
:'first_uri' => :'firstUri',
|
58
56
|
|
59
57
|
:'previous_uri' => :'previousUri',
|
60
58
|
|
59
|
+
:'next_uri' => :'nextUri',
|
60
|
+
|
61
61
|
:'last_uri' => :'lastUri',
|
62
62
|
|
63
63
|
:'page_count' => :'pageCount'
|
@@ -73,9 +73,9 @@ module PureCloud
|
|
73
73
|
:'page_number' => :'Integer',
|
74
74
|
:'total' => :'Integer',
|
75
75
|
:'self_uri' => :'String',
|
76
|
-
:'next_uri' => :'String',
|
77
76
|
:'first_uri' => :'String',
|
78
77
|
:'previous_uri' => :'String',
|
78
|
+
:'next_uri' => :'String',
|
79
79
|
:'last_uri' => :'String',
|
80
80
|
:'page_count' => :'Integer'
|
81
81
|
|
@@ -111,10 +111,6 @@ module PureCloud
|
|
111
111
|
self.self_uri = attributes[:'selfUri']
|
112
112
|
end
|
113
113
|
|
114
|
-
if attributes[:'nextUri']
|
115
|
-
self.next_uri = attributes[:'nextUri']
|
116
|
-
end
|
117
|
-
|
118
114
|
if attributes[:'firstUri']
|
119
115
|
self.first_uri = attributes[:'firstUri']
|
120
116
|
end
|
@@ -123,6 +119,10 @@ module PureCloud
|
|
123
119
|
self.previous_uri = attributes[:'previousUri']
|
124
120
|
end
|
125
121
|
|
122
|
+
if attributes[:'nextUri']
|
123
|
+
self.next_uri = attributes[:'nextUri']
|
124
|
+
end
|
125
|
+
|
126
126
|
if attributes[:'lastUri']
|
127
127
|
self.last_uri = attributes[:'lastUri']
|
128
128
|
end
|
@@ -142,9 +142,9 @@ module PureCloud
|
|
142
142
|
page_number == o.page_number &&
|
143
143
|
total == o.total &&
|
144
144
|
self_uri == o.self_uri &&
|
145
|
-
next_uri == o.next_uri &&
|
146
145
|
first_uri == o.first_uri &&
|
147
146
|
previous_uri == o.previous_uri &&
|
147
|
+
next_uri == o.next_uri &&
|
148
148
|
last_uri == o.last_uri &&
|
149
149
|
page_count == o.page_count
|
150
150
|
end
|
@@ -156,7 +156,7 @@ module PureCloud
|
|
156
156
|
|
157
157
|
# Calculate hash code according to all attributes.
|
158
158
|
def hash
|
159
|
-
[entities, page_size, page_number, total, self_uri,
|
159
|
+
[entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
|
160
160
|
end
|
161
161
|
|
162
162
|
# build the object from hash
|
@@ -28,12 +28,12 @@ module PureCloud
|
|
28
28
|
|
29
29
|
attr_accessor :self_uri
|
30
30
|
|
31
|
-
attr_accessor :next_uri
|
32
|
-
|
33
31
|
attr_accessor :first_uri
|
34
32
|
|
35
33
|
attr_accessor :previous_uri
|
36
34
|
|
35
|
+
attr_accessor :next_uri
|
36
|
+
|
37
37
|
attr_accessor :last_uri
|
38
38
|
|
39
39
|
attr_accessor :page_count
|
@@ -52,12 +52,12 @@ module PureCloud
|
|
52
52
|
|
53
53
|
:'self_uri' => :'selfUri',
|
54
54
|
|
55
|
-
:'next_uri' => :'nextUri',
|
56
|
-
|
57
55
|
:'first_uri' => :'firstUri',
|
58
56
|
|
59
57
|
:'previous_uri' => :'previousUri',
|
60
58
|
|
59
|
+
:'next_uri' => :'nextUri',
|
60
|
+
|
61
61
|
:'last_uri' => :'lastUri',
|
62
62
|
|
63
63
|
:'page_count' => :'pageCount'
|
@@ -73,9 +73,9 @@ module PureCloud
|
|
73
73
|
:'page_number' => :'Integer',
|
74
74
|
:'total' => :'Integer',
|
75
75
|
:'self_uri' => :'String',
|
76
|
-
:'next_uri' => :'String',
|
77
76
|
:'first_uri' => :'String',
|
78
77
|
:'previous_uri' => :'String',
|
78
|
+
:'next_uri' => :'String',
|
79
79
|
:'last_uri' => :'String',
|
80
80
|
:'page_count' => :'Integer'
|
81
81
|
|
@@ -111,10 +111,6 @@ module PureCloud
|
|
111
111
|
self.self_uri = attributes[:'selfUri']
|
112
112
|
end
|
113
113
|
|
114
|
-
if attributes[:'nextUri']
|
115
|
-
self.next_uri = attributes[:'nextUri']
|
116
|
-
end
|
117
|
-
|
118
114
|
if attributes[:'firstUri']
|
119
115
|
self.first_uri = attributes[:'firstUri']
|
120
116
|
end
|
@@ -123,6 +119,10 @@ module PureCloud
|
|
123
119
|
self.previous_uri = attributes[:'previousUri']
|
124
120
|
end
|
125
121
|
|
122
|
+
if attributes[:'nextUri']
|
123
|
+
self.next_uri = attributes[:'nextUri']
|
124
|
+
end
|
125
|
+
|
126
126
|
if attributes[:'lastUri']
|
127
127
|
self.last_uri = attributes[:'lastUri']
|
128
128
|
end
|
@@ -142,9 +142,9 @@ module PureCloud
|
|
142
142
|
page_number == o.page_number &&
|
143
143
|
total == o.total &&
|
144
144
|
self_uri == o.self_uri &&
|
145
|
-
next_uri == o.next_uri &&
|
146
145
|
first_uri == o.first_uri &&
|
147
146
|
previous_uri == o.previous_uri &&
|
147
|
+
next_uri == o.next_uri &&
|
148
148
|
last_uri == o.last_uri &&
|
149
149
|
page_count == o.page_count
|
150
150
|
end
|
@@ -156,7 +156,7 @@ module PureCloud
|
|
156
156
|
|
157
157
|
# Calculate hash code according to all attributes.
|
158
158
|
def hash
|
159
|
-
[entities, page_size, page_number, total, self_uri,
|
159
|
+
[entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
|
160
160
|
end
|
161
161
|
|
162
162
|
# build the object from hash
|