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,542 @@
|
|
|
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
|
+
# UserProfileObject Model.
|
|
8
|
+
class UserProfileObject < 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 :always_active
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :api_app_id
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :avatar_hash
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :bot_id
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :display_name
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :display_name_normalized
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :email
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [Array[Object]]
|
|
42
|
+
attr_accessor :fields
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :first_name
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [Integer]
|
|
50
|
+
attr_accessor :guest_expiration_ts
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for this method
|
|
53
|
+
# @return [String]
|
|
54
|
+
attr_accessor :guest_invited_by
|
|
55
|
+
|
|
56
|
+
# TODO: Write general description for this method
|
|
57
|
+
# @return [String]
|
|
58
|
+
attr_accessor :image_1024
|
|
59
|
+
|
|
60
|
+
# TODO: Write general description for this method
|
|
61
|
+
# @return [String]
|
|
62
|
+
attr_accessor :image_192
|
|
63
|
+
|
|
64
|
+
# TODO: Write general description for this method
|
|
65
|
+
# @return [String]
|
|
66
|
+
attr_accessor :image_24
|
|
67
|
+
|
|
68
|
+
# TODO: Write general description for this method
|
|
69
|
+
# @return [String]
|
|
70
|
+
attr_accessor :image_32
|
|
71
|
+
|
|
72
|
+
# TODO: Write general description for this method
|
|
73
|
+
# @return [String]
|
|
74
|
+
attr_accessor :image_48
|
|
75
|
+
|
|
76
|
+
# TODO: Write general description for this method
|
|
77
|
+
# @return [String]
|
|
78
|
+
attr_accessor :image_512
|
|
79
|
+
|
|
80
|
+
# TODO: Write general description for this method
|
|
81
|
+
# @return [String]
|
|
82
|
+
attr_accessor :image_72
|
|
83
|
+
|
|
84
|
+
# TODO: Write general description for this method
|
|
85
|
+
# @return [String]
|
|
86
|
+
attr_accessor :image_original
|
|
87
|
+
|
|
88
|
+
# TODO: Write general description for this method
|
|
89
|
+
# @return [TrueClass | FalseClass]
|
|
90
|
+
attr_accessor :is_app_user
|
|
91
|
+
|
|
92
|
+
# TODO: Write general description for this method
|
|
93
|
+
# @return [TrueClass | FalseClass]
|
|
94
|
+
attr_accessor :is_custom_image
|
|
95
|
+
|
|
96
|
+
# TODO: Write general description for this method
|
|
97
|
+
# @return [TrueClass | FalseClass]
|
|
98
|
+
attr_accessor :is_restricted
|
|
99
|
+
|
|
100
|
+
# TODO: Write general description for this method
|
|
101
|
+
# @return [TrueClass | FalseClass]
|
|
102
|
+
attr_accessor :is_ultra_restricted
|
|
103
|
+
|
|
104
|
+
# TODO: Write general description for this method
|
|
105
|
+
# @return [String]
|
|
106
|
+
attr_accessor :last_avatar_image_hash
|
|
107
|
+
|
|
108
|
+
# TODO: Write general description for this method
|
|
109
|
+
# @return [String]
|
|
110
|
+
attr_accessor :last_name
|
|
111
|
+
|
|
112
|
+
# TODO: Write general description for this method
|
|
113
|
+
# @return [Integer]
|
|
114
|
+
attr_accessor :memberships_count
|
|
115
|
+
|
|
116
|
+
# TODO: Write general description for this method
|
|
117
|
+
# @return [String]
|
|
118
|
+
attr_accessor :name
|
|
119
|
+
|
|
120
|
+
# TODO: Write general description for this method
|
|
121
|
+
# @return [String]
|
|
122
|
+
attr_accessor :phone
|
|
123
|
+
|
|
124
|
+
# TODO: Write general description for this method
|
|
125
|
+
# @return [String]
|
|
126
|
+
attr_accessor :pronouns
|
|
127
|
+
|
|
128
|
+
# TODO: Write general description for this method
|
|
129
|
+
# @return [String]
|
|
130
|
+
attr_accessor :real_name
|
|
131
|
+
|
|
132
|
+
# TODO: Write general description for this method
|
|
133
|
+
# @return [String]
|
|
134
|
+
attr_accessor :real_name_normalized
|
|
135
|
+
|
|
136
|
+
# TODO: Write general description for this method
|
|
137
|
+
# @return [String]
|
|
138
|
+
attr_accessor :skype
|
|
139
|
+
|
|
140
|
+
# TODO: Write general description for this method
|
|
141
|
+
# @return [String]
|
|
142
|
+
attr_accessor :status_default_emoji
|
|
143
|
+
|
|
144
|
+
# TODO: Write general description for this method
|
|
145
|
+
# @return [String]
|
|
146
|
+
attr_accessor :status_default_text
|
|
147
|
+
|
|
148
|
+
# TODO: Write general description for this method
|
|
149
|
+
# @return [String]
|
|
150
|
+
attr_accessor :status_default_text_canonical
|
|
151
|
+
|
|
152
|
+
# TODO: Write general description for this method
|
|
153
|
+
# @return [String]
|
|
154
|
+
attr_accessor :status_emoji
|
|
155
|
+
|
|
156
|
+
# TODO: Write general description for this method
|
|
157
|
+
# @return [Integer]
|
|
158
|
+
attr_accessor :status_expiration
|
|
159
|
+
|
|
160
|
+
# TODO: Write general description for this method
|
|
161
|
+
# @return [String]
|
|
162
|
+
attr_accessor :status_text
|
|
163
|
+
|
|
164
|
+
# TODO: Write general description for this method
|
|
165
|
+
# @return [String]
|
|
166
|
+
attr_accessor :status_text_canonical
|
|
167
|
+
|
|
168
|
+
# TODO: Write general description for this method
|
|
169
|
+
# @return [String]
|
|
170
|
+
attr_accessor :team
|
|
171
|
+
|
|
172
|
+
# TODO: Write general description for this method
|
|
173
|
+
# @return [String]
|
|
174
|
+
attr_accessor :title
|
|
175
|
+
|
|
176
|
+
# TODO: Write general description for this method
|
|
177
|
+
# @return [Integer]
|
|
178
|
+
attr_accessor :updated
|
|
179
|
+
|
|
180
|
+
# TODO: Write general description for this method
|
|
181
|
+
# @return [String]
|
|
182
|
+
attr_accessor :user_id
|
|
183
|
+
|
|
184
|
+
# TODO: Write general description for this method
|
|
185
|
+
# @return [String]
|
|
186
|
+
attr_accessor :username
|
|
187
|
+
|
|
188
|
+
# A mapping from model property names to API property names.
|
|
189
|
+
def self.names
|
|
190
|
+
@_hash = {} if @_hash.nil?
|
|
191
|
+
@_hash['always_active'] = 'always_active'
|
|
192
|
+
@_hash['api_app_id'] = 'api_app_id'
|
|
193
|
+
@_hash['avatar_hash'] = 'avatar_hash'
|
|
194
|
+
@_hash['bot_id'] = 'bot_id'
|
|
195
|
+
@_hash['display_name'] = 'display_name'
|
|
196
|
+
@_hash['display_name_normalized'] = 'display_name_normalized'
|
|
197
|
+
@_hash['email'] = 'email'
|
|
198
|
+
@_hash['fields'] = 'fields'
|
|
199
|
+
@_hash['first_name'] = 'first_name'
|
|
200
|
+
@_hash['guest_expiration_ts'] = 'guest_expiration_ts'
|
|
201
|
+
@_hash['guest_invited_by'] = 'guest_invited_by'
|
|
202
|
+
@_hash['image_1024'] = 'image_1024'
|
|
203
|
+
@_hash['image_192'] = 'image_192'
|
|
204
|
+
@_hash['image_24'] = 'image_24'
|
|
205
|
+
@_hash['image_32'] = 'image_32'
|
|
206
|
+
@_hash['image_48'] = 'image_48'
|
|
207
|
+
@_hash['image_512'] = 'image_512'
|
|
208
|
+
@_hash['image_72'] = 'image_72'
|
|
209
|
+
@_hash['image_original'] = 'image_original'
|
|
210
|
+
@_hash['is_app_user'] = 'is_app_user'
|
|
211
|
+
@_hash['is_custom_image'] = 'is_custom_image'
|
|
212
|
+
@_hash['is_restricted'] = 'is_restricted'
|
|
213
|
+
@_hash['is_ultra_restricted'] = 'is_ultra_restricted'
|
|
214
|
+
@_hash['last_avatar_image_hash'] = 'last_avatar_image_hash'
|
|
215
|
+
@_hash['last_name'] = 'last_name'
|
|
216
|
+
@_hash['memberships_count'] = 'memberships_count'
|
|
217
|
+
@_hash['name'] = 'name'
|
|
218
|
+
@_hash['phone'] = 'phone'
|
|
219
|
+
@_hash['pronouns'] = 'pronouns'
|
|
220
|
+
@_hash['real_name'] = 'real_name'
|
|
221
|
+
@_hash['real_name_normalized'] = 'real_name_normalized'
|
|
222
|
+
@_hash['skype'] = 'skype'
|
|
223
|
+
@_hash['status_default_emoji'] = 'status_default_emoji'
|
|
224
|
+
@_hash['status_default_text'] = 'status_default_text'
|
|
225
|
+
@_hash['status_default_text_canonical'] =
|
|
226
|
+
'status_default_text_canonical'
|
|
227
|
+
@_hash['status_emoji'] = 'status_emoji'
|
|
228
|
+
@_hash['status_expiration'] = 'status_expiration'
|
|
229
|
+
@_hash['status_text'] = 'status_text'
|
|
230
|
+
@_hash['status_text_canonical'] = 'status_text_canonical'
|
|
231
|
+
@_hash['team'] = 'team'
|
|
232
|
+
@_hash['title'] = 'title'
|
|
233
|
+
@_hash['updated'] = 'updated'
|
|
234
|
+
@_hash['user_id'] = 'user_id'
|
|
235
|
+
@_hash['username'] = 'username'
|
|
236
|
+
@_hash
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# An array for optional fields
|
|
240
|
+
def self.optionals
|
|
241
|
+
%w[
|
|
242
|
+
always_active
|
|
243
|
+
api_app_id
|
|
244
|
+
bot_id
|
|
245
|
+
email
|
|
246
|
+
first_name
|
|
247
|
+
guest_expiration_ts
|
|
248
|
+
guest_invited_by
|
|
249
|
+
image_1024
|
|
250
|
+
image_192
|
|
251
|
+
image_24
|
|
252
|
+
image_32
|
|
253
|
+
image_48
|
|
254
|
+
image_512
|
|
255
|
+
image_72
|
|
256
|
+
image_original
|
|
257
|
+
is_app_user
|
|
258
|
+
is_custom_image
|
|
259
|
+
is_restricted
|
|
260
|
+
is_ultra_restricted
|
|
261
|
+
last_avatar_image_hash
|
|
262
|
+
last_name
|
|
263
|
+
memberships_count
|
|
264
|
+
name
|
|
265
|
+
pronouns
|
|
266
|
+
status_default_emoji
|
|
267
|
+
status_default_text
|
|
268
|
+
status_default_text_canonical
|
|
269
|
+
status_expiration
|
|
270
|
+
status_text_canonical
|
|
271
|
+
team
|
|
272
|
+
updated
|
|
273
|
+
user_id
|
|
274
|
+
username
|
|
275
|
+
]
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# An array for nullable fields
|
|
279
|
+
def self.nullables
|
|
280
|
+
%w[
|
|
281
|
+
email
|
|
282
|
+
fields
|
|
283
|
+
first_name
|
|
284
|
+
guest_expiration_ts
|
|
285
|
+
guest_invited_by
|
|
286
|
+
image_1024
|
|
287
|
+
image_192
|
|
288
|
+
image_24
|
|
289
|
+
image_32
|
|
290
|
+
image_48
|
|
291
|
+
image_512
|
|
292
|
+
image_72
|
|
293
|
+
image_original
|
|
294
|
+
is_restricted
|
|
295
|
+
is_ultra_restricted
|
|
296
|
+
last_name
|
|
297
|
+
name
|
|
298
|
+
status_default_text_canonical
|
|
299
|
+
status_text_canonical
|
|
300
|
+
username
|
|
301
|
+
]
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
def initialize(avatar_hash:, display_name:, display_name_normalized:,
|
|
305
|
+
fields:, phone:, real_name:, real_name_normalized:, skype:,
|
|
306
|
+
status_emoji:, status_text:, title:, always_active: SKIP,
|
|
307
|
+
api_app_id: SKIP, bot_id: SKIP, email: SKIP,
|
|
308
|
+
first_name: SKIP, guest_expiration_ts: SKIP,
|
|
309
|
+
guest_invited_by: SKIP, image_1024: SKIP, image_192: SKIP,
|
|
310
|
+
image_24: SKIP, image_32: SKIP, image_48: SKIP,
|
|
311
|
+
image_512: SKIP, image_72: SKIP, image_original: SKIP,
|
|
312
|
+
is_app_user: SKIP, is_custom_image: SKIP,
|
|
313
|
+
is_restricted: SKIP, is_ultra_restricted: SKIP,
|
|
314
|
+
last_avatar_image_hash: SKIP, last_name: SKIP,
|
|
315
|
+
memberships_count: SKIP, name: SKIP, pronouns: SKIP,
|
|
316
|
+
status_default_emoji: SKIP, status_default_text: SKIP,
|
|
317
|
+
status_default_text_canonical: SKIP, status_expiration: SKIP,
|
|
318
|
+
status_text_canonical: SKIP, team: SKIP, updated: SKIP,
|
|
319
|
+
user_id: SKIP, username: SKIP, additional_properties: nil)
|
|
320
|
+
# Add additional model properties to the instance
|
|
321
|
+
additional_properties = {} if additional_properties.nil?
|
|
322
|
+
|
|
323
|
+
@always_active = always_active unless always_active == SKIP
|
|
324
|
+
@api_app_id = api_app_id unless api_app_id == SKIP
|
|
325
|
+
@avatar_hash = avatar_hash
|
|
326
|
+
@bot_id = bot_id unless bot_id == SKIP
|
|
327
|
+
@display_name = display_name
|
|
328
|
+
@display_name_normalized = display_name_normalized
|
|
329
|
+
@email = email unless email == SKIP
|
|
330
|
+
@fields = fields
|
|
331
|
+
@first_name = first_name unless first_name == SKIP
|
|
332
|
+
@guest_expiration_ts = guest_expiration_ts unless guest_expiration_ts == SKIP
|
|
333
|
+
@guest_invited_by = guest_invited_by unless guest_invited_by == SKIP
|
|
334
|
+
@image_1024 = image_1024 unless image_1024 == SKIP
|
|
335
|
+
@image_192 = image_192 unless image_192 == SKIP
|
|
336
|
+
@image_24 = image_24 unless image_24 == SKIP
|
|
337
|
+
@image_32 = image_32 unless image_32 == SKIP
|
|
338
|
+
@image_48 = image_48 unless image_48 == SKIP
|
|
339
|
+
@image_512 = image_512 unless image_512 == SKIP
|
|
340
|
+
@image_72 = image_72 unless image_72 == SKIP
|
|
341
|
+
@image_original = image_original unless image_original == SKIP
|
|
342
|
+
@is_app_user = is_app_user unless is_app_user == SKIP
|
|
343
|
+
@is_custom_image = is_custom_image unless is_custom_image == SKIP
|
|
344
|
+
@is_restricted = is_restricted unless is_restricted == SKIP
|
|
345
|
+
@is_ultra_restricted = is_ultra_restricted unless is_ultra_restricted == SKIP
|
|
346
|
+
@last_avatar_image_hash = last_avatar_image_hash unless last_avatar_image_hash == SKIP
|
|
347
|
+
@last_name = last_name unless last_name == SKIP
|
|
348
|
+
@memberships_count = memberships_count unless memberships_count == SKIP
|
|
349
|
+
@name = name unless name == SKIP
|
|
350
|
+
@phone = phone
|
|
351
|
+
@pronouns = pronouns unless pronouns == SKIP
|
|
352
|
+
@real_name = real_name
|
|
353
|
+
@real_name_normalized = real_name_normalized
|
|
354
|
+
@skype = skype
|
|
355
|
+
@status_default_emoji = status_default_emoji unless status_default_emoji == SKIP
|
|
356
|
+
@status_default_text = status_default_text unless status_default_text == SKIP
|
|
357
|
+
unless status_default_text_canonical == SKIP
|
|
358
|
+
@status_default_text_canonical =
|
|
359
|
+
status_default_text_canonical
|
|
360
|
+
end
|
|
361
|
+
@status_emoji = status_emoji
|
|
362
|
+
@status_expiration = status_expiration unless status_expiration == SKIP
|
|
363
|
+
@status_text = status_text
|
|
364
|
+
@status_text_canonical = status_text_canonical unless status_text_canonical == SKIP
|
|
365
|
+
@team = team unless team == SKIP
|
|
366
|
+
@title = title
|
|
367
|
+
@updated = updated unless updated == SKIP
|
|
368
|
+
@user_id = user_id unless user_id == SKIP
|
|
369
|
+
@username = username unless username == SKIP
|
|
370
|
+
@additional_properties = additional_properties
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Creates an instance of the object from a hash.
|
|
374
|
+
def self.from_hash(hash)
|
|
375
|
+
return nil unless hash
|
|
376
|
+
|
|
377
|
+
# Extract variables from the hash.
|
|
378
|
+
avatar_hash = hash.key?('avatar_hash') ? hash['avatar_hash'] : nil
|
|
379
|
+
display_name = hash.key?('display_name') ? hash['display_name'] : nil
|
|
380
|
+
display_name_normalized =
|
|
381
|
+
hash.key?('display_name_normalized') ? hash['display_name_normalized'] : nil
|
|
382
|
+
fields = hash.key?('fields') ? hash['fields'] : nil
|
|
383
|
+
phone = hash.key?('phone') ? hash['phone'] : nil
|
|
384
|
+
real_name = hash.key?('real_name') ? hash['real_name'] : nil
|
|
385
|
+
real_name_normalized =
|
|
386
|
+
hash.key?('real_name_normalized') ? hash['real_name_normalized'] : nil
|
|
387
|
+
skype = hash.key?('skype') ? hash['skype'] : nil
|
|
388
|
+
status_emoji = hash.key?('status_emoji') ? hash['status_emoji'] : nil
|
|
389
|
+
status_text = hash.key?('status_text') ? hash['status_text'] : nil
|
|
390
|
+
title = hash.key?('title') ? hash['title'] : nil
|
|
391
|
+
always_active = hash.key?('always_active') ? hash['always_active'] : SKIP
|
|
392
|
+
api_app_id = hash.key?('api_app_id') ? hash['api_app_id'] : SKIP
|
|
393
|
+
bot_id = hash.key?('bot_id') ? hash['bot_id'] : SKIP
|
|
394
|
+
email = hash.key?('email') ? hash['email'] : SKIP
|
|
395
|
+
first_name = hash.key?('first_name') ? hash['first_name'] : SKIP
|
|
396
|
+
guest_expiration_ts =
|
|
397
|
+
hash.key?('guest_expiration_ts') ? hash['guest_expiration_ts'] : SKIP
|
|
398
|
+
guest_invited_by =
|
|
399
|
+
hash.key?('guest_invited_by') ? hash['guest_invited_by'] : SKIP
|
|
400
|
+
image_1024 = hash.key?('image_1024') ? hash['image_1024'] : SKIP
|
|
401
|
+
image_192 = hash.key?('image_192') ? hash['image_192'] : SKIP
|
|
402
|
+
image_24 = hash.key?('image_24') ? hash['image_24'] : SKIP
|
|
403
|
+
image_32 = hash.key?('image_32') ? hash['image_32'] : SKIP
|
|
404
|
+
image_48 = hash.key?('image_48') ? hash['image_48'] : SKIP
|
|
405
|
+
image_512 = hash.key?('image_512') ? hash['image_512'] : SKIP
|
|
406
|
+
image_72 = hash.key?('image_72') ? hash['image_72'] : SKIP
|
|
407
|
+
image_original =
|
|
408
|
+
hash.key?('image_original') ? hash['image_original'] : SKIP
|
|
409
|
+
is_app_user = hash.key?('is_app_user') ? hash['is_app_user'] : SKIP
|
|
410
|
+
is_custom_image =
|
|
411
|
+
hash.key?('is_custom_image') ? hash['is_custom_image'] : SKIP
|
|
412
|
+
is_restricted = hash.key?('is_restricted') ? hash['is_restricted'] : SKIP
|
|
413
|
+
is_ultra_restricted =
|
|
414
|
+
hash.key?('is_ultra_restricted') ? hash['is_ultra_restricted'] : SKIP
|
|
415
|
+
last_avatar_image_hash =
|
|
416
|
+
hash.key?('last_avatar_image_hash') ? hash['last_avatar_image_hash'] : SKIP
|
|
417
|
+
last_name = hash.key?('last_name') ? hash['last_name'] : SKIP
|
|
418
|
+
memberships_count =
|
|
419
|
+
hash.key?('memberships_count') ? hash['memberships_count'] : SKIP
|
|
420
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
|
421
|
+
pronouns = hash.key?('pronouns') ? hash['pronouns'] : SKIP
|
|
422
|
+
status_default_emoji =
|
|
423
|
+
hash.key?('status_default_emoji') ? hash['status_default_emoji'] : SKIP
|
|
424
|
+
status_default_text =
|
|
425
|
+
hash.key?('status_default_text') ? hash['status_default_text'] : SKIP
|
|
426
|
+
status_default_text_canonical =
|
|
427
|
+
hash.key?('status_default_text_canonical') ? hash['status_default_text_canonical'] : SKIP
|
|
428
|
+
status_expiration =
|
|
429
|
+
hash.key?('status_expiration') ? hash['status_expiration'] : SKIP
|
|
430
|
+
status_text_canonical =
|
|
431
|
+
hash.key?('status_text_canonical') ? hash['status_text_canonical'] : SKIP
|
|
432
|
+
team = hash.key?('team') ? hash['team'] : SKIP
|
|
433
|
+
updated = hash.key?('updated') ? hash['updated'] : SKIP
|
|
434
|
+
user_id = hash.key?('user_id') ? hash['user_id'] : SKIP
|
|
435
|
+
username = hash.key?('username') ? hash['username'] : SKIP
|
|
436
|
+
|
|
437
|
+
# Create a new hash for additional properties, removing known properties.
|
|
438
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
439
|
+
|
|
440
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
441
|
+
new_hash, proc { |value| value }
|
|
442
|
+
)
|
|
443
|
+
|
|
444
|
+
# Create object from extracted values.
|
|
445
|
+
UserProfileObject.new(avatar_hash: avatar_hash,
|
|
446
|
+
display_name: display_name,
|
|
447
|
+
display_name_normalized: display_name_normalized,
|
|
448
|
+
fields: fields,
|
|
449
|
+
phone: phone,
|
|
450
|
+
real_name: real_name,
|
|
451
|
+
real_name_normalized: real_name_normalized,
|
|
452
|
+
skype: skype,
|
|
453
|
+
status_emoji: status_emoji,
|
|
454
|
+
status_text: status_text,
|
|
455
|
+
title: title,
|
|
456
|
+
always_active: always_active,
|
|
457
|
+
api_app_id: api_app_id,
|
|
458
|
+
bot_id: bot_id,
|
|
459
|
+
email: email,
|
|
460
|
+
first_name: first_name,
|
|
461
|
+
guest_expiration_ts: guest_expiration_ts,
|
|
462
|
+
guest_invited_by: guest_invited_by,
|
|
463
|
+
image_1024: image_1024,
|
|
464
|
+
image_192: image_192,
|
|
465
|
+
image_24: image_24,
|
|
466
|
+
image_32: image_32,
|
|
467
|
+
image_48: image_48,
|
|
468
|
+
image_512: image_512,
|
|
469
|
+
image_72: image_72,
|
|
470
|
+
image_original: image_original,
|
|
471
|
+
is_app_user: is_app_user,
|
|
472
|
+
is_custom_image: is_custom_image,
|
|
473
|
+
is_restricted: is_restricted,
|
|
474
|
+
is_ultra_restricted: is_ultra_restricted,
|
|
475
|
+
last_avatar_image_hash: last_avatar_image_hash,
|
|
476
|
+
last_name: last_name,
|
|
477
|
+
memberships_count: memberships_count,
|
|
478
|
+
name: name,
|
|
479
|
+
pronouns: pronouns,
|
|
480
|
+
status_default_emoji: status_default_emoji,
|
|
481
|
+
status_default_text: status_default_text,
|
|
482
|
+
status_default_text_canonical: status_default_text_canonical,
|
|
483
|
+
status_expiration: status_expiration,
|
|
484
|
+
status_text_canonical: status_text_canonical,
|
|
485
|
+
team: team,
|
|
486
|
+
updated: updated,
|
|
487
|
+
user_id: user_id,
|
|
488
|
+
username: username,
|
|
489
|
+
additional_properties: additional_properties)
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Provides a human-readable string representation of the object.
|
|
493
|
+
def to_s
|
|
494
|
+
class_name = self.class.name.split('::').last
|
|
495
|
+
"<#{class_name} always_active: #{@always_active}, api_app_id: #{@api_app_id}, avatar_hash:"\
|
|
496
|
+
" #{@avatar_hash}, bot_id: #{@bot_id}, display_name: #{@display_name},"\
|
|
497
|
+
" display_name_normalized: #{@display_name_normalized}, email: #{@email}, fields:"\
|
|
498
|
+
" #{@fields}, first_name: #{@first_name}, guest_expiration_ts: #{@guest_expiration_ts},"\
|
|
499
|
+
" guest_invited_by: #{@guest_invited_by}, image_1024: #{@image_1024}, image_192:"\
|
|
500
|
+
" #{@image_192}, image_24: #{@image_24}, image_32: #{@image_32}, image_48: #{@image_48},"\
|
|
501
|
+
" image_512: #{@image_512}, image_72: #{@image_72}, image_original: #{@image_original},"\
|
|
502
|
+
" is_app_user: #{@is_app_user}, is_custom_image: #{@is_custom_image}, is_restricted:"\
|
|
503
|
+
" #{@is_restricted}, is_ultra_restricted: #{@is_ultra_restricted}, last_avatar_image_hash:"\
|
|
504
|
+
" #{@last_avatar_image_hash}, last_name: #{@last_name}, memberships_count:"\
|
|
505
|
+
" #{@memberships_count}, name: #{@name}, phone: #{@phone}, pronouns: #{@pronouns},"\
|
|
506
|
+
" real_name: #{@real_name}, real_name_normalized: #{@real_name_normalized}, skype:"\
|
|
507
|
+
" #{@skype}, status_default_emoji: #{@status_default_emoji}, status_default_text:"\
|
|
508
|
+
" #{@status_default_text}, status_default_text_canonical: #{@status_default_text_canonical},"\
|
|
509
|
+
" status_emoji: #{@status_emoji}, status_expiration: #{@status_expiration}, status_text:"\
|
|
510
|
+
" #{@status_text}, status_text_canonical: #{@status_text_canonical}, team: #{@team}, title:"\
|
|
511
|
+
" #{@title}, updated: #{@updated}, user_id: #{@user_id}, username: #{@username},"\
|
|
512
|
+
" additional_properties: #{@additional_properties}>"
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
516
|
+
def inspect
|
|
517
|
+
class_name = self.class.name.split('::').last
|
|
518
|
+
"<#{class_name} always_active: #{@always_active.inspect}, api_app_id:"\
|
|
519
|
+
" #{@api_app_id.inspect}, avatar_hash: #{@avatar_hash.inspect}, bot_id: #{@bot_id.inspect},"\
|
|
520
|
+
" display_name: #{@display_name.inspect}, display_name_normalized:"\
|
|
521
|
+
" #{@display_name_normalized.inspect}, email: #{@email.inspect}, fields: #{@fields.inspect},"\
|
|
522
|
+
" first_name: #{@first_name.inspect}, guest_expiration_ts: #{@guest_expiration_ts.inspect},"\
|
|
523
|
+
" guest_invited_by: #{@guest_invited_by.inspect}, image_1024: #{@image_1024.inspect},"\
|
|
524
|
+
" image_192: #{@image_192.inspect}, image_24: #{@image_24.inspect}, image_32:"\
|
|
525
|
+
" #{@image_32.inspect}, image_48: #{@image_48.inspect}, image_512: #{@image_512.inspect},"\
|
|
526
|
+
" image_72: #{@image_72.inspect}, image_original: #{@image_original.inspect}, is_app_user:"\
|
|
527
|
+
" #{@is_app_user.inspect}, is_custom_image: #{@is_custom_image.inspect}, is_restricted:"\
|
|
528
|
+
" #{@is_restricted.inspect}, is_ultra_restricted: #{@is_ultra_restricted.inspect},"\
|
|
529
|
+
" last_avatar_image_hash: #{@last_avatar_image_hash.inspect}, last_name:"\
|
|
530
|
+
" #{@last_name.inspect}, memberships_count: #{@memberships_count.inspect}, name:"\
|
|
531
|
+
" #{@name.inspect}, phone: #{@phone.inspect}, pronouns: #{@pronouns.inspect}, real_name:"\
|
|
532
|
+
" #{@real_name.inspect}, real_name_normalized: #{@real_name_normalized.inspect}, skype:"\
|
|
533
|
+
" #{@skype.inspect}, status_default_emoji: #{@status_default_emoji.inspect},"\
|
|
534
|
+
" status_default_text: #{@status_default_text.inspect}, status_default_text_canonical:"\
|
|
535
|
+
" #{@status_default_text_canonical.inspect}, status_emoji: #{@status_emoji.inspect},"\
|
|
536
|
+
" status_expiration: #{@status_expiration.inspect}, status_text: #{@status_text.inspect},"\
|
|
537
|
+
" status_text_canonical: #{@status_text_canonical.inspect}, team: #{@team.inspect}, title:"\
|
|
538
|
+
" #{@title.inspect}, updated: #{@updated.inspect}, user_id: #{@user_id.inspect}, username:"\
|
|
539
|
+
" #{@username.inspect}, additional_properties: #{@additional_properties}>"
|
|
540
|
+
end
|
|
541
|
+
end
|
|
542
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
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 usergroups.create method
|
|
8
|
+
class UsergroupsCreateSchema < 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
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [SubteamUsergroupObject]
|
|
18
|
+
attr_accessor :usergroup
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['ok'] = 'ok'
|
|
24
|
+
@_hash['usergroup'] = 'usergroup'
|
|
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(usergroup:, additional_properties: nil)
|
|
39
|
+
# Add additional model properties to the instance
|
|
40
|
+
additional_properties = {} if additional_properties.nil?
|
|
41
|
+
|
|
42
|
+
@ok = 'True'
|
|
43
|
+
@usergroup = usergroup
|
|
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
|
+
usergroup = SubteamUsergroupObject.from_hash(hash['usergroup']) if hash['usergroup']
|
|
53
|
+
|
|
54
|
+
# Create a new hash for additional properties, removing known properties.
|
|
55
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
56
|
+
|
|
57
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
58
|
+
new_hash, proc { |value| value }
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
# Create object from extracted values.
|
|
62
|
+
UsergroupsCreateSchema.new(usergroup: usergroup,
|
|
63
|
+
additional_properties: additional_properties)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Provides a human-readable string representation of the object.
|
|
67
|
+
def to_s
|
|
68
|
+
class_name = self.class.name.split('::').last
|
|
69
|
+
"<#{class_name} ok: #{@ok}, usergroup: #{@usergroup}, additional_properties:"\
|
|
70
|
+
" #{@additional_properties}>"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
74
|
+
def inspect
|
|
75
|
+
class_name = self.class.name.split('::').last
|
|
76
|
+
"<#{class_name} ok: #{@ok.inspect}, usergroup: #{@usergroup.inspect},"\
|
|
77
|
+
" additional_properties: #{@additional_properties}>"
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|