Skip to content

Commit eeafcf8

Browse files
committed
azure-mgmt-authorization
1 parent d60e9d2 commit eeafcf8

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
lines changed

src/azure-cli-core/azure/cli/core/profiles/_shared.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,7 @@ def default_api_version(self):
187187
ResourceType.MGMT_RESOURCE_MANAGEDAPPLICATIONS: '2019-07-01',
188188
ResourceType.MGMT_NETWORK_PRIVATEDNS: None,
189189
ResourceType.MGMT_KEYVAULT: None,
190-
ResourceType.MGMT_AUTHORIZATION: SDKProfile('2022-04-01', {
191-
'role_definitions': '2022-05-01-preview',
192-
'provider_operations_metadata': '2018-01-01-preview'
193-
}),
190+
ResourceType.MGMT_AUTHORIZATION: None,
194191
ResourceType.MGMT_CONTAINERREGISTRY: SDKProfile('2025-03-01-preview', {
195192
'agent_pools': '2025-03-01-preview',
196193
'tasks': '2025-03-01-preview',

src/azure-cli/azure/cli/command_modules/role/_params.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,9 @@ def load_arguments(self, _):
340340
"the logged-in account has no permission or the machine has no network access to query "
341341
"Microsoft Graph.")
342342
c.argument('ids', nargs='+', help='space-separated role assignment ids')
343-
c.argument('description', is_preview=True, min_api='2020-04-01-preview', help='Description of role assignment.')
344-
c.argument('condition', is_preview=True, min_api='2020-04-01-preview', help='Condition under which the user can be granted permission.')
345-
c.argument('condition_version', is_preview=True, min_api='2020-04-01-preview', help='Version of the condition syntax. If --condition is specified without --condition-version, default to 2.0.')
343+
c.argument('description', is_preview=True, help='Description of role assignment.')
344+
c.argument('condition', is_preview=True, help='Condition under which the user can be granted permission.')
345+
c.argument('condition_version', is_preview=True, help='Version of the condition syntax. If --condition is specified without --condition-version, default to 2.0.')
346346
c.argument('assignment_name', name_arg_type,
347347
help='A GUID for the role assignment. It must be unique and different for each role assignment. If omitted, a new GUID is generated.')
348348

@@ -379,7 +379,7 @@ class PrincipalType(str, Enum):
379379
service_principal = "ServicePrincipal"
380380
foreign_group = "ForeignGroup"
381381

382-
c.argument('assignee_principal_type', min_api='2018-09-01-preview', arg_type=get_enum_type(PrincipalType),
382+
c.argument('assignee_principal_type', arg_type=get_enum_type(PrincipalType),
383383
help='use with --assignee-object-id to avoid errors caused by propagation latency in Microsoft Graph')
384384

385385
with self.argument_context('role assignment update') as c:

src/azure-cli/azure/cli/command_modules/role/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def load_command_table(self, _):
7575
g.custom_command('delete', 'delete_role_assignments', validator=process_assignment_namespace)
7676
g.custom_command('list', 'list_role_assignments', validator=process_assignment_namespace, table_transformer=transform_assignment_list)
7777
g.custom_command('create', 'create_role_assignment', validator=process_assignment_namespace)
78-
g.custom_command('update', 'update_role_assignment', min_api='2020-04-01-preview')
78+
g.custom_command('update', 'update_role_assignment')
7979
g.custom_command('list-changelogs', 'list_role_assignment_change_logs')
8080

8181
with self.command_group('ad app', client_factory=get_graph_client, exception_handler=graph_err_handler) as g:

src/azure-cli/requirements.py3.Darwin.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ azure-mgmt-apimanagement==4.0.0
2222
azure-mgmt-appconfiguration==5.0.0
2323
azure-mgmt-appcontainers==2.0.0
2424
azure-mgmt-applicationinsights==1.0.0
25-
azure-mgmt-authorization==4.0.0
25+
azure-mgmt-authorization==5.0.0b1
2626
azure-mgmt-batch==17.3.0
2727
azure-mgmt-batchai==7.0.0b1
2828
azure-mgmt-billing==6.0.0

src/azure-cli/requirements.py3.Linux.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ azure-mgmt-apimanagement==4.0.0
2222
azure-mgmt-appconfiguration==5.0.0
2323
azure-mgmt-appcontainers==2.0.0
2424
azure-mgmt-applicationinsights==1.0.0
25-
azure-mgmt-authorization==4.0.0
25+
azure-mgmt-authorization==5.0.0b1
2626
azure-mgmt-batch==17.3.0
2727
azure-mgmt-batchai==7.0.0b1
2828
azure-mgmt-billing==6.0.0

src/azure-cli/requirements.py3.windows.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ azure-mgmt-apimanagement==4.0.0
2222
azure-mgmt-appconfiguration==5.0.0
2323
azure-mgmt-appcontainers==2.0.0
2424
azure-mgmt-applicationinsights==1.0.0
25-
azure-mgmt-authorization==4.0.0
25+
azure-mgmt-authorization==5.0.0b1
2626
azure-mgmt-batch==17.3.0
2727
azure-mgmt-batchai==7.0.0b1
2828
azure-mgmt-billing==6.0.0

0 commit comments

Comments
 (0)