-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[DO NOT MERGE] ACR: private link and CMK support #12348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
37cb8cc
48a2295
eb95aea
110602f
c06fb99
b5211e9
c15b917
012b160
55389bd
e46d248
53817a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,7 +144,13 @@ def default_api_version(self): | |
| 'role_definitions': '2018-01-01-preview', | ||
| 'provider_operations_metadata': '2018-01-01-preview' | ||
| }), | ||
| ResourceType.MGMT_CONTAINERREGISTRY: '2019-06-01-preview', | ||
| ResourceType.MGMT_CONTAINERREGISTRY: SDKProfile('2019-12-01-preview', { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well. I cannot find such api-version in https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The SDK publishing is pending. |
||
| 'tasks': '2019-06-01-preview', | ||
| 'task_runs': '2019-06-01-preview', | ||
| 'runs': '2019-06-01-preview', | ||
| 'scope_maps': '2019-05-01-preview', | ||
| 'tokens': '2019-05-01-preview' | ||
| }), | ||
| ResourceType.DATA_KEYVAULT: '7.0', | ||
| ResourceType.DATA_STORAGE: '2018-11-09', | ||
| ResourceType.DATA_COSMOS_TABLE: '2017-04-17', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,8 @@ | |
| cf_acr_runs, | ||
| cf_acr_scope_maps, | ||
| cf_acr_tokens, | ||
| cf_acr_token_credentials | ||
| cf_acr_token_credentials, | ||
| cf_acr_private_endpoint_connections | ||
| ) | ||
|
|
||
|
|
||
|
|
@@ -130,15 +131,13 @@ def load_command_table(self, _): # pylint: disable=too-many-statements | |
| acr_scope_map_util = CliCommandType( | ||
| operations_tmpl='azure.cli.command_modules.acr.scope_map#{}', | ||
| table_transformer=scope_map_output_format, | ||
| client_factory=cf_acr_scope_maps, | ||
| operation_group='scope_map' | ||
| client_factory=cf_acr_scope_maps | ||
| ) | ||
|
|
||
| acr_token_util = CliCommandType( | ||
| operations_tmpl='azure.cli.command_modules.acr.token#{}', | ||
| table_transformer=token_output_format, | ||
| client_factory=cf_acr_tokens, | ||
| operation_group='token' | ||
| client_factory=cf_acr_tokens | ||
| ) | ||
|
|
||
| acr_token_credential_generate_util = CliCommandType( | ||
|
|
@@ -147,6 +146,11 @@ def load_command_table(self, _): # pylint: disable=too-many-statements | |
| client_factory=cf_acr_token_credentials | ||
| ) | ||
|
|
||
| acr_private_endpoint_connection_util = CliCommandType( | ||
| operations_tmpl='azure.cli.command_modules.acr.private_endpoint_connection#{}', | ||
| client_factory=cf_acr_private_endpoint_connections | ||
| ) | ||
|
|
||
| with self.command_group('acr', acr_custom_util) as g: | ||
| g.command('check-name', 'acr_check_name', table_transformer=None) | ||
| g.command('list', 'acr_list') | ||
|
|
@@ -293,3 +297,20 @@ def load_command_table(self, _): # pylint: disable=too-many-statements | |
|
|
||
| with self.command_group('acr token credential', acr_token_credential_generate_util) as g: | ||
| g.command('generate', 'acr_token_credential_generate') | ||
|
|
||
| with self.command_group('acr private-endpoint-connection', acr_private_endpoint_connection_util, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we're using command to reflect custom command. I'm fine 😄 @Juliehzl
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @myronfanqiu, I am not sure what you meant here. Please can you review / comment on #12381 |
||
| is_preview=True) as g: | ||
| g.command('delete', 'delete') | ||
| g.command('show', 'show') | ||
| g.command('list', 'list_') | ||
mmyyrroonn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| g.command('approve', 'approve') | ||
| g.command('reject', 'reject') | ||
|
|
||
| with self.command_group('acr identity', acr_custom_util, is_preview=True) as g: | ||
| g.command('show', 'show_identity') | ||
| g.command('assign', 'assign_identity') | ||
| g.command('remove', 'remove_identity') | ||
|
|
||
| with self.command_group('acr encryption', acr_custom_util, is_preview=True) as g: | ||
| g.command('show', 'show_encryption') | ||
| g.command('rotate-key', "rotate_key") | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well. Looks like it's just a private package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adewaleo, make sure revert it before merge. We must publish the SDK package beforehand