forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathcommands.py
50 lines (39 loc) · 2.44 KB
/
commands.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
def load_command_table(self, _):
with self.command_group('webapp auth') as g:
g.custom_show_command('show', 'get_auth_settings_v2')
g.custom_command('set', 'set_auth_settings_v2')
g.custom_command('update', 'update_auth_settings_v2')
with self.command_group('webapp auth config-version') as g:
g.custom_show_command('show', 'get_config_version')
g.custom_command('revert', 'revert_to_auth_settings')
g.custom_command('upgrade', 'upgrade_to_auth_settings_v2')
with self.command_group('webapp auth microsoft') as g:
g.custom_show_command('show', 'get_aad_settings')
g.custom_command('update', 'update_aad_settings')
with self.command_group('webapp auth facebook') as g:
g.custom_show_command('show', 'get_facebook_settings')
g.custom_command('update', 'update_facebook_settings')
with self.command_group('webapp auth github') as g:
g.custom_show_command('show', 'get_github_settings')
g.custom_command('update', 'update_github_settings')
with self.command_group('webapp auth google') as g:
g.custom_show_command('show', 'get_google_settings')
g.custom_command('update', 'update_google_settings')
with self.command_group('webapp auth twitter') as g:
g.custom_show_command('show', 'get_twitter_settings')
g.custom_command('update', 'update_twitter_settings')
with self.command_group('webapp auth apple') as g:
g.custom_show_command('show', 'get_apple_settings')
g.custom_command('update', 'update_apple_settings')
with self.command_group('webapp auth openid-connect') as g:
g.custom_show_command('show', 'get_openid_connect_provider_settings')
g.custom_command('add', 'add_openid_connect_provider_settings')
g.custom_command('update', 'update_openid_connect_provider_settings')
g.custom_command('remove', 'remove_openid_connect_provider_settings')
with self.command_group('webapp auth-classic') as g:
g.custom_show_command('show', 'get_auth_settings')
g.custom_command('update', 'update_auth_classic_settings')