Skip to content

Commit 8566be9

Browse files
committed
fix: identity-related
1 parent b8084a8 commit 8566be9

File tree

3 files changed

+1047
-506
lines changed

3 files changed

+1047
-506
lines changed

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/vnet_gateway/_update.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -200,27 +200,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
200200

201201
# define Arg Group "Identity"
202202

203-
_args_schema = cls._args_schema
204-
_args_schema.type = AAZStrArg(
205-
options=["--type"],
206-
arg_group="Identity",
207-
help="The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.",
208-
nullable=True,
209-
enum={"None": "None", "SystemAssigned": "SystemAssigned", "SystemAssigned, UserAssigned": "SystemAssigned, UserAssigned", "UserAssigned": "UserAssigned"},
210-
)
211-
_args_schema.user_assigned_identities = AAZDictArg(
212-
options=["--user-assigned-ids", "--user-assigned-identities"],
213-
arg_group="Identity",
214-
help="The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.",
215-
nullable=True,
216-
)
217-
218-
user_assigned_identities = cls._args_schema.user_assigned_identities
219-
user_assigned_identities.Element = AAZObjectArg(
220-
nullable=True,
221-
blank={},
222-
)
223-
224203
# define Arg Group "Parameters"
225204

226205
# define Arg Group "Properties"
@@ -763,15 +742,6 @@ def _update_instance(self, instance):
763742
_builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}})
764743
_builder.set_prop("tags", AAZDictType, ".tags")
765744

766-
identity = _builder.get(".identity")
767-
if identity is not None:
768-
identity.set_prop("type", AAZStrType, ".type")
769-
identity.set_prop("userAssignedIdentities", AAZDictType, ".user_assigned_identities")
770-
771-
user_assigned_identities = _builder.get(".identity.userAssignedIdentities")
772-
if user_assigned_identities is not None:
773-
user_assigned_identities.set_elements(AAZObjectType, ".")
774-
775745
properties = _builder.get(".properties")
776746
if properties is not None:
777747
properties.set_prop("activeActive", AAZBoolType, ".active")

0 commit comments

Comments
 (0)