purecloudplatformclientv2 26.0.1 → 27.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/ActionEntityListing.md +2 -2
- data/docs/AgentActivityEntityListing.md +2 -2
- data/docs/ArchitectApi.md +14 -14
- data/docs/AttemptLimitsEntityListing.md +2 -2
- data/docs/AttributeEntityListing.md +2 -2
- data/docs/AuthorizationApi.md +54 -0
- data/docs/CalibrationEntityListing.md +2 -2
- data/docs/CallConversationEntityListing.md +2 -2
- data/docs/CallHistoryConversationEntityListing.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/ConversationEntityListing.md +2 -2
- 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/DirectoryUserDevicesListing.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/DomainEntityListingSurveyForm.md +2 -2
- data/docs/DomainOrganizationRole.md +1 -1
- data/docs/DomainOrganizationRoleCreate.md +1 -1
- data/docs/DomainOrganizationRoleUpdate.md +1 -1
- data/docs/EdgeEntityListing.md +2 -2
- data/docs/EdgeGroupEntityListing.md +2 -2
- data/docs/EdgeLineEntityListing.md +2 -2
- 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/ExternalOrganizationListing.md +2 -2
- data/docs/FaxDocumentEntityListing.md +2 -2
- 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/GroupsApi.md +6 -2
- data/docs/IVREntityListing.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/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/LogicalInterfaceEntityListing.md +2 -2
- data/docs/ManagementUnitListing.md +2 -2
- data/docs/NoteListing.md +2 -2
- data/docs/OAuthClientEntityListing.md +2 -2
- data/docs/OAuthProviderEntityListing.md +2 -2
- data/docs/ObjectsApi.md +66 -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/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/RuleSetEntityListing.md +2 -2
- data/docs/ScheduleEntityListing.md +2 -2
- data/docs/ScheduleGroupEntityListing.md +2 -2
- data/docs/SchemaCategoryEntityListing.md +2 -2
- data/docs/SchemaReferenceEntityListing.md +2 -2
- data/docs/ScreenRecordingSessionListing.md +2 -2
- 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/StationEntityListing.md +2 -2
- data/docs/SurveyFormEntityListing.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/TrustEntityListing.md +2 -2
- data/docs/TrustUserEntityListing.md +2 -2
- data/docs/TrustorEntityListing.md +2 -2
- data/docs/UserEntityListing.md +2 -2
- data/docs/UserProfileEntityListing.md +2 -2
- data/docs/UserQueueEntityListing.md +2 -2
- data/docs/UserRecordingEntityListing.md +2 -2
- data/docs/UserSkillEntityListing.md +2 -2
- data/docs/VoicemailMessageEntityListing.md +2 -2
- data/docs/WfmMoveAgentsCompleteNotification.md +1 -1
- data/docs/{WfmMoveAgentsCompleteNotificationMoveAgentResults.md → WfmMoveAgentsCompleteNotificationResults.md} +3 -3
- data/docs/WfmMoveAgentsCompleteNotificationWfmMoveAgentData.md +1 -1
- data/docs/WorkforceManagementApi.md +0 -367
- data/docs/WorkspaceEntityListing.md +2 -2
- data/docs/WorkspaceMemberEntityListing.md +2 -2
- data/docs/WrapupCodeEntityListing.md +2 -2
- data/lib/purecloudplatformclientv2.rb +2 -8
- data/lib/purecloudplatformclientv2/api/architect_api.rb +6 -6
- data/lib/purecloudplatformclientv2/api/authorization_api.rb +55 -0
- data/lib/purecloudplatformclientv2/api/groups_api.rb +9 -0
- data/lib/purecloudplatformclientv2/api/objects_api.rb +82 -0
- data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +0 -390
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/contact_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/conversation_notification_message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/conversation_notification_messages_1.rb +2 -2
- data/lib/purecloudplatformclientv2/models/dependency.rb +2 -2
- data/lib/purecloudplatformclientv2/models/dependency_object.rb +2 -2
- data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +13 -13
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +13 -13
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_survey_form.rb +13 -13
- data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
- data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/email_message_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/greeting_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +13 -13
- data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +13 -13
- data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/json_node.rb +82 -82
- data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/message_conversation_notification_message_media_participant.rb +2 -2
- data/lib/purecloudplatformclientv2/models/message_conversation_notification_participants.rb +2 -2
- data/lib/purecloudplatformclientv2/models/note_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +13 -13
- data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/relationship_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/response_entity_list.rb +13 -13
- data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/survey_form_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/wfm_move_agents_complete_notification.rb +8 -8
- data/lib/purecloudplatformclientv2/models/{move_agent_response.rb → wfm_move_agents_complete_notification_results.rb} +2 -5
- data/lib/purecloudplatformclientv2/models/wfm_move_agents_complete_notification_wfm_move_agent_data.rb +13 -13
- data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +13 -13
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +6 -18
- data/docs/AgentManagementUnitReference.md +0 -14
- data/docs/CurrentUserScheduleRequestBody.md +0 -14
- data/docs/ManagementUnitReference.md +0 -14
- data/docs/MoveAgentResponse.md +0 -14
- data/docs/MoveAgentsRequest.md +0 -14
- data/docs/MoveAgentsResponse.md +0 -15
- data/docs/TimeOffRequestPatch.md +0 -13
- data/lib/purecloudplatformclientv2/models/agent_management_unit_reference.rb +0 -229
- data/lib/purecloudplatformclientv2/models/current_user_schedule_request_body.rb +0 -239
- data/lib/purecloudplatformclientv2/models/management_unit_reference.rb +0 -229
- data/lib/purecloudplatformclientv2/models/move_agents_request.rb +0 -236
- data/lib/purecloudplatformclientv2/models/move_agents_response.rb +0 -257
- data/lib/purecloudplatformclientv2/models/time_off_request_patch.rb +0 -201
- data/lib/purecloudplatformclientv2/models/wfm_move_agents_complete_notification_move_agent_results.rb +0 -240
@@ -1,229 +0,0 @@
|
|
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
|
-
# Management unit reference object for Workforce Management (ID/selfUri only)
|
21
|
-
class ManagementUnitReference
|
22
|
-
# The globally unique identifier for the object.
|
23
|
-
attr_accessor :id
|
24
|
-
|
25
|
-
# The URI for this object
|
26
|
-
attr_accessor :self_uri
|
27
|
-
|
28
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
-
def self.attribute_map
|
30
|
-
{
|
31
|
-
|
32
|
-
:'id' => :'id',
|
33
|
-
|
34
|
-
:'self_uri' => :'selfUri'
|
35
|
-
|
36
|
-
}
|
37
|
-
end
|
38
|
-
|
39
|
-
# Attribute type mapping.
|
40
|
-
def self.swagger_types
|
41
|
-
{
|
42
|
-
|
43
|
-
:'id' => :'String',
|
44
|
-
|
45
|
-
:'self_uri' => :'String'
|
46
|
-
|
47
|
-
}
|
48
|
-
end
|
49
|
-
|
50
|
-
# Initializes the object
|
51
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
-
def initialize(attributes = {})
|
53
|
-
return unless attributes.is_a?(Hash)
|
54
|
-
|
55
|
-
# convert string to symbol for hash key
|
56
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
57
|
-
|
58
|
-
|
59
|
-
if attributes.has_key?(:'id')
|
60
|
-
|
61
|
-
|
62
|
-
self.id = attributes[:'id']
|
63
|
-
|
64
|
-
|
65
|
-
end
|
66
|
-
|
67
|
-
|
68
|
-
if attributes.has_key?(:'selfUri')
|
69
|
-
|
70
|
-
|
71
|
-
self.self_uri = attributes[:'selfUri']
|
72
|
-
|
73
|
-
|
74
|
-
end
|
75
|
-
|
76
|
-
|
77
|
-
end
|
78
|
-
|
79
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
80
|
-
# @return Array for valid properies with the reasons
|
81
|
-
def list_invalid_properties
|
82
|
-
invalid_properties = Array.new
|
83
|
-
|
84
|
-
|
85
|
-
return invalid_properties
|
86
|
-
end
|
87
|
-
|
88
|
-
# Check to see if the all the properties in the model are valid
|
89
|
-
# @return true if the model is valid
|
90
|
-
def valid?
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
end
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
# Checks equality by comparing each attribute.
|
114
|
-
# @param [Object] Object to be compared
|
115
|
-
def ==(o)
|
116
|
-
return true if self.equal?(o)
|
117
|
-
self.class == o.class &&
|
118
|
-
id == o.id &&
|
119
|
-
self_uri == o.self_uri
|
120
|
-
end
|
121
|
-
|
122
|
-
# @see the `==` method
|
123
|
-
# @param [Object] Object to be compared
|
124
|
-
def eql?(o)
|
125
|
-
self == o
|
126
|
-
end
|
127
|
-
|
128
|
-
# Calculates hash code according to all attributes.
|
129
|
-
# @return [Fixnum] Hash code
|
130
|
-
def hash
|
131
|
-
[id, self_uri].hash
|
132
|
-
end
|
133
|
-
|
134
|
-
# build the object from hash
|
135
|
-
def build_from_hash(attributes)
|
136
|
-
return nil unless attributes.is_a?(Hash)
|
137
|
-
self.class.swagger_types.each_pair do |key, type|
|
138
|
-
if type =~ /^Array<(.*)>/i
|
139
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
140
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
141
|
-
else
|
142
|
-
#TODO show warning in debug mode
|
143
|
-
end
|
144
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
145
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
146
|
-
else
|
147
|
-
# data not found in attributes(hash), not an issue as the data can be optional
|
148
|
-
end
|
149
|
-
end
|
150
|
-
|
151
|
-
self
|
152
|
-
end
|
153
|
-
|
154
|
-
def _deserialize(type, value)
|
155
|
-
case type.to_sym
|
156
|
-
when :DateTime
|
157
|
-
DateTime.parse(value)
|
158
|
-
when :Date
|
159
|
-
Date.parse(value)
|
160
|
-
when :String
|
161
|
-
value.to_s
|
162
|
-
when :Integer
|
163
|
-
value.to_i
|
164
|
-
when :Float
|
165
|
-
value.to_f
|
166
|
-
when :BOOLEAN
|
167
|
-
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
168
|
-
true
|
169
|
-
else
|
170
|
-
false
|
171
|
-
end
|
172
|
-
when :Object
|
173
|
-
# generic object (usually a Hash), return directly
|
174
|
-
value
|
175
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
176
|
-
inner_type = Regexp.last_match[:inner_type]
|
177
|
-
value.map { |v| _deserialize(inner_type, v) }
|
178
|
-
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
179
|
-
k_type = Regexp.last_match[:k_type]
|
180
|
-
v_type = Regexp.last_match[:v_type]
|
181
|
-
{}.tap do |hash|
|
182
|
-
value.each do |k, v|
|
183
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
184
|
-
end
|
185
|
-
end
|
186
|
-
else # model
|
187
|
-
_model = Object.const_get("PureCloud").const_get(type).new
|
188
|
-
_model.build_from_hash(value)
|
189
|
-
end
|
190
|
-
end
|
191
|
-
|
192
|
-
def to_s
|
193
|
-
to_hash.to_s
|
194
|
-
end
|
195
|
-
|
196
|
-
# to_body is an alias to to_body (backward compatibility))
|
197
|
-
def to_body
|
198
|
-
to_hash
|
199
|
-
end
|
200
|
-
|
201
|
-
# return the object in the form of hash
|
202
|
-
def to_hash
|
203
|
-
hash = {}
|
204
|
-
self.class.attribute_map.each_pair do |attr, param|
|
205
|
-
value = self.send(attr)
|
206
|
-
next if value.nil?
|
207
|
-
hash[param] = _to_hash(value)
|
208
|
-
end
|
209
|
-
hash
|
210
|
-
end
|
211
|
-
|
212
|
-
# Method to output non-array value in the form of hash
|
213
|
-
# For object, use to_hash. Otherwise, just return the value
|
214
|
-
def _to_hash(value)
|
215
|
-
if value.is_a?(Array)
|
216
|
-
value.compact.map{ |v| _to_hash(v) }
|
217
|
-
elsif value.is_a?(Hash)
|
218
|
-
{}.tap do |hash|
|
219
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
220
|
-
end
|
221
|
-
elsif value.respond_to? :to_hash
|
222
|
-
value.to_hash
|
223
|
-
else
|
224
|
-
value
|
225
|
-
end
|
226
|
-
end
|
227
|
-
|
228
|
-
end
|
229
|
-
end
|
@@ -1,236 +0,0 @@
|
|
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
|
-
# Request to move agents into or out of a management unit
|
21
|
-
class MoveAgentsRequest
|
22
|
-
# The list of user ids to move
|
23
|
-
attr_accessor :user_ids
|
24
|
-
|
25
|
-
# The id of the management unit for which the move will be performed. To remove users from their management unit this should be set to null.
|
26
|
-
attr_accessor :destination_management_unit_id
|
27
|
-
|
28
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
-
def self.attribute_map
|
30
|
-
{
|
31
|
-
|
32
|
-
:'user_ids' => :'userIds',
|
33
|
-
|
34
|
-
:'destination_management_unit_id' => :'destinationManagementUnitId'
|
35
|
-
|
36
|
-
}
|
37
|
-
end
|
38
|
-
|
39
|
-
# Attribute type mapping.
|
40
|
-
def self.swagger_types
|
41
|
-
{
|
42
|
-
|
43
|
-
:'user_ids' => :'Array<String>',
|
44
|
-
|
45
|
-
:'destination_management_unit_id' => :'String'
|
46
|
-
|
47
|
-
}
|
48
|
-
end
|
49
|
-
|
50
|
-
# Initializes the object
|
51
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
-
def initialize(attributes = {})
|
53
|
-
return unless attributes.is_a?(Hash)
|
54
|
-
|
55
|
-
# convert string to symbol for hash key
|
56
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
57
|
-
|
58
|
-
|
59
|
-
if attributes.has_key?(:'userIds')
|
60
|
-
|
61
|
-
if (value = attributes[:'userIds']).is_a?(Array)
|
62
|
-
self.user_ids = value
|
63
|
-
end
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
end
|
68
|
-
|
69
|
-
|
70
|
-
if attributes.has_key?(:'destinationManagementUnitId')
|
71
|
-
|
72
|
-
|
73
|
-
self.destination_management_unit_id = attributes[:'destinationManagementUnitId']
|
74
|
-
|
75
|
-
|
76
|
-
end
|
77
|
-
|
78
|
-
|
79
|
-
end
|
80
|
-
|
81
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
-
# @return Array for valid properies with the reasons
|
83
|
-
def list_invalid_properties
|
84
|
-
invalid_properties = Array.new
|
85
|
-
|
86
|
-
|
87
|
-
return invalid_properties
|
88
|
-
end
|
89
|
-
|
90
|
-
# Check to see if the all the properties in the model are valid
|
91
|
-
# @return true if the model is valid
|
92
|
-
def valid?
|
93
|
-
|
94
|
-
|
95
|
-
if @user_ids.nil?
|
96
|
-
return false
|
97
|
-
end
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
end
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
# Checks equality by comparing each attribute.
|
121
|
-
# @param [Object] Object to be compared
|
122
|
-
def ==(o)
|
123
|
-
return true if self.equal?(o)
|
124
|
-
self.class == o.class &&
|
125
|
-
user_ids == o.user_ids &&
|
126
|
-
destination_management_unit_id == o.destination_management_unit_id
|
127
|
-
end
|
128
|
-
|
129
|
-
# @see the `==` method
|
130
|
-
# @param [Object] Object to be compared
|
131
|
-
def eql?(o)
|
132
|
-
self == o
|
133
|
-
end
|
134
|
-
|
135
|
-
# Calculates hash code according to all attributes.
|
136
|
-
# @return [Fixnum] Hash code
|
137
|
-
def hash
|
138
|
-
[user_ids, destination_management_unit_id].hash
|
139
|
-
end
|
140
|
-
|
141
|
-
# build the object from hash
|
142
|
-
def build_from_hash(attributes)
|
143
|
-
return nil unless attributes.is_a?(Hash)
|
144
|
-
self.class.swagger_types.each_pair do |key, type|
|
145
|
-
if type =~ /^Array<(.*)>/i
|
146
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
147
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
148
|
-
else
|
149
|
-
#TODO show warning in debug mode
|
150
|
-
end
|
151
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
152
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
153
|
-
else
|
154
|
-
# data not found in attributes(hash), not an issue as the data can be optional
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
self
|
159
|
-
end
|
160
|
-
|
161
|
-
def _deserialize(type, value)
|
162
|
-
case type.to_sym
|
163
|
-
when :DateTime
|
164
|
-
DateTime.parse(value)
|
165
|
-
when :Date
|
166
|
-
Date.parse(value)
|
167
|
-
when :String
|
168
|
-
value.to_s
|
169
|
-
when :Integer
|
170
|
-
value.to_i
|
171
|
-
when :Float
|
172
|
-
value.to_f
|
173
|
-
when :BOOLEAN
|
174
|
-
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
175
|
-
true
|
176
|
-
else
|
177
|
-
false
|
178
|
-
end
|
179
|
-
when :Object
|
180
|
-
# generic object (usually a Hash), return directly
|
181
|
-
value
|
182
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
183
|
-
inner_type = Regexp.last_match[:inner_type]
|
184
|
-
value.map { |v| _deserialize(inner_type, v) }
|
185
|
-
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
186
|
-
k_type = Regexp.last_match[:k_type]
|
187
|
-
v_type = Regexp.last_match[:v_type]
|
188
|
-
{}.tap do |hash|
|
189
|
-
value.each do |k, v|
|
190
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
191
|
-
end
|
192
|
-
end
|
193
|
-
else # model
|
194
|
-
_model = Object.const_get("PureCloud").const_get(type).new
|
195
|
-
_model.build_from_hash(value)
|
196
|
-
end
|
197
|
-
end
|
198
|
-
|
199
|
-
def to_s
|
200
|
-
to_hash.to_s
|
201
|
-
end
|
202
|
-
|
203
|
-
# to_body is an alias to to_body (backward compatibility))
|
204
|
-
def to_body
|
205
|
-
to_hash
|
206
|
-
end
|
207
|
-
|
208
|
-
# return the object in the form of hash
|
209
|
-
def to_hash
|
210
|
-
hash = {}
|
211
|
-
self.class.attribute_map.each_pair do |attr, param|
|
212
|
-
value = self.send(attr)
|
213
|
-
next if value.nil?
|
214
|
-
hash[param] = _to_hash(value)
|
215
|
-
end
|
216
|
-
hash
|
217
|
-
end
|
218
|
-
|
219
|
-
# Method to output non-array value in the form of hash
|
220
|
-
# For object, use to_hash. Otherwise, just return the value
|
221
|
-
def _to_hash(value)
|
222
|
-
if value.is_a?(Array)
|
223
|
-
value.compact.map{ |v| _to_hash(v) }
|
224
|
-
elsif value.is_a?(Hash)
|
225
|
-
{}.tap do |hash|
|
226
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
227
|
-
end
|
228
|
-
elsif value.respond_to? :to_hash
|
229
|
-
value.to_hash
|
230
|
-
else
|
231
|
-
value
|
232
|
-
end
|
233
|
-
end
|
234
|
-
|
235
|
-
end
|
236
|
-
end
|