From d3ec4d1899cb01c65bdb280dd534b3b3287db528 Mon Sep 17 00:00:00 2001 From: Xiaogang Date: Wed, 30 Oct 2024 14:21:14 +0800 Subject: [PATCH] Update class.ts to fix a description issue --- powershell/cmdlets/class.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powershell/cmdlets/class.ts b/powershell/cmdlets/class.ts index c78b39ed3d..d579bd2225 100644 --- a/powershell/cmdlets/class.ts +++ b/powershell/cmdlets/class.ts @@ -1846,7 +1846,7 @@ export class CmdletClass extends Class { const enableSystemAssignedIdentity = new Property('EnableSystemAssignedIdentity', operation.details.csharp.verb.toLowerCase() === 'new' ? SwitchParameter : NullableBoolean, { set: operation.details.csharp.verb.toLowerCase() === 'new' ? toExpression(`${expandedBodyParameter.value}.${getVirtualPropertyName((vParam.origin)) || vParam.origin.name} = value.IsPresent ? "SystemAssigned": null `) : undefined }); - enableSystemAssignedIdentity.description = 'Decides if enable a system assigned identity for the resource.'; + enableSystemAssignedIdentity.description = 'Determines whether to enable a system-assigned identity for the resource.'; enableSystemAssignedIdentity.add(new Attribute(ParameterAttribute, { parameters: [new LiteralExpression(`Mandatory = ${vParam.required && operation.details.csharp.verb.toLowerCase() !== 'new' ? 'true' : 'false'}`), new LiteralExpression(`HelpMessage = "${escapeString(enableSystemAssignedIdentity.description || '.')}"`)] })); if (length(vParam.alias) > 0) { enableSystemAssignedIdentity.add(new Attribute(Alias, { parameters: vParam.alias.map(x => '"' + x + '"') }));