slackapi-sdk 1.0.0
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 +7 -0
- data/LICENSE +28 -0
- data/README.md +221 -0
- data/bin/console +15 -0
- data/lib/slack_web_api/api_helper.rb +10 -0
- data/lib/slack_web_api/client.rb +410 -0
- data/lib/slack_web_api/configuration.rb +173 -0
- data/lib/slack_web_api/controllers/admin_apps_approved_controller.rb +48 -0
- data/lib/slack_web_api/controllers/admin_apps_controller.rb +78 -0
- data/lib/slack_web_api/controllers/admin_apps_requests_controller.rb +44 -0
- data/lib/slack_web_api/controllers/admin_apps_restricted_controller.rb +48 -0
- data/lib/slack_web_api/controllers/admin_conversations_controller.rb +472 -0
- data/lib/slack_web_api/controllers/admin_conversations_ekm_controller.rb +51 -0
- data/lib/slack_web_api/controllers/admin_conversations_restrict_access_controller.rb +129 -0
- data/lib/slack_web_api/controllers/admin_emoji_controller.rb +175 -0
- data/lib/slack_web_api/controllers/admin_invite_requests_approved_controller.rb +46 -0
- data/lib/slack_web_api/controllers/admin_invite_requests_controller.rb +112 -0
- data/lib/slack_web_api/controllers/admin_invite_requests_denied_controller.rb +46 -0
- data/lib/slack_web_api/controllers/admin_teams_admins_controller.rb +45 -0
- data/lib/slack_web_api/controllers/admin_teams_controller.rb +84 -0
- data/lib/slack_web_api/controllers/admin_teams_owners_controller.rb +45 -0
- data/lib/slack_web_api/controllers/admin_teams_settings_controller.rb +206 -0
- data/lib/slack_web_api/controllers/admin_usergroups_controller.rb +161 -0
- data/lib/slack_web_api/controllers/admin_users_controller.rb +333 -0
- data/lib/slack_web_api/controllers/admin_users_session_controller.rb +80 -0
- data/lib/slack_web_api/controllers/api_controller.rb +34 -0
- data/lib/slack_web_api/controllers/apps_controller.rb +40 -0
- data/lib/slack_web_api/controllers/apps_event_authorizations_controller.rb +45 -0
- data/lib/slack_web_api/controllers/apps_permissions_controller.rb +66 -0
- data/lib/slack_web_api/controllers/apps_permissions_resources_controller.rb +44 -0
- data/lib/slack_web_api/controllers/apps_permissions_scopes_controller.rb +33 -0
- data/lib/slack_web_api/controllers/apps_permissions_users_controller.rb +85 -0
- data/lib/slack_web_api/controllers/auth_controller.rb +62 -0
- data/lib/slack_web_api/controllers/base_controller.rb +67 -0
- data/lib/slack_web_api/controllers/bots_controller.rb +36 -0
- data/lib/slack_web_api/controllers/calls_controller.rb +174 -0
- data/lib/slack_web_api/controllers/calls_participants_controller.rb +79 -0
- data/lib/slack_web_api/controllers/chat_controller.rb +528 -0
- data/lib/slack_web_api/controllers/chat_scheduled_messages_controller.rb +54 -0
- data/lib/slack_web_api/controllers/conversations_controller.rb +628 -0
- data/lib/slack_web_api/controllers/dialog_controller.rb +44 -0
- data/lib/slack_web_api/controllers/dnd_controller.rb +141 -0
- data/lib/slack_web_api/controllers/emoji_controller.rb +33 -0
- data/lib/slack_web_api/controllers/files_comments_controller.rb +38 -0
- data/lib/slack_web_api/controllers/files_controller.rb +245 -0
- data/lib/slack_web_api/controllers/files_remote_controller.rb +250 -0
- data/lib/slack_web_api/controllers/migration_controller.rb +47 -0
- data/lib/slack_web_api/controllers/oauth_authorization_controller.rb +87 -0
- data/lib/slack_web_api/controllers/oauth_controller.rb +88 -0
- data/lib/slack_web_api/controllers/oauth_v2_controller.rb +45 -0
- data/lib/slack_web_api/controllers/pins_controller.rb +102 -0
- data/lib/slack_web_api/controllers/reactions_controller.rb +182 -0
- data/lib/slack_web_api/controllers/reminders_controller.rb +151 -0
- data/lib/slack_web_api/controllers/rtm_controller.rb +44 -0
- data/lib/slack_web_api/controllers/search_controller.rb +56 -0
- data/lib/slack_web_api/controllers/stars_controller.rb +130 -0
- data/lib/slack_web_api/controllers/team_controller.rb +148 -0
- data/lib/slack_web_api/controllers/team_profile_controller.rb +36 -0
- data/lib/slack_web_api/controllers/usergroups_controller.rb +205 -0
- data/lib/slack_web_api/controllers/usergroups_users_controller.rb +81 -0
- data/lib/slack_web_api/controllers/users_controller.rb +327 -0
- data/lib/slack_web_api/controllers/users_profile_controller.rb +82 -0
- data/lib/slack_web_api/controllers/views_controller.rb +158 -0
- data/lib/slack_web_api/controllers/workflows_controller.rb +130 -0
- data/lib/slack_web_api/exceptions/admin_conversations_archive_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_convert_to_private_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_create_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_delete_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_disconnect_shared_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_get_teams_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_invite_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_search_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_set_conversation_prefs_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_unarchive_error_schema2_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_unarchive_error_schema3_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_unarchive_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/api_exception.rb +21 -0
- data/lib/slack_web_api/exceptions/api_test_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/apps_permissions_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/apps_permissions_request_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/apps_permissions_resources_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/apps_permissions_scopes_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/apps_uninstall_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/auth_revoke_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/auth_test_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/bots_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_delete_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_delete_scheduled_message_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_get_permalink_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_me_message_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_post_ephemeral_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_post_message_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_schedule_message_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_scheduled_messages_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_unfurl_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_update_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/conversations_archive_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_close_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_create_error_schema_exception.rb +73 -0
- data/lib/slack_web_api/exceptions/conversations_history_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_info_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_invite_error_schema1_exception.rb +82 -0
- data/lib/slack_web_api/exceptions/conversations_join_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_kick_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_leave_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_list_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_mark_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_members_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/conversations_open_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/conversations_rename_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_replies_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_set_purpose_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_set_topic_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_unarchive_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/default_error_template_exception.rb +47 -0
- data/lib/slack_web_api/exceptions/dialog_open_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/dnd_end_dnd_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/dnd_end_snooze_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/dnd_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/dnd_set_snooze_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_comments_delete_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_delete_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_revoke_public_url_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_shared_public_url_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_upload_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/migration_exchange_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/oauth_provider_exception.rb +64 -0
- data/lib/slack_web_api/exceptions/pins_add_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/pins_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/pins_remove_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reactions_add_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reactions_get_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reactions_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reactions_remove_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_add_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_complete_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_delete_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/rtm_connect_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/stars_add_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/stars_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/stars_remove_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/team_access_logs_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/team_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/team_integration_logs_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/team_profile_get_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_create_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_disable_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_enable_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_update_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_users_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_users_update_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_conversations_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_counts_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/users_delete_photo_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_identity_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_lookup_by_email_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_profile_get_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_profile_set_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_set_active_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_set_photo_error_schema_exception.rb +73 -0
- data/lib/slack_web_api/exceptions/users_set_presence_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/http/api_response.rb +19 -0
- data/lib/slack_web_api/http/auth/oauth_2.rb +162 -0
- data/lib/slack_web_api/http/http_call_back.rb +10 -0
- data/lib/slack_web_api/http/http_method_enum.rb +10 -0
- data/lib/slack_web_api/http/http_request.rb +10 -0
- data/lib/slack_web_api/http/http_response.rb +10 -0
- data/lib/slack_web_api/http/proxy_settings.rb +22 -0
- data/lib/slack_web_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/slack_web_api/logging/sdk_logger.rb +17 -0
- data/lib/slack_web_api/models/admin_conversations_archive_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_convert_to_private_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_create_schema.rb +82 -0
- data/lib/slack_web_api/models/admin_conversations_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_get_conversation_prefs_schema.rb +82 -0
- data/lib/slack_web_api/models/admin_conversations_get_teams_schema.rb +92 -0
- data/lib/slack_web_api/models/admin_conversations_invite_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_rename_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_rename_schema1.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_search_schema.rb +91 -0
- data/lib/slack_web_api/models/admin_conversations_set_conversation_prefs_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_unarchive_schema.rb +71 -0
- data/lib/slack_web_api/models/api_method_users_get_presence.rb +133 -0
- data/lib/slack_web_api/models/api_permissions_scopes_list_success_schema.rb +80 -0
- data/lib/slack_web_api/models/api_test_success_schema.rb +71 -0
- data/lib/slack_web_api/models/app_home.rb +86 -0
- data/lib/slack_web_api/models/apps_permissions_info_schema.rb +80 -0
- data/lib/slack_web_api/models/apps_permissions_request_schema.rb +71 -0
- data/lib/slack_web_api/models/apps_permissions_resources_list_success_schema.rb +101 -0
- data/lib/slack_web_api/models/apps_uninstall_schema.rb +71 -0
- data/lib/slack_web_api/models/attachment.rb +125 -0
- data/lib/slack_web_api/models/auth_revoke_schema.rb +80 -0
- data/lib/slack_web_api/models/auth_test_success_schema.rb +136 -0
- data/lib/slack_web_api/models/base_model.rb +110 -0
- data/lib/slack_web_api/models/block_kit_block.rb +72 -0
- data/lib/slack_web_api/models/bot.rb +128 -0
- data/lib/slack_web_api/models/bot_profile_object.rb +126 -0
- data/lib/slack_web_api/models/bots_info_schema.rb +80 -0
- data/lib/slack_web_api/models/can_thread.rb +85 -0
- data/lib/slack_web_api/models/channel.rb +86 -0
- data/lib/slack_web_api/models/channel_object.rb +382 -0
- data/lib/slack_web_api/models/chat_delete_scheduled_message_schema.rb +71 -0
- data/lib/slack_web_api/models/chat_delete_success_schema.rb +88 -0
- data/lib/slack_web_api/models/chat_get_permalink_success_schema.rb +88 -0
- data/lib/slack_web_api/models/chat_me_message_schema.rb +91 -0
- data/lib/slack_web_api/models/chat_post_ephemeral_success_schema.rb +80 -0
- data/lib/slack_web_api/models/chat_post_message_success_schema.rb +96 -0
- data/lib/slack_web_api/models/chat_schedule_message_success_schema.rb +108 -0
- data/lib/slack_web_api/models/chat_scheduled_messages_list_schema.rb +100 -0
- data/lib/slack_web_api/models/chat_unfurl_success_schema.rb +71 -0
- data/lib/slack_web_api/models/chat_update_success_schema.rb +105 -0
- data/lib/slack_web_api/models/conversations_archive_success_schema.rb +71 -0
- data/lib/slack_web_api/models/conversations_close_success_schema.rb +93 -0
- data/lib/slack_web_api/models/conversations_create_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_history_success_schema.rb +127 -0
- data/lib/slack_web_api/models/conversations_info_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_invite_error_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_join_success_schema.rb +102 -0
- data/lib/slack_web_api/models/conversations_kick_success_schema.rb +71 -0
- data/lib/slack_web_api/models/conversations_leave_success_schema.rb +83 -0
- data/lib/slack_web_api/models/conversations_list_success_schema.rb +92 -0
- data/lib/slack_web_api/models/conversations_mark_success_schema.rb +71 -0
- data/lib/slack_web_api/models/conversations_members_success_schema.rb +89 -0
- data/lib/slack_web_api/models/conversations_open_success_schema.rb +102 -0
- data/lib/slack_web_api/models/conversations_rename_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_replies_success_schema.rb +90 -0
- data/lib/slack_web_api/models/conversations_set_purpose_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_set_topic_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_unarchive_success_schema.rb +71 -0
- data/lib/slack_web_api/models/current.rb +82 -0
- data/lib/slack_web_api/models/default_success_template.rb +72 -0
- data/lib/slack_web_api/models/dialog_open_schema.rb +71 -0
- data/lib/slack_web_api/models/dnd_end_dnd_schema.rb +71 -0
- data/lib/slack_web_api/models/dnd_end_snooze_schema.rb +111 -0
- data/lib/slack_web_api/models/dnd_info_schema.rb +136 -0
- data/lib/slack_web_api/models/dnd_set_snooze_schema.rb +102 -0
- data/lib/slack_web_api/models/error.rb +60 -0
- data/lib/slack_web_api/models/error1.rb +65 -0
- data/lib/slack_web_api/models/error10.rb +60 -0
- data/lib/slack_web_api/models/error11.rb +60 -0
- data/lib/slack_web_api/models/error12.rb +104 -0
- data/lib/slack_web_api/models/error13.rb +120 -0
- data/lib/slack_web_api/models/error14.rb +108 -0
- data/lib/slack_web_api/models/error16.rb +116 -0
- data/lib/slack_web_api/models/error17.rb +100 -0
- data/lib/slack_web_api/models/error18.rb +84 -0
- data/lib/slack_web_api/models/error19.rb +104 -0
- data/lib/slack_web_api/models/error2.rb +60 -0
- data/lib/slack_web_api/models/error20.rb +112 -0
- data/lib/slack_web_api/models/error21.rb +120 -0
- data/lib/slack_web_api/models/error22.rb +108 -0
- data/lib/slack_web_api/models/error23.rb +124 -0
- data/lib/slack_web_api/models/error24.rb +128 -0
- data/lib/slack_web_api/models/error25.rb +92 -0
- data/lib/slack_web_api/models/error26.rb +166 -0
- data/lib/slack_web_api/models/error27.rb +112 -0
- data/lib/slack_web_api/models/error28.rb +120 -0
- data/lib/slack_web_api/models/error29.rb +128 -0
- data/lib/slack_web_api/models/error3.rb +60 -0
- data/lib/slack_web_api/models/error30.rb +133 -0
- data/lib/slack_web_api/models/error31.rb +101 -0
- data/lib/slack_web_api/models/error32.rb +133 -0
- data/lib/slack_web_api/models/error33.rb +96 -0
- data/lib/slack_web_api/models/error34.rb +92 -0
- data/lib/slack_web_api/models/error35.rb +153 -0
- data/lib/slack_web_api/models/error37.rb +121 -0
- data/lib/slack_web_api/models/error38.rb +121 -0
- data/lib/slack_web_api/models/error39.rb +129 -0
- data/lib/slack_web_api/models/error4.rb +80 -0
- data/lib/slack_web_api/models/error40.rb +84 -0
- data/lib/slack_web_api/models/error41.rb +105 -0
- data/lib/slack_web_api/models/error42.rb +100 -0
- data/lib/slack_web_api/models/error43.rb +121 -0
- data/lib/slack_web_api/models/error44.rb +129 -0
- data/lib/slack_web_api/models/error45.rb +96 -0
- data/lib/slack_web_api/models/error46.rb +113 -0
- data/lib/slack_web_api/models/error48.rb +121 -0
- data/lib/slack_web_api/models/error49.rb +136 -0
- data/lib/slack_web_api/models/error5.rb +60 -0
- data/lib/slack_web_api/models/error50.rb +108 -0
- data/lib/slack_web_api/models/error51.rb +112 -0
- data/lib/slack_web_api/models/error52.rb +104 -0
- data/lib/slack_web_api/models/error53.rb +116 -0
- data/lib/slack_web_api/models/error54.rb +92 -0
- data/lib/slack_web_api/models/error55.rb +100 -0
- data/lib/slack_web_api/models/error56.rb +100 -0
- data/lib/slack_web_api/models/error57.rb +100 -0
- data/lib/slack_web_api/models/error58.rb +112 -0
- data/lib/slack_web_api/models/error59.rb +116 -0
- data/lib/slack_web_api/models/error6.rb +60 -0
- data/lib/slack_web_api/models/error60.rb +108 -0
- data/lib/slack_web_api/models/error61.rb +108 -0
- data/lib/slack_web_api/models/error62.rb +120 -0
- data/lib/slack_web_api/models/error63.rb +92 -0
- data/lib/slack_web_api/models/error64.rb +116 -0
- data/lib/slack_web_api/models/error65.rb +116 -0
- data/lib/slack_web_api/models/error66.rb +104 -0
- data/lib/slack_web_api/models/error67.rb +96 -0
- data/lib/slack_web_api/models/error68.rb +120 -0
- data/lib/slack_web_api/models/error69.rb +128 -0
- data/lib/slack_web_api/models/error7.rb +56 -0
- data/lib/slack_web_api/models/error70.rb +116 -0
- data/lib/slack_web_api/models/error71.rb +108 -0
- data/lib/slack_web_api/models/error74.rb +96 -0
- data/lib/slack_web_api/models/error75.rb +128 -0
- data/lib/slack_web_api/models/error77.rb +128 -0
- data/lib/slack_web_api/models/error78.rb +112 -0
- data/lib/slack_web_api/models/error8.rb +56 -0
- data/lib/slack_web_api/models/error81.rb +92 -0
- data/lib/slack_web_api/models/error82.rb +112 -0
- data/lib/slack_web_api/models/error84.rb +116 -0
- data/lib/slack_web_api/models/error86.rb +120 -0
- data/lib/slack_web_api/models/error89.rb +117 -0
- data/lib/slack_web_api/models/error9.rb +68 -0
- data/lib/slack_web_api/models/error92.rb +92 -0
- data/lib/slack_web_api/models/error93.rb +100 -0
- data/lib/slack_web_api/models/error94.rb +100 -0
- data/lib/slack_web_api/models/error95.rb +108 -0
- data/lib/slack_web_api/models/error96.rb +128 -0
- data/lib/slack_web_api/models/error97.rb +100 -0
- data/lib/slack_web_api/models/error98.rb +120 -0
- data/lib/slack_web_api/models/error99.rb +104 -0
- data/lib/slack_web_api/models/errors_is_returned_when_an_error_associates_an_user.rb +90 -0
- data/lib/slack_web_api/models/external_org_migrations.rb +91 -0
- data/lib/slack_web_api/models/file_comment_object.rb +176 -0
- data/lib/slack_web_api/models/file_object.rb +790 -0
- data/lib/slack_web_api/models/files_comments_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/files_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/files_info_schema.rb +133 -0
- data/lib/slack_web_api/models/files_list_schema.rb +97 -0
- data/lib/slack_web_api/models/files_revoke_public_url_schema.rb +80 -0
- data/lib/slack_web_api/models/files_shared_public_url_schema.rb +80 -0
- data/lib/slack_web_api/models/files_upload_schema.rb +80 -0
- data/lib/slack_web_api/models/group.rb +86 -0
- data/lib/slack_web_api/models/icons.rb +90 -0
- data/lib/slack_web_api/models/icons1.rb +85 -0
- data/lib/slack_web_api/models/im.rb +86 -0
- data/lib/slack_web_api/models/info.rb +116 -0
- data/lib/slack_web_api/models/log.rb +168 -0
- data/lib/slack_web_api/models/login.rb +158 -0
- data/lib/slack_web_api/models/message.rb +128 -0
- data/lib/slack_web_api/models/message_object.rb +552 -0
- data/lib/slack_web_api/models/message_object1.rb +94 -0
- data/lib/slack_web_api/models/migration_exchange_success_schema.rb +111 -0
- data/lib/slack_web_api/models/mpim.rb +86 -0
- data/lib/slack_web_api/models/mself.rb +82 -0
- data/lib/slack_web_api/models/oauth_provider_error.rb +62 -0
- data/lib/slack_web_api/models/oauth_scope.rb +296 -0
- data/lib/slack_web_api/models/oauth_token.rb +96 -0
- data/lib/slack_web_api/models/objs_enterprise_user.rb +119 -0
- data/lib/slack_web_api/models/objs_icon.rb +147 -0
- data/lib/slack_web_api/models/objs_primary_owner.rb +82 -0
- data/lib/slack_web_api/models/objs_reminder.rb +129 -0
- data/lib/slack_web_api/models/objs_team_profile_field.rb +154 -0
- data/lib/slack_web_api/models/objs_team_profile_field_option.rb +112 -0
- data/lib/slack_web_api/models/objs_user_profile_short.rb +174 -0
- data/lib/slack_web_api/models/paging_object.rb +121 -0
- data/lib/slack_web_api/models/pins_add_schema.rb +71 -0
- data/lib/slack_web_api/models/pins_remove_schema.rb +71 -0
- data/lib/slack_web_api/models/plan.rb +44 -0
- data/lib/slack_web_api/models/prefs.rb +82 -0
- data/lib/slack_web_api/models/prefs1.rb +86 -0
- data/lib/slack_web_api/models/profile.rb +82 -0
- data/lib/slack_web_api/models/profile1.rb +146 -0
- data/lib/slack_web_api/models/purpose.rb +90 -0
- data/lib/slack_web_api/models/reaction_object.rb +90 -0
- data/lib/slack_web_api/models/reactions_add_schema.rb +71 -0
- data/lib/slack_web_api/models/reactions_list_schema.rb +102 -0
- data/lib/slack_web_api/models/reactions_remove_schema.rb +71 -0
- data/lib/slack_web_api/models/reminders_add_schema.rb +80 -0
- data/lib/slack_web_api/models/reminders_complete_schema.rb +71 -0
- data/lib/slack_web_api/models/reminders_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/reminders_info_schema.rb +80 -0
- data/lib/slack_web_api/models/reminders_list_schema.rb +89 -0
- data/lib/slack_web_api/models/resource.rb +85 -0
- data/lib/slack_web_api/models/resources_in_info_from_apps_permissions_info.rb +94 -0
- data/lib/slack_web_api/models/response_metadata.rb +74 -0
- data/lib/slack_web_api/models/response_metadata3.rb +75 -0
- data/lib/slack_web_api/models/rtm_connect_schema.rb +96 -0
- data/lib/slack_web_api/models/scheduled_message.rb +110 -0
- data/lib/slack_web_api/models/scopes.rb +134 -0
- data/lib/slack_web_api/models/shares.rb +85 -0
- data/lib/slack_web_api/models/sso_provider.rb +95 -0
- data/lib/slack_web_api/models/stars_add_schema.rb +71 -0
- data/lib/slack_web_api/models/stars_list_schema.rb +90 -0
- data/lib/slack_web_api/models/stars_remove_schema.rb +71 -0
- data/lib/slack_web_api/models/subteam_usergroup_object.rb +260 -0
- data/lib/slack_web_api/models/team.rb +83 -0
- data/lib/slack_web_api/models/team1.rb +90 -0
- data/lib/slack_web_api/models/team_access_logs_schema.rb +97 -0
- data/lib/slack_web_api/models/team_info_schema.rb +80 -0
- data/lib/slack_web_api/models/team_integration_logs_schema.rb +97 -0
- data/lib/slack_web_api/models/team_object.rb +368 -0
- data/lib/slack_web_api/models/team_profile_get_success_schema.rb +80 -0
- data/lib/slack_web_api/models/topic.rb +90 -0
- data/lib/slack_web_api/models/type.rb +52 -0
- data/lib/slack_web_api/models/user_profile_object.rb +542 -0
- data/lib/slack_web_api/models/usergroups_create_schema.rb +80 -0
- data/lib/slack_web_api/models/usergroups_disable_schema.rb +80 -0
- data/lib/slack_web_api/models/usergroups_enable_schema.rb +80 -0
- data/lib/slack_web_api/models/usergroups_list_schema.rb +89 -0
- data/lib/slack_web_api/models/usergroups_update_schema.rb +80 -0
- data/lib/slack_web_api/models/usergroups_users_list_schema.rb +80 -0
- data/lib/slack_web_api/models/usergroups_users_update_schema.rb +80 -0
- data/lib/slack_web_api/models/users_conversations_success_schema.rb +93 -0
- data/lib/slack_web_api/models/users_delete_photo_schema.rb +71 -0
- data/lib/slack_web_api/models/users_info_success_schema.rb +80 -0
- data/lib/slack_web_api/models/users_list_schema.rb +102 -0
- data/lib/slack_web_api/models/users_lookup_by_email_success_schema.rb +80 -0
- data/lib/slack_web_api/models/users_profile_get_schema.rb +80 -0
- data/lib/slack_web_api/models/users_profile_set_schema.rb +100 -0
- data/lib/slack_web_api/models/users_set_active_schema.rb +71 -0
- data/lib/slack_web_api/models/users_set_photo_schema.rb +80 -0
- data/lib/slack_web_api/models/users_set_presence_schema.rb +71 -0
- data/lib/slack_web_api/models/who_can_post.rb +85 -0
- data/lib/slack_web_api/utilities/date_time_helper.rb +11 -0
- data/lib/slack_web_api/utilities/file_wrapper.rb +28 -0
- data/lib/slack_web_api.rb +532 -0
- metadata +509 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
# slack_web_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module SlackWebApi
|
|
7
|
+
# ChannelObject Model.
|
|
8
|
+
class ChannelObject < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :accepted_user
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
attr_accessor :created
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :creator
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :id
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [TrueClass | FalseClass]
|
|
30
|
+
attr_accessor :is_archived
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [TrueClass | FalseClass]
|
|
34
|
+
attr_accessor :is_channel
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [TrueClass | FalseClass]
|
|
38
|
+
attr_accessor :is_frozen
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [TrueClass | FalseClass]
|
|
42
|
+
attr_accessor :is_general
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [TrueClass | FalseClass]
|
|
46
|
+
attr_accessor :is_member
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [Integer]
|
|
50
|
+
attr_accessor :is_moved
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for this method
|
|
53
|
+
# @return [TrueClass | FalseClass]
|
|
54
|
+
attr_accessor :is_mpim
|
|
55
|
+
|
|
56
|
+
# TODO: Write general description for this method
|
|
57
|
+
# @return [TrueClass | FalseClass]
|
|
58
|
+
attr_accessor :is_non_threadable
|
|
59
|
+
|
|
60
|
+
# TODO: Write general description for this method
|
|
61
|
+
# @return [TrueClass | FalseClass]
|
|
62
|
+
attr_accessor :is_org_shared
|
|
63
|
+
|
|
64
|
+
# TODO: Write general description for this method
|
|
65
|
+
# @return [TrueClass | FalseClass]
|
|
66
|
+
attr_accessor :is_pending_ext_shared
|
|
67
|
+
|
|
68
|
+
# TODO: Write general description for this method
|
|
69
|
+
# @return [TrueClass | FalseClass]
|
|
70
|
+
attr_accessor :is_private
|
|
71
|
+
|
|
72
|
+
# TODO: Write general description for this method
|
|
73
|
+
# @return [TrueClass | FalseClass]
|
|
74
|
+
attr_accessor :is_read_only
|
|
75
|
+
|
|
76
|
+
# TODO: Write general description for this method
|
|
77
|
+
# @return [TrueClass | FalseClass]
|
|
78
|
+
attr_accessor :is_shared
|
|
79
|
+
|
|
80
|
+
# TODO: Write general description for this method
|
|
81
|
+
# @return [TrueClass | FalseClass]
|
|
82
|
+
attr_accessor :is_thread_only
|
|
83
|
+
|
|
84
|
+
# TODO: Write general description for this method
|
|
85
|
+
# @return [String]
|
|
86
|
+
attr_accessor :last_read
|
|
87
|
+
|
|
88
|
+
# TODO: Write general description for this method
|
|
89
|
+
# @return [Object]
|
|
90
|
+
attr_accessor :latest
|
|
91
|
+
|
|
92
|
+
# TODO: Write general description for this method
|
|
93
|
+
# @return [Array[String]]
|
|
94
|
+
attr_accessor :members
|
|
95
|
+
|
|
96
|
+
# TODO: Write general description for this method
|
|
97
|
+
# @return [String]
|
|
98
|
+
attr_accessor :name
|
|
99
|
+
|
|
100
|
+
# TODO: Write general description for this method
|
|
101
|
+
# @return [String]
|
|
102
|
+
attr_accessor :name_normalized
|
|
103
|
+
|
|
104
|
+
# TODO: Write general description for this method
|
|
105
|
+
# @return [Integer]
|
|
106
|
+
attr_accessor :num_members
|
|
107
|
+
|
|
108
|
+
# TODO: Write general description for this method
|
|
109
|
+
# @return [Array[String]]
|
|
110
|
+
attr_accessor :pending_shared
|
|
111
|
+
|
|
112
|
+
# TODO: Write general description for this method
|
|
113
|
+
# @return [Array[String]]
|
|
114
|
+
attr_accessor :previous_names
|
|
115
|
+
|
|
116
|
+
# TODO: Write general description for this method
|
|
117
|
+
# @return [Float]
|
|
118
|
+
attr_accessor :priority
|
|
119
|
+
|
|
120
|
+
# TODO: Write general description for this method
|
|
121
|
+
# @return [Purpose]
|
|
122
|
+
attr_accessor :purpose
|
|
123
|
+
|
|
124
|
+
# TODO: Write general description for this method
|
|
125
|
+
# @return [Topic]
|
|
126
|
+
attr_accessor :topic
|
|
127
|
+
|
|
128
|
+
# TODO: Write general description for this method
|
|
129
|
+
# @return [Integer]
|
|
130
|
+
attr_accessor :unlinked
|
|
131
|
+
|
|
132
|
+
# TODO: Write general description for this method
|
|
133
|
+
# @return [Integer]
|
|
134
|
+
attr_accessor :unread_count
|
|
135
|
+
|
|
136
|
+
# TODO: Write general description for this method
|
|
137
|
+
# @return [Integer]
|
|
138
|
+
attr_accessor :unread_count_display
|
|
139
|
+
|
|
140
|
+
# A mapping from model property names to API property names.
|
|
141
|
+
def self.names
|
|
142
|
+
@_hash = {} if @_hash.nil?
|
|
143
|
+
@_hash['accepted_user'] = 'accepted_user'
|
|
144
|
+
@_hash['created'] = 'created'
|
|
145
|
+
@_hash['creator'] = 'creator'
|
|
146
|
+
@_hash['id'] = 'id'
|
|
147
|
+
@_hash['is_archived'] = 'is_archived'
|
|
148
|
+
@_hash['is_channel'] = 'is_channel'
|
|
149
|
+
@_hash['is_frozen'] = 'is_frozen'
|
|
150
|
+
@_hash['is_general'] = 'is_general'
|
|
151
|
+
@_hash['is_member'] = 'is_member'
|
|
152
|
+
@_hash['is_moved'] = 'is_moved'
|
|
153
|
+
@_hash['is_mpim'] = 'is_mpim'
|
|
154
|
+
@_hash['is_non_threadable'] = 'is_non_threadable'
|
|
155
|
+
@_hash['is_org_shared'] = 'is_org_shared'
|
|
156
|
+
@_hash['is_pending_ext_shared'] = 'is_pending_ext_shared'
|
|
157
|
+
@_hash['is_private'] = 'is_private'
|
|
158
|
+
@_hash['is_read_only'] = 'is_read_only'
|
|
159
|
+
@_hash['is_shared'] = 'is_shared'
|
|
160
|
+
@_hash['is_thread_only'] = 'is_thread_only'
|
|
161
|
+
@_hash['last_read'] = 'last_read'
|
|
162
|
+
@_hash['latest'] = 'latest'
|
|
163
|
+
@_hash['members'] = 'members'
|
|
164
|
+
@_hash['name'] = 'name'
|
|
165
|
+
@_hash['name_normalized'] = 'name_normalized'
|
|
166
|
+
@_hash['num_members'] = 'num_members'
|
|
167
|
+
@_hash['pending_shared'] = 'pending_shared'
|
|
168
|
+
@_hash['previous_names'] = 'previous_names'
|
|
169
|
+
@_hash['priority'] = 'priority'
|
|
170
|
+
@_hash['purpose'] = 'purpose'
|
|
171
|
+
@_hash['topic'] = 'topic'
|
|
172
|
+
@_hash['unlinked'] = 'unlinked'
|
|
173
|
+
@_hash['unread_count'] = 'unread_count'
|
|
174
|
+
@_hash['unread_count_display'] = 'unread_count_display'
|
|
175
|
+
@_hash
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# An array for optional fields
|
|
179
|
+
def self.optionals
|
|
180
|
+
%w[
|
|
181
|
+
accepted_user
|
|
182
|
+
is_archived
|
|
183
|
+
is_frozen
|
|
184
|
+
is_general
|
|
185
|
+
is_member
|
|
186
|
+
is_moved
|
|
187
|
+
is_non_threadable
|
|
188
|
+
is_pending_ext_shared
|
|
189
|
+
is_read_only
|
|
190
|
+
is_thread_only
|
|
191
|
+
last_read
|
|
192
|
+
latest
|
|
193
|
+
num_members
|
|
194
|
+
pending_shared
|
|
195
|
+
previous_names
|
|
196
|
+
priority
|
|
197
|
+
unlinked
|
|
198
|
+
unread_count
|
|
199
|
+
unread_count_display
|
|
200
|
+
]
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# An array for nullable fields
|
|
204
|
+
def self.nullables
|
|
205
|
+
[]
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
def initialize(created:, creator:, id:, is_channel:, is_mpim:,
|
|
209
|
+
is_org_shared:, is_private:, is_shared:, members:, name:,
|
|
210
|
+
name_normalized:, purpose:, topic:, accepted_user: SKIP,
|
|
211
|
+
is_archived: SKIP, is_frozen: SKIP, is_general: SKIP,
|
|
212
|
+
is_member: SKIP, is_moved: SKIP, is_non_threadable: SKIP,
|
|
213
|
+
is_pending_ext_shared: SKIP, is_read_only: SKIP,
|
|
214
|
+
is_thread_only: SKIP, last_read: SKIP, latest: SKIP,
|
|
215
|
+
num_members: SKIP, pending_shared: SKIP,
|
|
216
|
+
previous_names: SKIP, priority: SKIP, unlinked: SKIP,
|
|
217
|
+
unread_count: SKIP, unread_count_display: SKIP,
|
|
218
|
+
additional_properties: nil)
|
|
219
|
+
# Add additional model properties to the instance
|
|
220
|
+
additional_properties = {} if additional_properties.nil?
|
|
221
|
+
|
|
222
|
+
@accepted_user = accepted_user unless accepted_user == SKIP
|
|
223
|
+
@created = created
|
|
224
|
+
@creator = creator
|
|
225
|
+
@id = id
|
|
226
|
+
@is_archived = is_archived unless is_archived == SKIP
|
|
227
|
+
@is_channel = is_channel
|
|
228
|
+
@is_frozen = is_frozen unless is_frozen == SKIP
|
|
229
|
+
@is_general = is_general unless is_general == SKIP
|
|
230
|
+
@is_member = is_member unless is_member == SKIP
|
|
231
|
+
@is_moved = is_moved unless is_moved == SKIP
|
|
232
|
+
@is_mpim = is_mpim
|
|
233
|
+
@is_non_threadable = is_non_threadable unless is_non_threadable == SKIP
|
|
234
|
+
@is_org_shared = is_org_shared
|
|
235
|
+
@is_pending_ext_shared = is_pending_ext_shared unless is_pending_ext_shared == SKIP
|
|
236
|
+
@is_private = is_private
|
|
237
|
+
@is_read_only = is_read_only unless is_read_only == SKIP
|
|
238
|
+
@is_shared = is_shared
|
|
239
|
+
@is_thread_only = is_thread_only unless is_thread_only == SKIP
|
|
240
|
+
@last_read = last_read unless last_read == SKIP
|
|
241
|
+
@latest = latest unless latest == SKIP
|
|
242
|
+
@members = members
|
|
243
|
+
@name = name
|
|
244
|
+
@name_normalized = name_normalized
|
|
245
|
+
@num_members = num_members unless num_members == SKIP
|
|
246
|
+
@pending_shared = pending_shared unless pending_shared == SKIP
|
|
247
|
+
@previous_names = previous_names unless previous_names == SKIP
|
|
248
|
+
@priority = priority unless priority == SKIP
|
|
249
|
+
@purpose = purpose
|
|
250
|
+
@topic = topic
|
|
251
|
+
@unlinked = unlinked unless unlinked == SKIP
|
|
252
|
+
@unread_count = unread_count unless unread_count == SKIP
|
|
253
|
+
@unread_count_display = unread_count_display unless unread_count_display == SKIP
|
|
254
|
+
@additional_properties = additional_properties
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Creates an instance of the object from a hash.
|
|
258
|
+
def self.from_hash(hash)
|
|
259
|
+
return nil unless hash
|
|
260
|
+
|
|
261
|
+
# Extract variables from the hash.
|
|
262
|
+
created = hash.key?('created') ? hash['created'] : nil
|
|
263
|
+
creator = hash.key?('creator') ? hash['creator'] : nil
|
|
264
|
+
id = hash.key?('id') ? hash['id'] : nil
|
|
265
|
+
is_channel = hash.key?('is_channel') ? hash['is_channel'] : nil
|
|
266
|
+
is_mpim = hash.key?('is_mpim') ? hash['is_mpim'] : nil
|
|
267
|
+
is_org_shared = hash.key?('is_org_shared') ? hash['is_org_shared'] : nil
|
|
268
|
+
is_private = hash.key?('is_private') ? hash['is_private'] : nil
|
|
269
|
+
is_shared = hash.key?('is_shared') ? hash['is_shared'] : nil
|
|
270
|
+
members = hash.key?('members') ? hash['members'] : nil
|
|
271
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
272
|
+
name_normalized =
|
|
273
|
+
hash.key?('name_normalized') ? hash['name_normalized'] : nil
|
|
274
|
+
purpose = Purpose.from_hash(hash['purpose']) if hash['purpose']
|
|
275
|
+
topic = Topic.from_hash(hash['topic']) if hash['topic']
|
|
276
|
+
accepted_user = hash.key?('accepted_user') ? hash['accepted_user'] : SKIP
|
|
277
|
+
is_archived = hash.key?('is_archived') ? hash['is_archived'] : SKIP
|
|
278
|
+
is_frozen = hash.key?('is_frozen') ? hash['is_frozen'] : SKIP
|
|
279
|
+
is_general = hash.key?('is_general') ? hash['is_general'] : SKIP
|
|
280
|
+
is_member = hash.key?('is_member') ? hash['is_member'] : SKIP
|
|
281
|
+
is_moved = hash.key?('is_moved') ? hash['is_moved'] : SKIP
|
|
282
|
+
is_non_threadable =
|
|
283
|
+
hash.key?('is_non_threadable') ? hash['is_non_threadable'] : SKIP
|
|
284
|
+
is_pending_ext_shared =
|
|
285
|
+
hash.key?('is_pending_ext_shared') ? hash['is_pending_ext_shared'] : SKIP
|
|
286
|
+
is_read_only = hash.key?('is_read_only') ? hash['is_read_only'] : SKIP
|
|
287
|
+
is_thread_only =
|
|
288
|
+
hash.key?('is_thread_only') ? hash['is_thread_only'] : SKIP
|
|
289
|
+
last_read = hash.key?('last_read') ? hash['last_read'] : SKIP
|
|
290
|
+
latest = hash.key?('latest') ? hash['latest'] : SKIP
|
|
291
|
+
num_members = hash.key?('num_members') ? hash['num_members'] : SKIP
|
|
292
|
+
pending_shared =
|
|
293
|
+
hash.key?('pending_shared') ? hash['pending_shared'] : SKIP
|
|
294
|
+
previous_names =
|
|
295
|
+
hash.key?('previous_names') ? hash['previous_names'] : SKIP
|
|
296
|
+
priority = hash.key?('priority') ? hash['priority'] : SKIP
|
|
297
|
+
unlinked = hash.key?('unlinked') ? hash['unlinked'] : SKIP
|
|
298
|
+
unread_count = hash.key?('unread_count') ? hash['unread_count'] : SKIP
|
|
299
|
+
unread_count_display =
|
|
300
|
+
hash.key?('unread_count_display') ? hash['unread_count_display'] : SKIP
|
|
301
|
+
|
|
302
|
+
# Create a new hash for additional properties, removing known properties.
|
|
303
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
304
|
+
|
|
305
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
306
|
+
new_hash, proc { |value| value }
|
|
307
|
+
)
|
|
308
|
+
|
|
309
|
+
# Create object from extracted values.
|
|
310
|
+
ChannelObject.new(created: created,
|
|
311
|
+
creator: creator,
|
|
312
|
+
id: id,
|
|
313
|
+
is_channel: is_channel,
|
|
314
|
+
is_mpim: is_mpim,
|
|
315
|
+
is_org_shared: is_org_shared,
|
|
316
|
+
is_private: is_private,
|
|
317
|
+
is_shared: is_shared,
|
|
318
|
+
members: members,
|
|
319
|
+
name: name,
|
|
320
|
+
name_normalized: name_normalized,
|
|
321
|
+
purpose: purpose,
|
|
322
|
+
topic: topic,
|
|
323
|
+
accepted_user: accepted_user,
|
|
324
|
+
is_archived: is_archived,
|
|
325
|
+
is_frozen: is_frozen,
|
|
326
|
+
is_general: is_general,
|
|
327
|
+
is_member: is_member,
|
|
328
|
+
is_moved: is_moved,
|
|
329
|
+
is_non_threadable: is_non_threadable,
|
|
330
|
+
is_pending_ext_shared: is_pending_ext_shared,
|
|
331
|
+
is_read_only: is_read_only,
|
|
332
|
+
is_thread_only: is_thread_only,
|
|
333
|
+
last_read: last_read,
|
|
334
|
+
latest: latest,
|
|
335
|
+
num_members: num_members,
|
|
336
|
+
pending_shared: pending_shared,
|
|
337
|
+
previous_names: previous_names,
|
|
338
|
+
priority: priority,
|
|
339
|
+
unlinked: unlinked,
|
|
340
|
+
unread_count: unread_count,
|
|
341
|
+
unread_count_display: unread_count_display,
|
|
342
|
+
additional_properties: additional_properties)
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
# Provides a human-readable string representation of the object.
|
|
346
|
+
def to_s
|
|
347
|
+
class_name = self.class.name.split('::').last
|
|
348
|
+
"<#{class_name} accepted_user: #{@accepted_user}, created: #{@created}, creator:"\
|
|
349
|
+
" #{@creator}, id: #{@id}, is_archived: #{@is_archived}, is_channel: #{@is_channel},"\
|
|
350
|
+
" is_frozen: #{@is_frozen}, is_general: #{@is_general}, is_member: #{@is_member}, is_moved:"\
|
|
351
|
+
" #{@is_moved}, is_mpim: #{@is_mpim}, is_non_threadable: #{@is_non_threadable},"\
|
|
352
|
+
" is_org_shared: #{@is_org_shared}, is_pending_ext_shared: #{@is_pending_ext_shared},"\
|
|
353
|
+
" is_private: #{@is_private}, is_read_only: #{@is_read_only}, is_shared: #{@is_shared},"\
|
|
354
|
+
" is_thread_only: #{@is_thread_only}, last_read: #{@last_read}, latest: #{@latest}, members:"\
|
|
355
|
+
" #{@members}, name: #{@name}, name_normalized: #{@name_normalized}, num_members:"\
|
|
356
|
+
" #{@num_members}, pending_shared: #{@pending_shared}, previous_names: #{@previous_names},"\
|
|
357
|
+
" priority: #{@priority}, purpose: #{@purpose}, topic: #{@topic}, unlinked: #{@unlinked},"\
|
|
358
|
+
" unread_count: #{@unread_count}, unread_count_display: #{@unread_count_display},"\
|
|
359
|
+
" additional_properties: #{@additional_properties}>"
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
363
|
+
def inspect
|
|
364
|
+
class_name = self.class.name.split('::').last
|
|
365
|
+
"<#{class_name} accepted_user: #{@accepted_user.inspect}, created: #{@created.inspect},"\
|
|
366
|
+
" creator: #{@creator.inspect}, id: #{@id.inspect}, is_archived: #{@is_archived.inspect},"\
|
|
367
|
+
" is_channel: #{@is_channel.inspect}, is_frozen: #{@is_frozen.inspect}, is_general:"\
|
|
368
|
+
" #{@is_general.inspect}, is_member: #{@is_member.inspect}, is_moved: #{@is_moved.inspect},"\
|
|
369
|
+
" is_mpim: #{@is_mpim.inspect}, is_non_threadable: #{@is_non_threadable.inspect},"\
|
|
370
|
+
" is_org_shared: #{@is_org_shared.inspect}, is_pending_ext_shared:"\
|
|
371
|
+
" #{@is_pending_ext_shared.inspect}, is_private: #{@is_private.inspect}, is_read_only:"\
|
|
372
|
+
" #{@is_read_only.inspect}, is_shared: #{@is_shared.inspect}, is_thread_only:"\
|
|
373
|
+
" #{@is_thread_only.inspect}, last_read: #{@last_read.inspect}, latest: #{@latest.inspect},"\
|
|
374
|
+
" members: #{@members.inspect}, name: #{@name.inspect}, name_normalized:"\
|
|
375
|
+
" #{@name_normalized.inspect}, num_members: #{@num_members.inspect}, pending_shared:"\
|
|
376
|
+
" #{@pending_shared.inspect}, previous_names: #{@previous_names.inspect}, priority:"\
|
|
377
|
+
" #{@priority.inspect}, purpose: #{@purpose.inspect}, topic: #{@topic.inspect}, unlinked:"\
|
|
378
|
+
" #{@unlinked.inspect}, unread_count: #{@unread_count.inspect}, unread_count_display:"\
|
|
379
|
+
" #{@unread_count_display.inspect}, additional_properties: #{@additional_properties}>"
|
|
380
|
+
end
|
|
381
|
+
end
|
|
382
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# slack_web_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module SlackWebApi
|
|
7
|
+
# Schema for successful response from chat.deleteScheduledMessage method
|
|
8
|
+
class ChatDeleteScheduledMessageSchema < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_reader :ok
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['ok'] = 'ok'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
[]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for nullable fields
|
|
29
|
+
def self.nullables
|
|
30
|
+
[]
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def initialize(additional_properties: nil)
|
|
34
|
+
# Add additional model properties to the instance
|
|
35
|
+
additional_properties = {} if additional_properties.nil?
|
|
36
|
+
|
|
37
|
+
@ok = 'True'
|
|
38
|
+
@additional_properties = additional_properties
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Creates an instance of the object from a hash.
|
|
42
|
+
def self.from_hash(hash)
|
|
43
|
+
return nil unless hash
|
|
44
|
+
|
|
45
|
+
# Extract variables from the hash.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# Create a new hash for additional properties, removing known properties.
|
|
49
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
50
|
+
|
|
51
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
52
|
+
new_hash, proc { |value| value }
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
# Create object from extracted values.
|
|
56
|
+
ChatDeleteScheduledMessageSchema.new(additional_properties: additional_properties)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Provides a human-readable string representation of the object.
|
|
60
|
+
def to_s
|
|
61
|
+
class_name = self.class.name.split('::').last
|
|
62
|
+
"<#{class_name} ok: #{@ok}, additional_properties: #{@additional_properties}>"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
66
|
+
def inspect
|
|
67
|
+
class_name = self.class.name.split('::').last
|
|
68
|
+
"<#{class_name} ok: #{@ok.inspect}, additional_properties: #{@additional_properties}>"
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# slack_web_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module SlackWebApi
|
|
7
|
+
# Schema for successful response of chat.delete method
|
|
8
|
+
class ChatDeleteSuccessSchema < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :channel
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_reader :ok
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :ts
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['channel'] = 'channel'
|
|
28
|
+
@_hash['ok'] = 'ok'
|
|
29
|
+
@_hash['ts'] = 'ts'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
[]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for nullable fields
|
|
39
|
+
def self.nullables
|
|
40
|
+
[]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def initialize(channel:, ts:, additional_properties: nil)
|
|
44
|
+
# Add additional model properties to the instance
|
|
45
|
+
additional_properties = {} if additional_properties.nil?
|
|
46
|
+
|
|
47
|
+
@channel = channel
|
|
48
|
+
@ok = 'True'
|
|
49
|
+
@ts = ts
|
|
50
|
+
@additional_properties = additional_properties
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Creates an instance of the object from a hash.
|
|
54
|
+
def self.from_hash(hash)
|
|
55
|
+
return nil unless hash
|
|
56
|
+
|
|
57
|
+
# Extract variables from the hash.
|
|
58
|
+
channel = hash.key?('channel') ? hash['channel'] : nil
|
|
59
|
+
ts = hash.key?('ts') ? hash['ts'] : nil
|
|
60
|
+
|
|
61
|
+
# Create a new hash for additional properties, removing known properties.
|
|
62
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
63
|
+
|
|
64
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
65
|
+
new_hash, proc { |value| value }
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
# Create object from extracted values.
|
|
69
|
+
ChatDeleteSuccessSchema.new(channel: channel,
|
|
70
|
+
ts: ts,
|
|
71
|
+
additional_properties: additional_properties)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Provides a human-readable string representation of the object.
|
|
75
|
+
def to_s
|
|
76
|
+
class_name = self.class.name.split('::').last
|
|
77
|
+
"<#{class_name} channel: #{@channel}, ok: #{@ok}, ts: #{@ts}, additional_properties:"\
|
|
78
|
+
" #{@additional_properties}>"
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
82
|
+
def inspect
|
|
83
|
+
class_name = self.class.name.split('::').last
|
|
84
|
+
"<#{class_name} channel: #{@channel.inspect}, ok: #{@ok.inspect}, ts: #{@ts.inspect},"\
|
|
85
|
+
" additional_properties: #{@additional_properties}>"
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# slack_web_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module SlackWebApi
|
|
7
|
+
# Schema for successful response chat.getPermalink
|
|
8
|
+
class ChatGetPermalinkSuccessSchema < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :channel
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_reader :ok
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :permalink
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['channel'] = 'channel'
|
|
28
|
+
@_hash['ok'] = 'ok'
|
|
29
|
+
@_hash['permalink'] = 'permalink'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
[]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for nullable fields
|
|
39
|
+
def self.nullables
|
|
40
|
+
[]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def initialize(channel:, permalink:, additional_properties: nil)
|
|
44
|
+
# Add additional model properties to the instance
|
|
45
|
+
additional_properties = {} if additional_properties.nil?
|
|
46
|
+
|
|
47
|
+
@channel = channel
|
|
48
|
+
@ok = 'True'
|
|
49
|
+
@permalink = permalink
|
|
50
|
+
@additional_properties = additional_properties
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Creates an instance of the object from a hash.
|
|
54
|
+
def self.from_hash(hash)
|
|
55
|
+
return nil unless hash
|
|
56
|
+
|
|
57
|
+
# Extract variables from the hash.
|
|
58
|
+
channel = hash.key?('channel') ? hash['channel'] : nil
|
|
59
|
+
permalink = hash.key?('permalink') ? hash['permalink'] : nil
|
|
60
|
+
|
|
61
|
+
# Create a new hash for additional properties, removing known properties.
|
|
62
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
63
|
+
|
|
64
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
65
|
+
new_hash, proc { |value| value }
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
# Create object from extracted values.
|
|
69
|
+
ChatGetPermalinkSuccessSchema.new(channel: channel,
|
|
70
|
+
permalink: permalink,
|
|
71
|
+
additional_properties: additional_properties)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Provides a human-readable string representation of the object.
|
|
75
|
+
def to_s
|
|
76
|
+
class_name = self.class.name.split('::').last
|
|
77
|
+
"<#{class_name} channel: #{@channel}, ok: #{@ok}, permalink: #{@permalink},"\
|
|
78
|
+
" additional_properties: #{@additional_properties}>"
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
82
|
+
def inspect
|
|
83
|
+
class_name = self.class.name.split('::').last
|
|
84
|
+
"<#{class_name} channel: #{@channel.inspect}, ok: #{@ok.inspect}, permalink:"\
|
|
85
|
+
" #{@permalink.inspect}, additional_properties: #{@additional_properties}>"
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|