Skip to content

"SystemData" is generated as public properties in subclass #1041

@Nickcandy

Description

@Nickcandy

Description

When generate code with api: $(repo)/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json
Found that "LoadTestResource" is generated with public SystemData which is inherited from "Resource", and this one should be private.

Issue script & Debug output

PS D:\workspace\azure-powershell\src\load [Az.LoadTesting]> $a=(get-azload -name pwsh2 -ResourceGroupName venkat-rg)
PS D:\workspace\azure-powershell\src\load [Az.LoadTesting]> $a.SystemData

CreatedAt              CreatedBy          CreatedByType LastModifiedAt         LastModifiedBy     LastModifiedByType
---------              ---------          ------------- --------------         --------------     ------------------
22/11/2022 11:45:06 am vens@microsoft.com User          23/11/2022 11:56:44 am vens@microsoft.com User

Environment data

PS D:\workspace\azure-powershell\src\load [Az.LoadTesting]> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.2.7
PSEdition                      Core
GitCommitId                    7.2.7
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     9.0.0                 Az                                  Core,Desk

Error output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugv4Need to be done in autorest.powershell V4

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions