slack-apimatic-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/apis/admin_apps_api.rb +78 -0
- data/lib/slack_web_api/apis/admin_apps_approved_api.rb +48 -0
- data/lib/slack_web_api/apis/admin_apps_requests_api.rb +44 -0
- data/lib/slack_web_api/apis/admin_apps_restricted_api.rb +48 -0
- data/lib/slack_web_api/apis/admin_conversations_api.rb +472 -0
- data/lib/slack_web_api/apis/admin_conversations_ekm_api.rb +51 -0
- data/lib/slack_web_api/apis/admin_conversations_restrict_access_api.rb +129 -0
- data/lib/slack_web_api/apis/admin_emoji_api.rb +175 -0
- data/lib/slack_web_api/apis/admin_invite_requests_api.rb +112 -0
- data/lib/slack_web_api/apis/admin_invite_requests_approved_api.rb +46 -0
- data/lib/slack_web_api/apis/admin_invite_requests_denied_api.rb +46 -0
- data/lib/slack_web_api/apis/admin_teams_admins_api.rb +45 -0
- data/lib/slack_web_api/apis/admin_teams_api.rb +84 -0
- data/lib/slack_web_api/apis/admin_teams_owners_api.rb +45 -0
- data/lib/slack_web_api/apis/admin_teams_settings_api.rb +206 -0
- data/lib/slack_web_api/apis/admin_usergroups_api.rb +161 -0
- data/lib/slack_web_api/apis/admin_users_api.rb +333 -0
- data/lib/slack_web_api/apis/admin_users_session_api.rb +80 -0
- data/lib/slack_web_api/apis/api.rb +34 -0
- data/lib/slack_web_api/apis/apps_api.rb +40 -0
- data/lib/slack_web_api/apis/apps_event_authorizations_api.rb +45 -0
- data/lib/slack_web_api/apis/apps_permissions_api.rb +66 -0
- data/lib/slack_web_api/apis/apps_permissions_resources_api.rb +43 -0
- data/lib/slack_web_api/apis/apps_permissions_scopes_api.rb +33 -0
- data/lib/slack_web_api/apis/apps_permissions_users_api.rb +84 -0
- data/lib/slack_web_api/apis/auth_api.rb +62 -0
- data/lib/slack_web_api/apis/base_api.rb +67 -0
- data/lib/slack_web_api/apis/bots_api.rb +36 -0
- data/lib/slack_web_api/apis/calls_api.rb +174 -0
- data/lib/slack_web_api/apis/calls_participants_api.rb +79 -0
- data/lib/slack_web_api/apis/chat_api.rb +528 -0
- data/lib/slack_web_api/apis/chat_scheduled_messages_api.rb +54 -0
- data/lib/slack_web_api/apis/conversations_api.rb +624 -0
- data/lib/slack_web_api/apis/dialog_api.rb +44 -0
- data/lib/slack_web_api/apis/dnd_api.rb +141 -0
- data/lib/slack_web_api/apis/emoji_api.rb +33 -0
- data/lib/slack_web_api/apis/files_api.rb +244 -0
- data/lib/slack_web_api/apis/files_comments_api.rb +38 -0
- data/lib/slack_web_api/apis/files_remote_api.rb +249 -0
- data/lib/slack_web_api/apis/migration_api.rb +47 -0
- data/lib/slack_web_api/apis/oauth_api.rb +88 -0
- data/lib/slack_web_api/apis/oauth_authorization_api.rb +87 -0
- data/lib/slack_web_api/apis/oauth_v2_api.rb +45 -0
- data/lib/slack_web_api/apis/pins_api.rb +102 -0
- data/lib/slack_web_api/apis/reactions_api.rb +182 -0
- data/lib/slack_web_api/apis/reminders_api.rb +151 -0
- data/lib/slack_web_api/apis/rtm_api.rb +42 -0
- data/lib/slack_web_api/apis/search_api.rb +56 -0
- data/lib/slack_web_api/apis/stars_api.rb +130 -0
- data/lib/slack_web_api/apis/team_api.rb +148 -0
- data/lib/slack_web_api/apis/team_profile_api.rb +36 -0
- data/lib/slack_web_api/apis/usergroups_api.rb +205 -0
- data/lib/slack_web_api/apis/usergroups_users_api.rb +81 -0
- data/lib/slack_web_api/apis/users_api.rb +325 -0
- data/lib/slack_web_api/apis/users_profile_api.rb +82 -0
- data/lib/slack_web_api/apis/views_api.rb +158 -0
- data/lib/slack_web_api/apis/workflows_api.rb +130 -0
- data/lib/slack_web_api/client.rb +410 -0
- data/lib/slack_web_api/configuration.rb +173 -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_error_enum.rb +60 -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_error_enum.rb +65 -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_error_enum.rb +60 -0
- data/lib/slack_web_api/models/admin_conversations_create_schema.rb +82 -0
- data/lib/slack_web_api/models/admin_conversations_delete_error_enum.rb +60 -0
- data/lib/slack_web_api/models/admin_conversations_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_disconnect_shared_error_enum.rb +80 -0
- data/lib/slack_web_api/models/admin_conversations_get_conversation_prefs_error_enum.rb +60 -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_error_enum.rb +60 -0
- data/lib/slack_web_api/models/admin_conversations_get_teams_schema.rb +92 -0
- data/lib/slack_web_api/models/admin_conversations_invite_error_enum.rb +56 -0
- data/lib/slack_web_api/models/admin_conversations_invite_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_rename_error_enum.rb +56 -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_error_enum.rb +68 -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_error_enum.rb +60 -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_error_enum.rb +60 -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_error_enum.rb +104 -0
- data/lib/slack_web_api/models/apps_permissions_info_schema.rb +80 -0
- data/lib/slack_web_api/models/apps_permissions_request_error_enum.rb +120 -0
- data/lib/slack_web_api/models/apps_permissions_request_schema.rb +71 -0
- data/lib/slack_web_api/models/apps_permissions_resources_list_error_enum.rb +108 -0
- data/lib/slack_web_api/models/apps_permissions_resources_list_success_schema.rb +101 -0
- data/lib/slack_web_api/models/apps_uninstall_error_enum.rb +116 -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_error_enum.rb +100 -0
- data/lib/slack_web_api/models/auth_revoke_schema.rb +80 -0
- data/lib/slack_web_api/models/auth_test_error_enum.rb +84 -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_error_enum.rb +104 -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_error_enum.rb +112 -0
- data/lib/slack_web_api/models/chat_delete_scheduled_message_error_enum.rb +120 -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_error_enum.rb +108 -0
- data/lib/slack_web_api/models/chat_get_permalink_success_schema.rb +88 -0
- data/lib/slack_web_api/models/chat_me_message_error_enum.rb +124 -0
- data/lib/slack_web_api/models/chat_me_message_schema.rb +91 -0
- data/lib/slack_web_api/models/chat_post_ephemeral_error_enum.rb +128 -0
- data/lib/slack_web_api/models/chat_post_ephemeral_success_schema.rb +80 -0
- data/lib/slack_web_api/models/chat_post_message_error_enum.rb +92 -0
- data/lib/slack_web_api/models/chat_post_message_success_schema.rb +96 -0
- data/lib/slack_web_api/models/chat_schedule_message_error_enum.rb +166 -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_error_enum.rb +112 -0
- data/lib/slack_web_api/models/chat_scheduled_messages_list_schema.rb +100 -0
- data/lib/slack_web_api/models/chat_unfurl_error_enum.rb +120 -0
- data/lib/slack_web_api/models/chat_unfurl_success_schema.rb +71 -0
- data/lib/slack_web_api/models/chat_update_error_enum.rb +128 -0
- data/lib/slack_web_api/models/chat_update_success_schema.rb +105 -0
- data/lib/slack_web_api/models/conversations_archive_error_enum.rb +133 -0
- data/lib/slack_web_api/models/conversations_archive_success_schema.rb +71 -0
- data/lib/slack_web_api/models/conversations_close_error_enum.rb +101 -0
- data/lib/slack_web_api/models/conversations_close_success_schema.rb +93 -0
- data/lib/slack_web_api/models/conversations_create_error_enum.rb +133 -0
- data/lib/slack_web_api/models/conversations_create_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_history_error_enum.rb +96 -0
- data/lib/slack_web_api/models/conversations_history_success_schema.rb +127 -0
- data/lib/slack_web_api/models/conversations_info_error_enum.rb +92 -0
- data/lib/slack_web_api/models/conversations_info_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_invite_error_enum.rb +153 -0
- data/lib/slack_web_api/models/conversations_invite_error_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_join_error_enum.rb +121 -0
- data/lib/slack_web_api/models/conversations_join_success_schema.rb +102 -0
- data/lib/slack_web_api/models/conversations_kick_error_enum.rb +121 -0
- data/lib/slack_web_api/models/conversations_kick_success_schema.rb +71 -0
- data/lib/slack_web_api/models/conversations_leave_error_enum.rb +129 -0
- data/lib/slack_web_api/models/conversations_leave_success_schema.rb +83 -0
- data/lib/slack_web_api/models/conversations_list_error_enum.rb +84 -0
- data/lib/slack_web_api/models/conversations_list_success_schema.rb +92 -0
- data/lib/slack_web_api/models/conversations_mark_error_enum.rb +105 -0
- data/lib/slack_web_api/models/conversations_mark_success_schema.rb +71 -0
- data/lib/slack_web_api/models/conversations_members_error_enum.rb +100 -0
- data/lib/slack_web_api/models/conversations_members_success_schema.rb +89 -0
- data/lib/slack_web_api/models/conversations_open_error_enum.rb +121 -0
- data/lib/slack_web_api/models/conversations_open_success_schema.rb +102 -0
- data/lib/slack_web_api/models/conversations_rename_error_enum.rb +129 -0
- data/lib/slack_web_api/models/conversations_rename_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_replies_error_enum.rb +96 -0
- data/lib/slack_web_api/models/conversations_replies_success_schema.rb +90 -0
- data/lib/slack_web_api/models/conversations_set_purpose_error_enum.rb +113 -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_error_enum.rb +121 -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_error_enum.rb +136 -0
- data/lib/slack_web_api/models/dialog_open_schema.rb +71 -0
- data/lib/slack_web_api/models/dnd_end_dnd_error_enum.rb +108 -0
- data/lib/slack_web_api/models/dnd_end_dnd_schema.rb +71 -0
- data/lib/slack_web_api/models/dnd_end_snooze_error_enum.rb +112 -0
- data/lib/slack_web_api/models/dnd_end_snooze_schema.rb +111 -0
- data/lib/slack_web_api/models/dnd_info_error_enum.rb +104 -0
- data/lib/slack_web_api/models/dnd_info_schema.rb +136 -0
- data/lib/slack_web_api/models/dnd_set_snooze_error_enum.rb +116 -0
- data/lib/slack_web_api/models/dnd_set_snooze_schema.rb +102 -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_error_enum.rb +92 -0
- data/lib/slack_web_api/models/files_comments_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/files_delete_error_enum.rb +100 -0
- data/lib/slack_web_api/models/files_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/files_info_error_enum.rb +100 -0
- data/lib/slack_web_api/models/files_info_schema.rb +133 -0
- data/lib/slack_web_api/models/files_list_error_enum.rb +100 -0
- data/lib/slack_web_api/models/files_list_schema.rb +97 -0
- data/lib/slack_web_api/models/files_revoke_public_url_error_enum.rb +112 -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_error_enum.rb +116 -0
- data/lib/slack_web_api/models/files_shared_public_url_schema.rb +80 -0
- data/lib/slack_web_api/models/files_upload_error_enum.rb +108 -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_error_enum.rb +108 -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_error_enum.rb +120 -0
- data/lib/slack_web_api/models/pins_add_schema.rb +71 -0
- data/lib/slack_web_api/models/pins_list_error_enum.rb +92 -0
- data/lib/slack_web_api/models/pins_remove_error_enum.rb +116 -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_error_enum.rb +116 -0
- data/lib/slack_web_api/models/reactions_add_schema.rb +71 -0
- data/lib/slack_web_api/models/reactions_get_error_enum.rb +104 -0
- data/lib/slack_web_api/models/reactions_list_error_enum.rb +96 -0
- data/lib/slack_web_api/models/reactions_list_schema.rb +102 -0
- data/lib/slack_web_api/models/reactions_remove_error_enum.rb +120 -0
- data/lib/slack_web_api/models/reactions_remove_schema.rb +71 -0
- data/lib/slack_web_api/models/reminders_add_error_enum.rb +128 -0
- data/lib/slack_web_api/models/reminders_add_schema.rb +80 -0
- data/lib/slack_web_api/models/reminders_complete_error_enum.rb +116 -0
- data/lib/slack_web_api/models/reminders_complete_schema.rb +71 -0
- data/lib/slack_web_api/models/reminders_delete_error_enum.rb +108 -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_error_enum.rb +96 -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_error_enum.rb +128 -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_error_enum.rb +128 -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_error_enum.rb +112 -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_error_enum.rb +92 -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_error_enum.rb +112 -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_error_enum.rb +116 -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_error_enum.rb +120 -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_error_enum.rb +117 -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_error_enum.rb +92 -0
- data/lib/slack_web_api/models/users_info_success_schema.rb +80 -0
- data/lib/slack_web_api/models/users_list_error_enum.rb +100 -0
- data/lib/slack_web_api/models/users_list_schema.rb +102 -0
- data/lib/slack_web_api/models/users_lookup_by_email_error_enum.rb +100 -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_error_enum.rb +108 -0
- data/lib/slack_web_api/models/users_profile_get_schema.rb +80 -0
- data/lib/slack_web_api/models/users_profile_set_error_enum.rb +128 -0
- data/lib/slack_web_api/models/users_profile_set_schema.rb +100 -0
- data/lib/slack_web_api/models/users_set_active_error_enum.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_error_enum.rb +120 -0
- data/lib/slack_web_api/models/users_set_photo_schema.rb +80 -0
- data/lib/slack_web_api/models/users_set_presence_error_enum.rb +104 -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,260 @@
|
|
|
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
|
+
# SubteamUsergroupObject Model.
|
|
8
|
+
class SubteamUsergroupObject < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [TrueClass | FalseClass]
|
|
14
|
+
attr_accessor :auto_provision
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Object]
|
|
18
|
+
attr_accessor :auto_type
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Integer]
|
|
22
|
+
attr_accessor :channel_count
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :created_by
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [Integer]
|
|
30
|
+
attr_accessor :date_create
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [Integer]
|
|
34
|
+
attr_accessor :date_delete
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [Integer]
|
|
38
|
+
attr_accessor :date_update
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [Object]
|
|
42
|
+
attr_accessor :deleted_by
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :description
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [String]
|
|
50
|
+
attr_accessor :enterprise_subteam_id
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for this method
|
|
53
|
+
# @return [String]
|
|
54
|
+
attr_accessor :handle
|
|
55
|
+
|
|
56
|
+
# TODO: Write general description for this method
|
|
57
|
+
# @return [String]
|
|
58
|
+
attr_accessor :id
|
|
59
|
+
|
|
60
|
+
# TODO: Write general description for this method
|
|
61
|
+
# @return [TrueClass | FalseClass]
|
|
62
|
+
attr_accessor :is_external
|
|
63
|
+
|
|
64
|
+
# TODO: Write general description for this method
|
|
65
|
+
# @return [TrueClass | FalseClass]
|
|
66
|
+
attr_accessor :is_subteam
|
|
67
|
+
|
|
68
|
+
# TODO: Write general description for this method
|
|
69
|
+
# @return [TrueClass | FalseClass]
|
|
70
|
+
attr_accessor :is_usergroup
|
|
71
|
+
|
|
72
|
+
# TODO: Write general description for this method
|
|
73
|
+
# @return [String]
|
|
74
|
+
attr_accessor :name
|
|
75
|
+
|
|
76
|
+
# TODO: Write general description for this method
|
|
77
|
+
# @return [Prefs]
|
|
78
|
+
attr_accessor :prefs
|
|
79
|
+
|
|
80
|
+
# TODO: Write general description for this method
|
|
81
|
+
# @return [String]
|
|
82
|
+
attr_accessor :team_id
|
|
83
|
+
|
|
84
|
+
# TODO: Write general description for this method
|
|
85
|
+
# @return [String]
|
|
86
|
+
attr_accessor :updated_by
|
|
87
|
+
|
|
88
|
+
# TODO: Write general description for this method
|
|
89
|
+
# @return [Integer]
|
|
90
|
+
attr_accessor :user_count
|
|
91
|
+
|
|
92
|
+
# TODO: Write general description for this method
|
|
93
|
+
# @return [Array[String]]
|
|
94
|
+
attr_accessor :users
|
|
95
|
+
|
|
96
|
+
# A mapping from model property names to API property names.
|
|
97
|
+
def self.names
|
|
98
|
+
@_hash = {} if @_hash.nil?
|
|
99
|
+
@_hash['auto_provision'] = 'auto_provision'
|
|
100
|
+
@_hash['auto_type'] = 'auto_type'
|
|
101
|
+
@_hash['channel_count'] = 'channel_count'
|
|
102
|
+
@_hash['created_by'] = 'created_by'
|
|
103
|
+
@_hash['date_create'] = 'date_create'
|
|
104
|
+
@_hash['date_delete'] = 'date_delete'
|
|
105
|
+
@_hash['date_update'] = 'date_update'
|
|
106
|
+
@_hash['deleted_by'] = 'deleted_by'
|
|
107
|
+
@_hash['description'] = 'description'
|
|
108
|
+
@_hash['enterprise_subteam_id'] = 'enterprise_subteam_id'
|
|
109
|
+
@_hash['handle'] = 'handle'
|
|
110
|
+
@_hash['id'] = 'id'
|
|
111
|
+
@_hash['is_external'] = 'is_external'
|
|
112
|
+
@_hash['is_subteam'] = 'is_subteam'
|
|
113
|
+
@_hash['is_usergroup'] = 'is_usergroup'
|
|
114
|
+
@_hash['name'] = 'name'
|
|
115
|
+
@_hash['prefs'] = 'prefs'
|
|
116
|
+
@_hash['team_id'] = 'team_id'
|
|
117
|
+
@_hash['updated_by'] = 'updated_by'
|
|
118
|
+
@_hash['user_count'] = 'user_count'
|
|
119
|
+
@_hash['users'] = 'users'
|
|
120
|
+
@_hash
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# An array for optional fields
|
|
124
|
+
def self.optionals
|
|
125
|
+
%w[
|
|
126
|
+
channel_count
|
|
127
|
+
user_count
|
|
128
|
+
users
|
|
129
|
+
]
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# An array for nullable fields
|
|
133
|
+
def self.nullables
|
|
134
|
+
[]
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
def initialize(auto_provision:, auto_type:, created_by:, date_create:,
|
|
138
|
+
date_delete:, date_update:, deleted_by:, description:,
|
|
139
|
+
enterprise_subteam_id:, handle:, id:, is_external:,
|
|
140
|
+
is_subteam:, is_usergroup:, name:, prefs:, team_id:,
|
|
141
|
+
updated_by:, channel_count: SKIP, user_count: SKIP,
|
|
142
|
+
users: SKIP, additional_properties: nil)
|
|
143
|
+
# Add additional model properties to the instance
|
|
144
|
+
additional_properties = {} if additional_properties.nil?
|
|
145
|
+
|
|
146
|
+
@auto_provision = auto_provision
|
|
147
|
+
@auto_type = auto_type
|
|
148
|
+
@channel_count = channel_count unless channel_count == SKIP
|
|
149
|
+
@created_by = created_by
|
|
150
|
+
@date_create = date_create
|
|
151
|
+
@date_delete = date_delete
|
|
152
|
+
@date_update = date_update
|
|
153
|
+
@deleted_by = deleted_by
|
|
154
|
+
@description = description
|
|
155
|
+
@enterprise_subteam_id = enterprise_subteam_id
|
|
156
|
+
@handle = handle
|
|
157
|
+
@id = id
|
|
158
|
+
@is_external = is_external
|
|
159
|
+
@is_subteam = is_subteam
|
|
160
|
+
@is_usergroup = is_usergroup
|
|
161
|
+
@name = name
|
|
162
|
+
@prefs = prefs
|
|
163
|
+
@team_id = team_id
|
|
164
|
+
@updated_by = updated_by
|
|
165
|
+
@user_count = user_count unless user_count == SKIP
|
|
166
|
+
@users = users unless users == SKIP
|
|
167
|
+
@additional_properties = additional_properties
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Creates an instance of the object from a hash.
|
|
171
|
+
def self.from_hash(hash)
|
|
172
|
+
return nil unless hash
|
|
173
|
+
|
|
174
|
+
# Extract variables from the hash.
|
|
175
|
+
auto_provision =
|
|
176
|
+
hash.key?('auto_provision') ? hash['auto_provision'] : nil
|
|
177
|
+
auto_type = hash.key?('auto_type') ? hash['auto_type'] : nil
|
|
178
|
+
created_by = hash.key?('created_by') ? hash['created_by'] : nil
|
|
179
|
+
date_create = hash.key?('date_create') ? hash['date_create'] : nil
|
|
180
|
+
date_delete = hash.key?('date_delete') ? hash['date_delete'] : nil
|
|
181
|
+
date_update = hash.key?('date_update') ? hash['date_update'] : nil
|
|
182
|
+
deleted_by = hash.key?('deleted_by') ? hash['deleted_by'] : nil
|
|
183
|
+
description = hash.key?('description') ? hash['description'] : nil
|
|
184
|
+
enterprise_subteam_id =
|
|
185
|
+
hash.key?('enterprise_subteam_id') ? hash['enterprise_subteam_id'] : nil
|
|
186
|
+
handle = hash.key?('handle') ? hash['handle'] : nil
|
|
187
|
+
id = hash.key?('id') ? hash['id'] : nil
|
|
188
|
+
is_external = hash.key?('is_external') ? hash['is_external'] : nil
|
|
189
|
+
is_subteam = hash.key?('is_subteam') ? hash['is_subteam'] : nil
|
|
190
|
+
is_usergroup = hash.key?('is_usergroup') ? hash['is_usergroup'] : nil
|
|
191
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
192
|
+
prefs = Prefs.from_hash(hash['prefs']) if hash['prefs']
|
|
193
|
+
team_id = hash.key?('team_id') ? hash['team_id'] : nil
|
|
194
|
+
updated_by = hash.key?('updated_by') ? hash['updated_by'] : nil
|
|
195
|
+
channel_count = hash.key?('channel_count') ? hash['channel_count'] : SKIP
|
|
196
|
+
user_count = hash.key?('user_count') ? hash['user_count'] : SKIP
|
|
197
|
+
users = hash.key?('users') ? hash['users'] : SKIP
|
|
198
|
+
|
|
199
|
+
# Create a new hash for additional properties, removing known properties.
|
|
200
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
201
|
+
|
|
202
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
203
|
+
new_hash, proc { |value| value }
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
# Create object from extracted values.
|
|
207
|
+
SubteamUsergroupObject.new(auto_provision: auto_provision,
|
|
208
|
+
auto_type: auto_type,
|
|
209
|
+
created_by: created_by,
|
|
210
|
+
date_create: date_create,
|
|
211
|
+
date_delete: date_delete,
|
|
212
|
+
date_update: date_update,
|
|
213
|
+
deleted_by: deleted_by,
|
|
214
|
+
description: description,
|
|
215
|
+
enterprise_subteam_id: enterprise_subteam_id,
|
|
216
|
+
handle: handle,
|
|
217
|
+
id: id,
|
|
218
|
+
is_external: is_external,
|
|
219
|
+
is_subteam: is_subteam,
|
|
220
|
+
is_usergroup: is_usergroup,
|
|
221
|
+
name: name,
|
|
222
|
+
prefs: prefs,
|
|
223
|
+
team_id: team_id,
|
|
224
|
+
updated_by: updated_by,
|
|
225
|
+
channel_count: channel_count,
|
|
226
|
+
user_count: user_count,
|
|
227
|
+
users: users,
|
|
228
|
+
additional_properties: additional_properties)
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Provides a human-readable string representation of the object.
|
|
232
|
+
def to_s
|
|
233
|
+
class_name = self.class.name.split('::').last
|
|
234
|
+
"<#{class_name} auto_provision: #{@auto_provision}, auto_type: #{@auto_type},"\
|
|
235
|
+
" channel_count: #{@channel_count}, created_by: #{@created_by}, date_create:"\
|
|
236
|
+
" #{@date_create}, date_delete: #{@date_delete}, date_update: #{@date_update}, deleted_by:"\
|
|
237
|
+
" #{@deleted_by}, description: #{@description}, enterprise_subteam_id:"\
|
|
238
|
+
" #{@enterprise_subteam_id}, handle: #{@handle}, id: #{@id}, is_external: #{@is_external},"\
|
|
239
|
+
" is_subteam: #{@is_subteam}, is_usergroup: #{@is_usergroup}, name: #{@name}, prefs:"\
|
|
240
|
+
" #{@prefs}, team_id: #{@team_id}, updated_by: #{@updated_by}, user_count: #{@user_count},"\
|
|
241
|
+
" users: #{@users}, additional_properties: #{@additional_properties}>"
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
245
|
+
def inspect
|
|
246
|
+
class_name = self.class.name.split('::').last
|
|
247
|
+
"<#{class_name} auto_provision: #{@auto_provision.inspect}, auto_type:"\
|
|
248
|
+
" #{@auto_type.inspect}, channel_count: #{@channel_count.inspect}, created_by:"\
|
|
249
|
+
" #{@created_by.inspect}, date_create: #{@date_create.inspect}, date_delete:"\
|
|
250
|
+
" #{@date_delete.inspect}, date_update: #{@date_update.inspect}, deleted_by:"\
|
|
251
|
+
" #{@deleted_by.inspect}, description: #{@description.inspect}, enterprise_subteam_id:"\
|
|
252
|
+
" #{@enterprise_subteam_id.inspect}, handle: #{@handle.inspect}, id: #{@id.inspect},"\
|
|
253
|
+
" is_external: #{@is_external.inspect}, is_subteam: #{@is_subteam.inspect}, is_usergroup:"\
|
|
254
|
+
" #{@is_usergroup.inspect}, name: #{@name.inspect}, prefs: #{@prefs.inspect}, team_id:"\
|
|
255
|
+
" #{@team_id.inspect}, updated_by: #{@updated_by.inspect}, user_count:"\
|
|
256
|
+
" #{@user_count.inspect}, users: #{@users.inspect}, additional_properties:"\
|
|
257
|
+
" #{@additional_properties}>"
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
# Team Model.
|
|
8
|
+
class Team < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [ResourcesInInfoFromAppsPermissionsInfo]
|
|
14
|
+
attr_accessor :resources
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Array[String]]
|
|
18
|
+
attr_accessor :scopes
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['resources'] = 'resources'
|
|
24
|
+
@_hash['scopes'] = 'scopes'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
[]
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for nullable fields
|
|
34
|
+
def self.nullables
|
|
35
|
+
[]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def initialize(resources:, scopes:, additional_properties: nil)
|
|
39
|
+
# Add additional model properties to the instance
|
|
40
|
+
additional_properties = {} if additional_properties.nil?
|
|
41
|
+
|
|
42
|
+
@resources = resources
|
|
43
|
+
@scopes = scopes
|
|
44
|
+
@additional_properties = additional_properties
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Creates an instance of the object from a hash.
|
|
48
|
+
def self.from_hash(hash)
|
|
49
|
+
return nil unless hash
|
|
50
|
+
|
|
51
|
+
# Extract variables from the hash.
|
|
52
|
+
resources = ResourcesInInfoFromAppsPermissionsInfo.from_hash(hash['resources']) if
|
|
53
|
+
hash['resources']
|
|
54
|
+
scopes = hash.key?('scopes') ? hash['scopes'] : nil
|
|
55
|
+
|
|
56
|
+
# Create a new hash for additional properties, removing known properties.
|
|
57
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
58
|
+
|
|
59
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
60
|
+
new_hash, proc { |value| value }
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
# Create object from extracted values.
|
|
64
|
+
Team.new(resources: resources,
|
|
65
|
+
scopes: scopes,
|
|
66
|
+
additional_properties: additional_properties)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Provides a human-readable string representation of the object.
|
|
70
|
+
def to_s
|
|
71
|
+
class_name = self.class.name.split('::').last
|
|
72
|
+
"<#{class_name} resources: #{@resources}, scopes: #{@scopes}, additional_properties:"\
|
|
73
|
+
" #{@additional_properties}>"
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
77
|
+
def inspect
|
|
78
|
+
class_name = self.class.name.split('::').last
|
|
79
|
+
"<#{class_name} resources: #{@resources.inspect}, scopes: #{@scopes.inspect},"\
|
|
80
|
+
" additional_properties: #{@additional_properties}>"
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
# Team1 Model.
|
|
8
|
+
class Team1 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :domain
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['domain'] = 'domain'
|
|
28
|
+
@_hash['id'] = 'id'
|
|
29
|
+
@_hash['name'] = 'name'
|
|
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(domain:, id:, name:, additional_properties: nil)
|
|
44
|
+
# Add additional model properties to the instance
|
|
45
|
+
additional_properties = {} if additional_properties.nil?
|
|
46
|
+
|
|
47
|
+
@domain = domain
|
|
48
|
+
@id = id
|
|
49
|
+
@name = name
|
|
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
|
+
domain = hash.key?('domain') ? hash['domain'] : nil
|
|
59
|
+
id = hash.key?('id') ? hash['id'] : nil
|
|
60
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
61
|
+
|
|
62
|
+
# Create a new hash for additional properties, removing known properties.
|
|
63
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
64
|
+
|
|
65
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
66
|
+
new_hash, proc { |value| value }
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
# Create object from extracted values.
|
|
70
|
+
Team1.new(domain: domain,
|
|
71
|
+
id: id,
|
|
72
|
+
name: name,
|
|
73
|
+
additional_properties: additional_properties)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Provides a human-readable string representation of the object.
|
|
77
|
+
def to_s
|
|
78
|
+
class_name = self.class.name.split('::').last
|
|
79
|
+
"<#{class_name} domain: #{@domain}, id: #{@id}, name: #{@name}, additional_properties:"\
|
|
80
|
+
" #{@additional_properties}>"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
84
|
+
def inspect
|
|
85
|
+
class_name = self.class.name.split('::').last
|
|
86
|
+
"<#{class_name} domain: #{@domain.inspect}, id: #{@id.inspect}, name: #{@name.inspect},"\
|
|
87
|
+
" additional_properties: #{@additional_properties}>"
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
# TeamAccessLogsErrorEnum.
|
|
8
|
+
class TeamAccessLogsErrorEnum
|
|
9
|
+
TEAM_ACCESS_LOGS_ERROR_ENUM = [
|
|
10
|
+
# TODO: Write general description for PAID_ONLY
|
|
11
|
+
PAID_ONLY = 'paid_only'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for OVER_PAGINATION_LIMIT
|
|
14
|
+
OVER_PAGINATION_LIMIT = 'over_pagination_limit'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for NOT_AUTHED
|
|
17
|
+
NOT_AUTHED = 'not_authed'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for INVALID_AUTH
|
|
20
|
+
INVALID_AUTH = 'invalid_auth'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ACCOUNT_INACTIVE
|
|
23
|
+
ACCOUNT_INACTIVE = 'account_inactive'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for TOKEN_REVOKED
|
|
26
|
+
TOKEN_REVOKED = 'token_revoked'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for NO_PERMISSION
|
|
29
|
+
NO_PERMISSION = 'no_permission'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for ORG_LOGIN_REQUIRED
|
|
32
|
+
ORG_LOGIN_REQUIRED = 'org_login_required'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for USER_IS_BOT
|
|
35
|
+
USER_IS_BOT = 'user_is_bot'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for INVALID_ARG_NAME
|
|
38
|
+
INVALID_ARG_NAME = 'invalid_arg_name'.freeze,
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for INVALID_ARRAY_ARG
|
|
41
|
+
INVALID_ARRAY_ARG = 'invalid_array_arg'.freeze,
|
|
42
|
+
|
|
43
|
+
# TODO: Write general description for INVALID_CHARSET
|
|
44
|
+
INVALID_CHARSET = 'invalid_charset'.freeze,
|
|
45
|
+
|
|
46
|
+
# TODO: Write general description for INVALID_FORM_DATA
|
|
47
|
+
INVALID_FORM_DATA = 'invalid_form_data'.freeze,
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for INVALID_POST_TYPE
|
|
50
|
+
INVALID_POST_TYPE = 'invalid_post_type'.freeze,
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for MISSING_POST_TYPE
|
|
53
|
+
MISSING_POST_TYPE = 'missing_post_type'.freeze,
|
|
54
|
+
|
|
55
|
+
# TODO: Write general description for TEAM_ADDED_TO_ORG
|
|
56
|
+
TEAM_ADDED_TO_ORG = 'team_added_to_org'.freeze,
|
|
57
|
+
|
|
58
|
+
# TODO: Write general description for INVALID_JSON
|
|
59
|
+
INVALID_JSON = 'invalid_json'.freeze,
|
|
60
|
+
|
|
61
|
+
# TODO: Write general description for JSON_NOT_OBJECT
|
|
62
|
+
JSON_NOT_OBJECT = 'json_not_object'.freeze,
|
|
63
|
+
|
|
64
|
+
# TODO: Write general description for REQUEST_TIMEOUT
|
|
65
|
+
REQUEST_TIMEOUT = 'request_timeout'.freeze,
|
|
66
|
+
|
|
67
|
+
# TODO: Write general description for UPGRADE_REQUIRED
|
|
68
|
+
UPGRADE_REQUIRED = 'upgrade_required'.freeze,
|
|
69
|
+
|
|
70
|
+
# TODO: Write general description for FATAL_ERROR
|
|
71
|
+
FATAL_ERROR = 'fatal_error'.freeze
|
|
72
|
+
].freeze
|
|
73
|
+
|
|
74
|
+
def self.validate(value)
|
|
75
|
+
return false if value.nil?
|
|
76
|
+
|
|
77
|
+
TEAM_ACCESS_LOGS_ERROR_ENUM.include?(value)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def self.from_value(value, default_value = PAID_ONLY)
|
|
81
|
+
return default_value if value.nil?
|
|
82
|
+
|
|
83
|
+
str = value.to_s.strip
|
|
84
|
+
|
|
85
|
+
case str.downcase
|
|
86
|
+
when 'paid_only' then PAID_ONLY
|
|
87
|
+
when 'over_pagination_limit' then OVER_PAGINATION_LIMIT
|
|
88
|
+
when 'not_authed' then NOT_AUTHED
|
|
89
|
+
when 'invalid_auth' then INVALID_AUTH
|
|
90
|
+
when 'account_inactive' then ACCOUNT_INACTIVE
|
|
91
|
+
when 'token_revoked' then TOKEN_REVOKED
|
|
92
|
+
when 'no_permission' then NO_PERMISSION
|
|
93
|
+
when 'org_login_required' then ORG_LOGIN_REQUIRED
|
|
94
|
+
when 'user_is_bot' then USER_IS_BOT
|
|
95
|
+
when 'invalid_arg_name' then INVALID_ARG_NAME
|
|
96
|
+
when 'invalid_array_arg' then INVALID_ARRAY_ARG
|
|
97
|
+
when 'invalid_charset' then INVALID_CHARSET
|
|
98
|
+
when 'invalid_form_data' then INVALID_FORM_DATA
|
|
99
|
+
when 'invalid_post_type' then INVALID_POST_TYPE
|
|
100
|
+
when 'missing_post_type' then MISSING_POST_TYPE
|
|
101
|
+
when 'team_added_to_org' then TEAM_ADDED_TO_ORG
|
|
102
|
+
when 'invalid_json' then INVALID_JSON
|
|
103
|
+
when 'json_not_object' then JSON_NOT_OBJECT
|
|
104
|
+
when 'request_timeout' then REQUEST_TIMEOUT
|
|
105
|
+
when 'upgrade_required' then UPGRADE_REQUIRED
|
|
106
|
+
when 'fatal_error' then FATAL_ERROR
|
|
107
|
+
else
|
|
108
|
+
default_value
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
@@ -0,0 +1,97 @@
|
|
|
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 team.accessLogs method
|
|
8
|
+
class TeamAccessLogsSchema < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Array[Login]]
|
|
14
|
+
attr_accessor :logins
|
|
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 [PagingObject]
|
|
22
|
+
attr_accessor :paging
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['logins'] = 'logins'
|
|
28
|
+
@_hash['ok'] = 'ok'
|
|
29
|
+
@_hash['paging'] = 'paging'
|
|
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(logins:, paging:, additional_properties: nil)
|
|
44
|
+
# Add additional model properties to the instance
|
|
45
|
+
additional_properties = {} if additional_properties.nil?
|
|
46
|
+
|
|
47
|
+
@logins = logins
|
|
48
|
+
@ok = 'True'
|
|
49
|
+
@paging = paging
|
|
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
|
+
# Parameter is an array, so we need to iterate through it
|
|
59
|
+
logins = nil
|
|
60
|
+
unless hash['logins'].nil?
|
|
61
|
+
logins = []
|
|
62
|
+
hash['logins'].each do |structure|
|
|
63
|
+
logins << (Login.from_hash(structure) if structure)
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
logins = nil unless hash.key?('logins')
|
|
68
|
+
paging = PagingObject.from_hash(hash['paging']) if hash['paging']
|
|
69
|
+
|
|
70
|
+
# Create a new hash for additional properties, removing known properties.
|
|
71
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
72
|
+
|
|
73
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
74
|
+
new_hash, proc { |value| value }
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
# Create object from extracted values.
|
|
78
|
+
TeamAccessLogsSchema.new(logins: logins,
|
|
79
|
+
paging: paging,
|
|
80
|
+
additional_properties: additional_properties)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Provides a human-readable string representation of the object.
|
|
84
|
+
def to_s
|
|
85
|
+
class_name = self.class.name.split('::').last
|
|
86
|
+
"<#{class_name} logins: #{@logins}, ok: #{@ok}, paging: #{@paging}, additional_properties:"\
|
|
87
|
+
" #{@additional_properties}>"
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
91
|
+
def inspect
|
|
92
|
+
class_name = self.class.name.split('::').last
|
|
93
|
+
"<#{class_name} logins: #{@logins.inspect}, ok: #{@ok.inspect}, paging: #{@paging.inspect},"\
|
|
94
|
+
" additional_properties: #{@additional_properties}>"
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|