-
-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #313 from dblock/api-update
Added `admin_teams_settings_info`, `admin_users_list`, `admin_users_s…
- Loading branch information
Showing
35 changed files
with
604 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
desc 'AdminAppsApproved methods.' | ||
command 'admin_apps_approved' do |g| | ||
g.desc 'List approved apps for an org or workspace.' | ||
g.long_desc %( List approved apps for an org or workspace. ) | ||
g.command 'list' do |c| | ||
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.' | ||
c.flag 'enterprise_id', desc: '.' | ||
c.flag 'limit', desc: 'The maximum number of items to return. Must be between 1 - 1000 both inclusive.' | ||
c.flag 'team_id', desc: '.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.admin_apps_approved_list(options)) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
desc 'AdminAppsRestricted methods.' | ||
command 'admin_apps_restricted' do |g| | ||
g.desc 'List restricted apps for an org or workspace.' | ||
g.long_desc %( List restricted apps for an org or workspace. ) | ||
g.command 'list' do |c| | ||
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.' | ||
c.flag 'enterprise_id', desc: '.' | ||
c.flag 'limit', desc: 'The maximum number of items to return. Must be between 1 - 1000 both inclusive.' | ||
c.flag 'team_id', desc: '.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.admin_apps_restricted_list(options)) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
desc 'AdminConversations methods.' | ||
command 'admin_conversations' do |g| | ||
g.desc 'Set the workspaces in an Enterprise grid org that connect to a channel.' | ||
g.long_desc %( Set the workspaces in an Enterprise grid org that connect to a channel. ) | ||
g.command 'setTeams' do |c| | ||
c.flag 'channel_id', desc: 'The encoded channel_id to add or remove to workspaces.' | ||
c.flag 'org_channel', desc: 'True if channel has to be converted to an org channel.' | ||
c.flag 'target_team_ids', desc: "The list of workspaces to which the channel should be shared. Not required if the channel is being shared orgwide. Example: ['T1234', 'T5678']." | ||
c.flag 'team_id', desc: 'The workspace to which the channel belongs. Omit this argument if the channel is a cross-workspace shared channel.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.admin_conversations_setTeams(options)) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
desc 'AdminEmoji methods.' | ||
command 'admin_emoji' do |g| | ||
g.desc 'Add an emoji.' | ||
g.long_desc %( Add an emoji. ) | ||
g.command 'add' do |c| | ||
c.flag 'name', desc: 'The name of the emoji to be removed. Colons (:myemoji:) around the value are not required, although they may be included.' | ||
c.flag 'url', desc: 'The URL of a file to use as an image for the emoji. Square images under 128KB and with transparent backgrounds work best.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.admin_emoji_add(options)) | ||
end | ||
end | ||
|
||
g.desc 'Add an emoji alias.' | ||
g.long_desc %( Add an emoji alias. ) | ||
g.command 'addAlias' do |c| | ||
c.flag 'alias_for', desc: 'The alias of the emoji.' | ||
c.flag 'name', desc: 'The name of the emoji to be aliased. Colons (:myemoji:) around the value are not required, although they may be included.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.admin_emoji_addAlias(options)) | ||
end | ||
end | ||
|
||
g.desc 'List emoji for an Enterprise Grid organization.' | ||
g.long_desc %( List emoji for an Enterprise Grid organization. ) | ||
g.command 'list' do |c| | ||
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.' | ||
c.flag 'limit', desc: 'The maximum number of items to return. Must be between 1 - 1000 both inclusive.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.admin_emoji_list(options)) | ||
end | ||
end | ||
|
||
g.desc 'Remove an emoji across an Enterprise Grid organization' | ||
g.long_desc %( Remove an emoji across an Enterprise Grid organization ) | ||
g.command 'remove' do |c| | ||
c.flag 'name', desc: 'The name of the emoji to be removed. Colons (:myemoji:) around the value are not required, although they may be included.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.admin_emoji_remove(options)) | ||
end | ||
end | ||
|
||
g.desc 'Rename an emoji.' | ||
g.long_desc %( Rename an emoji. ) | ||
g.command 'rename' do |c| | ||
c.flag 'name', desc: 'The name of the emoji to be renamed. Colons (:myemoji:) around the value are not required, although they may be included.' | ||
c.flag 'new_name', desc: 'The new name of the emoji.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump($client.admin_emoji_rename(options)) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.