purecloudplatformclientv2 28.0.1 → 29.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 +1 -1
- data/docs/AgentActivityEntityListing.md +1 -1
- data/docs/AnalyticsApi.md +114 -0
- data/docs/ArchitectApi.md +4 -4
- data/docs/AttemptLimitsEntityListing.md +1 -1
- data/docs/AttributeEntityListing.md +1 -1
- data/docs/AuthorizationApi.md +66 -0
- data/docs/AuthzTypedObject.md +14 -0
- data/docs/CalibrationEntityListing.md +1 -1
- data/docs/CallConversationEntityListing.md +1 -1
- data/docs/CallHistoryConversationEntityListing.md +1 -1
- data/docs/CallableTimeSetEntityListing.md +1 -1
- data/docs/CallbackConversationEntityListing.md +1 -1
- data/docs/CampaignEntityListing.md +1 -1
- data/docs/CampaignRuleEntityListing.md +1 -1
- data/docs/CampaignSequenceEntityListing.md +1 -1
- data/docs/CertificateAuthorityEntityListing.md +1 -1
- data/docs/CertificateDetails.md +1 -1
- data/docs/ChatConversationEntityListing.md +1 -1
- data/docs/CobrowseConversationEntityListing.md +1 -1
- data/docs/CommandStatusEntityListing.md +1 -1
- data/docs/ConsumedResourcesEntityListing.md +1 -1
- data/docs/ConsumingResourcesEntityListing.md +1 -1
- data/docs/ContactListEntityListing.md +1 -1
- data/docs/ContactListFilterEntityListing.md +1 -1
- data/docs/ContactListing.md +1 -1
- data/docs/ConversationEntityListing.md +1 -1
- data/docs/DIDEntityListing.md +1 -1
- data/docs/DIDPoolEntityListing.md +1 -1
- data/docs/DataColumn.md +14 -0
- data/docs/DataTableRowEntityListing.md +1 -1
- data/docs/DataTablesDomainEntityListing.md +1 -1
- data/docs/DependencyObjectEntityListing.md +1 -1
- data/docs/DependencyTypeEntityListing.md +1 -1
- data/docs/DialerEventEntityListing.md +1 -1
- data/docs/DirectoryUserDevicesListing.md +1 -1
- data/docs/DncListEntityListing.md +1 -1
- data/docs/DocumentAuditEntityListing.md +1 -1
- data/docs/DocumentEntityListing.md +1 -1
- data/docs/DomainEdgeSoftwareVersionDto.md +1 -1
- data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +1 -1
- data/docs/DomainEntityListing.md +1 -1
- data/docs/DomainEntityListingEvaluationForm.md +1 -1
- data/docs/DomainEntityListingQueryResult.md +1 -1
- data/docs/DomainEntityListingSurveyForm.md +1 -1
- data/docs/EdgeEntityListing.md +1 -1
- data/docs/EdgeGroupEntityListing.md +1 -1
- data/docs/EdgeLineEntityListing.md +1 -1
- data/docs/EmailConversationEntityListing.md +1 -1
- data/docs/EmailMessageListing.md +1 -1
- data/docs/EncryptionKeyEntityListing.md +1 -1
- data/docs/EndpointEntityListing.md +1 -1
- data/docs/EvaluationEntityListing.md +1 -1
- data/docs/EvaluationFormEntityListing.md +1 -1
- data/docs/EvaluatorActivityEntityListing.md +1 -1
- data/docs/ExtensionEntityListing.md +1 -1
- data/docs/ExtensionPoolEntityListing.md +1 -1
- data/docs/ExternalOrganizationListing.md +1 -1
- data/docs/FaxDocumentEntityListing.md +1 -1
- data/docs/FlowEntityListing.md +1 -1
- data/docs/FlowVersionEntityListing.md +1 -1
- data/docs/FreeSeatingConfiguration.md +14 -0
- data/docs/GreetingListing.md +1 -1
- data/docs/Group.md +1 -0
- data/docs/GroupCreate.md +26 -0
- data/docs/GroupEntityListing.md +1 -1
- data/docs/GroupUpdate.md +1 -0
- data/docs/GroupsApi.md +2 -2
- data/docs/IVREntityListing.md +1 -1
- data/docs/InboundDomainEntityListing.md +1 -1
- data/docs/InboundRouteEntityListing.md +1 -1
- data/docs/InteractionStatsAlertContainer.md +1 -1
- data/docs/InteractionStatsRuleContainer.md +1 -1
- data/docs/KeywordSetEntityListing.md +1 -1
- data/docs/LanguageEntityListing.md +1 -1
- data/docs/LibraryEntityListing.md +1 -1
- data/docs/LineBaseEntityListing.md +1 -1
- data/docs/LineEntityListing.md +1 -1
- data/docs/LocationEntityListing.md +1 -1
- data/docs/LogicalInterfaceEntityListing.md +1 -1
- data/docs/ManagementUnitListing.md +1 -1
- data/docs/MessageConversationEntityListing.md +1 -1
- data/docs/NoteListing.md +1 -1
- data/docs/NotificationsApi.md +1 -1
- data/docs/OAuthClientEntityListing.md +1 -1
- data/docs/OAuthProviderEntityListing.md +1 -1
- data/docs/ObjectsApi.md +66 -0
- data/docs/OrganizationPresenceEntityListing.md +1 -1
- data/docs/OrganizationRoleEntityListing.md +1 -1
- data/docs/OrphanRecordingListing.md +1 -1
- data/docs/OutboundApi.md +4 -0
- data/docs/OutboundRouteBaseEntityListing.md +1 -1
- data/docs/OutboundRouteEntityListing.md +1 -1
- data/docs/PermissionCollectionEntityListing.md +1 -1
- data/docs/PhoneBaseEntityListing.md +1 -1
- data/docs/PhoneEntityListing.md +1 -1
- data/docs/PhoneMetaBaseEntityListing.md +1 -1
- data/docs/PhysicalInterfaceEntityListing.md +1 -1
- data/docs/PolicyEntityListing.md +1 -1
- data/docs/PromptAssetEntityListing.md +1 -1
- data/docs/PromptEntityListing.md +1 -1
- data/docs/QualityAuditPage.md +1 -1
- data/docs/Question.md +1 -1
- data/docs/QueueEntityListing.md +1 -1
- data/docs/QueueMemberEntityListing.md +1 -1
- data/docs/RecipientListing.md +1 -1
- data/docs/RelationshipListing.md +1 -1
- data/docs/ReportMetaDataEntityListing.md +1 -1
- data/docs/ReportRunEntryEntityDomainListing.md +1 -1
- data/docs/ReportScheduleEntityListing.md +1 -1
- data/docs/ReportingExportJobListing.md +22 -0
- data/docs/ReportingExportJobRequest.md +21 -0
- data/docs/ReportingExportJobResponse.md +28 -0
- data/docs/ResponseEntityList.md +1 -1
- data/docs/ResponseEntityListing.md +1 -1
- data/docs/ResponseSetEntityListing.md +1 -1
- data/docs/RuleSetEntityListing.md +1 -1
- data/docs/ScheduleEntityListing.md +1 -1
- data/docs/ScheduleGroupEntityListing.md +1 -1
- data/docs/SchemaCategoryEntityListing.md +1 -1
- data/docs/SchemaReferenceEntityListing.md +1 -1
- data/docs/ScreenRecordingSessionListing.md +1 -1
- data/docs/ScriptEntityListing.md +1 -1
- data/docs/SecurityProfileEntityListing.md +1 -1
- data/docs/ShareEntityListing.md +1 -1
- data/docs/SiteEntityListing.md +1 -1
- data/docs/SkillEntityListing.md +1 -1
- data/docs/SmsPhoneNumberEntityListing.md +1 -1
- data/docs/StationEntityListing.md +1 -1
- data/docs/StationSettings.md +13 -0
- data/docs/StationsApi.md +114 -0
- data/docs/SurveyFormEntityListing.md +1 -1
- data/docs/SystemPromptAssetEntityListing.md +1 -1
- data/docs/SystemPromptEntityListing.md +1 -1
- data/docs/TagValueEntityListing.md +1 -1
- data/docs/TextMessageListing.md +1 -1
- data/docs/TimeZone.md +4 -4
- data/docs/TimeZoneEntityListing.md +1 -1
- data/docs/TrunkBaseEntityListing.md +1 -1
- data/docs/TrunkEntityListing.md +1 -1
- data/docs/TrunkMetabaseEntityListing.md +1 -1
- data/docs/TrustEntityListing.md +1 -1
- data/docs/TrustGroup.md +1 -0
- data/docs/TrustUserEntityListing.md +1 -1
- data/docs/TrustorEntityListing.md +1 -1
- data/docs/UserEntityListing.md +1 -1
- data/docs/UserProfileEntityListing.md +1 -1
- data/docs/UserQueueEntityListing.md +1 -1
- data/docs/UserRecordingEntityListing.md +1 -1
- data/docs/UserSkillEntityListing.md +1 -1
- data/docs/ViewFilter.md +23 -0
- data/docs/VoicemailMessageEntityListing.md +1 -1
- data/docs/WorkspaceEntityListing.md +1 -1
- data/docs/WorkspaceMemberEntityListing.md +1 -1
- data/docs/WrapupCodeEntityListing.md +1 -1
- data/lib/purecloudplatformclientv2.rb +9 -0
- data/lib/purecloudplatformclientv2/api/analytics_api.rb +120 -0
- data/lib/purecloudplatformclientv2/api/architect_api.rb +6 -6
- data/lib/purecloudplatformclientv2/api/authorization_api.rb +90 -0
- data/lib/purecloudplatformclientv2/api/notifications_api.rb +2 -2
- data/lib/purecloudplatformclientv2/api/objects_api.rb +90 -0
- data/lib/purecloudplatformclientv2/api/outbound_api.rb +18 -0
- data/lib/purecloudplatformclientv2/api/stations_api.rb +120 -0
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/authz_typed_object.rb +252 -0
- data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/certificate_details.rb +13 -13
- data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/contact_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/data_column.rb +252 -0
- data/lib/purecloudplatformclientv2/models/data_table_row_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/data_tables_domain_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +12 -12
- data/lib/purecloudplatformclientv2/models/domain_entity_listing_survey_form.rb +12 -12
- data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/email_message_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/free_seating_configuration.rb +228 -0
- data/lib/purecloudplatformclientv2/models/greeting_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/group.rb +29 -1
- data/lib/purecloudplatformclientv2/models/group_create.rb +605 -0
- data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/group_update.rb +31 -3
- data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +12 -12
- data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +12 -12
- data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/message_conversation_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/note_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +12 -12
- data/lib/purecloudplatformclientv2/models/question.rb +13 -13
- data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/recipient_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/relationship_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/reporting_export_job_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/reporting_export_job_request.rb +470 -0
- data/lib/purecloudplatformclientv2/models/reporting_export_job_response.rb +694 -0
- data/lib/purecloudplatformclientv2/models/response_entity_list.rb +12 -12
- data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/sms_phone_number_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/station_settings.rb +203 -0
- data/lib/purecloudplatformclientv2/models/survey_form_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/text_message_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/time_zone.rb +24 -26
- data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/trust_group.rb +29 -1
- data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/view_filter.rb +484 -0
- data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +12 -12
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +20 -2
@@ -32,10 +32,10 @@ module PureCloud
|
|
32
32
|
|
33
33
|
attr_accessor :previous_uri
|
34
34
|
|
35
|
-
attr_accessor :next_uri
|
36
|
-
|
37
35
|
attr_accessor :last_uri
|
38
36
|
|
37
|
+
attr_accessor :next_uri
|
38
|
+
|
39
39
|
attr_accessor :page_count
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -56,10 +56,10 @@ module PureCloud
|
|
56
56
|
|
57
57
|
:'previous_uri' => :'previousUri',
|
58
58
|
|
59
|
-
:'next_uri' => :'nextUri',
|
60
|
-
|
61
59
|
:'last_uri' => :'lastUri',
|
62
60
|
|
61
|
+
:'next_uri' => :'nextUri',
|
62
|
+
|
63
63
|
:'page_count' => :'pageCount'
|
64
64
|
|
65
65
|
}
|
@@ -83,10 +83,10 @@ module PureCloud
|
|
83
83
|
|
84
84
|
:'previous_uri' => :'String',
|
85
85
|
|
86
|
-
:'next_uri' => :'String',
|
87
|
-
|
88
86
|
:'last_uri' => :'String',
|
89
87
|
|
88
|
+
:'next_uri' => :'String',
|
89
|
+
|
90
90
|
:'page_count' => :'Integer'
|
91
91
|
|
92
92
|
}
|
@@ -166,19 +166,19 @@ module PureCloud
|
|
166
166
|
end
|
167
167
|
|
168
168
|
|
169
|
-
if attributes.has_key?(:'
|
169
|
+
if attributes.has_key?(:'lastUri')
|
170
170
|
|
171
171
|
|
172
|
-
self.
|
172
|
+
self.last_uri = attributes[:'lastUri']
|
173
173
|
|
174
174
|
|
175
175
|
end
|
176
176
|
|
177
177
|
|
178
|
-
if attributes.has_key?(:'
|
178
|
+
if attributes.has_key?(:'nextUri')
|
179
179
|
|
180
180
|
|
181
|
-
self.
|
181
|
+
self.next_uri = attributes[:'nextUri']
|
182
182
|
|
183
183
|
|
184
184
|
end
|
@@ -313,8 +313,8 @@ module PureCloud
|
|
313
313
|
self_uri == o.self_uri &&
|
314
314
|
first_uri == o.first_uri &&
|
315
315
|
previous_uri == o.previous_uri &&
|
316
|
-
next_uri == o.next_uri &&
|
317
316
|
last_uri == o.last_uri &&
|
317
|
+
next_uri == o.next_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, self_uri, first_uri, previous_uri,
|
330
|
+
[entities, page_size, page_number, total, self_uri, first_uri, previous_uri, last_uri, next_uri, page_count].hash
|
331
331
|
end
|
332
332
|
|
333
333
|
# build the object from hash
|
@@ -51,6 +51,9 @@ module PureCloud
|
|
51
51
|
# Who can view this group
|
52
52
|
attr_accessor :visibility
|
53
53
|
|
54
|
+
# Owners of the group
|
55
|
+
attr_accessor :owners
|
56
|
+
|
54
57
|
# The URI for this object
|
55
58
|
attr_accessor :self_uri
|
56
59
|
|
@@ -82,6 +85,8 @@ module PureCloud
|
|
82
85
|
|
83
86
|
:'visibility' => :'visibility',
|
84
87
|
|
88
|
+
:'owners' => :'owners',
|
89
|
+
|
85
90
|
:'self_uri' => :'selfUri'
|
86
91
|
|
87
92
|
}
|
@@ -115,6 +120,8 @@ module PureCloud
|
|
115
120
|
|
116
121
|
:'visibility' => :'String',
|
117
122
|
|
123
|
+
:'owners' => :'Array<User>',
|
124
|
+
|
118
125
|
:'self_uri' => :'String'
|
119
126
|
|
120
127
|
}
|
@@ -241,6 +248,17 @@ module PureCloud
|
|
241
248
|
end
|
242
249
|
|
243
250
|
|
251
|
+
if attributes.has_key?(:'owners')
|
252
|
+
|
253
|
+
if (value = attributes[:'owners']).is_a?(Array)
|
254
|
+
self.owners = value
|
255
|
+
end
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
end
|
260
|
+
|
261
|
+
|
244
262
|
if attributes.has_key?(:'selfUri')
|
245
263
|
|
246
264
|
|
@@ -352,6 +370,10 @@ module PureCloud
|
|
352
370
|
|
353
371
|
|
354
372
|
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
355
377
|
end
|
356
378
|
|
357
379
|
|
@@ -447,6 +469,11 @@ module PureCloud
|
|
447
469
|
|
448
470
|
|
449
471
|
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
450
477
|
# Checks equality by comparing each attribute.
|
451
478
|
# @param [Object] Object to be compared
|
452
479
|
def ==(o)
|
@@ -464,6 +491,7 @@ module PureCloud
|
|
464
491
|
addresses == o.addresses &&
|
465
492
|
rules_visible == o.rules_visible &&
|
466
493
|
visibility == o.visibility &&
|
494
|
+
owners == o.owners &&
|
467
495
|
self_uri == o.self_uri
|
468
496
|
end
|
469
497
|
|
@@ -476,7 +504,7 @@ module PureCloud
|
|
476
504
|
# Calculates hash code according to all attributes.
|
477
505
|
# @return [Fixnum] Hash code
|
478
506
|
def hash
|
479
|
-
[id, name, description, date_modified, member_count, state, version, type, images, addresses, rules_visible, visibility, self_uri].hash
|
507
|
+
[id, name, description, date_modified, member_count, state, version, type, images, addresses, rules_visible, visibility, owners, self_uri].hash
|
480
508
|
end
|
481
509
|
|
482
510
|
# build the object from hash
|
@@ -0,0 +1,605 @@
|
|
1
|
+
=begin
|
2
|
+
PureCloud Platform API
|
3
|
+
|
4
|
+
With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: DeveloperEvangelists@genesys.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
License: ININ
|
11
|
+
http://www.inin.com
|
12
|
+
|
13
|
+
Terms of Service: https://developer.mypurecloud.com/tos
|
14
|
+
|
15
|
+
=end
|
16
|
+
|
17
|
+
require 'date'
|
18
|
+
|
19
|
+
module PureCloud
|
20
|
+
class GroupCreate
|
21
|
+
# The globally unique identifier for the object.
|
22
|
+
attr_accessor :id
|
23
|
+
|
24
|
+
# The group name.
|
25
|
+
attr_accessor :name
|
26
|
+
|
27
|
+
attr_accessor :description
|
28
|
+
|
29
|
+
# Last modified date/time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
30
|
+
attr_accessor :date_modified
|
31
|
+
|
32
|
+
# Number of members.
|
33
|
+
attr_accessor :member_count
|
34
|
+
|
35
|
+
# Active, inactive, or deleted state.
|
36
|
+
attr_accessor :state
|
37
|
+
|
38
|
+
# Current version for this resource.
|
39
|
+
attr_accessor :version
|
40
|
+
|
41
|
+
# Type of group.
|
42
|
+
attr_accessor :type
|
43
|
+
|
44
|
+
attr_accessor :images
|
45
|
+
|
46
|
+
attr_accessor :addresses
|
47
|
+
|
48
|
+
# Are membership rules visible to the person requesting to view the group
|
49
|
+
attr_accessor :rules_visible
|
50
|
+
|
51
|
+
# Who can view this group
|
52
|
+
attr_accessor :visibility
|
53
|
+
|
54
|
+
# Owners of the group
|
55
|
+
attr_accessor :owner_ids
|
56
|
+
|
57
|
+
# The URI for this object
|
58
|
+
attr_accessor :self_uri
|
59
|
+
|
60
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
61
|
+
def self.attribute_map
|
62
|
+
{
|
63
|
+
|
64
|
+
:'id' => :'id',
|
65
|
+
|
66
|
+
:'name' => :'name',
|
67
|
+
|
68
|
+
:'description' => :'description',
|
69
|
+
|
70
|
+
:'date_modified' => :'dateModified',
|
71
|
+
|
72
|
+
:'member_count' => :'memberCount',
|
73
|
+
|
74
|
+
:'state' => :'state',
|
75
|
+
|
76
|
+
:'version' => :'version',
|
77
|
+
|
78
|
+
:'type' => :'type',
|
79
|
+
|
80
|
+
:'images' => :'images',
|
81
|
+
|
82
|
+
:'addresses' => :'addresses',
|
83
|
+
|
84
|
+
:'rules_visible' => :'rulesVisible',
|
85
|
+
|
86
|
+
:'visibility' => :'visibility',
|
87
|
+
|
88
|
+
:'owner_ids' => :'ownerIds',
|
89
|
+
|
90
|
+
:'self_uri' => :'selfUri'
|
91
|
+
|
92
|
+
}
|
93
|
+
end
|
94
|
+
|
95
|
+
# Attribute type mapping.
|
96
|
+
def self.swagger_types
|
97
|
+
{
|
98
|
+
|
99
|
+
:'id' => :'String',
|
100
|
+
|
101
|
+
:'name' => :'String',
|
102
|
+
|
103
|
+
:'description' => :'String',
|
104
|
+
|
105
|
+
:'date_modified' => :'DateTime',
|
106
|
+
|
107
|
+
:'member_count' => :'Integer',
|
108
|
+
|
109
|
+
:'state' => :'String',
|
110
|
+
|
111
|
+
:'version' => :'Integer',
|
112
|
+
|
113
|
+
:'type' => :'String',
|
114
|
+
|
115
|
+
:'images' => :'Array<UserImage>',
|
116
|
+
|
117
|
+
:'addresses' => :'Array<GroupContact>',
|
118
|
+
|
119
|
+
:'rules_visible' => :'BOOLEAN',
|
120
|
+
|
121
|
+
:'visibility' => :'String',
|
122
|
+
|
123
|
+
:'owner_ids' => :'Array<String>',
|
124
|
+
|
125
|
+
:'self_uri' => :'String'
|
126
|
+
|
127
|
+
}
|
128
|
+
end
|
129
|
+
|
130
|
+
# Initializes the object
|
131
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
132
|
+
def initialize(attributes = {})
|
133
|
+
return unless attributes.is_a?(Hash)
|
134
|
+
|
135
|
+
# convert string to symbol for hash key
|
136
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
137
|
+
|
138
|
+
|
139
|
+
if attributes.has_key?(:'id')
|
140
|
+
|
141
|
+
|
142
|
+
self.id = attributes[:'id']
|
143
|
+
|
144
|
+
|
145
|
+
end
|
146
|
+
|
147
|
+
|
148
|
+
if attributes.has_key?(:'name')
|
149
|
+
|
150
|
+
|
151
|
+
self.name = attributes[:'name']
|
152
|
+
|
153
|
+
|
154
|
+
end
|
155
|
+
|
156
|
+
|
157
|
+
if attributes.has_key?(:'description')
|
158
|
+
|
159
|
+
|
160
|
+
self.description = attributes[:'description']
|
161
|
+
|
162
|
+
|
163
|
+
end
|
164
|
+
|
165
|
+
|
166
|
+
if attributes.has_key?(:'dateModified')
|
167
|
+
|
168
|
+
|
169
|
+
self.date_modified = attributes[:'dateModified']
|
170
|
+
|
171
|
+
|
172
|
+
end
|
173
|
+
|
174
|
+
|
175
|
+
if attributes.has_key?(:'memberCount')
|
176
|
+
|
177
|
+
|
178
|
+
self.member_count = attributes[:'memberCount']
|
179
|
+
|
180
|
+
|
181
|
+
end
|
182
|
+
|
183
|
+
|
184
|
+
if attributes.has_key?(:'state')
|
185
|
+
|
186
|
+
|
187
|
+
self.state = attributes[:'state']
|
188
|
+
|
189
|
+
|
190
|
+
end
|
191
|
+
|
192
|
+
|
193
|
+
if attributes.has_key?(:'version')
|
194
|
+
|
195
|
+
|
196
|
+
self.version = attributes[:'version']
|
197
|
+
|
198
|
+
|
199
|
+
end
|
200
|
+
|
201
|
+
|
202
|
+
if attributes.has_key?(:'type')
|
203
|
+
|
204
|
+
|
205
|
+
self.type = attributes[:'type']
|
206
|
+
|
207
|
+
|
208
|
+
end
|
209
|
+
|
210
|
+
|
211
|
+
if attributes.has_key?(:'images')
|
212
|
+
|
213
|
+
if (value = attributes[:'images']).is_a?(Array)
|
214
|
+
self.images = value
|
215
|
+
end
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
end
|
220
|
+
|
221
|
+
|
222
|
+
if attributes.has_key?(:'addresses')
|
223
|
+
|
224
|
+
if (value = attributes[:'addresses']).is_a?(Array)
|
225
|
+
self.addresses = value
|
226
|
+
end
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
end
|
231
|
+
|
232
|
+
|
233
|
+
if attributes.has_key?(:'rulesVisible')
|
234
|
+
|
235
|
+
|
236
|
+
self.rules_visible = attributes[:'rulesVisible']
|
237
|
+
|
238
|
+
|
239
|
+
end
|
240
|
+
|
241
|
+
|
242
|
+
if attributes.has_key?(:'visibility')
|
243
|
+
|
244
|
+
|
245
|
+
self.visibility = attributes[:'visibility']
|
246
|
+
|
247
|
+
|
248
|
+
end
|
249
|
+
|
250
|
+
|
251
|
+
if attributes.has_key?(:'ownerIds')
|
252
|
+
|
253
|
+
if (value = attributes[:'ownerIds']).is_a?(Array)
|
254
|
+
self.owner_ids = value
|
255
|
+
end
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
end
|
260
|
+
|
261
|
+
|
262
|
+
if attributes.has_key?(:'selfUri')
|
263
|
+
|
264
|
+
|
265
|
+
self.self_uri = attributes[:'selfUri']
|
266
|
+
|
267
|
+
|
268
|
+
end
|
269
|
+
|
270
|
+
|
271
|
+
end
|
272
|
+
|
273
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
274
|
+
# @return Array for valid properies with the reasons
|
275
|
+
def list_invalid_properties
|
276
|
+
invalid_properties = Array.new
|
277
|
+
|
278
|
+
|
279
|
+
return invalid_properties
|
280
|
+
end
|
281
|
+
|
282
|
+
# Check to see if the all the properties in the model are valid
|
283
|
+
# @return true if the model is valid
|
284
|
+
def valid?
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
if @name.nil?
|
292
|
+
return false
|
293
|
+
end
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
allowed_values = ["active", "inactive", "deleted"]
|
314
|
+
if @state && !allowed_values.include?(@state)
|
315
|
+
return false
|
316
|
+
end
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
if @type.nil?
|
326
|
+
return false
|
327
|
+
end
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
allowed_values = ["official", "social"]
|
332
|
+
if @type && !allowed_values.include?(@type)
|
333
|
+
return false
|
334
|
+
end
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
if @rules_visible.nil?
|
348
|
+
return false
|
349
|
+
end
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
if @visibility.nil?
|
357
|
+
return false
|
358
|
+
end
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
allowed_values = ["public", "owners", "members"]
|
363
|
+
if @visibility && !allowed_values.include?(@visibility)
|
364
|
+
return false
|
365
|
+
end
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
end
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
# Custom attribute writer method checking allowed values (enum).
|
407
|
+
# @param [Object] state Object to be assigned
|
408
|
+
def state=(state)
|
409
|
+
allowed_values = ["active", "inactive", "deleted"]
|
410
|
+
if state && !allowed_values.include?(state)
|
411
|
+
fail ArgumentError, "invalid value for 'state', must be one of #{allowed_values}."
|
412
|
+
end
|
413
|
+
@state = state
|
414
|
+
end
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
# Custom attribute writer method checking allowed values (enum).
|
426
|
+
# @param [Object] type Object to be assigned
|
427
|
+
def type=(type)
|
428
|
+
allowed_values = ["official", "social"]
|
429
|
+
if type && !allowed_values.include?(type)
|
430
|
+
fail ArgumentError, "invalid value for 'type', must be one of #{allowed_values}."
|
431
|
+
end
|
432
|
+
@type = type
|
433
|
+
end
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
# Custom attribute writer method checking allowed values (enum).
|
455
|
+
# @param [Object] visibility Object to be assigned
|
456
|
+
def visibility=(visibility)
|
457
|
+
allowed_values = ["public", "owners", "members"]
|
458
|
+
if visibility && !allowed_values.include?(visibility)
|
459
|
+
fail ArgumentError, "invalid value for 'visibility', must be one of #{allowed_values}."
|
460
|
+
end
|
461
|
+
@visibility = visibility
|
462
|
+
end
|
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
|
+
date_modified == o.date_modified &&
|
486
|
+
member_count == o.member_count &&
|
487
|
+
state == o.state &&
|
488
|
+
version == o.version &&
|
489
|
+
type == o.type &&
|
490
|
+
images == o.images &&
|
491
|
+
addresses == o.addresses &&
|
492
|
+
rules_visible == o.rules_visible &&
|
493
|
+
visibility == o.visibility &&
|
494
|
+
owner_ids == o.owner_ids &&
|
495
|
+
self_uri == o.self_uri
|
496
|
+
end
|
497
|
+
|
498
|
+
# @see the `==` method
|
499
|
+
# @param [Object] Object to be compared
|
500
|
+
def eql?(o)
|
501
|
+
self == o
|
502
|
+
end
|
503
|
+
|
504
|
+
# Calculates hash code according to all attributes.
|
505
|
+
# @return [Fixnum] Hash code
|
506
|
+
def hash
|
507
|
+
[id, name, description, date_modified, member_count, state, version, type, images, addresses, rules_visible, visibility, owner_ids, self_uri].hash
|
508
|
+
end
|
509
|
+
|
510
|
+
# build the object from hash
|
511
|
+
def build_from_hash(attributes)
|
512
|
+
return nil unless attributes.is_a?(Hash)
|
513
|
+
self.class.swagger_types.each_pair do |key, type|
|
514
|
+
if type =~ /^Array<(.*)>/i
|
515
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
516
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
517
|
+
else
|
518
|
+
#TODO show warning in debug mode
|
519
|
+
end
|
520
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
521
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
522
|
+
else
|
523
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
524
|
+
end
|
525
|
+
end
|
526
|
+
|
527
|
+
self
|
528
|
+
end
|
529
|
+
|
530
|
+
def _deserialize(type, value)
|
531
|
+
case type.to_sym
|
532
|
+
when :DateTime
|
533
|
+
DateTime.parse(value)
|
534
|
+
when :Date
|
535
|
+
Date.parse(value)
|
536
|
+
when :String
|
537
|
+
value.to_s
|
538
|
+
when :Integer
|
539
|
+
value.to_i
|
540
|
+
when :Float
|
541
|
+
value.to_f
|
542
|
+
when :BOOLEAN
|
543
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
544
|
+
true
|
545
|
+
else
|
546
|
+
false
|
547
|
+
end
|
548
|
+
when :Object
|
549
|
+
# generic object (usually a Hash), return directly
|
550
|
+
value
|
551
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
552
|
+
inner_type = Regexp.last_match[:inner_type]
|
553
|
+
value.map { |v| _deserialize(inner_type, v) }
|
554
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
555
|
+
k_type = Regexp.last_match[:k_type]
|
556
|
+
v_type = Regexp.last_match[:v_type]
|
557
|
+
{}.tap do |hash|
|
558
|
+
value.each do |k, v|
|
559
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
560
|
+
end
|
561
|
+
end
|
562
|
+
else # model
|
563
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
564
|
+
_model.build_from_hash(value)
|
565
|
+
end
|
566
|
+
end
|
567
|
+
|
568
|
+
def to_s
|
569
|
+
to_hash.to_s
|
570
|
+
end
|
571
|
+
|
572
|
+
# to_body is an alias to to_body (backward compatibility))
|
573
|
+
def to_body
|
574
|
+
to_hash
|
575
|
+
end
|
576
|
+
|
577
|
+
# return the object in the form of hash
|
578
|
+
def to_hash
|
579
|
+
hash = {}
|
580
|
+
self.class.attribute_map.each_pair do |attr, param|
|
581
|
+
value = self.send(attr)
|
582
|
+
next if value.nil?
|
583
|
+
hash[param] = _to_hash(value)
|
584
|
+
end
|
585
|
+
hash
|
586
|
+
end
|
587
|
+
|
588
|
+
# Method to output non-array value in the form of hash
|
589
|
+
# For object, use to_hash. Otherwise, just return the value
|
590
|
+
def _to_hash(value)
|
591
|
+
if value.is_a?(Array)
|
592
|
+
value.compact.map{ |v| _to_hash(v) }
|
593
|
+
elsif value.is_a?(Hash)
|
594
|
+
{}.tap do |hash|
|
595
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
596
|
+
end
|
597
|
+
elsif value.respond_to? :to_hash
|
598
|
+
value.to_hash
|
599
|
+
else
|
600
|
+
value
|
601
|
+
end
|
602
|
+
end
|
603
|
+
|
604
|
+
end
|
605
|
+
end
|